跳转到主要内容
GET
Coin Price by Token Addresses
以链上合约地址而非 CoinGecko id 为键的价格查询。id 是资产所在链,contract_addresses 是逗号分隔的代币地址列表,vs_currencies 是计价货币。返回以小写合约地址为键的映射,其字段名由计价货币拼接而成——包含 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_token_data;如果你已经有 CoinGecko id,请使用 get_coingecko_simple_price。
第一次用? 把任意 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/token_price/{id}
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/coingecko/simple/token_price/{id}
  • id: path; 必填
  • contract_addresses: query; 必填
  • include_24hr_change: query; 可选
  • include_24hr_vol: query; 可选
  • include_last_updated_at: query; 可选
  • include_market_cap: query; 可选
  • precision: 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.

路径参数

id
string
默认值:ethereum
必填

Asset platform's ID. *refers to /asset_platforms

查询参数

contract_addresses
string
默认值:0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
必填

Token contract addresses, comma-separated if querying more than 1 token

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

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
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.

响应

Token prices

{key}
object