[Fix]修复updateOrderReq中的vtSymbol找不到的bug

This commit is contained in:
vn.py 2017-09-27 08:07:01 +08:00
parent fc748711d6
commit fb1dac6e3c

View File

@ -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