Klines
wss://ws-api-spot.kucoin.com
Topic:/market/candles:{symbol}_{type}
Description
Param | Description |
---|---|
symbol | symbol |
type | 1min, 3min, 15min, 30min, 1hour, 2hour, 4hour, 6hour, 8hour, 12hour, 1day, 1week |
Subscribe Message
{
"id": 1545910660739,
"type": "subscribe",
"topic": "/market/candles:BTC-USDT_1hour",
"response": true
}
Response
Data Schemasymbol Start time of the candle cycle,open price,close price, high price,low price,Transaction volume,Transaction amount now(us)
klines
topic
string
required
type
string
required
subject
string
required
data
object
required
symbol
string
required
candles
array[string]
required
time
integer <int64>
required
Example
{
"topic": "/market/candles:BTC-USDT_1hour",
"type": "message",
"subject": "trade.candles.update",
"data": {
"symbol": "BTC-USDT", // symbol
"candles": [
"1729839600", // Start time of the candle cycle
"67644.9", // open price
"67437.6", // close price
"67724.8", // high price
"67243.8", // low price
"44.88321441", // Transaction volume
"3027558.991928447" // Transaction amount
],
"time": 1729842192785164840 // now(us)
}
}
Request
Query Params
token
string
required
Example:
2neAiuYvAU61ZDXANAGAsiL4-iAExhsBXZxftpOeh_55i3Ysy2q2LEsEWU64mdzUOPusi34M_wGoSf7iNyEWJ2gZJLp3fgqGGvpzdfennGL3R06_0gIS-diYB9J6i9GjsxUuhPw3Blq6rhZlGykT3Vp1phUafnulOOpts-MEmEF-3bpfetLOAjzQ04YZ_8fRJBvJHl5Vs9Y=.28mIdGU0xg5pJ6TpPYIhjg==
connectId
string
optional
Example:
121345
Modified at 2024-11-15 09:46:40