[Fix]修复updateOrderReq中的vtSymbol找不到的bug
This commit is contained in:
parent
fc748711d6
commit
fb1dac6e3c
@ -714,9 +714,14 @@ class PositionDetail(object):
|
||||
#----------------------------------------------------------------------
|
||||
def updateOrderReq(self, req, vtOrderID):
|
||||
"""发单更新"""
|
||||
if req.exchange:
|
||||
vtSymbol = '.'.join([req.symbol, req.exchange])
|
||||
else:
|
||||
vtSymbol = req.symbol
|
||||
|
||||
# 基于请求生成委托对象
|
||||
order = VtOrderData()
|
||||
order.vtSymbol = req.vtSymbol
|
||||
order.vtSymbol = vtSymbol
|
||||
order.symbol = req.symbol
|
||||
order.exchange = req.exchange
|
||||
order.offset = req.offset
|
||||
|
Loading…
Reference in New Issue
Block a user