Hi All,
I tried Get Fund And Margin API(Get Fund And Margin | Upstox Developer API).
It is returning margin in the response. It is not returning fund details in the response.
The sample response given have the same problem.
It does not have any details about the fund (Total Cash, Fund Available to Trade details)
Please advice.
Thanks in advance.
This API provides your available margin, which is your current funds with the exchange you can use for trading. The used margin indicates the funds you’ve already utilized for the day.
In trading terminology, the term available margin is used instead of available funds for trading. Let me know if this clarifies things!
Hi Pradeep,
Thanks for the reply.
Is there any API to get “Total Cash”, “Fund Available to Trade” details
listed in funds tab of the web app…
Thanks in advance.
There isn’t a dedicated API for total cash. The funds available for trading is nothing but available_margin
for the specific segment (equity/MCX).
These are the raw values provided in the response. I will check with the payments team to see if I can help you with Fomulca to calculate from these values.
Hi - I used the Developer API for querying margins to calculate the maximum order quantity I can place for F&O index options.
Specifically:
- I query available funds from https://api.upstox.com/v2/user/get-funds-and-margin
- I query lot margin for options I am selling from https://api.upstox.com/v2/charges/margin
Dividing 1 by 2 - gives me the number of lots I can short. This was working for me until 19th November. On 21st November, I had a lot of order rejects - what has happened here? Is there a change in margin requirements and the API is not updated? Or is there a minimum cash margin required now?
The Margin API and Get Funds API provide the latest margin data.
Could you clarify which fields you use from the Funds and Margin APIs? Additionally, could you briefly describe your scenario example and value with the contract you are trading in to help illustrate and investigate this?