How do you handle code 2103/2105 (data farm disconnected) errors?

Discussion in 'Interactive Brokers' started by lime, Jul 6, 2024.

  1. lime

    lime

    When downloading historical data reqHistoricalData(), I sometimes get 2103 (market data farm is disconnected) and 2105 (historical data farm is disconnected) errors interrupting the script.

    https://interactivebrokers.github.io/tws-api/message_codes.html#gsc.tab=0

    I don't think it is ISP issue.

    It seems TWS will (try to) automatically reconnect itself and 2103/2105 should be followed by 2104/2106 (data farm connected) notification.

    It seems some people simply ignore 2103/2105 but the data download will be interrupted.
    Should I pause the execution and restart until receiving 2104/2106?
    Is it how this should be handled?
     
  2. S2007S

    S2007S

    I don't know anything about 2103 and 2105 codes but damn it's 2024 and AI needs to get on it already....
     
  3. lime

    lime

    (122/485) Requesting data for CVX...Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2105 occured during CVX, pausing this thread now.
    Data farm error 2157 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2105 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
    Data farm error 2103 occured during CVX, pausing this thread now.
     
  4. tomas262

    tomas262

    I got similar issue when TWS not restarted at proper time. In the morning it works with EUFARM while afternoon (eu time) it works with USFARM
     
    lime likes this.