Skip to main content

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"})

Metadata

Release files for morningstar 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for morningstar 0.3.1
File Size Uploaded
morningstar-0.3.1.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for morningstar 0.3.1
File Interpreter ABI Platform
morningstar-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 36.1 kB

Release files / morningstar-0.3.1.tar.gz

Download URL morningstar-0.3.1.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fe90b4810b3996c3c50a9ba6d40cc8f289c2d43660b74d9bf5c7a046c8ddedfb
BLAKE2b-256 checksum
How to use checksums
caeb9eb53327d5fcd18d1d3637726b798a7850547836eef5b06f17ab02dccec4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release files / morningstar-0.3.1-py3-none-any.whl

Download URL morningstar-0.3.1-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75be040811974d31be506c595544fb25472b0f92f3a6c01de9e45552f8cd7f19
BLAKE2b-256 checksum
How to use checksums
0af349edeb12dcb29080b2ee8217ec12c15715d194f6dd951c37b50d1e1fc44d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.3

3 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page