I placed order as below, and the price seems alright, but when I check the order submitted in ib, it showing the price is quite different for the limited order.
Can anyone help me why?
----code--------------------------------
contract = Future('ES','202009', 'GLOBEX')
bracket = ib.bracketOrder('BUY',1,3032,3032.5,3031)
bracket.parent
bracket.takeProfit.tif='GTC'
bracket.stopLoss.tif='GTC'
for o in bracket:
ib.placeOrder(contract, o)
----order information---------------------------------------------
----order information after submitted---------------------------------------------
Can anyone help me why?
----code--------------------------------
contract = Future('ES','202009', 'GLOBEX')
bracket = ib.bracketOrder('BUY',1,3032,3032.5,3031)
bracket.parent
bracket.takeProfit.tif='GTC'
bracket.stopLoss.tif='GTC'
for o in bracket:
ib.placeOrder(contract, o)
----order information---------------------------------------------
----order information after submitted---------------------------------------------