Skip to main content
Exchange
Api

API Documentation

REST + WebSocket reference

API Documentation

API Documentation

Build trading applications with our REST & WebSocket APIs

Low Latency

Sub-millisecond order execution via co-located servers

Secure

HMAC-SHA256 signed requests, IP whitelisting, permission scoping

Rate Limits

1200 requests/min for REST, unlimited WebSocket subscriptions

SDKs

Official libraries for Python, Node.js, Java, and Go

Quick Start

curl
# Public: 24h ticker for a coin (no auth)
curl "/market/data/quotations/coin?coin=btc"

# Authenticated: log in and capture the JWT from data.Authorization
TOKEN=$(curl -s -X POST /uc/v2/login \
  -d "[email protected]&password=secret" \
  | jq -r .data.Authorization)

# Place a spot LIMIT buy — type=0 limit, type=1 market, direction=0 BUY, 1 SELL
curl -X POST "/tx/spot/add" \
  -H "Authorization: $TOKEN" \
  -d "symbol=BTC/USDT&direction=0&type=0&price=74000&amount=0.001"

# Spot wallet balances
curl -H "Authorization: $TOKEN" \
  "/uc/asset/spot-wallets"

# With an API key instead of a login token, send X-API-KEY / X-API-TIMESTAMP /
# X-API-SIGNATURE and sign the path WITHOUT /uc or /tx (/asset/spot-wallets).
# Full signing reference + Postman script: /developers#signing

Market Data

4

Public endpoints for tickers, order books, trades, and klines. No authentication required.

GET/market/data/quotations/homePublic
GET/market/data/quotations/coin?coin=btcPublic
GET/market/data/quotations/sparklinesPublic
GET/market/convert/price?fromUnit=BTC&toUnit=USDTPublic

Spot Trading

3

Authenticated endpoints for placing, cancelling, and listing spot orders.

POST/tx/spot/addAPI key
POST/tx/spot/cancelAPI key
GET/tx/spot/symbol-thumb-v2Public

Futures Trading

4

Perpetual swap contract trading and position management.

POST/tx/futures-order/openAPI key
POST/tx/futures-close/closeAPI key
GET/tx/futures/current-entrustAPI key
GET/tx/futures/historyAPI key

Wallet / Account

4

Balances, deposits, withdrawals, and user profile. Requires Authorization header.

"Login session only" endpoints refuse API-key requests; call them with the token from a login.

GET/uc/asset/spot-walletsAPI key
GET/uc/asset/futures-walletsAPI key
POST/uc/user-infoLogin session only
POST/uc/referral/countLogin session only

WebSocket API

5

Real-time streaming for market data, order updates, and account events.

WS
SUBdepth.{symbol}
SUBtrades.{symbol}
SUBticker.{symbol}
SUBkline.{symbol}.{interval}

API Key Management

Create, edit, and manage your API keys and permissions