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 Name | Type | Example | Description |
|---|---|---|---|
| tt | int | 1757640455199 | Trading timestamp |
| mt | int | 1757640455199 | Market timestamp |
| i | string | "BTCUSDT" | Instrument ID |
| p | string | 1m | Period |
| d | array | data |
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)
]
]
}