Python pandas - yahoo finance is not providing GOOG's historical prices?

2024-10-06 10:22:37 发布

您现在位置:Python中文网/ 问答频道 /正文

有人能解释一下为什么雅虎突然停止提供谷歌的历史价格?GOOG's historicla prices page也不是很有用。 我用来检查的代码:(AAPL有效,GOOG不工作)

import pandas.io.data as web
import datetime

print web.get_data_yahoo('AAPL', datetime.datetime(2010,1,1), datetime.datetime(2013,12,31))['Adj Close']
print web.get_data_yahoo('GOOG', datetime.datetime(2010,1,1), datetime.datetime(2013,12,31))['Adj Close']

Tags: importwebclosedatagetdatetime价格历史