{"uid":"cap_LSw7-cRUO05AWi-fZoMkY","slug":"baseprice-oracle-x402-6edff68c","name":"BasePrice Oracle x402","description":"Real-Time DEX Spot Price & Swap Quoter Oracle for Base Mainnet (Chain ID 8453), payable via x402.","url":"https://baseprice-x402.vercel.app/v1/price","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","title":"PriceRequest","properties":{"quote":{"enum":["USD","USDC"],"type":"string","title":"Quote","default":"USD"},"token":{"type":"string","title":"Token","default":"WETH","maxLength":42,"minLength":1,"description":"Known symbol or EVM address"}}}},"additionalProperties":false},"output":{"type":"object","properties":{"type":{"const":"json"},"example":{"type":"object","required":["success","price_usd","token","source","fetched_at"],"properties":{"dex":{"type":["string","null"]},"token":{"type":"object","required":["address","symbol"],"properties":{"name":{"type":["string","null"]},"symbol":{"type":"string"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"decimals":{"type":["integer","null"],"maximum":255,"minimum":0}}},"source":{"type":"string"},"network":{"const":"base-mainnet"},"success":{"type":"boolean"},"price_usd":{"type":"number"},"timestamp":{"type":"string","format":"date-time"},"fetched_at":{"type":"string","format":"date-time"},"pair_address":{"type":["string","null"]},"quote_source":{"type":"string"},"liquidity_usd":{"type":["number","null"],"minimum":0},"price_in_quote":{"type":"number"},"quote_currency":{"enum":["USD","USDC"]},"volume_24h_usd":{"type":["number","null"],"minimum":0},"source_timestamp":{"type":["string","null"],"format":"date-time"},"price_change_24h_pct":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"object","properties":{"token":{"type":"object"},"network":{"type":"string"},"price_usd":{"type":"number"},"timestamp":{"type":"string"},"liquidity_usd":{"type":"number"},"volume_24h_usd":{"type":"number"}}},"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_ROilyf-mwx1iQ9OVLSJ7L","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 real-time DEX spot price, liquidity, and 24h volume for a given token on Base Mainnet (Chain ID 8453), payable via x402 micropayment.","exampleAgentPrompt":"What is the current spot price of WETH in USD on Base mainnet right now, including its liquidity and 24h trading volume?","exampleUseCases":[{"title":"Real-time DeFi portfolio valuation","prompt":"Can you get me the current DEX price of WETH on Base mainnet in USD, including its liquidity and 24h volume, so I can update my portfolio value?"},{"title":"Arbitrage opportunity detection","prompt":"Fetch the current on-chain spot price of cbETH on Base in USD — I want to compare it against another exchange to spot any arbitrage."},{"title":"Token liquidity health check","prompt":"Look up the real-time price, liquidity, and 24-hour trading volume for USDC on Base mainnet so I can assess whether there's enough liquidity to make a large swap."}],"resultDescription":"Returns a JSON object containing the token's current spot price in USD, available liquidity in USD, 24-hour trading volume in USD, the network identifier (Base Mainnet), a timestamp of the data, and token metadata — all sourced from live DEX data on Base (Chain ID 8453).","failureModes":["Unknown or unsupported token symbol returns an error or empty token object","Network congestion on Base may cause stale or delayed price data","Invalid quote currency returns a validation error","Payment failure via x402 (insufficient USDC balance or wrong network) results in 402 response and no data","Rate limiting if x402 payment not properly submitted"],"whenToPreferThis":"Use this endpoint when you need real-time, on-chain DEX spot prices specifically for tokens on Base Mainnet (Chain ID 8453), and you want liquidity and volume context alongside the price. Prefer this over general CEX price APIs when you need decentralized, on-chain accuracy for Base network assets. Best suited for DeFi agents, portfolio trackers, swap optimizers, or arbitrage bots operating on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-18T06:34:47.627Z","isFirstParty":false}