vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 19
声望: 1

Traceback (most recent call last):
File "/home/rick/.conda/envs/btc/lib/python3.7/site-packages/vnpy/trader/ui/widget.py", line 893, in send_order
self.main_engine.send_order(req, gateway_name)
File "/home/rick/.conda/envs/btc/lib/python3.7/site-packages/vnpy/trader/engine.py", line 182, in send_order
return gateway.send_order(req)
File "/home/rick/.conda/envs/btc/lib/python3.7/site-packages/vnpy/gateway/binances/binances_gateway.py", line 141, in send_order
return self.rest_api.send_order(req)
File "/home/rick/.conda/envs/btc/lib/python3.7/site-packages/vnpy/gateway/binances/binances_gateway.py", line 364, in send_order
"type": ORDERTYPE_VT2BINANCES[req.type],
KeyError: <OrderType.STOP: 'STOP'>

已经连接了币安合约(BINANCES),可以查询到资金信息,下单的时候出错了

Member
avatar
加入于:
帖子: 19
声望: 1

市价单也出错了
委托失败,状态码:400,信息:{"code":-1106,"msg":"Parameter 'timeInForce' sent when not required."}

Administrator
avatar
加入于:
帖子: 3813
声望: 202

请在Github开个issue吧,我们来排查下

Member
avatar
加入于:
帖子: 19
声望: 1

好的

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