Exact XRPL AMM swap quotes, with price impact.

Constant-product math against the live pool state: how many tokens a given XRP amount buys, the spot vs effective price, and the exact price impact — what an agent needs before committing to a trade.

MCP tool: quote_amm Price: $0.001 / call

Parameters

ParamDescription
issuerXRPL issuer address (r...)
currency3-char code or 40-char hex
xrp_inXRP amount to quote (default 10)

Example

Call (MCP tools/call arguments):

{
  "issuer": "rsoLo2S1kiGeCcn6hCUXVrCpGMWLrRrLZz",
  "currency": "534F4C4F00000000000000000000000000000000",
  "xrp_in": 100
}

Result:

{
  "tokens_out": 7372.6979,
  "spot_price_xrp_per_token": 0.0134256,
  "price_impact_pct": 1.0276,
  "pool_xrp": 39116.73,
  "trading_fee_pct": 0.766
}

FAQ

How is price impact calculated for an XRPL AMM?

XLS-30 AMMs are constant-product pools (x·y=k). The quote applies the pool's trading fee to the input, computes output from the invariant, and reports the percentage difference between the effective price and the pre-trade spot price.

Related tools

resolve_assetResolve an XRPL token's real cross-chain identity: is it the canonical asset (legitimately deployed across chains) or an impostor verify_priceValidate an XRPL token's price against its canonical cross-chain value: is a stablecoin still pegged, has the price diverged from token_holdersHolder distribution and concentration risk for any XRP Ledger token: holder count, top-1 and top-10 share of circulating supply, A get_new_poolsFeed of newly created XRPL AMM pools with initial liquidity, trading fee, and safety-signal scores from launch-time screening. explore_tokensA DexScreener-style discovery feed for the XRP Ledger: rank 160,000+ tokens by volume, market cap, holders or trustlines, search b

Browse the full tool suite →

Connect via MCP at https://cerberusindex.com/mcp — see the quickstart. Payment is automatic for x402-aware clients. Verdicts are informational risk signals, not financial advice.