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?