Questa pagina è solo a scopo informativo. Alcuni servizi e funzioni potrebbero non essere disponibili nella tua giurisdizione.

What is an immediate-or-cancel (IOC) order?

An immediate-or-cancel (IOC) order requires the quantity currently available to fill immediately, with any unfilled remainder canceled. In order-book-based crypto markets, the order book records unfilled buy and sell quotes and their quantities. IOC attempts to trade against existing quotes without leaving a remainder waiting.

How does IOC work?

IOC restricts how long an order may wait; a limit order restricts acceptable execution prices. They can be combined: submitting an IOC limit order specifies both price and quantity, and the system immediately matches eligible quotes before canceling the unfilled portion.

A buy order can execute only at the limit or below; a sell order only at the limit or above. If eligible quoted quantity is sufficient, the entire order may fill. If insufficient, only part fills. If there are no eligible quotes, the whole order is canceled.

For example, suppose an IOC limit order to buy a token has a price of 101 USDT and a quantity of 10 units, with these sell orders currently available. USDT is the quote asset. The figures are illustrative, assuming the order passes validation and quotes remain unchanged during execution.

Ask price (USDT) Executable quantity (units)
100 3
101 4
102 5

The system first buys 3 units at 100, then 4 at 101, filling 7 units in total. The price of 102 exceeds the buy limit and cannot be matched, so the remaining 3 units are canceled immediately.

Only the 3 unfilled units are canceled; the 7 executed units are not reversed. Their trade value is 100 × 3 + 101 × 4 = 704 USDT, before fees.

How does IOC differ from a regular limit order and FOK?

With identical prices and quantities, the differences are whether partial fills are accepted and whether unfilled quantity continues waiting.

A regular good-till-canceled limit order can fill partially and leave the remainder in the book. This validity setting is commonly called GTC (good till canceled), meaning it remains valid until canceled, and is the default for regular limit orders on OKX. IOC also accepts partial fills but leaves no remainder. FOK, or fill or kill, requires immediate execution of the full quantity; if insufficient quantity is available, the whole order is canceled.

In the earlier example of buying 10 units with a limit of 101, only 7 units are available within the limit. The three settings produce different results:

Setting Quantity filled now Treatment of unfilled quantity
Regular GTC limit order 7 units Remaining 3 wait in the book at the limit of 101
IOC limit order 7 units Remaining 3 canceled immediately
FOK limit order 0 units Cannot immediately buy all 10; entire order canceled

“Immediate” in IOC therefore does not mean the full buy or sell quantity must execute. It means there is no subsequent waiting stage for a fill.

How are fees charged on IOC executions?

In the order-book trading described above, IOC accepts existing quotes, making its execution role taker. The filled portion incurs the applicable taker rate. Actual rates and calculation methods depend on the product and account.

Canceled, unfilled quantity does not incur execution-based trading fees. In the example, fees are calculated on the 7 executed units, not on all 10 units originally requested.

Frequently asked questions

How does IOC differ from a market order?

IOC specifies whether unfilled quantity may continue waiting. A market order specifies execution against currently available quotes without a trader-set limit. They describe different requirements.

For example, the earlier IOC limit buy order expressly cannot execute above 101. A market order has no such trader-set limit, but may still be subject to platform price protection. Treatment of a market order’s unfilled portion depends on the product’s execution rules.

Explore FOK orders, limit orders and market orders, or return to the crypto glossary.

References

Disclaimer
Questo contenuto è fornito esclusivamente a scopo informativo e potrebbe riguardare prodotti non disponibili nella tua area geografica. Non ha lo scopo di fornire (i) consulenza in materia di investimenti o una raccomandazione di investimento; (ii) un'offerta o una sollecitazione ad acquistare, vendere o detenere criptovalute/asset digitali; o (iii) consulenza finanziaria, contabile, legale o fiscale. La detenzione di criptovalute/asset digitali, comprese le stablecoin, comporta un elevato grado di rischio e può essere soggetta a notevoli fluttuazioni. Dovresti valutare attentamente se il trading o la detenzione di criptovalute/asset digitali siano adatti a te, alla luce della tua situazione finanziaria. Contatta il tuo consulente legale, fiscale o finanziario per eventuali domande sulla tua situazione specifica. Le informazioni (inclusi i dati di mercato e le informazioni statistiche, se presenti) che appaiono in questo post sono solo a scopo informativo generale. Sebbene sia stata prestata la massima cura nella preparazione di questi dati e grafici, non si accetta alcuna responsabilità per eventuali errori di fatto o omissioni in essi contenuti.

Gli asset digitali sono soggetti a volatilità e non sono assicurati. Non costituisce consulenza finanziaria o in materia di investimenti. Non tutti i prodotti e servizi sono offerti in tutte le regioni. Si applicano esclusioni e termini e condizioni specifici.

© 2026 OKX. Questo articolo può essere riprodotto o distribuito nella sua interezza, o possono essere utilizzati estratti di 100 parole o meno di questo articolo, a condizione che tale uso non sia commerciale. Qualsiasi riproduzione o distribuzione dell'intero articolo deve inoltre indicare in modo ben visibile: "Questo articolo è © 2026 OKX e viene utilizzato con autorizzazione". Gli estratti consentiti devono citare il nome dell'articolo e includere l'attribuzione, ad esempio "Nome articolo, [nome dell'autore se applicabile], © 2026 OKX". Alcuni contenuti possono essere generati o assistiti da strumenti di intelligenza artificiale (IA). Non sono consentite opere derivate né altri utilizzi di questo articolo.

Articoli correlati

Visualizza altro
crypto-glossary-cover-v5.contentful

Crypto Glossary A–Z

Explore key crypto, blockchain, and trading terms through concise definitions, organized alphabetically for quick reference. [A](#a) · [B](#b) · [C](#c) · [D](#d) · [E](#e) · [F](#f) · [G](#g) · [H](#
25 nov 2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/short-position

What is a short position?

**A short position is a holding created by selling borrowed assets or selling to open a contract position that has not yet been closed by buying back.** Shorting borrowed assets requires repurchasing
25 nov 2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/long-position

What is a long position?

**A long position is a holding created by buying and retaining an asset, or by buying to open a contract position that has not yet been closed by selling.** When the asset is sold or the contract posi
25 nov 2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/crypto-collateral

What is collateral?

**Collateral is an asset pledged to secure repayment of borrowing or fulfillment of trading obligations.** In crypto borrowing and margin accounts, a platform or protocol continually assesses how much
25 nov 2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/margin-trading

What is spot margin trading?

**Spot margin trading uses assets owned in an account as collateral to borrow quote or base assets for spot purchases and sales.** It still exchanges actual spot assets, but adds a borrowing obligatio
25 nov 2026
trading-foundations-20-thumbnails-tricolor-whitespace-v4-2026-11-25/price-impact

What is price impact?

**Price impact occurs when an order consumes currently available buying or selling quantities, causing its average execution price or the quotes available after the trade to deviate from a pre-trade r
25 nov 2026
Visualizza altro