JECSand / yahoofinancials

A powerful financial data module used for pulling data from Yahoo Finance. This module can pull fundamental and technical data for stocks, indexes, currencies, cryptos, ETFs, Mutual Funds, U.S. Treasuries, and commodity futures.
https://pypi.python.org/pypi/yahoofinancials
MIT License
899 stars 214 forks source link

get_key_statistics_data() #69

Closed uhed3638 closed 1 year ago

uhed3638 commented 4 years ago

Hi

Any idea if most the functions are not working? I tried a number of functions and the output shown none. Below is use of get_key_statistics_data() and output reflect "None".

from yahoofinancials import YahooFinancials

yahoo_financials = YahooFinancials('AAPL')
print(yahoo_financials.get_key_statistics_data())

{'AAPL': None}

dcgithubaccount commented 4 years ago

Hi, When last this code worked. I just come on this today and it seems not working.

ericpts commented 4 years ago

I think Yahoo restricted access to this data now, as the official page https://finance.yahoo.com/quote/AAPL/financials?p=AAPL now has "Get access to 40+ years of historical data with Yahoo Finance Premium" at the top.

sylvandb commented 4 years ago

For $30 a month they can keep their data. :(

George-Gar commented 3 years ago

does this use requests or aiohttp? cause this package is extremely slow

JECSand commented 1 year ago

@uhed3638 Can confirm key statistics data is working, I added a unit test as of v1.13 for it.

@George-Gar By moving to full yahoo api consumption and by adding concurrent execution this package has sped up greatly. We switched to requests recently as well.

Please reach out if there are any further issues or concerns.