Skip to main content

Morningstar.com and Nasdaq market data downloader

Project description

StockHero

Downloads

The Ticker module

The Ticker module, gets the financial data from morningstar.com as a pandas.DataFrame, so you can use it in any way you want

import StockHero as stock
t = stock.Ticker('NVDA') # e.g. NVIDIA Corp

t.financials            # Financials
t.marginofsales         # Key Ratios - Profitability - Margins % of Sales
t.profitability         # Key Ratios - Profitability - Profitability
t.growth_rev            # Key Ratios - Growth - Revenue %
t.growth_op_inc         # Key Ratios - Growth - Operating Income %
t.growth_net_inc        # Key Ratios - Growth - Net Income %
t.growth_eps            # Key Ratios - Growth - EPS %
t.cf_ratios             # Key Ratios - Cash Flow - Cash Flow Ratios
t.bs                    # Key Ratios - Financial Health - Balance Sheet Items (in %)
t.li_fin                # Key Ratios - Financial Health - Liquidity/Financial Health
t.efficiency            # Key Ratios - Efficiency Ratios - Efficiency

The StockExchange module

The StockExchange module, gets the financial data from the Nasdaq Stock Screener as a pandas.DataFrame
Currently only the Nasdaq is supported

import StockHero as stock
t = stock.StockExchange('something') # e.g. Nasdaq

t.nasdaq                # Nasdaq Stock Market

Combining both modules

You can combine both modules, for example

import StockHero as stock
t = stock.StockExchange('something')

df = t.nasdaq
ticker = df.loc[df['Name'].str.contains('NVIDIA'), 'Symbol'].values[0]
n = stock.Ticker(ticker)
n.financials

Installing

https://pypi.org/project/StockHero/

Legal Stuff

StockHero is distributed under the Apache Software License

Any feedback or suggestions, let me know

Or in the words of Peter Thiel:

We wanted flying cars, instead we got 140 characters




### Versions
0.1.1 Bug fixes
0.1.0 Added the StockExchange modul
0.0.2 Bug fixes / Changed License
0.0.1 First Release

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

StockHero-0.1.1.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

StockHero-0.1.1-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

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