Morningstar.com, finance.yahoo.com and Nasdaq stock market data downloader
Project description
StockHero
New Features in 0.2.10
- minor fixes (Morningstar Quote is up and running again)
New Features planned for the next release
- restructure the code
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
#or
nvda = stock.Ticker('US67066G1040') # e.g. NVIDIA Corp
''' Morningstar '''
nvda.financials # Financials
nvda.marginofsales # Margins % of Sales
nvda.profitability # Profitability
nvda.growth_rev # Growth - Revenue %
nvda.growth_op_inc # Growth - Operating Income %
nvda.growth_net_inc # Growth - Net Income %
nvda.growth_eps # Growth - EPS %
nvda.cf_ratios # Cash Flow - Cash Flow Ratios
nvda.bs # Balance Sheet Items (in %)
nvda.li_fin # Liquidity/Financial Health
nvda.efficiency # Efficiency
nvda.morningstar_quote # Quote
''' Yahoo Finance '''
nvda.yahoo_statistics # Statistics
nvda.yahoo_statistics_p # Statistics - PreProcessed
''' NASDAQ '''
nvda.nasdaq_summ # Summary
nvda.nasdaq_div_hist # Dividend History
nvda.nasdaq_hist_quotes_stock # Historical Quotes for Stocks
nvda.nasdaq_hist_quotes_etf # Historical Quotes for ETFs
nvda.nasdaq_hist_nocp # Historical Nasdaq Official Closing Price (NOCP)
nvda.nasdaq_fin_income_statement_y # Financials - Income Statement - Yearly
nvda.nasdaq_fin_balance_sheet_y # Financials - Balance Sheet - Yearly
nvda.nasdaq_fin_cash_flow_y # Financials - Cash Flow - Yearly
nvda.nasdaq_fin_fin_ratios_y # Financials - Financial Ratios - Yearly
nvda.nasdaq_fin_income_statement_q # Financials - Income Statement - Quarterly
nvda.nasdaq_fin_balance_sheet_q # Financials - Balance Sheet - Quarterly
nvda.nasdaq_fin_cash_flow_q # Financials - Cash Flow - Quarterly
nvda.nasdaq_fin_fin_ratios_q # Financials - Financial Ratios - Quarterly
nvda.nasdaq_earn_date_eps # Earnings Date - Earnings Per Share
nvda.nasdaq_earn_date_surprise # Earnings Date - Quarterly Earnings Surprise Amount
nvda.nasdaq_yearly_earn_forecast # Earnings Date - Yearly Earnings Forecast
nvda.nasdaq_quarterly_earn_forecast # Earnings Date - Quarterly Earnings Forecast
nvda.nasdaq_pe_peg_forecast # Price/Earnings, PEG Ratios, Growth Rates Forecast
''' Gurufocus '''
nvda.gurufocus_pe_ratio_av # Historical Average Price/Earnings-Ratio
nvda.gurufocus_debt_to_ebitda # Debt-to-EBITDA Ratio
The StockExchange module
The StockExchange
module, gets the financial data from the NASDAQ Stock Screener, Börse Hamburg / Hannover as a pandas.DataFrame
Added CNN Fear and Greed Index
import StockHero as stock
t = stock.StockExchange('something') # e.g. Nasdaq
''' NASDAQ '''
t.nasdaq # Nasdaq Stock Market
''' CNN '''
t.cnn_fear_and_greed # CNN Fear and Greed Index
''' Börse Hamburg / Hannover '''
t.dax # DAX Performance-Index
t.mdax # MDAX Performance-Index
t.sdax # SDAX Performance-Index
t.tecdax # TecDAX Performance-Index
t.nisax # NISAX 20 Index
t.eurostoxx # EURO STOXX 50 Index
t.gcx # GCX Global Challenges Performance-Index
t.gevx # Global Ethical Values Index
t.gergenx # German Gender Index
t.dow_jones # Dow Jones Industrial Average Index (Attention ! - Index is not provided correctly from provider site)
t.nasdaq_100 # Nasdaq-100 Index (Attention ! - Index is not provided correctly from provider site)
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.10 Minor fixes (Morningstar Quote)
0.2.9 Minor fixes (Fear and Greed Index)
0.2.8 Minor fixes
0.2.7 Bug fixes, added indizies from Börse Hamburg / Hannover, added data from Gurufocus
0.2.6 Bug fixes, Code Cleanup, added data from Gurufocus, added CNN Fear and Greed Index
0.2.5 Bug fixes, Code cleanup
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.10.tar.gz
(21.7 kB
view hashes)
Built Distribution
StockHero-0.2.10-py3-none-any.whl
(21.2 kB
view hashes)
Close
Hashes for StockHero-0.2.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 286175d39c91137e9a2fd21a97f86b76af00a97a52cf765acbd021daa7d0ad59 |
|
MD5 | 3f597e6ad4328d85e81a34b191263993 |
|
BLAKE2b-256 | cb109bc9693d16d3ab3c6ba74a54e8afcb3a52beaa504785f8c369b7ddfb1bf4 |