Morningstar API Client
Project description
Morningstar API Client
This project provides a client to the Morningsar Web Services endpoints.
Setup
Install as a dependency using pip:
pip install morningstar
or install from source:
git clone git@github.com:aaaccell/morningstar.git
cd morningstar
python setup.py install
Once installed, a configuration file (config-morningstar.yml
or .config-morningstar.yml
) is required within your home folder (~). The content can be derived from config-morningstar.yml.dist:
cp config-morningstar.yml.dist ~/.config-morningstar.yml
Usage
from morningstar.morningstar_client import MorningstarClient
client = MorningstarClient()
The most recommended way to use this module is to instantiate MorningstarClient
directly, and if necessary extend funcationality using inheritance: class MyMorningstarClient(MorningstarClient)
.
client.get_instrument_prices(instrument='28.10.F00000JQA9', start_date='01-01-2019', end_date='02-01-2019')
Alternatively, the underlying provider can be accessed using the client instance and therefore provides the full scope of the Morningstar web service API:
client.provider.search({'isin': "CH0038863350"})
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for morningstar-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a7c4f957e422cd9fbf2a81acddb02c4bbc5f13752c89b75402264e1f0db1c88 |
|
MD5 | 6d769d5624606eda50c56f8847a5e2ff |
|
BLAKE2b-256 | f31b36a8ff1f2638747a6471f77898c75cc0d3d1fd9d2db4981c2d94ed0fc850 |