Hello Upstox Team,
I have been using the Upstox developer API for developing the customized dashboard through which I can send the orders. I want to know from where I can get the sell margin required to execute that order ?. As you API only provides the exposure and span margin for the complete portfolio.
Or is there any other way through which I can calculate the sell margin I have ltp, quantity, and below values of got from the user endpoint.
{
“status”: “success”,
“data”: {
“commodity”: {
“used_margin”: 555.23,
“payin_amount”: 107.0,
“span_margin”: 360.0,
“adhoc_margin”: 0.0,
“notional_cash”: 0.0,
“available_margin”: 3874.5,
“exposure_margin”: 75.13
},
“equity”: {
“used_margin”: 0.8,
“payin_amount”: 200.0,
“span_margin”: 0.0,
“adhoc_margin”: 0.0,
“notional_cash”: 0.0,
“available_margin”: 15507.46,
“exposure_margin”: 0.0
}
}
}
please help me out.