{"uid":"cap_p6PGfY23qNZNo9SYqQDYl","slug":"agenticfi-token-price-history-6a81f40e","name":"AgenticFi Token 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/%7Bid%7D","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_U1zegM4qSSrthRgOYj214","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 historical price data for a token over a specified number of days using its CoinGecko ID","exampleAgentPrompt":"Can you pull the price history for ethereum over the last 30 days so I can see how it's been trending?","exampleUseCases":null,"resultDescription":"A time series of historical price data for the specified token, showing price points over the requested number of days (e.g. 1, 7, 14, 30, 90, or 365 days). Data is sourced from CoinGecko and returned in a structured format suitable for charting or analysis.","failureModes":["Invalid CoinGecko token ID returns an error or empty result","Unsupported 'days' value outside allowed set (1, 7, 14, 30, 90, 365) may return error or default behavior","Token not listed on CoinGecko returns 404 or empty data","Payment failure via x402/USDC results in 402 response and no data returned","Rate limiting or upstream CoinGecko API unavailability causes 503 or timeout"],"whenToPreferThis":"Choose this endpoint when you need historical token price data for analysis, charting, or backtesting, especially within an AI agent workflow that already uses x402 micropayments on Base. Prefer this over direct CoinGecko calls when operating in an agentic DeFi context with pay-per-call billing already set up.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:57:32.525Z","isFirstParty":false}