I am using the Delta Exchange API for trading and would like to understand how to place bracket orders via API. Specifically, I want to:
Place a buy order when the price reaches a certain level (a stop entry order).
Set a stop-loss below the entry price.
Set a target above the entry price.
For example, if the current market price is 100, I want to:
Place a buy order at 105 (when the price reaches 105).
Set a stop-loss at 103.
Set a target at 109.
Could you please guide me on how to structure the API request for this? If possible, I would really appreciate an example request body to understand the parameters better.
you can give buy order with order type = stop loss limit, trigger = 100, limit = 105 to make an entry; or stop loss market with trigger =100 side = buy.