CoinGecko Onchain Simple Price

0.5积分/次
ae_coingecko_onchain_simple_price

通过特定区块链网络上的合约地址查询代币的当前价格。

加密货币
0.5积分/次

价格说明

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

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_coingecko_onchain_simple_price' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "network": "xxx",
    "addresses": "xxx"
  }
}'
请求方式
POST
接口地址
/agent-api/v1/tool/execute
鉴权方式
X-Api-Key
超时时间
60 秒
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

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

参数类型必填说明默认值
networkstring是必填。只能传 CoinGecko onchain networks 返回并确认存在的 network id。必须先调用 coingecko_networks_list 确认;禁止传中文链名、自然语言、占位符或猜测值。未确认 network 时绝对不得调用本工具。—
addressesstring是必填。只能传目标链上的真实合约/池子地址。必须先确认 network/asset_platform 和 address 都是 CoinGecko 支持的真实链上标识;禁止传 symbol、中文名、股票代码、公司名、占位符、空字符串或伪地址。未确认地址时绝对不得调用本工具。—
include_24hr_volboolean否include 24hr volume, default: false—
mcap_fdv_fallbackboolean否return FDV if market cap is not available, default: false—
include_market_capboolean否include market capitalization, default: false—
include_inactive_sourceboolean否include token price data from inactive pools using the most recent swap, default: false—
include_24hr_price_changeboolean否include 24hr price change, default: false—
include_total_reserve_in_usdboolean否include total reserve in USD, default: false—