Key Definitions
- marginUsed: The amount of margin used to support your open positions based on your current leverage settings (e.g., 1x, 5x).
- maintenanceMargin: The minimum margin required to keep positions open (3% of total position value)
- accountLeverage: Leverage used by the trader (total position value divided by account balance)
Calculation Formulas
| Field | Formula | Description |
|---|---|---|
| marginUsed | totalPositions / currentLeverage | Margin used for current positions |
| maintenanceMargin | totalPositions × 0.03 | Minimum margin requirement |
| accountLeverage | totalPositions / totalBalance | Leverage used by the trader |
Usage in API
These calculations are used in the Get Account Balances response to provide real-time margin used and leverage information for your account. Note that themargin field returned from the endpoint represents margin used, and will be renamed to marginUsed in v2 for clarity.