estimate_margin
Calculate margin needed for a batch of prospective orders to prevent shortfalls before placing trades.
Instructions
Calculate margin requirements for a batch of potential orders before placing them.
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": {
"positions": "<positions>"
},
"name": "estimate_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positions | Yes | JSON array of position objects. Each: { "exchange": "NSE", "qty": "10", "price": "100.5", "productType": "INTRADAY", "token": "3045", "tradeType": "BUY" } |