{"uid":"cap_qDicxKVxUV-2OvueFtVRs","slug":"defillama-token-price-chart-69f36a96","name":"DefiLlama Token Price Chart","description":"Token price chart by DefiLlama — an evenly-spaced historical price series for one or many coins over a time window.","url":"https://defillama.use.x402atlas.com/prices-chart?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["coins"],"properties":{"coins":{"type":"string","pattern":"^[A-Za-z0-9:,._-]+$","maxLength":3000,"minLength":1,"description":"Comma-separated coins as {chain}:{address} or coingecko:{id}"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["queried_at","data"],"properties":{"data":{"type":"object","properties":{"coins":{"type":"object","description":"Keyed by {chain}:{address} or coingecko:{id}","additionalProperties":{"type":"object","properties":{"prices":{"type":"array","items":{"type":"object","properties":{"price":{"type":"number","description":"USD price"},"timestamp":{"type":"integer","description":"Unix timestamp (seconds)"}}}},"symbol":{"type":"string"}}}}},"description":"Raw DefiLlama price chart payload","additionalProperties":true},"queried_at":{"type":"string","format":"date-time","description":"When this bridge fetched the upstream data"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"coins":{"coingecko:ethereum":{"prices":[{"price":3000,"timestamp":1650000000}],"symbol":"ETH"}}},"queried_at":"2026-07-01T12:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"0.5000","medianCents":"0.5000","p90Cents":"0.5000","minCents":"0.5000","maxCents":"0.5000","p95Cents":"0.5000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TbNm1a2P5p4frM57loFlF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an evenly-spaced historical price series for one or many tokens over a specified time window via DefiLlama.","exampleAgentPrompt":"Can you pull me a DefiLlama price chart for ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 and coingecko:bitcoin from January 1 2024 to March 31 2024, with one data point per day (span 90, period 1d)?","exampleUseCases":[{"title":"Backtest DeFi token strategy","prompt":"I want to backtest a trading strategy on Uniswap — can you pull me hourly price data for coingecko:uniswap from July 1 2023 to December 31 2023 so I have a full evenly-spaced series to work with?"},{"title":"Chart ETH price last month","prompt":"Can you grab me a daily price chart for ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 over the past 30 days? I want to see how ETH has been trending recently."},{"title":"Compare stablecoin price stability","prompt":"Can you pull historical price data for coingecko:usd-coin and coingecko:dai from January 1 2024 to June 30 2024 with one point per day? I want to compare how stable each of them held their peg over that period."}],"resultDescription":"A time series of evenly-spaced historical USD price data points for the requested coins, covering the specified time window with the chosen interval and search width.","failureModes":["Missing required 'coins' parameter returns an error","Invalid coin identifier format (not {chain}:{address} or coingecko:{id}) returns no data","Start/end timestamps out of range may return empty series","Invalid period format may cause parsing errors","Payment failure (insufficient USDC) returns 402"],"whenToPreferThis":"Use this endpoint when you need a uniformly-sampled historical price series for one or many tokens — ideal for charting, backtesting, or trend analysis over a defined time window. Prefer this over the price-change endpoint when you need the full series rather than a single percentage delta, and over the current-price endpoint when historical data is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:44:11.746Z","isFirstParty":false,"canonicalSlug":"defillama-token-price-chart-69f36a96"}