Exit check
Quotes several fractions of a position and reports the realized rate at each size.
The headline price of a token tells you what the FIRST token sells for; this tells you what the LAST one does. Read rungs[].realizedImpactPct top to bottom, and treat summary.maxCleanFraction as the actionable number.
Costs ONE PER LADDER RUNG against the 300/min quote budget.
A thin book that stops routing at size is data, not an error: you get a 200 with a no_route verdict. A non-2xx means the ladder could not be produced at all.
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.
Body
The token you are exiting.
^[1-9A-HJ-NP-Za-km-z]{32,44}$What you are exiting into. Must differ from mint.
^[1-9A-HJ-NP-Za-km-z]{32,44}$Bag size. Required unless you pass uiAmount + decimals.
^\d+$"1000000000"
0 <= x <= 180 <= x <= 181 <= x <= 1000Fractions of the position to quote. Impact is measured against the SMALLEST rung, so pass a small first rung — [0.01, 0.1, 0.25, 0.5, 1] gives a much tighter baseline than the default, and the response warns you via coarse_baseline when yours is too coarse.
1 - 8 elementsx <= 1Response
The ladder, including any rungs that had no route.
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"
Self-describing unit notes, safe to ignore once you've read them once.
