跳转到主要内容
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。之后智能体通过几个元工具调用所有端点: search、list_categories、get_details 和 batch_quote 免费,batch_use 按次计费。各客户端的接入步骤见通过 MCP 连接;实时工具列表和 每次调用的价格见 aisa.one/zh-cn/mcp。
在你的 agent 里把这个端点跑起来 →

请求规范

  • 方法与路径: GET /apis/v1/coingecko/simple/price
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/coingecko/simple/price
  • ids: query; 可选
  • include_24hr_change: query; 可选
  • include_24hr_vol: query; 可选
  • include_last_updated_at: query; 可选
  • include_market_cap: query; 可选
  • include_tokens: query; 可选
  • names: query; 可选
  • precision: query; 可选
  • symbols: query; 可选
  • vs_currencies: query; 必填
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $0.008 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

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.

For the complete list of fiat currencies supported by this endpoint, see Fiat Currencies Support List.

响应

Coin prices

{key}
object