{"uid":"cap_QL6tLETWTmcGChdEp1gfg","slug":"x402-bazaar-historical-token-price-517cde40","name":"x402 Bazaar Historical Token Price","description":"Returns the USD price of a Base token on a specific date (YYYY-MM-DD) via Covalent. For agents computing cost basis, backtests, or P&L. Paid via x402: $0.005 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.","url":"https://api.relai.fi/relay/1782567677091/api/x402/historical-price?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_r3LwiwuTkL9LCvhb99sJM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the USD price of a Base network token on a specific historical date via Covalent, for cost basis and P&L calculations","exampleAgentPrompt":"What was the USD price of token 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA on Base on March 14, 2024? I need it for cost basis calculations.","exampleUseCases":null,"resultDescription":"A structured response containing the USD price of the specified Base token on the requested date, sourced from Covalent's historical price data — useful for cost basis, P&L, and backtest computations.","failureModes":["402 Payment Required — agent must pay $0.005 USDC on Base to the specified address and retry","Invalid or unsupported token contract address returns an error","Date not in YYYY-MM-DD format returns a validation error","Date too recent or too far in the past may return no price data","Token not indexed by Covalent returns empty or null price","Network errors from Covalent upstream causing 503 or timeout"],"whenToPreferThis":"Use this endpoint when you need the USD price of a Base network token on a specific past date — especially for tax cost basis, portfolio P&L, or strategy backtesting. Prefer this over real-time price feeds when the date is historical. Best suited for agents that already handle x402 micropayment flows on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:37:19.362Z","isFirstParty":false,"canonicalSlug":"x402-bazaar-historical-token-price-517cde40"}