掘金社区

运行一会儿报了这个错误??Pinned highlighted

牛魔王1948 发表在掘金2 2018-02-24 08:44:08

掘金2
812
2
0

运行一会儿报了这个错误??这什么鬼??? 求解释
SZSE.002682 这股票代码没什么问题啊。。。。
ERROR:root:---------------------
Traceback (most recent call last):
File "D:Python36libsite-packagesgmcallback.py", line 218, in callback_controller
return bar_callback(data)
File "D:Python36libsite-packagesgmcallback.py", line 46, in bar_callback
_trigger_task()
File "D:Python36libsite-packagesgmcallback.py", line 63, in _trigger_task
context.inside_file_module.on_bar(context, task.get_perform_bars())
File "C:Userslkj.goldminerprojects6d050657-192c-11e8-9952-1c1b0d9b06d4main.py", line 72, in on_bar
order_volume(symbol=bar['symbol'], volume=list[bar['symbol']]['avg'], side=OrderSide_Buy,
KeyError: 'SZSE.002682'

评论: 2

Looks like your connection to 掘金量化社区 - 量化交易者的策略交流学习社区 was lost, please wait while we try to reconnect.