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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mfinancials-0.0.2.tar.gz.
File metadata
- Download URL: mfinancials-0.0.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1b6dcb82b26620dd1c19bbe1bc1b8d8ef04fc83c696f382fda5b826f4686ce5
|
|
| MD5 |
71868bbb02af156ddcc9aae89f4ac54f
|
|
| BLAKE2b-256 |
54ea95c99fc3d8ff42c093dcee8dd4d16cec392ca9b11d5e49591ca7387b1dad
|
File details
Details for the file mfinancials-0.0.2-py3-none-any.whl.
File metadata
- Download URL: mfinancials-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd7d9322e1c5f907330ff5a46a6ec631835abe86dab6a4854b3874218a2e1285
|
|
| MD5 |
51bc1faa5758b33353052445d7420bdf
|
|
| BLAKE2b-256 |
eb1dc6d2b3fb2c022b05b6990fb19f71c979489fa832ab700a741ad25203282f
|