How to get the live P&L in Dhan API?

From what I understood from the APIs provided by Dhan, we have to calculate the P&L ourselves based on the positions API. Is there anyone who have done it ? Sharing it will be helpful for others as well.

Hello @stanly_thomas

We have noted your feedback and we will definitely evaluate it to add it in our roadmap. For now, you can continue with calculating at your end itself.