CoinGecko Coins Markets
0.5积分/次
ae_coingecko_coins_markets
获取加密货币的价格、市值、交易量、排名和涨跌幅,并可查看可选的7日走势。
0.5积分/次
价格说明
0.5积分/次
| 条件 | 费用 |
|---|---|
| 每次调用 | 0.5积分/次 |
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
ids | string | 否 | coins' IDs, comma-separated if querying more than 1 coin. *refers to [`/coins/list`](/reference/coins-list). | bitcoin |
page | integer | 否 | Page through results. Default: 1 | — |
names | string | 否 | coins' names, comma-separated if querying more than 1 coin. | Bitcoin |
order | enum (market_cap_asc | market_cap_desc | volume_asc | volume_desc | id_asc | id_desc) | 否 | sort result by field, default: market_cap_desc | — |
locale | enum (ar | bg | cs | da | de | el | en | es | fi | fr | he | hi | hr | hu | id | it | ja | ko | lt | nl | no | pl | pt | ro | ru | sk | sl | sv | th | tr | uk | vi | zh | zh-tw) | 否 | language background, default: en | — |
symbols | string | 否 | coins' symbols, comma-separated if querying more than 1 coin. | btc |
category | string | 否 | filter based on coins' category *refers to [`/coins/categories/list`](/reference/coins-categories-list). | layer-1 |
per_page | integer | 否 | Total results per page. Default: 100 Valid values: 1...250 | — |
precision | enum (full | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18) | 否 | decimal place for currency price value | — |
sparkline | boolean | 否 | include sparkline 7 days data, default: false | — |
vs_currency | string | 是 | 必填。只能传 CoinGecko 支持的法币/计价货币代码,必须来自 coingecko_simple_supported_currencies 或接口支持列表。禁止传中文、股票代码、自然语言或占位符。 | usd |
include_tokens | enum (top | all) | 否 | for `symbols` lookups, specify `all` to include all matching tokens Default `top` returns top-ranked tokens (by market cap or volume) | — |
include_rehypothecated | boolean | 否 | include rehypothecated tokens in results, default: false When true, returns `market_cap_rank_with_rehypothecated` field | false |
price_change_percentage | string | 否 | include price change percentage timeframe, comma-separated if query more than 1 timeframe Valid values: 1h, 24h, 7d, 14d, 30d, 200d, 1y | 1h |
调用示例
复制请求代码,查看对应的返回示例。
POST
/agent-api/v1/tool/executeX-Api-Key请求代码request.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_coingecko_coins_markets' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"ids": "solana",
"order": "market_cap_desc",
"page": 1,
"per_page": 1,
"vs_currency": "usd"
}
}'返回示例response.json
[
{
"ath": 126080,
"ath_change_percentage": -40.59936,
"ath_date": "2025-10-06T10:57:42.000Z",
"atl": 67.81,
"id": "bitcoin",
"name": "Bitcoin"
}
]返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。

