{"uid":"cap_Cn_Q2M2jMdZ4_c2hYyL6w","slug":"crypto-price-history-0196e346","name":"Crypto Price History","description":"Daily USD price history of any token (symbol, CoinGecko id or chain:address) for up to 365 days with high, low and % change, or its exact price on a past date. Use for charts, backtests, cost basis or 'what was ETH worth on...' questions.","url":"https://bess-x402.onrender.com/v1/crypto/price-history?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["token"],"properties":{"on":{"type":"string","description":"Single date YYYY-MM-DD instead of a range"},"days":{"type":"integer","description":"Days of daily prices (2-365)"},"token":{"type":"string","description":"Symbol, CoinGecko id or chain:address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uevjLzbyOD8sZFzxpnwc7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns daily USD price history (high, low, % change) for any cryptocurrency token over up to 365 days, or its exact price on a specific past date.","exampleAgentPrompt":"Can you pull up the daily price history for Ethereum over the last 90 days, including the high, low, and percentage change each day?","exampleUseCases":[{"title":"Cost basis lookup for crypto taxes","prompt":"What was the price of Bitcoin on March 15 2023? I need the exact USD value to calculate my cost basis for a purchase I made that day."},{"title":"Backtest trading strategy with historical data","prompt":"Get me 365 days of daily price history for Solana — I need the high, low, and daily change so I can backtest a trading strategy."},{"title":"Chart altcoin price trend","prompt":"Pull up 60 days of daily price history for Chainlink so I can see how it's been trending over the past two months."}],"resultDescription":"Returns an array of daily price records for the requested token, each containing the date, USD price, daily high, daily low, and percentage change. For a single-date query using the 'on' parameter, returns the exact USD price on that date. Data is sourced from CoinGecko and covers up to 365 days of history.","failureModes":["Unknown token symbol or CoinGecko id returns a 404 or empty result","Days parameter outside the 2-365 range returns a validation error","Invalid date format for 'on' parameter (not YYYY-MM-DD) returns a parse error","Token contract address with unsupported chain prefix returns an error","Very recently listed tokens may have incomplete historical data","Rate limiting or upstream CoinGecko outage may cause 5xx errors"],"whenToPreferThis":"Use this endpoint when you need historical daily OHLC-style (open/high/low/close) price data for any cryptocurrency — especially for cost basis calculations, backtesting, charting, or answering 'what was X worth on Y date' questions. It accepts flexible token identifiers (symbol, CoinGecko id, or chain:address), making it more versatile than endpoints requiring a specific format. Prefer this over real-time price endpoints when the user's question is about the past rather than the present.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:40:20.060Z","isFirstParty":false,"canonicalSlug":"crypto-price-history-0196e346"}