Skip to main content
GET
Coin Price by IDs, Symbols, or Names
最经济的价格查询:传入逗号分隔的 CoinGecko ids 和 vs_currencies,返回以币种 id 为键的映射。字段名由计价货币拼接而成——当 vs_currencies 设为 usd 时,会返回 usd,并在设置了对应的 include_market_cap、include_24hr_vol、include_24hr_change 和 include_last_updated_at 标志时额外返回 usd_market_cap、usd_24h_vol、usd_24h_change 和 last_updated_at。当 id 已知且只需要当前数值时使用它。如需排名、供应量或历史最高价数据,请使用 get_coingecko_coins_markets;如果你手上是合约地址而不是 id,请使用 get_coingecko_simple_token_price_id。
第一次用? 把任意 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.

查询参数

ids
string
默认值:bitcoin

Coins' IDs, comma-separated if querying more than 1 coin. *refers to /coins/list

include_24hr_change
boolean

Include 24-hour change percentage. Default: false

include_24hr_vol
boolean

Include 24-hour trading volume. Default: false

include_last_updated_at
boolean

Include last updated price time as a UNIX timestamp. Default: false

include_market_cap
boolean

Include market capitalization. Default: false

include_tokens
enum<string>

For symbols lookups, specify all to include all matching tokens. Default top returns top-ranked tokens by market cap or volume.

可用选项:
top,
all
names
string
默认值:Bitcoin

Coins' names, comma-separated if querying more than 1 coin.

precision
enum<string>

Decimal places for currency price value

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

Coins' symbols, comma-separated if querying more than 1 coin.

vs_currencies
string
默认值:usd
必填

Target currency of coins, comma-separated if querying more than 1 currency. *refers to /simple/supported_vs_currencies

响应

Coin prices

{key}
object