How-to for developers · Trading and DeFi

The XRPL Trading Skill

In plain words

The XRPL Trading skill is a set of instructions that gives the AI assistant Claude accurate knowledge of trading on the XRP Ledger's built-in exchange, the DEX. It builds the right transaction for a trading task and hands it to the XRPL Agent Wallet skill to sign and submit.

Written by zerps in plain words, from the source linked below.
Section
Agentic Transactions

The exchange in short

The DEX runs fully on the ledger and is open to anyone, with no intermediary. Every offer is an object on the ledger. Offers are matched while transactions are processed, in the order that ledger consensus decides. Results are final in 3 to 5 seconds.

What it covers

The skill handles limit orders, cancellations, order book reads, cross-currency exchange and AMM interaction. With OfferCreate it can place limit orders, immediate-or-cancel orders, fill-or-kill orders and passive orders, and set an expiry. With OfferCancel it cancels resting offers by their sequence number. It reads the order book through book_offers and filters out offers their owner cannot fund. AMM liquidity is reached through OfferCreate, with no separate transaction type.

How it works

The skill identifies the operation and checks what is needed, such as a trust line, enough balance for fees and reserve, and an expiry in the future. It builds the transaction and runs its own checks before it asks you to approve anything. For a new offer it shows a pre-trade summary with the offer details, mid price, estimated fill and slippage. After you acknowledge, it hands the transaction to the Wallet skill, which autofills, previews, signs and submits. Then it reports whether the offer was filled, partly filled or left resting.

Defaults it follows

The skill supports Python with xrpl-py and TypeScript or JavaScript with xrpl.js, and targets Testnet by default. XRP amounts are always strings in drops, the smallest unit of XRP. The Wallet skill applies a SourceTag of 20260530 to every transaction it signs. Where the server supports it, the skill calls simulate before the summary, which costs no fee.

What it leaves to others

The skill does not create wallets, handle keys, sign or submit. It does not propose offers unprompted and does not retry automatically. Every result code that starts with tec means a fee was charged with no fill, so a retry needs your explicit instruction.

Source: xrpl.org. Read 6 December 2026.

Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.