Skip to main content

K-Lines

K-Lines

Request

Spot Request

{
"Action": "1",
"Symbol": "BTC/USDT",
"LocalNo": 6,
"Count": 10, // Request historical data, maximum of 100
"Topic": "kline",
"PeriodID": "1m" // Period
}

Contracts Request

{
"Action": "1",
"Symbol": "BTCUSDT",
"LocalNo": 6,
"Count": 10, // Request historical data, maximum of 100
"Topic": "kline",
"PeriodID": "1m" // Period
}

Response Parameters

Field NameTypeExampleDescription
ttint1757640455199Trading timestamp
mtint1757640455199Market timestamp
istring"BTCUSDT"Instrument ID
pstring1mPeriod
darraydata

Response Example

{
"a": "PK",
"tt": 1757640455199,
"mt": 1757640455199,
"i": "BTCUSDT",
"p": "1m",
"d": [
[
"1739157660000", // Timestamp
"95900.5", // Open price
"95932.2", // Highest price
"95850.4", // Lowest price
"95913.4", // Close price
"20084", // Volume (base currency)
"1925967.4841" // Volume (quote currency)
]
]
}