Token
代币 - K 线
获取代币价格 K 线数据
GET
代币 - K 线
获取多种分辨率(1m、5m、15m、1h、4h、1d)的 OHLCV K 线数据。适用于绘制图表和技术分析。
token_get_candles授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
路径参数
支持网络列表中的链名称 Supported blockchain chains
可用选项:
sol, eth, bsc 代币地址
查询参数
K 线数据的时间粒度 Candle resolution
可用选项:
1s, 15s, 30s, 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M 价格类型:usd(默认)或原生代币价格 Price type for candle data
可用选项:
usd, native 开始时间戳(Unix 秒级时间戳)
结束时间戳(Unix 秒级时间戳)
返回的 K 线数量
响应
200 - application/json
获取 K 线
Close price
示例:
"51.2"
High price
示例:
"51.8"
Low price
示例:
"50.1"
Open price
示例:
"50.5"
Timestamp
示例:
1709251200000
Volume in USD or native currency (depending on priceType)
示例:
"1000000"
Number of trades (swaps) in this candle bar
示例:
128
Base token quantity (e.g. number of CAKE or SOL tokens traded)
示例:
"42000.5"
代币 - K 线

