跳转到主要内容
GET
池子 - K 线

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

chain
enum<string>
必填

支持网络列表中的链名称 Supported blockchain chains

可用选项:
sol,
eth,
bsc
poolAddress
string
必填

池子地址

查询参数

resolution
enum<string>
必填

K 线数据的时间粒度 Candle resolution

可用选项:
1s,
15s,
30s,
1m,
3m,
5m,
15m,
30m,
1h,
2h,
4h,
6h,
8h,
12h,
1d,
3d,
1w,
1M
priceType
enum<string>
默认值:usd

价格类型:usd(默认)或原生代币价格 Price type for candle data

可用选项:
usd,
native
from
integer<int64>

开始时间戳(Unix 秒级时间戳)

to
integer<int64>

结束时间戳(Unix 秒级时间戳)

limit
integer<int64>

返回的 K 线数量

响应

200 - application/json

获取池子 K 线

close
string
必填

Close price

示例:

"51.2"

high
string
必填

High price

示例:

"51.8"

low
string
必填

Low price

示例:

"50.1"

open
string
必填

Open price

示例:

"50.5"

timestamp
integer<int64>
必填

Timestamp

示例:

1709251200000

volume
string
必填

Volume in USD or native currency (depending on priceType)

示例:

"1000000"

trades
integer<int64> | null

Number of trades (swaps) in this candle bar

示例:

128

volumeInTokenAmount
string | null

Base token quantity (e.g. number of CAKE or SOL tokens traded)

示例:

"42000.5"