Skip to Content

Usage Instructions

Get Trading Pair List

  1. Call /asset/public/v1/exchange/info to get all available trading pairs
  2. Filter trading pairs with status as "OPEN" from the returned spotSymbols array
  3. Record trading pair information such as symbolId, pricePrecision, quantityPrecision, etc.

Get Order Book Data

  1. Get the depths array from trading pair information
  2. Select appropriate precision value as scale parameter
  3. Call /market/public/api/v1/spot/depth to get order book data

Get K-line Data

  1. Select appropriate interval parameter (e.g., 1m, 5m, 15m, 1h, 4h, 1d, etc.)
  2. Set appropriate limit parameter (maximum 1000)
  3. Call /market/public/api/v1/spot/klines to get K-line data

Important Notes

  1. Rate Limiting: Market data interfaces have access rate limits, please control request frequency appropriately
  2. Data Precision: Price and quantity precision vary by trading pair, please adjust dynamically based on trading pair information
  3. Real-time Data: Order book and trade data are real-time, K-line data may have delays
  4. Caching Strategy: It is recommended to cache data that doesn’t change frequently (such as trading pair information)
Last updated on: