Morningstar.com, finance.yahoo.com and Nasdaq stock market data downloader
Project description
StockHero
New Features in 0.2.4 (unplanned fix)
- Yahoo Finance is partly supported, now it should really work, sry :(
- fixed some bugs
- MultiIndex looks pretty useful
New Features planned for the next release
- clean up the code
- combine some methods
- np.NaN for any not valid value
- give back None for any empty pd.dataframe
The Ticker module
The Ticker
module, gets the financial data from nasdaq.com, morningstar.com, yahoo.com as a pandas.DataFrame
import StockHero as stock
nvda = stock.Ticker('NVDA') # e.g. NVIDIA Corp
nvda.financials # Morningstar - Financials
nvda.marginofsales # Morningstar - Margins % of Sales
nvda.profitability # Morningstar - Profitability
nvda.growth_rev # Morningstar - Growth - Revenue %
nvda.growth_op_inc # Morningstar - Growth - Operating Income %
nvda.growth_net_inc # Morningstar - Growth - Net Income %
nvda.growth_eps # Morningstar - Growth - EPS %
nvda.cf_ratios # Morningstar - Cash Flow - Cash Flow Ratios
nvda.bs # Morningstar - Balance Sheet Items (in %)
nvda.li_fin # Morningstar - Liquidity/Financial Health
nvda.efficiency # Morningstar - Efficiency
nvda.morningstar_quote # Morningstar - Quote
nvda.yahoo_statistics # Yahoo Finance - Statistics
nvda.nasdaq_summ # Nasdaq - Summary
nvda.nasdaq_div_hist # Nasdaq - Dividend History
nvda.nasdaq_hist_quotes_stock # Nasdaq - Historical Quotes for Stocks
nvda.nasdaq_hist_quotes_etf # Nasdaq - Historical Quotes for ETFs
nvda.nasdaq_hist_nocp # Nasdaq - Historical Nasdaq Official Closing Price (NOCP)
nvda.nasdaq_fin_income_statement_y # Nasdaq - Financials - Income Statement - Yearly
nvda.nasdaq_fin_balance_sheet_y # Nasdaq - Financials - Balance Sheet - Yearly
nvda.nasdaq_fin_cash_flow_y # Nasdaq - Financials - Cash Flow - Yearly
nvda.nasdaq_fin_fin_ratios_y # Nasdaq - Financials - Financial Ratios - Yearly
nvda.nasdaq_fin_income_statement_q # Nasdaq - Financials - Income Statement - Quarterly
nvda.nasdaq_fin_balance_sheet_q # Nasdaq - Financials - Balance Sheet - Quarterly
nvda.nasdaq_fin_cash_flow_q # Nasdaq - Financials - Cash Flow - Quarterly
nvda.nasdaq_fin_fin_ratios_q # Nasdaq - Financials - Financial Ratios - Quarterly
nvda.nasdaq_earn_date_eps # Nasdaq - Earnings Date - Earnings Per Share
nvda.nasdaq_earn_date_surprise # Nasdaq - Earnings Date - Quarterly Earnings Surprise Amount
nvda.nasdaq_yearly_earn_forecast # Nasdaq - Earnings Date - Yearly Earnings Forecast
nvda.nasdaq_quarterly_earn_forecast # Nasdaq - Earnings Date - Quarterly Earnings Forecast
nvda.nasdaq_pe_forecast # Nasdaq - Price/Earnings & PEG Ratios - Price/Earnings Ratio
nvda.nasdaq_gr_forecast # Nasdaq - Price/Earnings & PEG Ratios - Forecast P/E Growth Rates
nvda.nasdaq_peg_forecast # Nasdaq - Price/Earnings & PEG Ratios - PEG Ratio
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, the plan is to support more markets (time will tell)
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.2.4 Bug fixes
0.2.3 Bug fixes and added first data from Yahoo Finance
0.2.2 Bug fixes and added more data from Morningstar
0.2.1 Added more data from nasdaq.com
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.2.4.tar.gz
(15.1 kB
view hashes)
Built Distribution
StockHero-0.2.4-py3-none-any.whl
(13.6 kB
view hashes)
Close
Hashes for StockHero-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae45c01bba181a72605ac26ce986d292af817d19e7ac8177831d9221b999389 |
|
MD5 | fd666eaaf9f6c4ce384b59d979e25bcd |
|
BLAKE2b-256 | 9051bc5312fe5f21c528ec2be55cf2be4ac72b7188815b1250ae3f28f8ee9260 |