Is IBStore thread safe? Can multiple Crebros use the same instance of IBStore?
I am trying to use Backtrader for Interactive Brokers live trading.
I need to run multiple strategies for my live trading. The ide is to run multiple Crebros (one per strategy) in multiple threads.
I am following this article to create my setup:
I have to preserve the number of connections to Interactive Brokers.
Can I share one instance of IBStore between multiple Crebros running in different threads?
vladisld last edited by
IBStore is using the IBPy library for communication with Interactive Brokers. This library seems to be thread safe theoretically. However I'm not sure that sharing the IBStore instance between multiple Cerebro instances is supported and/or tested.
For example, I'm not sure how the notification mechanism will work, when multiple instances of the Cerebro engines will have to be somehow connected to the same instance of the IBStore.