开云体育

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

Re: record and replay ib_async session (data only)?


 

?
Jason,
?
Yes. ?Also I think that what I described may be the easiest way to do that.
?
One reason is that to store level 2 data efficiently you need some kind of diff-based approach (as level 2 levels are built and change incrementally over time). ?
?
This is how level 2 data is transmitted from TWS, and ib_async is already built to maintain the level 2 levels over time from the incremental update from TWS.
?
I should add that I was easily able to overload the Connection class in connection.py to store all messages sent and received from TWS. ? I will make a separate reply summarizing that code so far.
?
-Neal

Join ib-async@groups.io to automatically receive all group messages.