On the UserMargin API, i have questions on how to calculate some of the below fields ?
1. Margin Available - I'm using UserMargin.Net variable for this 2. Margin Used - I'm using UserMargin.Utilised.Debits for this 3. Available Cash - I'm using UserMargin.Available.Cash field for this. 4. Opening Balance - ??? How to get this ?? 5. Realised Profit - I'm using UserMargin.Utilised.M2MRealised for this. 6. Unrealised Profit - I'm using UserMargin.Utilised.M2MUnRealised for this.
Below are the questions i have:
Have i mapped to the correct fields ? How to get the Opening Balance ?
I have already gone thru the API Spec and few things are not clear and hence this discussion.
You can go through this documentation.
You can also take a look at the similar thread. here.