Custom broker/exchange integration
Suraz Negi last edited by
Have anyone ever integrated any custom exchange to back trader for live trading?
I am trying to integrate an exchange to backtrader, I have set of API to place order get ltp data etc. I just need to know the right way to map it into backtrader
Appreciate any help
@Suraz-Negi, not sure if I understand your question correctly. I think you want to connect to a different broker, not exchange. Your broker gives you access to different exchanges.
In order to connect to a different broker, I would recommend to look at the existing interfaces and copy as much as you can. You would probably need to implement a store, a data feed, and a broker. Most likely you will have to implement a different order class as well, depending on the requirements of your broker.