CoinGecko Coins ID Market Chart

0.5 credits/call
ae_coingecko_coins_id_market_chart

Retrieve CoinGecko historical cryptocurrency prices, market capitalization, and trading volume for a specified period and currency. Use only a CoinGecko-confirmed coin ID.

Crypto
0.5 credits/call

Pricing

0.5 credits/call
ConditionCharge
Each call0.5 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
idstringYes必填。只能传 CoinGecko 返回并确认存在的 coin id。本 CoinGecko 服务只用于加密货币、代币、NFT、交易所、DEX 和链上数据;股票、证券、公司财务、基金、外汇传统行情或非加密资产需求绝对不得调用 CoinGecko。必须先通过 coingecko_search_data 或 coingecko_coins_list 确认 coin id;确认后才允许调用。禁止把 symbol、中文名、自然语言、股票代码、公司名、合约地址或占位符当作 id。未确认 CoinGecko coin id 时,绝对不得调用本工具。—
daysstringYesdays 仅支持最近 2 年内的正整数天数;不要传 max。—
intervalenum (hourly | daily)NoData interval for the historical data. For this account, use `hourly` or `daily`; `5m` is not supported. You may omit this parameter to let CoinGecko automatically select the data granularity based on `days`.—
precisionenum (full | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18)Nodecimal place for currency price value—
vs_currencystringYes必填。只能传 CoinGecko 支持的法币/计价货币代码,必须来自 coingecko_simple_supported_currencies 或接口支持列表。禁止传中文、股票代码、自然语言或占位符。—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_coingecko_coins_id_market_chart' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "days": "30",
    "id": "pepe",
    "interval": "daily",
    "vs_currency": "usd"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "market_caps": [
    [
      1791504000000
    ]
  ],
  "prices": [
    [
      1791504000000
    ]
  ],
  "total_volumes": [
    [
      1791504000000
    ]
  ]
}

This example shows part of the response. Copied content is valid JSON.