Skip to main content
GET
Quote stream

Authorizations

Authorization
string
header
required

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

inputMint
string
required

Base58 Solana mint address.

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
outputMint
string
required

Base58 Solana mint address.

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
amount
string

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.

Pattern: ^\d+$
Example:

"1000000000"

uiAmount
number
inputDecimals
integer
Required range: 0 <= x <= 18
slippageBps
integer
default:50
Required range: 1 <= x <= 1000
intervalMs
integer
default:1000

Re-quote cadence.

Required range: 250 <= x <= 60000
maxSeconds
integer
default:240

Connection lifespan. We always close with a close event.

Required range: 1 <= x <= 240
onlyChanges
boolean
default:false

Emit only when the proceeds or the chosen route actually move.

Response

An SSE stream.

SSE frames; see the description.