I wanted to square off all my positions once target is hit but there is lot of delay in positions pnl we get from positions api. Is there any alternative for the same?
Thanks Sujith. In this "pnl = (sellValue - buyValue) + (netQuantity * lastPrice * multiplier);" last price is from position api or we have to fetch it through ltp api?
In this "pnl = (sellValue - buyValue) + (netQuantity * lastPrice * multiplier);"
last price is from position api or we have to fetch it through ltp api?