获取资产在指定周期内的 K 线列表
GET
/candles/{id}/{interval}
授权
ApiKeyAuth
类型
API Key (header: CP-X-API-KEY)
参数
路径参数
id*
Asset ID, symbol, or supported source ID.
类型
必填string
示例
"bitcoin""BTC"interval*
Candle interval.
类型
必填string
有效值
"1h""1d""1w""1M"查询参数
from*
Start time in RFC3339 format.
类型
必填string
格式
"date-time"to
End time in RFC3339 format. If omitted, the service returns data through the latest available point.
类型
string
格式
"date-time"响应
Candles in [open_time_ms, open, high, low, close] format.
application/json
JSON [ ]
[
]
