GET
/
token
/
{chain}
/
{tokenAddress}
/
candles
curl --request GET \
  --url https://api-dex.chainstream.io/token/{chain}/{tokenAddress}/candles \
  --header 'Authorization: Bearer <token>'
[
  {
    "open": "50.5",
    "close": "51.2",
    "high": "51.8",
    "low": "50.1",
    "volume": "1000000",
    "resolution": "1h",
    "time": 1709251200000
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

chain
enum<string>
required

支持网络中列出的区块链名称

Available options:
sol,
base
tokenAddress
string
required

代币地址

Example:

"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"

Query Parameters

resolution
enum<string>
required

数据的时间周期。特别注意:1s的时间周期只保存最近1小时的数据;15s、30s时间周期只保存最近6小时的数据;1m时间周期只保存最近12小时数据;其他时间周期的数据永久保存

Available options:
1s,
15s,
30s,
1m,
5m,
15m,
1h,
4h,
12h,
1d
from
number

开始时间戳(Unix 纪元毫秒)

Example:

1741647950000

to
number

结束时间戳(Unix 纪元毫秒)

Example:

1741700970000

Response

200 - application/json
open
string
required

开盘价

Example:

"50.5"

close
string
required

收盘价

Example:

"51.2"

high
string
required

最高价

Example:

"51.8"

low
string
required

最低价

Example:

"50.1"

volume
string
required

交易量

Example:

"1000000"

resolution
enum<string>
required

数据的时间周期。特别注意:1s的时间周期只保存最近1小时的数据;15s、30s时间周期只保存最近6小时的数据;1m时间周期只保存最近12小时数据;其他时间周期的数据永久保存

Available options:
1s,
15s,
30s,
1m,
5m,
15m,
1h,
4h,
12h,
1d
Example:

"1h"

time
number
required

数据时间戳(Unix 纪元毫秒)

Example:

1709251200000