Trading
SoDEX provides order-book Spot and perpetual markets with REST APIs for state and actions, plus WebSocket streams for realtime market and account events.
Trading APIs move balances that are already in a Spot or Perps account. External deposit and withdrawal are Mirror Protocol. The first trading-account credit must be USDC or SOSO (activation costs 1 unit).
External network → Spot or ValueChain EVM
Custody Deposits credit Spot directly. Bridge Deposits credit Spot when toClob is true, otherwise ValueChain EVM.
ValueChain → Spot or Perps
ValueChain to Spot or Perps (ClobGateway).
Place and track orders
Trading Quickstart, then Spot Trading or Perp Trading.
Perps → Spot → ValueChain → external
Withdrawals. Trading transferAsset only reaches EVM; off-chain settlement is Mirror.
Order placement is available on Testnet and Mainnet. There is no Testnet Mirror API — the deposit/withdraw loop above is Mainnet.
Start here
QuickstartAPI Keys and NoncesAuthentication & SigningSpot TradingPerp TradingSDKs & ToolsIntegration by Builder Codes
Builder Codes in TradingAPI Reference
Rate LimitsREST APIWebSocket StreamsSchemaLast updated