Hedging vs Netting
Each API key is created with a margin mode that matches your trading account configuration: hedging or netting. The mode is set automatically when you create the key and cannot be changed.
You can check your account’s margin mode via the margin_mode field returned by GET /v1/auth/status or GET /v1/account.
Hedging Mode
Section titled “Hedging Mode”Multiple independent positions per symbol. You can hold simultaneous buy and sell positions on the same symbol. Each trade creates a new position with its own ticket.
- All endpoints available including
close-by - Partial close creates a reduced position (same ticket)
close-bynets two opposing positions, saving spread on the smaller side
Netting Mode
Section titled “Netting Mode”One position per symbol. Opening a trade on a symbol where you already have a position modifies the existing position instead of creating a new one.
- Buy 0.10 EURUSD + Buy 0.05 EURUSD = single Buy 0.15 position
- Buy 0.10 EURUSD + Sell 0.10 EURUSD = position closed (net zero)
- Buy 0.10 EURUSD + Sell 0.15 EURUSD = Sell 0.05 position (flipped)
close-byis not available — opposing positions cannot exist
Endpoint Availability by Mode
Section titled “Endpoint Availability by Mode”| Endpoint | Hedging | Netting |
|---|---|---|
/v1/trade | Yes | Yes |
/v1/close | Yes | Yes |
/v1/close-all | Yes | Yes |
/v1/close-symbol | Yes | Yes |
/v1/modify | Yes | Yes |
/v1/close-by | Yes | No (400) |
/v1/reverse | Yes | Yes |