TradingTrading

Trading

GX Exchange is a high-performance perpetual and spot trading platform built on GX Chain, a purpose-built L1 blockchain optimized for order book execution. The GXCore matching engine delivers industry-leading throughput with near-instant finality, providing institutional-grade performance for decentralized trading.

Architecture

All trading operations execute natively on GX Chain’s consensus layer. Orders, cancellations, and account actions use a custom binary format with EIP-712 ECDSA signatures — not EVM transactions. This eliminates gas metering overhead and delivers throughput comparable to centralized exchanges.

Semantic mempool ordering ensures fair execution within each block:

  1. Non-GTC/IOC actions first (transfers, withdrawals, leverage changes)
  2. Cancellations second
  3. GTC/IOC orders last

This prevents margin manipulation and sandwich attacks while preserving the proposer’s ordering within each priority tier.

Core Capabilities

CapabilitySpecification
Matching engineGXCore (industry-leading throughput)
Block latencyNear-instant finality
Order typesMarket, Limit, IOC, FOK, Post-Only, GTC, TWAP, TP/SL
Margin modesCross, Isolated, Portfolio Margin
Account modesStandard, Unified, Portfolio Margin
Maximum leverage40x (BTC), 25x (ETH), 20x (SOL), 10x (others)
Liquidation modelPartial (20%) with 30s cooldown + backstop
Fee tiers7 volume tiers + 6 staking discount tiers
Funding intervalEvery 8 hours, settled hourly
Test coverageComprehensive suite across matching engine, risk, and trading modules

Markets

GX Exchange supports three categories of tradable assets:

  • Perpetual contracts — USDC-margined linear perpetuals on major crypto assets with up to 40x leverage
  • Spot trading — On-chain order books for native GX Chain tokens and bridged assets
  • RWA perpetuals — Tokenized exposure to equities, commodities, and indices

Section Index

PageDescription
FeesVolume-based fee tiers and staking discounts
Sub-AccountsMulti-account management with shared fee tiers
Builder CodesPermissionless frontend fee sharing
Perpetual AssetsAvailable perpetual markets and leverage
Contract SpecificationsTick sizes, lot sizes, and funding parameters
MarginingCross and isolated margin mechanics
Account Abstraction ModesStandard, Unified, and Portfolio modes
Portfolio MarginCross-asset margin with lending integration
Margin TiersPosition-size-based leverage tiers
Robust Price IndicesOracle architecture and mark price computation
LiquidationsPartial liquidation mechanics and backstop
Auto-DeleveragingADL ranking and execution
FundingFunding rate formula and settlement
Order BookPrice-time priority and semantic ordering
Order TypesAll supported order types
TWAP OrdersTime-weighted average price execution
Take-Profit and Stop-LossConditional order mechanics
Entry Price and PnLPosition tracking and profit calculation
Self-Trade PreventionExpire-maker mode
Prelaunch MarketsPre-listing perpetuals with EMA oracle
Spot TradingSpot order book mechanics
RWA PerpetualsReal-world asset perpetuals
DelistingAsset delisting procedures
Market MakingOpen market making policy
Portfolio GraphsPortfolio visualization tools
Miscellaneous UIAdditional interface features