Order Margin
Margin Calculator API delivers the real time margin calculations for a basket of positions.
https://connects.torusdigital.com/api/v1/order/calculate/marginHeader Parameters
Name
Value
Request Parameter
Parameter
Sample/Possible Value
Mandatory
Remarks
Request
curl --location 'https://connects.torusdigital.com/api/v1/order/calculate/margin' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"source": "A",
"data": {
"security_id": "14366",
"product": "B",
"segment": "E",
"exchange": "NSE",
"totalremqty": "1",
"price": "13.00",
"txn_type": "B",
"trigger_price":"13.10"
}
}'Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://connects.torusdigital.com/api/v1/order/calculate/margin")
.header("Authorization", "Bearer {{token}}")
.header("Content-Type", "application/json")
.body("{\n" +
" \"source\": \"A\",\n" +
" \"data\": {\n" +
" \"security_id\": \"14366\",\n" +
" \"product\": \"B\",\n" +
" \"segment\": \"E\",\n" +
" \"exchange\": \"NSE\",\n" +
" \"totalremqty\": \"1\",\n" +
" \"price\": \"13.00\",\n" +
" \"txn_type\": \"B\",\n" +
" \"trigger_price\": \"13.10\"\n" +
" }\n" +
"}")
.asString();Field
Description
Last updated