GaiaExGaiaEx
API

Common Definitions & Terms

Order types, symbol formats, margin modes, decimal precision, and key trading terms used throughout the GaiaEx API.

Order Types

ValueDescription
marketExecutes immediately at the best available price. No price field needed.
limitPlaced at a specific price. Sits on the order book until filled or cancelled.

Order Side

Orders use a boolean is_buy field:

ValueMeaning
trueBuy / Long
falseSell / Short

Margin Modes

Modeis_cross valueDescription
CrosstrueShares margin across all positions. Unrealized PnL from other positions can prevent liquidation.
IsolatedfalseEach position has its own dedicated margin. Liquidation risk is contained to that position.

INFO

Some symbols (particularly RWA deployer symbols) only support isolated margin. The backend will automatically correct cross to isolated if required — you don't need to handle this.

Symbol Format

Standard Perpetuals

Standard crypto perpetual symbols use plain uppercase tickers:

BTC, ETH, SOL, DOGE, ARB, OP, ...

Deployer Symbols (RWA, Ventures, Index)

Real-world asset (RWA), pre-IPO venture, and index symbols use a prefix format:

PrefixAsset ClassExamples
xyz:Equities, commodities, forexxyz:AAPL, xyz:TSLA, xyz:GOLD, xyz:EUR
vntl:Pre-IPO venture tokensvntl:OPENAI, vntl:ANTHROPIC (SpaceX is xyz:SPCX on the xyz: deployer)
cash:Index productscash:USA500

TIP

Use GET /symbols/list to retrieve all currently supported symbols with their asset class, max leverage, and margin mode.

Collateral

GaiaEx uses USDC as the sole user-facing collateral. When trading deployer symbols that internally require different settlement tokens (USDT0 for cash: or USDH for vntl:), the backend automatically handles conversion. Users only deposit, withdraw, and see USDC.

Decimal Handling

  • All monetary values (price, size, balance, etc.) use string-encoded decimals in request bodies to avoid floating-point precision issues.
  • Response values may be returned as either strings or numbers depending on the field.
  • Prices must conform to the symbol's tick size. Use GET /symbols/list to determine valid price increments.

Timestamps

All timestamps in the API are Unix epoch milliseconds (int64).

1743508800000  →  2026-04-01T12:00:00.000Z

Pagination

Endpoints that return lists support pagination via query parameters:

ParameterTypeDescription
limitintMaximum number of items to return
offsetintNumber of items to skip (where supported)
start_timeintFilter by start timestamp in ms (where supported)
end_timeintFilter by end timestamp in ms (where supported)

Address Format

User addresses are Ethereum-style hex addresses (EIP-55 checksummed):

0xA6E3B41a6776cd7207DEFd76871DAbEceDf72DE1

The user_address field in request bodies and {address} path parameter must match the authenticated user's address.