Why the bracket order showing price incorrectly

Discussion in 'Interactive Brokers' started by xappppp, Jun 25, 2020.

  1. xappppp

    xappppp

    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---------------------------------------------
    upload_2020-6-25_8-1-46.png
    ----order information after submitted---------------------------------------------
    upload_2020-6-25_8-0-58.png