Send trade events to API/webhook for execution
nomad5am last edited by nomad5am
I've got a question regarding the execution of trades. We are running our own bot for bitmex and we would like to send the trades from Backtrader to our Bot API/Webhook instead of the broker. Our bot will then handle the order execution.
Backtrader >(local network API/Webhook )> Our Bot > Exchange
Anyone tried this and could help me out? Is there anything in Backtrader that can be used for this?
I would appreciate your input :)
Have a great day!
we would like to send the trades from Backtrader to our Bot API/Webhook instead of the broker
You have missed how things work. A Broker in backtrader is simply an interface to something. The default broker is meant for backtesting, but this can be replaced by other brokers, which ma interface to API, Webhooks or to whatever you want.
This is what the integrated brokers for
Interactive Brokers´ andVisualChart
do. An example of an independently developed broker (Oanda` (v2API))
For examples of how to change brokers