EN

Order books and offers

4 minDifficulty Checked 2026-11-10
Key takeaways
  • The DEX is part of the ledger and has run since 2012.
  • A trade is an offer: a limit order for one asset against another.
  • Matching offers fill best rate first. The unfilled rest waits in the order book.

Most crypto exchanges are companies. You send them your coins, and they keep the list of who wants to buy and sell.

The XRP Ledger has that list built in. It is called the decentralized exchange, or DEX. It has run since the ledger started in 2012. No company holds your coins while you trade. They stay in your account until a trade happens.

A trade is called an offer. An offer says two things: what you want, and the most you will give for it. For example: "I want 100 FOO. I will pay up to 1,000 XRP."

The ledger looks for people offering the other side of that trade. It takes the best deals first. Three things can happen:

  • Full fill. Enough matching offers exist. You get your 100 FOO at once.
  • Partial fill. Only 22 FOO are for sale at your rate. You get 22 now. The rest of your offer waits in line.
  • No fill. Nothing matches. Your whole offer waits in line.

The line is called an order book. There is one for each pair of assets. Anyone can read it.

A waiting offer can be filled later by someone else's trade. You can cancel it at any time.

Anyone can make a token with any name and sell it on the DEX. Two tokens can share the code "USD" and come from different issuers. Check the issuer before you buy.

Check yourself3 questions
1. What is an offer on the XRP Ledger?
2. Tran offers to buy 100 FOO. Only 22 FOO are for sale at his rate. What happens?
3. Who receives the trading fee when two offers match on the DEX?
Sources
Next lessonPlacing an offer5 min