XRPL stablecoin peg
xrpl_metrics_pegHow far a registry stablecoin trades from its peg on the XRP Ledger DEX: the deviation of each price route, their median and a status. When to use: To check, from the XRP Ledger's own order books and AMM pools, how far a registry stablecoin trades from its peg against another registry coin, and how much funded depth sits near the peg. Prefer another tool: To check that an issued currency is the canonical registry coin, or to read its issuer posture (use /v1/xrpl/stablecoin/{asset}); for an asset outside the registry, which this route refuses, read its order book (/v1/xrpl/orderbook) or its AMM pool (/v1/xrpl/amm/{a}/{b}). Example: xrpl_metrics_peg {"asset":"524C555344000000000000000000000000000000.rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De"} Paid: 0.04356 USDC or 0.0363 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.03 EUR-denominated units (approx 33 calls per bundle) or 0.036 USD-denominated units (approx 22 calls per bundle).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"asset": "<asset>"
},
"name": "xrpl_metrics_peg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | XRPL stablecoin of the registry whose peg is measured, by its canonical code and issuer: `XRP`, or `CODE.issuer`: `CODE` is a 3-character standard code or 40 hexadecimal digits, and `issuer` is a classic XRPL address. Standard codes are case-sensitive: `usd` and `USD` are different tokens, so send the exact code. A standard code uses letters, digits or `?!@#$%^&*<>(){}[]|` and is never `XRP`; percent-encode the symbols in a URL (for example `%3F` for `?`). A 40-hex code is read in any case, and the 40-hex form of a standard code means that code. | |
| against | No | USD stablecoin of the registry, other than asset, it is priced in; omit for the peg default (the other USD registry coin for a USD asset, RLUSD for an EUR asset): `XRP`, or `CODE.issuer`: `CODE` is a 3-character standard code or 40 hexadecimal digits, and `issuer` is a classic XRPL address. Standard codes are case-sensitive: `usd` and `USD` are different tokens, so send the exact code. A standard code uses letters, digits or `?!@#$%^&*<>(){}[]|` and is never `XRP`; percent-encode the symbols in a URL (for example `%3F` for `?`). A 40-hex code is read in any case, and the 40-hex form of a standard code means that code. |