First of all, thanks Imran for the video series on Youtube!
I have one query to ask. How can i place a basket order through dhan API?
How can I take hedge benefit when doing option selling through API?
When I call the margin_calculator() method, the totalmargin required doesn’t consider the hedged positions? It just gives me the independent margin required for the current order.
For example, if NIFTY is at 23000 and I want to [SELL 23000 CALL & [ BUY 24000 CALL], if I want to do this through a basket order, I will require only 1 lakh capital(as I will have hedge benefit). But through API, both the orders will go independently, I will require around 2lakhs capital(which is double). So this is a huge problem.
Please clarify. Thanks!