Margin required for a basket of orders
get_basket_marginsCalculate total and spread-benefit margin for a basket of 1–50 orders without placing them, with per-order margins, charges, and summary totals.
Instructions
Margin for 1 to 50 orders taken together as one basket, without placing anything (also in read-only mode).
initial is the total margin required to execute the orders, final the total margin with the spread
(hedge) benefit, orders the per-order margins, and charges Kite's overall charges block, which can leave
out the transaction tax when MCX and equity orders are mixed: use the per-order charges instead. All amounts
are INR. mode=compact returns the totals only. summary gives the initial and final margin, the spread
benefit (initial minus final) and the summed per-order charges.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"orders": "<orders>"
},
"name": "get_basket_margins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | compact: only the totals; omit for the full breakdown | |
| orders | Yes | 1 to 50 orders | |
| consider_positions | No | true (default): net the basket against your open positions; false: price it alone |