{"uid":"cap_yUiJ6T4DHibZuLZ-5UzRi","slug":"vextorium-historical-crypto-price-api-e24ce0b1","name":"Vextorium Historical Crypto Price API","description":"USD price of up to 20 tokens at any past date and time (BTC, ETH, SOL... or chain:contract ids), with the exact timestamp of the data point. For accounting, taxes and backtests. Aggregated by DefiLlama.","url":"https://api.vextorium.com/v1/historical-price?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["coins","date"],"properties":{"date":{"type":"string","description":"YYYY-MM-DD, ISO 8601 or Unix timestamp"},"coins":{"type":"string","description":"Comma-separated: BTC, ETH or chain:contract / coingecko:slug"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"prices":{"type":["array","null"],"items":{"type":["null","object"],"properties":{"id":{"type":["null","string"]},"symbol":{"type":["null","string"]},"data_time":{"type":["null","string"]},"price_usd":{"type":["null","number"]},"confidence":{"type":["null","number"]}}}},"source":{"type":["string","null"]},"not_found":{"type":["array","null"],"items":{}},"requested_date":{"type":["string","null"]}}}}}}},"responseSchema":{"type":"json","example":{"prices":[{"id":"coingecko:bitcoin","symbol":"BTC","data_time":"2024-12-31T23:59+00:00","price_usd":93450,"confidence":0.99},{"id":"coingecko:ethereum","symbol":"ETH","data_time":"2025-01-01T00:00+00:00","price_usd":3333.54,"confidence":0.99}],"source":"DefiLlama (aggregated price)","not_found":[],"requested_date":"2025-01-01T00:00+00:00"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Fqacl4M6J4UPvsg-8WqYK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the USD price of up to 20 crypto tokens at a specific past date and time, with exact timestamps and confidence scores, aggregated by DefiLlama.","exampleAgentPrompt":"What was the USD price of BTC and ETH on December 31, 2024? I need the exact timestamp of the data point for my year-end tax report.","exampleUseCases":[{"title":"Year-end crypto tax reporting","prompt":"I need the USD prices of BTC, ETH, and SOL as of December 31, 2023 for my annual crypto tax filing — can you look those up with exact timestamps?"},{"title":"DeFi token cost basis calculation","prompt":"What was the price of the USDC contract on Ethereum (ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48) on March 15, 2024? I need it to calculate my cost basis."},{"title":"Backtesting portfolio valuation","prompt":"Get me the historical prices for BTC, ETH, SOL, AVAX, and MATIC on January 1, 2024 so I can backtest how my portfolio would have performed from that date."}],"resultDescription":"A JSON object containing an array of price entries — each with the token id, symbol, USD price, exact data timestamp, and confidence score — plus the source attribution (DefiLlama), the requested date, and a list of any tokens not found.","failureModes":["Token not recognized returns the id in the not_found array","Invalid date format returns an error","Requesting more than 20 tokens at once may fail or truncate","Contract address on wrong chain returns not_found","Very old dates may have no data available for certain tokens","Network timeout or upstream DefiLlama unavailability"],"whenToPreferThis":"Use this endpoint when you need accurate historical USD prices for one or more crypto tokens at a specific past date and time — especially for tax, accounting, auditing, or backtesting workflows. It supports both major tokens by symbol (BTC, ETH, SOL) and any EVM or non-EVM token by chain:contract address or CoinGecko slug, with up to 20 tokens per call. Prefer this over real-time price feeds when the query is retrospective and the exact data timestamp matters for auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:48:08.235Z","isFirstParty":false,"canonicalSlug":"vextorium-historical-crypto-price-api-e24ce0b1"}