Skip to main content

Endpoint

Test this API in our Sandbox using simulated data.

Try the Sandbox to see how the API works with simulated data — no production account or live trading required.
View Sandbox Guide →

Required query parameters

  • symbol — Symbol code. Example: ACB
  • resolution — Candle resolution. Example: 1D
  • from — Start time as Unix timestamp. Example: 1735257600
  • to — End time as Unix timestamp. Example: 1774051200

Supported resolutions

1, 5, 15, 30, 60, 120, 1D, 1W, 1M

Field descriptions

  • t (number[]) — Time values as Unix timestamps. Example: 1744685220, 1744685280
  • o (number[]) — Open prices. Example: 64200, 60000
  • h (number[]) — High prices (giá cao nhất). Example: 64200, 60000
  • l (number[]) — Low prices (giá thấp nhất). Example: 64200, 60000
  • c (number[]) — Close prices. Example: 64200, 60000
  • v (number[]) — Close volume (giá khớp gần nhất). Example: 60400, 1200
  • s (string) — Status. Example: ok
  • nextTime (number | null) — Used for the next query (Dùng cho query next).

cURL

Python

Example response

Replace BASE_URL with your API host.