Margin required for orders
get_order_marginsCalculates the margin required for each of up to 50 orders without placing them, using existing positions and open orders; returns totals and charges.
Instructions
Margin Kite would block for each of 1 to 50 orders, without placing anything (works in read-only mode too).
Every order is priced on its own, taking your existing positions and open orders into account; to price
orders as one package (hedge or spread benefit) use get_basket_margins. All amounts are INR. Each entry has
type (equity or commodity), span, exposure, option_premium, additional, bo, cash, var, pnl, leverage, charges
and total, the margin to block. mode=compact returns the totals only. Leave price at 0 for MARKET and SL-M
orders. summary adds up the totals and the 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_order_margins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | compact: only the totals; omit for the full breakdown | |
| orders | Yes | 1 to 50 orders |