Skip to main content

Simple module for downloading financial statements and estimates from financials.morningstar.com

Project description

mfinancials

Simple module for downloading financial statements and estimates from financials.morningstar.com

Setup

Install using pip:

pip install mfinancials

or install from source:

git clone https://github.com/tobigs/mfinancials.git
cd mfinancials
python setup.py install

Usage

Basic usage

import mfinancials as mf

# Apple, Inc.
aapl = mf.Ticker("aapl")

# financials from http://financials.morningstar.com/ratios/r.html?t=aapl
aapl.financials

# key ratios from from http://financials.morningstar.com/ratios/r.html?t=aapl
aapl.keyRatios

# estimates from financials.morningstar.com/valuation/earnings-estimates.html?t=aapl
aapl.estimates

# display like morningstar website
aapl.financials.T
aapl.keyRatios.T
aapl.estimates.T

# get urls to view data on morningstar website
aapl.url_estimates
aapl.url_financials

Non-US stocks

Stocks not listed in the USA require either country or Market Identifier Code (MIC).
It is generally advised to use country, mic only for not supported countries.

# LVMH Moët Hennessy – Louis Vuitton SE
lvmh = mf.Ticker("mc", mic="XPAR")

# Samsung Electronics Co., Ltd.
smsng = mf.Ticker("005930", country="South Korea")

# list supported countries
smsng.countries

Some estimate data is in a different currency than the financials currency. To convert estimates use:

# Alibaba Group Holding Limited
baba = mf.Ticker("baba")
baba.financials
baba.estimates
baba.estimatesConv

# access currencies
baba.currency_estimates
baba.currency_financials

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

mfinancials-0.0.2.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

mfinancials-0.0.2-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

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