msfinance
msfinance offers Pythonic way to download stocks financial data from morningstar.com/stocks
Installation
pip install msfinance
Quick Start
#!/usr/bin/python3 -u
import msfinance as msf
stock = msf.Stock(
database='msf_database.db3',
)
print(stock.get_income_statement('aapl', 'xnas'))
print(stock.get_balance_sheet_statement('aapl', 'xnas'))
print(stock.get_cash_flow_statement('aapl', 'xnas'))
print(stock.get_growth('aapl', 'xnas'))
print(stock.get_operating_and_efficiency('aapl', 'xnas'))
print(stock.get_financial_health('aapl', 'xnas'))
print(stock.get_cash_flow('aapl', 'xnas'))
- More examples are placed in examples directory. Add msfinance path to environment variable: PYTHONPATH, and run examples directly
US Tickers and Exchanges
- Get all tickers symbol of each exchange here
HK Tickers and Exchanges
- Get all tickers numbers of Heng Seng Index here
TODO
- Add 'Last Updated' to database record
- Add support for pip package
- Add tickers from HK exchanges
- Add docs in docs directory for readthedoc.io
- Add multiprocessing for speed up
- More robust error handling
- Add more statistics valuations
Metadata
Release files for msfinance 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| msfinance-0.4.0.tar.gz | 19.0 kB | Without provenance | Details for msfinance-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| msfinance-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for msfinance-0.4.0-py3-none-any.whl |
Total release size: 35.4 kB
Release files / msfinance-0.4.0.tar.gz
| Download URL | msfinance-0.4.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c614c3762242221c7942342d032b9e6f0f225e4539911d1f66a2fc80cdb1528
|
|
BLAKE2b-256 checksum How to use checksums |
a258881cb4dd73be8fa854d553f175713b05ef49de36825dd3da9fe63edc559b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Release files / msfinance-0.4.0-py3-none-any.whl
| Download URL | msfinance-0.4.0-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
828cd418b385d50fec3eacff6a5850e632a8f661e2433c9b36d0c178411ebabc
|
|
BLAKE2b-256 checksum How to use checksums |
095b395af5ca20ca2063822248989639ea96fc2b8b5a0ce4856aca0f00a604da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Security for msfinance 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.