{"uid":"cap_E4KJjuTTpRy6rB4wIzEOU","slug":"ozmium-swap-price-quote-base-mainnet-6a646f2b","name":"Ozmium Swap Price Quote (Base Mainnet)","description":"Indicative Base mainnet swap pricing via the Coinbase CDP Trade API- expected output, min output after slippage, and fee estimates- WITHOUT reserving liquidity. Poll this to compare routes, then buy /v1/tx/swap for the executable quote. GET /v1/swap/price?fromToken=0x..&toToken=0x..&fromAmount=atomic&taker=0x..&slippageBps=100.","url":"https://ozmium.org/v1/swap/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"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"taker":{"type":"string"},"toToken":{"type":"string"},"fromToken":{"type":"string"},"fromAmount":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"quote":{"type":"object","properties":{"toAmount":{"type":"string"},"minToAmount":{"type":"string"}}}}},"network":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zJsxVljkrb-eg7P9euHTc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns indicative swap pricing on Base mainnet via Coinbase CDP Trade API — expected output amount, minimum output after slippage, and fee estimates — without reserving liquidity.","exampleAgentPrompt":"Before I execute anything, get me an indicative price quote for swapping 500 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) to WETH (0x4200000000000000000000000000000000000006) on Base mainnet for my wallet 0xAbCd...1234, using 100 bps slippage tolerance — just the price estimate, don't execute the trade.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a quote containing toAmount (expected output in atomic units), minToAmount (minimum output after slippage), fee estimates, and the network identifier — without reserving or committing any liquidity.","failureModes":["Invalid or unsupported token addresses return an error or empty quote","fromAmount of zero or non-numeric value causes a bad request","Taker address missing or malformed may result in a 400 error","Token pair with no liquidity route returns no quote or zero amounts","Rate limit or upstream Coinbase CDP API error returns 5xx","Missing required query parameters returns validation error"],"whenToPreferThis":"Use this endpoint when you want to compare swap routes or estimate output amounts before committing to a trade. It is the read-only price-check step in the Ozmium swap flow — call this first to evaluate pricing, then call /v1/tx/swap only when ready to execute. Prefer this over the executable swap endpoint whenever you need non-binding price discovery, route comparison, or slippage analysis without side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:47:58.191Z","isFirstParty":false}