CoinGecko Coins ID OHLC

0.5 credits/call
ae_coingecko_coins_id_ohlc

Get Open, High, Low, and Close (OHLC) price data for technical analysis and candlestick charts.

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 时,绝对不得调用本工具。—
daysenum (1 | 7 | 14 | 30 | 90 | 180 | 365 | max)Yesdata up to number of days ago—
intervalenum (daily | hourly)Nodata interval, leave empty for auto granularity—
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_ohlc' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "days": "1",
    "id": "ethereum",
    "interval": "hourly",
    "precision": "2",
    "vs_currency": "usd"
  }
}'
Response exampleresponse.json
JSONPartial content
[
  [
    1794250800000
  ]
]

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

Guides using this tool

See how this tool fits into real workflows