Coder Social home page Coder Social logo

jimmysitu / msfinance Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 2.0 48 KB

msfinance offers Pythonic way to download market data from morningstar.com

Home Page: https://msfinance.readthedocs.io/en/latest/

License: Apache License 2.0

Python 100.00%
morningstar

msfinance's Introduction

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

msfinance's People

Contributors

jimmysitu avatar

Stargazers

Gabriele 'Gabryx' Concli avatar Zhe Lee avatar HanMing avatar Ioannis Koniaris avatar Vishal Belsare avatar Jan Maes avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.