程序运行过程中出现如下提示,并退出了!
2021-09-24 10:30:01 – INFO – 通知: 下单成功,委托,SHFE.fu2205,2825,1手,买,平今
Traceback (most recent call last):
File “test.py”, line 3880, in <module>
File “test.py”, line 2862, in main
File “site-packages\tqsdk\api.py”, line 1091, in insert_order
Exception: 下单数量(volume) 0 错误, 请检查 volume 是否填写正确
[3008] Failed to execute script MSAaitl
Task was destroyed but it is pending!
task: <Task pending name=’Task-8′ coro=<TqAccount._run() running at site-packages\tqsdk\account.py:114>
wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x00000223AB213BB0>()]> cb=[TqBaseApi._on_task_done()]>
Task was destroyed but it is pending!
上面已提示有委托1手,咋出现volume不对呢?(查账户实际已正常委托、已正常成交)
李思恒 已回答的问题 2021年9月24日