Skip to main content
GET
币种历史图表

授权

Authorization
string
header
必填

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

路径参数

id
string
必填

CoinGecko 代币 ID(例如 bitcoinethereum)。通过 /coins/list 获取列表。

查询参数

vs_currency
string
默认值:usd
必填

价格的目标货币(例如 usdeurbtc)。请参阅 /simple/supported_vs_currencies

days
string
必填

截至 N 天前的数据。接受 17143090180365max

interval
enum<string>

数据间隔。CoinGecko 支持 daily;在支持的范围内也可使用 hourly

可用选项:
daily,
hourly
precision
string

使用 full018 之间的值指定货币价格值的小数位数。

响应

200 - application/json

三个时间序列数组。

prices
number[][]
market_caps
number[][]
total_volumes
number[][]