Exit liquidity
exit_liquidityWhat it costs to exit a position at a given size, and the largest size that clears a slippage ceiling. Uses an executable venue quote when one exists (basis: quoted) and a constant-product model otherwise (basis: modelled), shows the gap between the two, and returns null rather than zero when an input is unavailable. Returns RYO's public response envelope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token symbol to assess, e.g. SOL. | |
| size_usd | No | Position size in USD to price an exit for. Omit to receive the ceilings and cost curve without a specific quote. | |
| max_slippage_pct | No | Acceptable price impact when exiting, in percent. | |
| participation_pct | No | Share of 24h volume you are willing to be while exiting patiently. Used for the time-to-exit estimate. |