Trade
The Trade API provides endpoints for managing orders across all supported markets: crypto, US stocks, HK stocks.
All endpoints follow RESTful conventions and require authentication via API Key and HMAC signature. more details, see Authentication.
Required Headers (All Endpoints)
bash
-H "X-API-Key: YOUR_API_KEY" \
-H "X-API-Timestamp: UNIX_TIMESTAMP_MS" \
-H "X-API-Signature: YOUR_GENERATED_SIGNATURE" \
-H "Content-Type: application/json"Endpoint Summary
| Operation | Method | Endpoint |
|---|---|---|
| Place Order | POST | /trade/v1/orders |
| Cancel Order | DELETE | /trade/v1/orders |
| Get Order Detail | GET | /trade/v1/orders/{order_no} |
| Get Order Detail by Reference ID | GET | /trade/v1/orders/byref/{reference_id} |
| Get Active Orders | GET | /trade/v1/orders/active |
| Query Orders | GET | /trade/v1/orders |
| Estimated Tradable Quantity | POST | /trade/v1/orders/quantity |
| Query Estimated Order Fee | POST | /trade/v1/orders/charge |
| Order Status Stream (WSS) | WSS | /ws/trade/v1 |

