Morningstar.com and Nasdaq market data downloader
Project description
StockHero
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
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
StockHero-0.1.1.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for StockHero-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64069acf9268fa58f6fa4b358f0fc6f1fd2001a51bb8c67d79e94f382936e0ff |
|
MD5 | 365129889525e22445f6b7c8bd3cff4a |
|
BLAKE2b-256 | 479cea439eab6b01a0b74f6d17f35946a5f9bb32876beedb6a17c9f994382477 |