请 [注册] 或 [登录]  | 返回主站

量化交易吧 /  数理科学 帖子:3353026 新帖:55

求教关于获取数据的API用法

量化王者发表于:8 月 30 日 02:00回复(1)

在研究中一次获取多只股票行情数据:
get_price(get_index_stocks('000016.XSHG'), start_date='2019-08-21', end_date=now, frequency='1d', fields=['open', 'close']),没有问题;
但用get_bars(get_index_stocks('000016.XSHG'), count=1, unit='1d', fields=['date','open','close','high','low'], include_now=True)时,AssertionError: security's type must be string;不支持列表?

全部回复

0/140

量化课程

    移动端课程