calculate_basket_margins
Calculate combined margin for a basket of hypothetical orders, including hedge and offset benefits across positions such as spreads, to estimate required funds before placing trades.
Instructions
Calculate combined margin for a basket of hypothetical orders, accounting for hedges/offsets across them (e.g. a spread). Read-only — free on all tiers.
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": "calculate_basket_margins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orders | Yes | ||
| compact | No | If true, only return total margins, not the breakdown | |
| consider_positions | No | Factor in your existing positions when computing the basket margin |