Spot quote
One normalized quote for one size, off OceanX’s own router. Costs 1 against the 300/min quote budget.
Read priceImpactPct as a PERCENT, check impactMeasurable before showing it, and check clamped before treating outAmount as proceeds.
Authorizations
An OceanX API key, created in the app under Settings → Developer API. Send it as Authorization: Bearer ox_live_…. These endpoints require the md.read scope, which is on every key by default.
Query Parameters
Base58 Solana mint address.
^[1-9A-HJ-NP-Za-km-z]{32,44}$Base58 Solana mint address.
^[1-9A-HJ-NP-Za-km-z]{32,44}$Required unless you pass uiAmount + inputDecimals.
Atomic (base-unit) amount as a decimal integer string. A string, not a number, because a large 9-decimal balance exceeds Number.MAX_SAFE_INTEGER and would be corrupted by JSON float parsing.
^\d+$"1000000000"
Human units. Requires inputDecimals.
0 <= x <= 18Adds outUiAmount and minOutUiAmount to the response.
0 <= x <= 181 <= x <= 1000Comma-separated venue labels to restrict routing to.
Comma-separated pool addresses to restrict routing to.
1 <= x <= 4Response
A quote.
Atomic (base-unit) amount as a decimal integer string. A string, not a number, because a large 9-decimal balance exceeds Number.MAX_SAFE_INTEGER and would be corrupted by JSON float parsing.
^\d+$"1000000000"
Atomic (base-unit) amount as a decimal integer string. A string, not a number, because a large 9-decimal balance exceeds Number.MAX_SAFE_INTEGER and would be corrupted by JSON float parsing.
^\d+$"1000000000"
Worst-case output after slippageBps, as enforced on-chain.
^\d+$"1000000000"
1 <= x <= 1000False when impact sits inside the engine's noise floor (~0.1%), where the figure is a cached mid rather than a measurement. Render '—' rather than the number.
True when this is the router's out-of-liquidity floor price rather than an executable fill. Returned with HTTP 200. NEVER present a clamped quote as proceeds.
"raptor"
Price impact in PERCENT (1.5 = 1.5%). NOTE: Jupiter's equivalent field is fractional (0.015), so code ported from Jupiter is off by 100x — in the direction that makes an untradeable position look fine.
1.5
Router compute time in milliseconds, typically 1–2.
Upstream USD notional when available; null on many pairs. Don't depend on it.
Quote id. Include it if you report a bad route to us.
