EN

Placing an offer

5 minDifficulty Checked 2026-11-10
Key takeaways
  • An open offer locks 0.2 XRP of owner reserve until it is removed.
  • Placing an offer does not lock the asset you are selling.
  • Flags change how an offer fills: sell, passive, immediate or cancel, fill or kill.

Placing an offer is like pinning a note to a board: "Selling 50 FOO for 500 XRP." The note costs a small deposit while it hangs there. On the ledger that deposit is 0.2 XRP of reserve. You get it back when the note comes down.

The note does not lock your FOO. You can still spend it. You can pin several notes that sell the same FOO. If someone takes a note and you no longer have the FOO, that note fills only as far as your balance goes. The rest is canceled.

You can ask for different handling:

  • Normal. Fill what matches now. The rest waits.
  • Immediate or cancel. Fill what matches now. Drop the rest.
  • Fill or kill. Fill everything now, or do nothing.
  • Passive. Do not take offers at exactly your rate. Wait in the book beside them.

You can also set an expiry time. After it passes, the offer can no longer fill.

A note comes down when:

  • Someone fills it completely.
  • You cancel it.
  • You place a new offer that would trade against your own old one.
  • The ledger finds it expired or without funds while processing another trade.

Dead offers are not swept up on a timer. An expired or unfunded offer stays in the ledger, and keeps its reserve locked, until some transaction touches it.

Check yourself3 questions
1. You place an offer to sell 500 FOO but hold 50 FOO. What happens?
2. Which flag stops an offer from ever resting in the order book?
3. Your trust line limit for FOO is 100. Can an offer buy you 300 FOO?
Sources
Next lessonAuto-bridging and tick size3 min