Tämä sivu on vain tiedoksi. Tietyt palvelut ja ominaisuudet eivät ehkä ole saatavilla omalla alueellasi.

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

Vastuuvapauslauseke
Tämä sisältö tarjotaan ainoastaan tiedotustarkoituksessa ja saattaa käsitellä tuotteita, jotka eivät ole käytettävissä alueellasi. Sen tarkoituksena ei ole tarjota (i) sijoitusneuvontaa tai sijoitussuositusta; (ii) tarjousta tai kehotusta ostaa, myydä tai pitää krypto-/digitaalisia varoja tai (iii) taloudellista, kirjanpidollista, oikeudellista tai verotuksellista neuvontaa. Krypto-/digitaalisten varojen omistuksiin, mukaan lukien vakaakolikot, liittyy suuri riski, ja niiden arvo voi vaihdella voimakkaasti. Sinun tulee harkita huolellisesti, sopiiko krypto-/digitaalisten varojen treidaus tai omistus sinulle taloudellisen tilanteesi huomioon ottaen. Ota yhteyttä oikeudelliseen/verotukselliseen/sijoitusalan ammattilaiseen omaan tilanteeseesi liittyvissä kysymyksissä. Tässä julkaisussa esiintyvät tiedot (mukaan lukien mahdolliset markkinatiedot ja tilastotiedot) on tarkoitettu ainoastaan yleiseen tiedotustarkoitukseen. Vaikka näiden tietojen ja kaavioiden laadinnassa on noudatettu kaikkea kohtuullista huolellisuutta, mitään vastuuta ei oteta tässä esitetyistä asiavirheistä tai puutteista.

Digitaalisiin varoihin liittyy volatiliteettia, eikä niitä ole vakuutettu. Ei ole taloudellista neuvontaa tai sijoitusneuvontaa. Kaikkia tuotteita ja palveluita ei tarjota kaikilla alueilla. Poikkeukset ja käyttöehdot pätevät.

© 2026 OKX. Tätä artikkelia saa jäljentää tai jakaa kokonaisuudessaan, tai siitä saa käyttää enintään 100 sanan katkelmia, edellyttäen että tällainen käyttö on ei-kaupallista. Koko artikkelin jäljentämisessä tai jakelussa on myös näkyvästi mainittava: ”Tämä artikkeli on © 2026 OKX ja sitä käytetään luvalla.” Sallituissa katkelmissa on mainittava artikkelin nimi ja tekijätiedot, esimerkiksi ”Artikkelin nimi, [tekijän nimi tarvittaessa], © 2026 OKX.” Osa sisällöstä saattaa olla tekoälyn (AI) työkalujen tuottamaa tai avustamaa. Tästä artikkelista ei sallita johdannaisteoksia eikä muuta käyttöä.

Aiheeseen liittyvät artikkelit

Katso lisää
Generic charts thumbnail

What is a fill-or-kill (FOK) order?

**Fill or kill (FOK) is an execution condition requiring the entire order to fill immediately or be canceled in full.** It accepts no partial fill and leaves no unfilled quantity waiting for another o
12.11.2026
thumbnail:bullish-calendar-spread-strategy

What is a maker?

**A maker is the party that first provides a quote in an order book and later trades when another order matches it.** An order book records unfilled buy and sell quotes and their quantities. In order-
12.11.2026
trade-academy-beginner-4

What is a taker?

**A taker is the party that immediately matches and trades against a quote already in the order book.** The order book records unfilled buy and sell quotes and their quantities. A taker accepts one of
12.11.2026
Options trading generic thumb

What is the bid-ask spread?

**The bid-ask spread is the difference between the lowest ask and highest bid in the same market at the same time.** In an order-book-based crypto market, it describes the distance between the closest
12.11.2026
Forward Contracts vs. Futures Contracts What Are the Differences

What is a post-only order?

**A post-only order adds a requirement to a limit order: post a quote without immediately taking an existing one.** In order-book-based crypto spot and derivatives markets, the order book records unfi
12.11.2026
thumbnail:weekly-report-of-okx-in-5-16-5-22

What is a trigger order?

**A trigger order submits an actual buy or sell order to the trading system only after a preset condition is met.** In crypto trading, the condition is often a price reaching a particular level. The t
12.11.2026
Katso lisää