Calculate overall NAV of the account

nvineeth
Hi,

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:

cash {"available":{"cash":"XXXXXX","intradayPayin":"0","adhocMargin":"0","collateral":"0"},"utilised":{"m2mUnrealised":"0","m2mRealised":"0","debits":"AAAAAAA","span":"20517.09","optionPremium":"0","holdingSales":"0","exposure":"BBBBBB","turnover":"0"},"net":"YYYYYY"}.

Can you please help me the overall formula to use for NAV of the account.

Regards
  • nithin
    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.
  • nvineeth
    Thanks a lot, Nithin.

    Just mapping this to the values returned in the APIs. This is correct?

    NAV = Value of all holdings + net + span + adhocMargin + optionPremium
This discussion has been closed.