I have an account with some equities, MFs, Futures, Options and Cash. I am trying to determine the overall NAV of the account. I am able to get all the positions and get their value.
To this I am trying to add cash but confused which attribute to include - I see available - cash, debits & net. Also, see other attributes. For an account, I see the following:
We have already done this for you on q.zerodha.com
Equity account value is the NAV for your account. So it is Free cash + Value of all your holdings + Margin blocked + option premium purchased - Option premium received. All these values on Q are calculated as per yesterday closing price, but it can also be done based on LTP.
Equity account value is the NAV for your account. So it is Free cash + Value of all your holdings + Margin blocked + option premium purchased - Option premium received. All these values on Q are calculated as per yesterday closing price, but it can also be done based on LTP.
Just mapping this to the values returned in the APIs. This is correct?
NAV = Value of all holdings + net + span + adhocMargin + optionPremium