开云体育

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

Handling Bot Restarts with OrderRef Issues?


 

Hi, I'm not sure if this question falls within the scope of our discussion since it pertains to a broader topic. Here it is: I run with ib-async several strategies per client. To handle the restart of my bot at the correct level after a system or network shutdown, I implemented a local database to store orders and their metadata. This was due to the limitation I encountered with the OrderRef field, where my client and strategy identifiers are stored, being empty on execFilter. Is maintaining this database the best approach, or is there a more straightforward solution to handle this issue?
Txs
Yed


 

This is too broad a question for this group. Esp. if your system works across trading sessions, and needs to keep track of various things, some sort of a storage is required.


 

Txs Rajesh.??I will continue to store the exec details??locally to perform synchronization during a recovery. Y.?




On Sunday, May 26, 2024, 6:11 PM, rajeshh via groups.io <rajeshh_98@...> wrote:

This is too broad a question for this group. Esp. if your system works across trading sessions, and needs to keep track of various things, some sort of a storage is required.