PKUJohnson / OpenData

开源的金融投资数据提取工具,专注在各类网站上爬取数据,并通过简单易用的API方式使用
Apache License 2.0
1.3k stars 331 forks source link

NameError: name 'YingWeiAgent' is not defined #29

Closed searchlink closed 5 years ago

searchlink commented 5 years ago

你好~想获取其他全球指数示调用报错

df_data, msg = index.get_index_data(symbol='SPX', freq='1d', period='1y')

NameError: name 'YingWeiAgent' is not defined
searchlink commented 5 years ago

sorry,已经解决。在index_interface.py文件中增加如下导入

from opendatatools.index.index_agent import YingWeiAgent

另外一些api的更新,文档有些陈旧了~