开云体育

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

Strange Behavior After TWS Update on Old API


 

I was successfully running my code using TWS 10.19.2a with IbPy (an old python 2.7 TWS API) due to tons of legacy code.? I installed the latest standalone stable TW, version 10.30.1, logged in, and then noticed the API had problems.? No problem I thought, I'll just go back to TWS 10.19.2a, but now it too is having the same problems that only showed up once I installed 10.30.1t. I wondered if the issue was a setting somewhere being changed because installing the newer TWS destroyed my settings, but I think I have everything back to how it was before and the API problems I'm facing don't seem obviously settings related.
?
In particular, requesting trade executions and open orders often incorrectly return nothing now.? Both requests will still return their final terminating/done-with-request messages, just no actual data execution or open order info like they should.? When they fail, they consistently fail and return nothing.? Then suddenly, for reasons I cannot figure out, they'll start working again consistently only to eventually start consistently failing again.? Updating TWS also gave me the bug of the open order handler suddenly receiving an extra field, but that was easy enough to deal with.
?
Does anyone have any idea what the problem could be or have any ideas?? I've been putting off refactoring to the IBKR's API because it will take A LOT of rewriting and testing.
?
?

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