{"uid":"cap_u8OC7WL4sCz4dPLByn9VD","slug":"dia-crypto-oracle-asset-price-lookup-07ebf41d","name":"DIA Crypto Oracle – Asset Price Lookup","description":"DIA crypto price oracle: current USD price for one asset symbol (e.g. BTC, ETH), yesterday's price and volume, from DIA's public quotation endpoint.","url":"https://api.chainmarket-api.workers.dev/api/finance/dia-crypto-oracle?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"],"type":"string"},"queryParams":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string","description":"Asset ticker, e.g. BTC, ETH, SOL"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"Bitcoin","source":"https://api.diadata.org/v1/quotation/BTC","symbol":"BTC","priceUsd":81544.94349749477,"checkedAt":"2026-10-23T09:36:15.538Z","updatedAt":"2026-10-23T09:35:59Z","blockchain":"Bitcoin","priceYesterdayUsd":81704.79336332159,"volumeYesterdayUsd":10279767496.56837}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YU2mT53SAWQh95EECD72f","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current USD price, 24h volume, yesterday's price, and metadata for a cryptocurrency asset using DIA oracle data","exampleAgentPrompt":"What's the current USD price of BTC according to the DIA oracle, along with yesterday's price and 24-hour trading volume?","exampleUseCases":[{"title":"Real-time crypto price check","prompt":"What is the current USD price of Ethereum right now, and how does it compare to yesterday's price?"},{"title":"Portfolio valuation snapshot","prompt":"I need the current USD prices for BTC and SOL from the DIA oracle so I can calculate my portfolio's total value."},{"title":"Trading volume monitoring","prompt":"Can you check the 24-hour trading volume for ETH in USD using the DIA oracle feed and tell me if it's unusually high?"}],"resultDescription":"A JSON object containing the asset's full name, ticker symbol, current USD price, yesterday's USD price, 24-hour trading volume in USD, the originating blockchain, a timestamp for when the price was checked and last updated, and a link to the DIA data source.","failureModes":["Invalid or unknown ticker symbol returns an error or empty result","DIA oracle data may be delayed or temporarily unavailable for low-liquidity assets","Missing required 'symbol' query parameter causes a 400-level error","Network or upstream DIA API outage results in a failed call (not charged)"],"whenToPreferThis":"Use this endpoint when you need a pay-per-call, no-signup crypto price from a publicly auditable oracle (DIA) without committing to a subscription. Ideal for AI agents that need spot prices for BTC, ETH, SOL, or other major assets on an ad-hoc basis. Prefer over subscription oracles when usage is infrequent or when decentralized, on-chain-verifiable price provenance matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:45:41.987Z","isFirstParty":false,"canonicalSlug":"dia-crypto-oracle-asset-price-lookup-07ebf41d"}