For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

Send trade events to API/webhook for execution



  • Hi guys,
    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!
    Cheers


  • administrators

    @nomad5am said in Send trade events to API/webhook for execution:

    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 Oanda (v1API), Interactive Brokers´ andVisualChartdo. An example of an independently developed broker (Oanda` (v2API))

    For examples of how to change brokers

    The Cerebro reference


Log in to reply
 

});