It looks like you're new here. If you want to get involved, click one of these buttons!
"exchange": ["CDS", "MCX", "BFO", "BSE", "NSE", "NFO"]while the parameters (/parameters) call returned
"exchange": ["NSE", "BSE", "NFO", "CDS", "MCX", "MCXSX", "BFO"]note: mcxsx is missing in the former.
1. let me rephrase.
Currently I have to query 2 times (one for equity and another for commodity) to get the account values (pls note I am referring to the users cash balance etc and not the margin for individual scripts)
My request is a endpoint like "/user/margins" (note the endpoint has no segment defined) which will return the data (an array) for all the available segments (both for equity and commodity).
2. thanks for the clarification.
It doesn't make sense, these APIs are meant to be called once a day. I hope you are not calling this often.
So that we can design our application accordingly what are the best practices suggested by Z.
tia
I am afraid we can't consolidate it into a single http call. It has too much data.
You can fetch it once and cache it.
Can you tell me a scenario where you need to keep on fetching data.
of-course it can be calculated internally, however data from the api is preferred.
I am referring to the funds and margins as documented here
https://kite.trade/docs/connect/v1/#funds-and-margins
The response is certainly reasonable. An array of 2 segments will hardly make any difference.