Skip to main content

msfinance offers Pythonic way to download stocks financial data from morningstar.com

Project description

msfinance

msfinance offers Pythonic way to download stocks financial data from morningstar.com/stocks

PyPI - Python Version PyPI - Version PyPI - Downloads GitHub Workflow Status (with event)

Installation

pip install msfinance

Quick Start

#!/usr/bin/python3 -u
import msfinance as msf

stock = msf.Stock(
    session='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

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

msfinance-0.3.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

msfinance-0.3.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file msfinance-0.3.0.tar.gz.

File metadata

  • Download URL: msfinance-0.3.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for msfinance-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3741430a55dc66e93d2d1455573fff4786f178763a45b538a9e04d340804ae2e
MD5 99efccd3b83c81aa65bb166b53bf32c4
BLAKE2b-256 1665b1053c9730a0e5d223f407ec94e6d80420dbf0fa4c35a0964b910ebb9af1

See more details on using hashes here.

File details

Details for the file msfinance-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: msfinance-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for msfinance-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1300457cdc56eea7fc22db1180031639f0e8fcc8daa461eb12fee9674268a106
MD5 12b0c702e1879e90480148cc9d8efe8b
BLAKE2b-256 39df2ae850ee990b7b0ca7e68407abec59c00f0ebd6c708b2ab995bb04c24c57

See more details on using hashes here.

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