I would like to request a feature where I can set stoploss and target of a group of positions. What I mean, assume I deployed a strategy with multiple legs. Instead of putting SL/target of individual positions, I want to put a SL/target based on PnL of all the legs.
PS: Currently I have implemented the same using the DHAN API for order management and Kite free api for price fetching (given market feed is still not available in DHAN API).
But it will be really cool if something is available directly in the DHAN web/app.
Great to see you implement this on APIs, few users do that. Market Feeds APIs are just round the corner, we hope to release this soon.
Yes, this would be a great feature to have - but unfortunately we won’t be able to implement it. This technically means that Dhan as a platform is placing orders on your behalf, not you - which isnt permitted by exchanges / regulations. We are simply an execution platform, in the above case if you have multiple positions - we cannot decide on your behalf which legs to square-off and which one to continue with. User can also come back later, and suggest why a particular leg was executed and why not other… these are among many all complexities to the feature.
Net net… its best for Dhan to be neutral and focus on being a best execution platform. Smart users figure out these things, and we have many of them doing things as cool as you do.
Hi @PravinJ Always wondered why no broker has yet implemented such an important feature. Thanks for clearing my doubts. Completely agreed with your view regarding the regulations given in that case order placement won’t be from user’s side.
Really looking forward for the market feed API release, in that case it will be much easier for me. Given that currently I am using two APIs from DHAN and Kite, it made my code much messier and prone to bugs.