01What
Shows everything about an AMM pool: how much of each asset it holds, the LP token, the trading fee, the auction slot holder, and current fee votes.
02Why you'd use it
This is your dashboard before any AMM action — the pool's ratio is its price, and the balances tell you how big a trade it can absorb.
03How
- 1Enter the pair: Asset 1 and Asset 2 currencies with issuers (blank for XRP).
- 2Run it and read amount and amount2 — divide one by the other for the pool's implied price.
- 3Note lp_token (needed for auction bids), trading_fee, and auction_slot.
Watch out
- XRP amounts in the response are in drops — divide by 1,000,000.
- The trading fee is in units of 0.001%, so 500 means 0.5%.
- If the query returns 'no AMM exists', the pair has no pool yet — you could create one.
For example
Before depositing, you check the XRP/USD pool: 50,000 XRP against 26,000 USD implies a 0.52 price, matching the order book. The pool is honest — you size your deposit to match that ratio.