開發者 API

接入您的机器人、
your way

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

快速開始

用五行代碼完成首次下单

# 下达限价買入单 — 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"
  }'
端点

核心 REST 端点

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} 当前订单簿(默认深度 100,已驗證帳戶深度 1000)。
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 取消 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.
為交易者打造

The boring API features that actually matter

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

  • 每个密钥的速率限制:1,200 加权请求/分钟 for retail, higher tiers for verified market makers
  • WebSocket order-book and trade streams with delta-only updates after the initial 快照
  • 范围化密钥:只读、只交易或可交易+可提现 — 仅選您的机器人實際需要的权限
  • IP 白名单 on every key — request from outside the list returns 403 with a clear error code
  • Idempotent client_order_id — 可安全重試订单,不会重複扣款
  • HMAC 签名请求,每个密钥可配置時钟漂移容差
  • Sandbox environment with realistic market data and testnet balances — same code path as prod
  • 提供 OpenAPI 3.0 规范 — 可在您選择的语言中生成客戶端
Get the keys

構建有价值的產品

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