Slippage estimate
xrpl_slippageSlippage and average price for buying an amount of base currency. When to use: Before placing a market-style trade, to size it against available depth and to see whether the CLOB or the AMM pool is the cheaper venue. Prefer another tool: It is an estimate, not a quote, and it does not split an amount across venues or route through other pairs. To read pool reserves, use the amm page. Example: xrpl_slippage {"base":"XRP","quote":"USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh","amount":"1000"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base currency: `XRP` (no issuer) or `CODE.issuer` with a valid classic-address issuer (e.g. `USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh`) | |
| depth | No | Levels per side: a positive integer, rounded up to 10, 50, 100 or 200 (max 200) | |
| quote | Yes | Quote currency: `XRP` (no issuer) or `CODE.issuer` with a valid classic-address issuer (e.g. `USD.rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh`) | |
| amount | Yes | Positive decimal amount of base to buy |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| meta | Yes | ||
| side | Yes | ||
| depth | Yes | ||
| quote | Yes | ||
| amount | Yes | Decimal string | |
| filled | Yes | Decimal string | |
| venues | Yes | CLOB vs AMM comparison for the same amount; no routing split | |
| partial | Yes | ||
| avg_price | Yes | ||
| best_price | Yes | ||
| slippage_pct | Yes | Percent, null when liquidity is insufficient | |
| transfer_fee | Yes | ||
| avg_price_after_fees | Yes | ||
| transfer_fee_applied | Yes | ||
| insufficient_liquidity | Yes |