CoinGecko Coins Markets

0.5积分/次
ae_coingecko_coins_markets

获取加密货币的价格、市值、交易量、排名和涨跌幅,并可查看可选的7日走势。

加密货币
0.5积分/次

价格说明

0.5积分/次
条件费用
每次调用0.5积分/次

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
idsstring否coins' IDs, comma-separated if querying more than 1 coin. *refers to [`/coins/list`](/reference/coins-list).bitcoin
pageinteger否Page through results. Default: 1—
namesstring否coins' names, comma-separated if querying more than 1 coin.Bitcoin
orderenum (market_cap_asc | market_cap_desc | volume_asc | volume_desc | id_asc | id_desc)否sort result by field, default: market_cap_desc—
localeenum (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—
symbolsstring否coins' symbols, comma-separated if querying more than 1 coin.btc
categorystring否filter based on coins' category *refers to [`/coins/categories/list`](/reference/coins-categories-list).layer-1
per_pageinteger否Total results per page. Default: 100 Valid values: 1...250—
precisionenum (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—
sparklineboolean否include sparkline 7 days data, default: false—
vs_currencystring是必填。只能传 CoinGecko 支持的法币/计价货币代码,必须来自 coingecko_simple_supported_currencies 或接口支持列表。禁止传中文、股票代码、自然语言或占位符。usd
include_tokensenum (top | all)否for `symbols` lookups, specify `all` to include all matching tokens Default `top` returns top-ranked tokens (by market cap or volume)—
include_rehypothecatedboolean否include rehypothecated tokens in results, default: false When true, returns `market_cap_rank_with_rehypothecated` fieldfalse
price_change_percentagestring否include price change percentage timeframe, comma-separated if query more than 1 timeframe Valid values: 1h, 24h, 7d, 14d, 30d, 200d, 1y1h

调用示例

复制请求代码,查看对应的返回示例。

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
JSON部分内容
[
  {
    "ath": 126080,
    "ath_change_percentage": -40.59936,
    "ath_date": "2025-10-06T10:57:42.000Z",
    "atl": 67.81,
    "id": "bitcoin",
    "name": "Bitcoin"
  }
]

返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。