CoinGecko Simple Token Price

0.5 credits/call
ae_coingecko_simple_token_price

Retrieve token prices using their blockchain contract addresses.

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 资产平台 ID(如 ethereum),可先用 coingecko_asset_platforms_list 查询;不是 coin id。合约地址另填入 contract_address 或 contract_addresses。—
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_currenciesstringYes必填。只能传 CoinGecko 支持的法币/计价货币代码,必须来自 coingecko_simple_supported_currencies 或接口支持列表。禁止传中文、股票代码、自然语言或占位符。—
include_24hr_volbooleanNoinclude 24hr volume, default: false—
contract_addressesstringYesthe contract addresses of tokens, comma-separated if querying more than 1 token's contract address—
include_market_capbooleanNoinclude market capitalization, default: false—
include_24hr_changebooleanNoinclude 24hr change default: false—
include_last_updated_atbooleanNoinclude last updated price time in UNIX , default: false—

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_simple_token_price' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "contract_addresses": "test",
    "id": "bitcoin",
    "vs_currencies": "usd"
  }
}'
Response exampleresponse.json
JSON
"当前用户已跳过第三方工具调用"