Quote stream
Re-quotes one pair on an interval and streams each result as Server-Sent Events. Costs ONE PER TICK against the 300/min quote budget.
SERVER-SIDE ONLY: authentication is the Authorization header, and the browser EventSource API cannot set headers — which is correct, because your key is a secret. Consume this from your backend and relay it over your own transport.
Events: open (echoed config) → quote → close. Also error (the stream CONTINUES) and throttled (budget spent; ticks resume when the window rolls). : hb comment lines every 20s keep intermediaries from idling the connection out.
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}$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"
0 <= x <= 181 <= x <= 1000Re-quote cadence.
250 <= x <= 60000Connection lifespan. We always close with a close event.
1 <= x <= 240Emit only when the proceeds or the chosen route actually move.
Response
An SSE stream.
SSE frames; see the description.
