2
所以我最近下載了yahoo_finance API及其1.4.0版本。我幾天前得到它,而.get_historical()工作正常。然而,現在它沒有。繼承人在做什麼:Yahoo Finance API .get_historical()不工作python
import yahoo_finance as yf
apple=yf.Share('AAPL')
apple_price=apple.get_price()
print apple.get_historical('2016-02-15', '2016-04-29')
我得到的錯誤是:YQLResponseMalformedError:響應格式錯誤。 API中是否存在錯誤或者我忘記了什麼?
是的,有一個錯誤https://github.com/lukaszbanasiak/yahoo-finance/issues/128,似乎API正在慢慢死亡http://www.financial-hacker.com/bye-yahoo-and-thank-你換的魚/#更2443 – davedwards