yahoofinancials
yahoofinancials copied to clipboard
Add support for ALL key statistics data
It's related to #18 as most of the work has been done already, but there are some main key statistics data that are missing, such as total cash
, total debt
or levered free cash flow
...etc
How could we get access to all those data?
See sample here: https://finance.yahoo.com/quote/ABBV/key-statistics?p=ABBV
It would be ideal if all those data could be available :) Happy to help where I can. Thanks!
@JECSand I'll ask someone to add those missing data to the project as it seems possible. Would you consider the pull request if I make those enhancements available? Thanks
revenueQuarterlyGrowth values in get_key_statistics_data() show up as None for all tickers. I checked some against the Yahoo Finance website and they are not None. Attached an example
@DebugMeIfYouCan
I would absolutely consider a pull request which added that missing data.
I have been very busy these last few months, but will try to resume maintaining this project in the next few weeks.
Have a look at https://github.com/JECSand/yahoofinancials/pull/47 this adds support for Financial Data
In [58]: from yahoofinancials import YahooFinancials
...:
...: parser = YahooFinancials("MSFT")
...:
...:
In [59]: parser.get_financial_data()
Out[59]:
{'MSFT': {'ebitdaMargins': 0.44236,
'profitMargins': 0.31656,
'grossMargins': 0.66559,
'operatingCashflow': 52345999360,
'revenueGrowth': 0.137,
'operatingMargins': 0.35197,
'ebitda': 57423998976,
'targetLowPrice': 133,
'recommendationKey': 'buy',
'grossProfits': 82933000000,
'freeCashflow': 33811625984,
'targetMedianPrice': 160,
'currentPrice': 149.59,
'earningsGrowth': 0.211,
'currentRatio': 2.854,
'returnOnAssets': 0.10644,
'numberOfAnalystOpinions': 32,
'targetMeanPrice': 160.16,
'debtToEquity': 80.68,
'returnOnEquity': 0.428,
'targetHighPrice': 170,
'totalCash': 136608997376,
'totalDebt': 85570002944,
'totalRevenue': 129814003712,
'totalCashPerShare': 17.907,
'financialCurrency': 'USD',
'maxAge': 86400,
'revenuePerShare': 16.94,
'quickRatio': 2.679,
'recommendationMean': 1.6}}