GaiaExGaiaEx
API

Leverage & Margin Mode

Set leverage (1x–100x) and margin mode (cross or isolated) for perpetual futures positions on GaiaEx via API.

Set Leverage

POST https://openapi.gaiaex.com/v1/trade/leverage

Set the leverage and margin mode for a symbol. Must be called before placing orders if you want a specific leverage level.

Request Body:

FieldTypeRequiredDescription
user_addressstringYesYour wallet address
symbolstringYesTrading symbol
leverageintYesDesired leverage (1 to maxLeverage; up to 200 for USDT-margined perps)
is_crossbooleanNotrue for cross margin (default), false for isolated

Example Request:

{
  "user_address": "0xYourAddress",
  "symbol": "ETH",
  "leverage": 10,
  "is_cross": true
}

Response:

{
  "success": true,
  "symbol": "ETH",
  "leverage": 10,
  "marginType": "CROSSED",
  "timestamp": 1743508800000
}

INFO

Some symbols only support isolated margin. If you send is_cross: true for an isolated-only symbol, the backend will automatically correct it to isolated margin. You do not need to maintain a list of which symbols support which margin mode — the backend handles this transparently.

Maximum Leverage

Maximum leverage varies by symbol and asset class:

Leverage limits are set per symbol and may change. Fetch GET /symbols/list for the authoritative, current values. Representative values:

Asset ClassTypical Max LeverageExamples
Crypto major25x–40xBTC 40x, ETH 25x
Crypto mid-cap10x–20xSOL 20x, DOGE 10x, ARB 10x
Crypto small-cap3x–5xvaries per symbol
Forex (xyz:)50xxyz:EUR, xyz:JPY
Commodities (xyz:)10x–20xxyz:GOLD 20x, xyz:NATGAS 10x
Equities (xyz:)10xxyz:AAPL, xyz:TSLA, xyz:NVDA
Index (cash:)20x–25xcash:USA500 20x, xyz:XYZ100 25x
Pre-IPO ventures (vntl: / xyz:)3x–5xvntl:OPENAI, vntl:ANTHROPIC, xyz:SPCX
USDT-margined perpsup to 200xBTC 200x, ETH 200x, BNB 200x

STRICT ISOLATED MODE

Some deployer symbols (e.g. xyz:COPPER, xyz:NATGAS) enforce strict isolated margin mode. For these symbols the is_cross flag is ignored — the backend always applies isolated margin and the leverage range may be more restricted than the table above. Check maxLeverage via GET /symbols/list.

ALWAYS CHECK /symbols/list

Leverage limits are dynamic. Always call GET /symbols/list to get the current maxLeverage for each symbol before setting leverage.