New (?) error message

Discussion in 'Interactive Brokers' started by terr, Jan 18, 2022.

  1. terr

    terr

    "Order Can Only Have One Flag Outside RTH or AllowPreOpen" (when submitting a GTC_ext order through the API)

    This only happens to one person. When I try to place exactly the same order with the same parameters on exactly the same TWS version, the error doesn't occur. Anyone have a clue how to fix this?
     
  2. Which error code number does this text belong to?
     
  3. terr

    terr

    Code: 437
     
  4. ET180

    ET180

    IB recently changed something on the API side related to flags on API submitted orders. You need to update your IB Gateway or TWS to the latest version. I'm still having issues and cannot log into mobile TWS, but Desktop TWS and TWS gateway work fine. Mobile IB Key also works fine. Sounds like your issue is different, but you could try deleting all your open orders and updating TWS to the latest.
     
  5. According to here: https://interactivebrokers.github.io/tws-api/message_codes.html
    "This error is deprecated".
    Probably you are still using an older version on this account. Unfortunately does that table not give any further clarification as to why you are receiving that error code&message.