opcvm-sdk-python

OPCVM360 RESTFul API Wrapper


Keywords
opcvm opcvm360 api sdk, api-client, python
License
Apache-2.0
Install
pip install opcvm-sdk-python==1.1.7

Documentation

Background

OPCVM360 is a [financial data provider] (http://www.opcvm360.com), servicing a broad range of European funds.

Please request a login and password to [Finance Web Working] (http://www.opcvm360.com/solutions-pro#contact-infos) ; or direct contacts as per below:

Installation

  • From git:
git clone https://github.com/Rubicubix/opcvm-sdk-python.git
  • From pip:
pip install opcvm-sdk-python
  • From PyPI:

Download [the distribution] (https://pypi.python.org/pypi/opcvm-sdk-python) from the Python Package Index. Once downloaded and unzipped,

python setup.py install

Code snippets

A little overview of the functionalities for a given fundshare (ISIN: LU0068578508). Enjoy!

  • Retrieve a Fundshare object:
from opcvm_sdk import OpcvmService, ApiException
_isin = 'LU0068578508'
try:
    _service = OpcvmService()
    _fundshare = _service.get_fundshare_by_isin(_isin)
    print(_fundshare.idFundShare)
except ApiException as e:
    print(e)
  • Retrieve a pandas.DataFrame object:
from opcvm_sdk import OpcvmService, ApiException
_isin = 'LU0068578508'
try:
    _service = OpcvmService()
    _history = _service.get_history_by_isin(_isin, "2017-01-01", "2017-03-15")
    _history['vl'].plot()
except ApiException as e:
    print(e)