# XRPL Data Desk – Route Pricer

> XRPL Data Desk – Route Pricer is a paid API for AI agents from data.azeronyx.com, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-31).

Calculates optimal routing and pricing for a buy or sell trade on an XRP Ledger DEX market, given a side, amount, and optional slippage tolerance.

## Facts

- Endpoint: POST https://data.azeronyx.com/v1/route?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xrpl-data-desk-route-pricer-5205e384
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BwAiIq-m_u6JNtHR55ScV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability xrpl-data-desk-route-pricer-5205e384 -d '<json body>'
```

Example prompt: I want to buy 500 XRP worth of SOLO on the XRP Ledger DEX — can you get me a route quote with a max slippage of 100 basis points?

## When to prefer this

Use this endpoint when you need a real-time route and price quote for an XRP Ledger DEX trade before execution, especially when slippage control matters. It is the right choice for XRPL-native token pairs rather than centralized exchange data or off-chain price feeds.

## Known failure modes

- Unknown or invalid market pair returns a 400 error or empty route
- Amount too large to fill within slippage tolerance results in a rejection or partial-fill warning
- Invalid 'side' value (not 'buy' or 'sell') causes a validation error
- Max slippage above 500 bps is rejected by the API
- Payment failure (insufficient XRP for per-call fee) returns a 402 response
- Market with no liquidity returns no viable route

## How this service works

Live XRP Ledger market data for AI agents, paid per call in XRP. Settled on the XRP Ledger itself; every endpoint independently audited. Information, not advice.

## Output

Returns a route object containing the optimal execution path across XRPL order books, the quoted price, expected amount received or spent, estimated slippage, and any intermediate routing steps needed to fill the specified order size.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "side",
  "amount"
 ],
 "properties": {
  "side": {
   "type": "string",
   "description": "buy or sell the base"
  },
  "unit": {
   "type": "string",
   "description": "base or quote (default base)"
  },
  "amount": {
   "type": "string",
   "description": "how much, in the unit given"
  },
  "market": {
   "type": "string",
   "description": "an XRP Ledger market as BASE/QUOTE (see /v1/markets)"
  },
  "max_slippage_bps": {
   "type": "string",
   "description": "the worst price allowed, in bps past the mid (default 50, at most 500)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "See https://data.azeronyx.com/v1/sample?path=/v1/route for a recent example",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xrpl-data-desk-route-pricer-5205e384/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.azeronyx.com](https://www.zero.xyz/host/data.azeronyx.com/llms.txt)
