交易对 - K 线
获取交易对的 OHLCV K 线数据(格式:TOKEN_A_ADDRESS-TOKEN_B_ADDRESS)
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
路径参数
支持网络列表中的链名称 Supported blockchain chains
sol, eth, bsc 交易对标识符(格式:TOKEN_A_ADDRESS-TOKEN_B_ADDRESS)。交易对会自动排序
查询参数
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 线数量
响应
获取交易对 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"

