开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Why does my IBKR (Interactive Brokers) bot sometimes not receive data?


 

Hello again,

Without seeing the code, it's pretty much useless trying to guess this one.?
To debug it, you could place printouts before the failure point/CSV insertion and see whether it has data, whether it can write anything at all to the CSV etc. I'd work backwards through the code from the point of failure towards the functions or code that precedes it. You could also try posting a simplified version of your code so we can read it and help understand what's happening. There are some skilled coders on the forum so you may be lucky.

Best wishes,


M

On Fri, 17 Jun 2022, 22:49 Bryce Turner, <bryce.turner.axiom@...> wrote:
Hey Mark and Jürgen, thank you both for replying and sorry about the delay!
Part of the problem is that I don't know how to capture possible error routes, and I'd be very grateful for any suggestions. Because of my time zone, I start my bot when the market is still closed, but it starts looking for trades soon after market opens. There are no dis/reconnection attempts reported in the terminal. I believe my code gets up to the point where it just needs to receive data (it prints something like "ready to trade" as one of the last few steps). When this problem occurs, no data at all goes into the CSV for that trading session.

I haven't seen any of those error codes in the terminal. I have enabled API logging with market data, and totally forgot about it! Thanks, I'll check the log and see what I understand from it.

Join [email protected] to automatically receive all group messages.