Skip to main content
POST /api/v1/spot/exit-check
The headline price of a token tells you what the first token sells for. This tells you what the last one does. It quotes several fractions of your position and reports the realized rate at each size, so you can see where the price stops being true — and what size you can actually get out at. Requires the md.read scope. Costs one per ladder rung against the quote budget: a 5-rung ladder costs 5.

Body

Pass a small first rung. Impact is measured against the smallest rung you ask for, so a ladder starting at 0.1 measures against a tenth of your bag and understates the true cost of leaving. [0.01, 0.1, 0.25, 0.5, 1] gives a much tighter baseline — and the response tells you when yours is too coarse, via the coarse_baseline warning.

Request

Response

Abridged — the per-rung quote object is omitted here:
Read the realizedImpactPct column top to bottom. Selling a quarter of this position costs 1.7%; selling all of it costs 6.3%. maxCleanFraction: 0.25 is the actionable number — exit in quarters, not in one go. No single headline quote would have shown you that.

summary

Verdicts

rungs[]

The baseline rung’s realizedImpactPct is 0 by definition, not by measurement. Don’t read it as “this size is cheap to exit” — it is simply the reference every other rung is compared against.

Warning codes

A thin book that stops routing at size is data, not an error — you get a 200 with a no_route verdict and the rungs that did fill. A non-2xx means we could not produce the ladder at all.