{"uid":"cap_AfDeMa9_ochfqWS-iWyf-","slug":"baseprice-oracle-x402-c09a84dd","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/quote","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":"QuoteRequest","properties":{"amount":{"anyOf":[{"type":"number","maximum":1000000000000,"exclusiveMinimum":0},{"type":"string"}],"title":"Amount","default":"1"},"to_token":{"type":"string","title":"To Token","default":"USDC","maxLength":42,"minLength":1},"from_token":{"type":"string","title":"From Token","default":"WETH","maxLength":42,"minLength":1}}}},"additionalProperties":false},"output":{"type":"object","properties":{"type":{"const":"json"},"example":{"type":"object","required":["success","quote_type","executable","expected_out"],"properties":{"network":{"const":"base-mainnet"},"success":{"type":"boolean"},"to_token":{"type":"object","required":["address","symbol","price_usd","source","fetched_at"],"properties":{"source":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"price_usd":{"type":"number","exclusiveMinimum":0},"fetched_at":{"type":"string","format":"date-time"}}},"amount_in":{"type":"number","maximum":1000000000000,"exclusiveMinimum":0},"timestamp":{"type":"string","format":"date-time"},"executable":{"const":false},"from_token":{"type":"object","required":["address","symbol","price_usd","source","fetched_at"],"properties":{"source":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"price_usd":{"type":"number","exclusiveMinimum":0},"fetched_at":{"type":"string","format":"date-time"}}},"quote_type":{"const":"indicative"},"limitations":{"type":"array","items":{"type":"string"}},"expected_out":{"type":"number"},"execution_rate":{"type":"number","description":"Legacy name for the indicative rate."},"indicative_rate":{"type":"number"},"estimated_price_impact_pct":{"type":["number","null"],"minimum":0}}}}}}},"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_MhrdNPcBlcSyp4czwhWbx","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 and swap quote data for tokens on Base Mainnet (Chain ID 8453), paid per-call via x402.","exampleAgentPrompt":"What's the current DEX spot price of WETH quoted in USD on Base Mainnet right now, including its liquidity and 24h volume?","exampleUseCases":[{"title":"Live token price check for DeFi dashboard","prompt":"Can you pull the current spot price of WETH in USD from Base Mainnet DEX liquidity pools, along with today's trading volume and liquidity depth?"},{"title":"Arbitrage opportunity detection","prompt":"Fetch the real-time on-chain price for USDC quoted in USD on Base Mainnet — I want to compare it against another exchange to spot any arbitrage gaps."},{"title":"Portfolio value monitoring agent","prompt":"Get me the latest DEX price of WETH on Base chain so I can update my portfolio tracker with the current on-chain valuation."}],"resultDescription":"A JSON object containing the token's current spot price in USD, network identifier (Base Mainnet), liquidity depth in USD, 24-hour trading volume in USD, a timestamp of the quote, and token metadata — sourced from live DEX pools on Base (Chain ID 8453).","failureModes":["Payment not submitted or invalid x402 payment header returns 402 Payment Required","Unsupported or unrecognized token symbol returns an error or empty token object","Token has insufficient liquidity on Base DEX, resulting in unreliable or missing price data","Network connectivity issues to Base Mainnet RPC may cause stale or failed price fetches","Invalid quote currency specified may return unexpected results"],"whenToPreferThis":"Choose this endpoint when you need real-time, on-chain DEX spot prices specifically for tokens on Base Mainnet (Chain ID 8453) and are operating in a pay-per-call x402 micropayment context. It is ideal for DeFi agents, arbitrage bots, portfolio trackers, and swap estimators that require fresh liquidity-pool-sourced prices rather than centralized exchange data or off-chain aggregators.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-18T06:40:57.015Z","isFirstParty":false}