{"uid":"cap_1St2YAjw42XciUr6uCUZM","slug":"x402-coinstats-app-dea13e2f","name":"CoinStats Historical Average Price","description":"CoinStats historical average price for a cryptocurrency at a given timestamp","url":"https://x402.coinstats.app/coins/price/avg","method":"GET","headers":{},"bodySchema":{"properties":{"input":{"required":["method"],"properties":{"method":{"enum":["GET"],"type":"string"}}}}},"responseSchema":null,"example":{"request":{"input":{"method":"GET"},"coinId":"bitcoin","timestamp":1705276800},"response":{"BTC":1,"ETH":16.87868252,"USD":41755.89470024}},"exampleRequest":{"input":{"method":"GET"},"coinId":"bitcoin","timestamp":1705276800},"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_BIm0JJyieemwpoh7VIiTt","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 the historical average price of a cryptocurrency at a specified timestamp","exampleAgentPrompt":"What was the average price of Ethereum (ETH) on January 15, 2024? Use CoinStats to look up the historical average price at that timestamp.","exampleUseCases":[{"title":"Cost basis for crypto taxes","prompt":"I need to figure out the cost basis for my Bitcoin purchase. I bought 0.5 BTC on March 10, 2023 — can you look up the historical average price of Bitcoin in USD at that date using CoinStats so I can calculate what I paid?"},{"title":"Portfolio value at past date","prompt":"What was my crypto portfolio worth on December 31, 2023? Look up the historical average prices for Ethereum, Solana, and BNB in USD at that date using CoinStats so I can get an accurate end-of-year valuation."},{"title":"Reconstruct a past trade","prompt":"I'm trying to reconstruct a trade I made last year. Can you find the average price of Dogecoin in USD on July 4, 2023 using CoinStats? I want to verify what the market rate was at the exact time I sold."}],"resultDescription":"Returns the historical average price of the specified cryptocurrency at the given Unix timestamp, denominated in the requested fiat or base currency.","failureModes":["Invalid or unsupported coin identifier returns an error response","Timestamp out of supported historical range returns no data","Malformed timestamp format causes request failure","Missing required parameters returns a 400-level error","Payment not processed results in 402 response"],"whenToPreferThis":"Use this endpoint when you need the average market price of a specific cryptocurrency at a precise historical point in time — ideal for portfolio valuation, tax calculations, trade reconstruction, or cost-basis analysis. Prefer over live price endpoints when historical accuracy at a specific timestamp is required rather than real-time data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:34:28.623Z","isFirstParty":false}