开云体育

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

Re: Live and paper data mixed


 

What seems to be happening is the instance of IB() is keeping data and not actually sending a request to TWS. The API logs only show one request being sent per connection, not the two I was expecting from the code above.

If I have two instances of IB(), and switch between those, I get correct data. Just disconnecting, changing port, and reconnecting within the same instance of IB() seems to be causing the confusion.

Any delay between disconnect and reconnect, makes no difference as long as it's still the same instance of IB(). Could someone who maintains the library investigate?

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