Webhook integration with Basket order

Hello,

My pine script based strategy generates Buy/Sell signals based on which i can place corresponding equity orders to Dhan using webhook, however to make this work with other segments we are asked to use basket orders. Not sure how can we trigger separate Buy or Sell position on a bracket order from same strategy. Request anybody from community to help me on this.

Regards,
Ragha