get_margin
Calculate the required span and exposure margin for a basket of positions before placing orders, using exchange, quantity, price, product type, token, trade type, and order type.
Instructions
Calculate span + exposure margin required for a basket of positions before placing them.
Each position dict needs: exchange, qty, price, productType, token, tradeType (BUY/SELL), orderType.
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": "get_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |