Skip to main content
GET
Stream a quote (WebSocket or SSE)
Guide: Quote stream. The quote in every frame is the GET /quote body.

Authorizations

x-api-key
string
header
required

Query Parameters

inputMint
string
required

Mint you spend (base58)

Example:

"So11111111111111111111111111111111111111112"

outputMint
string
required

Mint you receive (base58). Equal to inputMint asks for a profitable cycle (404 no_cycle when none)

Example:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

amount
string
required

u64 in base units: the input for ExactIn, the output for ExactOut. 0 is 400 zero_amount

Pattern: ^[0-9]+$
Example:

"100000000"

swapMode
enum<string>
default:ExactIn

ExactIn or ExactOut (exactIn / exactOut also accepted)

Available options:
ExactIn,
ExactOut,
exactIn,
exactOut
slippageBps
integer
default:50

Tolerance in basis points, 0–10000; above 10000 is 400

Required range: 0 <= x <= 10000
maxHops
integer
default:4

Most hops per route, 1–4 (0 counts as 1). It can only tighten the operator's ROUTER_MAX_HOPS (default 4)

Required range: 0 <= x <= 255
onlyDirectRoutes
boolean
default:false

true is maxHops=1: a single pool

dexes
string

Only these venues: comma-separated dex labels or aliases from /venues, or the parameter repeated. Alias includeDex (send one of the two names, not both). Unknown labels next to known ones are ignored; only unknown labels is 400

Example:

"Raydium CLMM,Meteora DLMM"

excludeDexes
string

Never these venues, same format as dexes; unknown labels are ignored. Alias excludeDex

Example:

"PumpSwap"

allowSplit
boolean
default:false

Allow two routes in one transaction (two swap instructions, see swapInstructions). Served only when it beats the best single route by at least 1 bps and fits the transaction; never for ExactOut, cycles or with a platform fee. Send it only if you sign every entry of swapInstructions

platformFeeBps
integer
default:0

Your integrator fee in basis points, priced into inAmount/outAmount; above 1000 is capped at 1000 (platformFee.feeBps says what was priced). Build with feeAccount. Turns off allowSplit

Required range: 0 <= x <= 65535
feeOnInput
boolean

Which mint the platform fee is taken in: true the input, false the output. Default: the input when inputMint is SOL, USDC, USDT or USD1, otherwise the output. ExactOut always takes it on the input (false is 400)

reserveKeys
integer
default:0

Account keys you will add to the transaction beyond the build's; only a route that still fits 64 keys with them is served

Required range: 0 <= x <= 255
minIntervalMs
integer

The least time between two quotes of this subscription, in ms (150 to 5000; below 150 is 150)

Required range: x >= 0

Response

WebSocket upgrade; frames as described above