Problem with realtimeBar using IB's API

Discussion in 'Automated Trading' started by FaceOff, Feb 11, 2009.

  1. FaceOff



    I was wondering if anyone else had experienced this problem....

    I am using realtimeBar to collect price data and initiate trades automatically on a number of futures instruments using the IB API (via TWS). A couple of times per week the realtimeBar function in my application starts getting data for the wrong instrument (usually after one of the market datafarms drops and reconnects).

    For example, yesterday, after my application had been running for about 6hrs, the realtimeBar ticker getting the TF feed started receiving NQ prices instead. Obviously this can lead to incorrect trades.

    Having my application cancel and re-request the realtimeBar for TF still results in NQ data being passed from TWS to my app.

    The only fix is to shutdown and restart TWS.

    I'd be interested to know if anyone has experienced this problem, since it's hard to tell if it's a bug in my application, or a problem with TWS.
  2. Craig66


    You may already know this, if so disregard my post. But there is a Yahoo group for the TWS API, you might be able to get an answer there if one is not forthcoming here.
  3. FaceOff


    Thanks Craig - I'll try over there.