Skip to main content
GET
Lấy lịch sử OHLCV với countBack

Tham số đường dẫn

symbol
string
bắt buộc

Mã chứng khoán/sản phẩm, ví dụ FPT hoặc VN30F1M.

resolution
integer<int64>
bắt buộc

Candle resolution in seconds. Native values are 60 and 86400; other values are aggregated from those bases.

from
integer<int64>
bắt buộc

Thời điểm bắt đầu dạng Unix timestamp milliseconds.

to
integer<int64>
bắt buộc

Thời điểm kết thúc dạng Unix timestamp milliseconds.

countBack
integer<int64>
bắt buộc

Maximum number of candles to return counting backward from the end timestamp.

Phản hồi

OHLCV candles sorted by unixTime ascending.

docId
string

Database document id.

symbol
string

Candle symbol. Futures may be normalized to the requested future type.

unixTime
integer<int64>

Candle timestamp in Unix milliseconds.

open
number

Open price.

high
number

High price.

low
number

Low price.

close
number

Close price.

closeAdj
number

Adjusted close price.

volume
number

Traded volume.

type
integer

Stored resolution/type in seconds.

isSpotProduct
boolean

Whether this candle belongs to a spot product.

isFinished
boolean

Whether the candle is finalized.