IB TWS API delayed order submission

Discussion in 'Interactive Brokers' started by roca, Feb 4, 2021.

  1. roca

    roca

    Hey,

    I am using a 3rd party software and once I send my order, I can see it transmitted in TWS. But once transmitted in TWS, it takes around 1 second to get submitted which causes getting filled at a worse price specially if the stock is volatile.

    Is it just me with this issue?
     
  2. average time from TWS or gateway submitting is < 90ms (1000+ live trades) - from a server pretty close to their servers.

    if you are experiencing more than that there must be some latency / network issues on your end
     
    ValeryN likes this.
  3. roca

    roca

    So maybe my laptop or my network connection?

    Also, what do you mean "from a server pretty close to their servers."

    Thanks for the reply :)
     
  4. run ping gdc1.ibllc.com that gives you an idea how long it takes for a round trip
     
  5. roca

    roca

    I got Min = 40ms. Max = 47ms and Avg. = 42ms
     
  6. Craig66

    Craig66

    IB has been having some lag with all the GME 'excitement'. My server has a ~5ms ping time to the IB and I've been seeing outlier response times in the minutes. It seems to have stabilized this week however.
     
  7. roca

    roca

    Are you using TWS or Gateway?
     
  8. Craig66

    Craig66

    Gateway.
     
    roca likes this.
  9. Butterfly

    Butterfly

    you send MKT orders that way? not smart IMO, try LIMIT orders instead, MKT is always the roulette and you always get hit at the worst bid/ask depending on your order side
     
  10. I am running an automated trading system since a couple of years. Seeing about one second of delay between me sending an order and IB sending a confirmation that the order has been submitted to the exchange is pretty normal.
    When IB sends you a message that the order has been submitted multiple steps have been taken. Your Gateway has sent it to IB. IB has verified that you are allowed to place this order. IB has sent the order to the exchange(s). IB has received a confirmation that the order has arrived at the exchange. IB informs you that the order has been submitted.
    This entire procedure is much more than just the ping time from your computer to IB's server.
     
    #10     Feb 5, 2021
    Ninja likes this.