608 views
0

kline=api.get_kline_serial(‘SHFE.al2104’,20,20)

api.wait_update()

然而kline一直没更新,可能是什么原因导致的?

Answered question
0

可以贴出最小代码看看,然后检查是否当时是非交易时间

Posted new comment

ticksdata=api_data.get_kline_serial(‘SHFE.al2104’,10,5)
print(‘aaaaaaaaaaaa’,ticksdata)
sleep(20)
api_data.wait_update()
print(‘bbbbbbbbbbb’,ticksdata,)

贴不上图,可以加个您微信吗

You are viewing 1 out of 2 answers, click here to view all answers.