{"uid":"cap_f8wT1Lyhb2cuwQxMynJij","slug":"agenticfi-ohlcv-price-history-391ff47b","name":"AgenticFi OHLCV Price History","description":"OHLCV candles for a token - supports 1d, 7d, 14d, 30d, 90d, 365d ranges","url":"https://defi-api.agenticfi.wtf/api/token/price-history/ethereum","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","pathParams","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","title":"id (required)","description":"Required. CoinGecko token ID.\nTry one of these 10 examples: bitcoin, ethereum, solana, chainlink, uniswap, aave, maker, dogecoin, pepe, arbitrum"}}},"queryParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","title":"id (required)","description":"Required. CoinGecko token ID.\nTry one of these 10 examples: bitcoin, ethereum, solana, chainlink, uniswap, aave, maker, dogecoin, pepe, arbitrum"},"days":{"type":"string","title":"days (optional)","description":"Optional. Number of days (1, 7, 14, 30, 90, 365) Examples: 1, 7, 30, 365"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_26ysxKL2L_IKUpl1R62sy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns OHLCV candlestick price history for a token on Ethereum over configurable day ranges (1, 7, 14, 30, 90, or 365 days)","exampleAgentPrompt":"Can you pull the 30-day OHLCV price history for Ethereum using the CoinGecko token ID 'ethereum'? I want to see the open, high, low, close, and volume candles over the last month.","exampleUseCases":[{"title":"Backtest trading strategy on Uniswap","prompt":"I'm testing a moving average crossover strategy on Uniswap. Can you grab the 90-day OHLCV candles for the 'uniswap' token so I can analyze the price movements and volume patterns over that period?"},{"title":"Chart Aave token performance this year","prompt":"Show me the full year price history for Aave using the CoinGecko ID 'aave'. I need the candlestick data with opens, highs, lows, closes, and volumes so I can see how it's performed over the last 365 days."},{"title":"Compare Bitcoin volatility week-over-week","prompt":"Pull the 7-day OHLCV candles for Bitcoin and give me the most recent week's data. I want to see the daily price ranges and trading volumes to understand this week's volatility compared to historical patterns."}],"resultDescription":"Returns an array of OHLCV candlestick data points for the requested token over the specified day range, each containing open, high, low, close prices and volume with associated timestamps, sourced from CoinGecko.","failureModes":["Invalid or unrecognized CoinGecko token ID returns an error or empty result","Unsupported 'days' value outside allowed set (1,7,14,30,90,365) may return an error","Payment failure via x402 protocol results in 402 response blocking data access","Token not listed on CoinGecko returns no data","Network timeout on slow upstream CoinGecko data fetch"],"whenToPreferThis":"Use this endpoint when you need structured OHLCV candlestick data for DeFi or mainstream crypto tokens identified by CoinGecko IDs, especially when building charts, running technical analysis, or backtesting strategies. Prefer this over generic market data APIs when you need pay-per-call pricing with no subscription and support for DeFi-native tokens like uniswap, aave, pepe, or arbitrum.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:47:39.493Z","isFirstParty":false}