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.
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 |