CoinGecko Simple Token Price
0.5 credits/call
ae_coingecko_simple_token_price
Retrieve token prices using their blockchain contract addresses.
0.5 credits/call
Pricing
0.5 credits/call
| Condition | Charge |
|---|---|
| Each call | 0.5 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
id | string | Yes | 必填。传 CoinGecko 资产平台 ID(如 ethereum),可先用 coingecko_asset_platforms_list 查询;不是 coin id。合约地址另填入 contract_address 或 contract_addresses。 | — |
precision | enum (full | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18) | No | decimal place for currency price value | — |
vs_currencies | string | Yes | 必填。只能传 CoinGecko 支持的法币/计价货币代码,必须来自 coingecko_simple_supported_currencies 或接口支持列表。禁止传中文、股票代码、自然语言或占位符。 | — |
include_24hr_vol | boolean | No | include 24hr volume, default: false | — |
contract_addresses | string | Yes | the contract addresses of tokens, comma-separated if querying more than 1 token's contract address | — |
include_market_cap | boolean | No | include market capitalization, default: false | — |
include_24hr_change | boolean | No | include 24hr change default: false | — |
include_last_updated_at | boolean | No | include 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-KeyRequest 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
"当前用户已跳过第三方工具调用"
