Skip to main content
GET
Coin OHLC Chart by ID
单个币种的 K 线数据,以裸数组形式返回,每行按位置排列:毫秒时间戳,然后是开盘、最高、最低和收盘价。响应中没有字段名,也不含成交量。K 线周期由必填的 days 推导。适合用于 K 线或技术分析。如果需要价格曲线并同时包含市值和成交量,请改用 get_coingecko_coins_id_market_chart。
第一次用? 把任意 MCP 客户端指向 https://mcp.aisa.one/mcp —— Claude Code、 Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次 Allow,不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见 aisa.one/zh-cn/mcp。
在你的 agent 里把这个端点跑起来 →

授权

Authorization
string
header
必填

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

路径参数

id
string
默认值:bitcoin
必填

Coin ID. *refers to /coins/list.

查询参数

days
enum<string>
默认值:1
必填

Data up to number of days ago.

可用选项:
1,
7,
14,
30,
90,
180,
365,
max
interval
enum<string>

Data interval, leave empty for auto granularity.

可用选项:
daily,
hourly
precision
enum<string>

Decimal place for currency price value.

可用选项:
full,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
vs_currency
string
默认值:usd
必填

Target currency of price data. *refers to /simple/supported_vs_currencies.

响应

Coin OHLC chart data