calculate_order_margins
Calculate the margin required for one or more hypothetical orders without placing them, so you can check affordability and leverage before submitting an order.
Instructions
Calculate the margin required for one or more hypothetical orders, without placing them. Use this before place_order to check affordability/leverage. 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 |