VeighNa量化社区
你的开源社区量化交易平台 | vn.py | vnpy
Member
avatar
加入于:
帖子: 4
声望: 0

PS C:\Users\Administrator\Desktop\code\19> C:\veighna_elite_simulation\python.exe .\update_data.py
xtquant文档地址:http://dict.thinktrader.net/nativeApi/start_now.html

xtquant历史合约信息下载完成
xtquant文档地址:http://dict.thinktrader.net/nativeApi/start_now.html

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\code\19\update_data.py", line 180, in <module>
update_contract_data("中金所")
File "C:\Users\Administrator\Desktop\code\19\update_data.py", line 90, in update_contract_data
option_strike=data["ExtendInfo"]["OptExercisePrice"],
KeyError: 'ExtendInfo'

Member
avatar
加入于:
帖子: 5406
声望: 327

xtquant升级了,改了数据结构,直接用elite版本的datamanager【更新期权数据】功能下载就好
https://www.vnpy.com/docs/cn/elite/strategy/elite_datamanager.html#id13

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】