Denne siden er kun til informasjonsformål. Enkelte tjenester og funksjoner er kanskje ikke tilgjengelige i din jurisdiksjon.

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

Ansvarsfraskrivelse
Dette innholdet leveres kun til informasjonsformål og kan omhandle produkter som ikke er tilgjengelige i din region. Det er ikke ment å utgjøre (i) investeringsrådgivning eller en investeringsanbefaling, (ii) et tilbud eller en oppfordring til å kjøpe, selge eller hold krypto/digitale aktiva, eller (iii) finansiell, regnskapsmessig, juridisk eller skattemessig rådgivning. Holding av krypto/digitale aktiva, inkludert stablecoins, innebærer en høy grad av risiko og kan svinge betydelig. Du bør nøye vurdere om trading eller holding av krypto/digitale aktiva er egnet for deg i lys av din økonomiske situasjon. Ta kontakt med din juridiske/skattemessige/investeringsrådgiver for spørsmål om dine spesifikke omstendigheter. Informasjon (inkludert markedsdata og statistisk informasjon, om noen) som fremgår av dette innlegget er kun for generelle informasjonsformål. Selv om det er utvist all rimelig aktsomhet ved utarbeidelsen av disse dataene og grafene, påtas det intet ansvar for eventuelle faktafeil eller utelatelser som er kommet til uttrykk her.

Digitale aktiva er utsatt for volatilitet og er ikke forsikret. Ikke finansiell/investeringsrådgivning. Ikke alle produkter og tjenester tilbys i alle regioner. Unntak og vilkår og betingelser gjelder.

© 2026 OKX. Denne artikkelen kan gjengis eller distribueres i sin helhet, eller utdrag på 100 ord eller mindre av denne artikkelen kan brukes, forutsatt at slik bruk er ikke-kommersiell. Enhver gjengivelse eller distribusjon av hele artikkelen må også tydelig angi: «Denne artikkelen er © 2026 OKX og brukes med tillatelse.» Tillatte utdrag må sitere navnet på artikkelen og inkludere kildehenvisning, for eksempel «Artikkelnavn, [forfatternavn hvis aktuelt], © 2026 OKX.» Noe innhold kan være generert eller assistert av verktøy for kunstig intelligens (AI). Ingen bearbeidelser eller annen bruk av denne artikkelen er tillatt.

Relaterte artikler

Se mer
thumbnail:xi-pengantar-perhitungan-opsi-margin

What is a margin ratio?

**In risk monitoring on crypto trading interfaces, a margin ratio compares eligible collateral equity with position requirements using a product-defined formula.** It shows whether collateral can cove
12. nov. 2026
liquidation

What is liquidation?

**Liquidation is the process in which a platform reduces or closes positions under its rules when an account or position no longer meets collateral or other risk requirements.** It can reduce part of
12. nov. 2026
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](#
12. nov. 2026
Cryptocurrency Mining Revolutionized: How Bittensor Combines Blockchain and AI

What is cryptocurrency mining?

Cryptocurrency mining is the process of using computer hardware to perform hash calculations in a blockchain network that uses Proof of Work (PoW), helping record transactions, produce new blocks and
14. apr. 2026
Nybegynnere
Best of Web3 thumb

What is a block reward?

A block reward is compensation available under network rules for participating in valid block production. It incentivizes equipment, computing power or other resources that support transaction record
21. nov. 2025
Middels
Open Interest article Learn thumb

What is open interest?

Open interest (OI) is the size of derivative contracts not yet closed or settled at a particular time. In crypto futures and perpetual markets, it describes outstanding contracts, not how much tradin
9. juni 2025
Middels
Se mer