VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 26
声望: 0

同时勾选SpreadTrading和ChartWizard模块,连接CTP后,创建价差合约,点击ChartWizard,报错如下:
Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy_chartwizard\ui\widget.py", line 155, in process_spread_event
tick: TickData = spread.to_tick()
AttributeError: 'SpreadItem' object has no attribute 'to_tick'
但是看SpreadData的定义里面是有to_tick()这个方法的,不知道为啥会触发这个报错
创建价差
description
点击K线图表

description

Member
avatar
加入于:
帖子: 4722
声望: 287

可以参考一下这个PR
https://github.com/vnpy/vnpy_chartwizard/pull/6

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

沪公网安备 31011502017034号

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