修复IB接口的成交对象推送错误
This commit is contained in:
parent
17e0a40613
commit
a431bf4353
@ -561,7 +561,7 @@ class IbWrapper(IbApi):
|
|||||||
trade.vtSymbol = '.'.join([trade.symbol, trade.exchange])
|
trade.vtSymbol = '.'.join([trade.symbol, trade.exchange])
|
||||||
|
|
||||||
trade.orderID = str(execution.orderId)
|
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.direction = directionMapReverse.get(execution.side, '')
|
||||||
trade.price = execution.price
|
trade.price = execution.price
|
||||||
trade.volume = execution.shares
|
trade.volume = execution.shares
|
||||||
|
Loading…
Reference in New Issue
Block a user