Get an indicative ASTEROID/XRP AMM estimate
get_swap_quoteIndicative bidirectional estimate against the live ASTEROID/XRP AMM pool, in either direction and for an exact input or an exact output. Returns the amount in and out, the pool fee taken, spot and effective price, price impact, pool utilisation and optional slippage bounds, all as exact decimal strings at a stated validated ledger index. INDICATIVE ONLY: it is not executable, it models only the single AMM pool (no order books, no path-finding, no network or transfer fees), and this service never signs, submits or prepares a transaction and never accepts a key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Whether `amount` is the exact input paid or the exact output required. | exact-in |
| amount | Yes | Positive exact decimal string, in units of the asset implied by `side`. | |
| direction | Yes | Which asset is paid in and which is received. | |
| slippageTolerancePct | No | Optional tolerance between 0 and 50, used only to derive a bound. |