修复一个OrderId的bug

This commit is contained in:
msincenselee 2018-06-02 21:48:54 +08:00
parent 243a74eac0
commit cc060273b9

View File

@ -2492,7 +2492,7 @@ user_id': 6548935, u'contract_id': 201802160040063L, u'price': 24.555, u'create_
# 更新成交数量/状态 # 更新成交数量/状态
order = self.orderDict[orderId] order = self.orderDict[orderId]
self.gateway.writeLog(u'orderid:{},tradedVolume:{}=>{},status:{}=>{}' self.gateway.writeLog(u'orderid:{},tradedVolume:{}=>{},status:{}=>{}'
.format(order.orderId, .format(order.orderID,
order.tradedVolume, float(data['deal_amount']), order.tradedVolume, float(data['deal_amount']),
order.status, statusMap[data['status']])) order.status, statusMap[data['status']]))
order.tradedVolume = float(data['deal_amount']) order.tradedVolume = float(data['deal_amount'])