Skip to main content

Morningstar API Client

Project description

Morningstar API Client build

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

morningstar-0.2.3.tar.gz (11.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

morningstar-0.2.3-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

morningstar-0.2.3-py2-none-any.whl (21.3 kB view details)

Uploaded Python 2

File details

Details for the file morningstar-0.2.3.tar.gz.

File metadata

  • Download URL: morningstar-0.2.3.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for morningstar-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e4fd84cd3a0810432bc173bc238f9d0420b31be3ebdf8a60aaab4a09fc7efcda
MD5 bb22bd823f2e727c983570fe92ca76ee
BLAKE2b-256 34f36887fdb96b03c62bc23ad97a23a90db050fb3967ba44d5e16daa35fe5fbe

See more details on using hashes here.

File details

Details for the file morningstar-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: morningstar-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for morningstar-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e79175e80e5ff6c1a8ed43ad12bd2693633e2c86892289ed771f9a428f46dd4d
MD5 d55f985c86952a622d05d3f0f1267a46
BLAKE2b-256 d261cd60ce64cf14ec3a5390e3acf29cc0a591217631bc2fc7f783bdd69b6882

See more details on using hashes here.

File details

Details for the file morningstar-0.2.3-py2-none-any.whl.

File metadata

  • Download URL: morningstar-0.2.3-py2-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for morningstar-0.2.3-py2-none-any.whl
Algorithm Hash digest
SHA256 407bafb184de6fc226bb7c57350b0feaffcde75e457e0b8a15b54dc308da1a20
MD5 c1ef7ca2c8ae8de924186b597912b857
BLAKE2b-256 97b735daed8b91df4619878b7700b3595881358d09c52035a03623a00f1e3f2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page