{"uid":"cap_3ihPwa8EDRl4BprcZ2eHt","slug":"x402engine-crypto-price-history-86ef7109","name":"x402engine Crypto Price History","description":"Historical price, market cap, and volume data for any coin","url":"https://x402engine.app/api/crypto/history","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":["id"],"properties":{"id":{"type":"string","example":"bitcoin","description":"Coin ID"},"days":{"type":"string","default":"30","example":"30","description":"Days of history (1-365 or \"max\")"},"currency":{"type":"string","default":"usd","example":"usd","description":"Fiat currency"},"interval":{"type":"string","example":"daily","description":"Data interval (daily)"}},"additionalProperties":false}},"additionalProperties":false}}},"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_WTmJsv0jH2L5ULzAm8Ap4","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":"Fetches historical price, market cap, and volume data for a cryptocurrency over a specified time range and currency","exampleAgentPrompt":"Can you pull the last 90 days of daily Bitcoin price history in USD so I can see how it's been trending?","exampleUseCases":[{"title":"Crypto portfolio performance review","prompt":"Show me Ethereum's daily price history for the past 365 days in USD — I want to see how my portfolio has performed over the year."},{"title":"Altcoin trend research","prompt":"Fetch 30 days of daily price data for Solana in EUR so I can compare its recent trend against Bitcoin."},{"title":"Historical price snapshot for reporting","prompt":"Get me the full price history for Dogecoin over the last 180 days in USD at a daily interval — I need it for a market report."}],"resultDescription":"Returns a time-series dataset containing historical price, market capitalization, and total volume for the specified cryptocurrency, denominated in the requested fiat currency, spanning the requested number of days at the specified interval (e.g. daily). Data points are typically returned as arrays of [timestamp, value] pairs.","failureModes":["Invalid coin ID returns an error — must use CoinGecko-compatible IDs like 'bitcoin', 'ethereum'","Days parameter out of range (must be 1-365 or 'max') returns a validation error","Unsupported fiat currency code returns an error","Payment failure if USDC/USDm balance is insufficient","Rate limiting or upstream CoinGecko API unavailability causes 5xx errors"],"whenToPreferThis":"Use this endpoint when you need time-series historical cryptocurrency price data for charting, backtesting, portfolio analysis, or trend reporting, and want to pay per-call with micropayments rather than managing an API subscription. Prefer this over direct CoinGecko API access when operating within an x402 payment-enabled agent workflow on Base, MegaETH, or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:44:38.030Z","isFirstParty":false}