you're right. I will keep looking into this too. Let me know how you get on.
Posts made by tomtom
RE: Does Backtrader support multiple brokers?
I've been looking at similar, we have our own multi-exchange price and order engine so am looking at writing a custom broker for that.
I found some notes in the IB Broker https://github.com/backtrader/backtrader/blob/master/backtrader/brokers/ibbroker.py
that might help, looks like you can extend:
Example: if the 4 order execution types directly supported by ``backtrader`` are not enough, in the case of for example *Interactive Brokers* the following could be passed as *kwargs*:: orderType='LIT', lmtPrice=10.0, auxPrice=9.8
So inside the Order, you could add kwargs and select broker then, I've not looked into whether this works on price/etc etc yet. I guess you could initialise the class with it.
Let me know if you find out anything else