修复IB接口的成交对象推送错误

This commit is contained in:
chenxy123 2016-12-02 22:54:01 +08:00
parent 17e0a40613
commit a431bf4353

View File

@ -561,7 +561,7 @@ class IbWrapper(IbApi):
trade.vtSymbol = '.'.join([trade.symbol, trade.exchange])
trade.orderID = str(execution.orderId)
trade.vtOrderID = '.'.join([self.gatewayName, trade.orderId])
trade.vtOrderID = '.'.join([self.gatewayName, trade.orderID])
trade.direction = directionMapReverse.get(execution.side, '')
trade.price = execution.price
trade.volume = execution.shares