API for Developers

Connect your bots,
your way

REST for orders and account state, WebSocket for live order-book and trade streams. Scoped API keys, IP allowlists, and a generous rate-limit budget for retail bots and market makers alike.

Quick start

Place your first order in five lines

# place a limit buy order — 0.01 BTC @ $63,000
curl -X POST https://api.bitexasia.com/v1/orders \
  -H "X-Api-Key: $HKT_KEY" \
  -H "X-Api-Timestamp: 1714521600000" \
  -H "X-Api-Nonce: 7f3a1b8e" \
  -H "X-Api-Signature: $(hkt_sign POST /v1/orders \"$BODY\" 1714521600000 7f3a1b8e)" \
  -H "Content-Type: application/json" \
  -d '{
    "pair": "BTC-USD",
    "side": "buy",
    "type": "limit",
    "price": "63000",
    "size": "0.01"
  }'
Endpoints

Core REST endpoints

GET /v1/markets List all trading pairs with status, tick size and minimum order size.
GET /v1/ticker/{pair} Latest trade, best bid/ask, 24-hour change, volume and market cap.
GET /v1/orderbook/{pair} Current order book (depth-100 by default, depth-1000 for verified accounts).
POST /v1/orders Create a limit, market or stop order. Returns the order ID and current state.
GET /v1/orders/{id} Fetch order status, average fill price and remaining size.
POST /v1/orders/{id}/cancel Cancel an open order. Idempotent — safe to call from a retry loop.
GET /v1/account/balances Spot, margin and earn-product balances broken out by asset.
Built for traders

The boring API features that actually matter

Sane rate limits, idempotent cancels, scoped keys. The things you wish every exchange API had.

  • Per-key rate limit: 1,200 weighted req/min for retail, higher tiers for verified market makers
  • WebSocket order-book and trade streams with delta-only updates after the initial snapshot
  • Scoped keys: read-only, trade-only or trade+withdraw — pick what your bot actually needs
  • IP allowlist on every key — request from outside the list returns 403 with a clear error code
  • Idempotent client_order_id — safe to retry orders without double-spending
  • HMAC-signed requests with a clock-drift tolerance you can configure per key
  • Sandbox environment with realistic market data and testnet balances — same code path as prod
  • OpenAPI 3.0 spec available — generate clients in your language of choice
Get the keys

Build something useful

API access is included with every account. Generate a key in account settings, scope it, and start trading.