Term · Trading and DeFi

Immediate or Cancel

In plain words

Immediate or Cancel is an option for an offer to trade on the XRP Ledger. The offer trades only against matching offers that exist when the transaction is processed, and it is not placed into the ledger.

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

In plain words

An Immediate or Cancel offer does not wait in the order book. It trades up to the amount that matches existing offers at the time the transaction is processed, and that is all.

Where it is set

You choose it with the tfImmediateOrCancel flag on an OfferCreate transaction. A flag is a switch that is either on or off.

Checking the result

An OfferCreate transaction may or may not create an object in the ledger. That depends on how much was matched and on flags such as tfImmediateOrCancel. To see whether a new Offer entry was added to the ledger's order books, look in the result for a CreatedNode entry whose LedgerEntryType is Offer.

Source: xrpl.org, xrpl.org, 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.