Skip to main content

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

Metadata

Release files for mfinancials 0.0.2

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

Source distribution (sdist)

Source distribution for mfinancials 0.0.2
File Size Uploaded
mfinancials-0.0.2.tar.gz 7.7 kB Details

Built distribution (wheel)

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

Total release size: 16.9 kB

Release files / mfinancials-0.0.2.tar.gz

Download URL mfinancials-0.0.2.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e1b6dcb82b26620dd1c19bbe1bc1b8d8ef04fc83c696f382fda5b826f4686ce5
BLAKE2b-256 checksum
How to use checksums
54ea95c99fc3d8ff42c093dcee8dd4d16cec392ca9b11d5e49591ca7387b1dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/3.7.0 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

Release files / mfinancials-0.0.2-py3-none-any.whl

Download URL mfinancials-0.0.2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd7d9322e1c5f907330ff5a46a6ec631835abe86dab6a4854b3874218a2e1285
BLAKE2b-256 checksum
How to use checksums
eb1dc6d2b3fb2c022b05b6990fb19f71c979489fa832ab700a741ad25203282f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/3.7.0 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 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