veighna-global / vnpy_okx

OKX trading gateway for VeighNa Evo
MIT License
93 stars 78 forks source link

vt_orderid返回为空 #7

Closed cx9208 closed 3 years ago

cx9208 commented 3 years ago

buy或sell后vt_orderid返回为空,我看了下,okex_gateway.py 中904行 return order.vt_orderid OrderData结构没有vt_orderid变量,改为 return order.orderid 后返回正常

cx9208 commented 3 years ago

啊,OrderData里的__post_init__是有vt_orderid的,但为什么我没有返回数据呢

cx9208 commented 3 years ago

没事了,换了最新的okex_gateway.py就好了