By Staff, Swap Desk Order TypesBinanceKrakenGemini

Fill or Kill vs Immediate or Cancel in Crypto: Venue Docs

IOC fills what it can and cancels the rest; FOK fills everything or nothing. What Binance, Kraken, Coinbase and Gemini API docs say, side by side.

Fill or kill vs immediate or cancel in crypto comes down to one question: what happens to the part that cannot match. An immediate-or-cancel (IOC) order fills whatever it can the moment it arrives and cancels the rest. A fill-or-kill (FOK) order fills its whole quantity at once or cancels entirely. Neither rests on the book.

This is an evergreen explainer with no news peg. This desk read the four venue documents below on 23 October 2026; operators rewrite API references without notice.

Fill or kill vs immediate or cancel: what each crypto venue’s docs say

Both are time-in-force values, the field that tells a matching engine how long an order may live. The usual default is good-til-cancelled (GTC), which rests until filled or cancelled. IOC and FOK live for one matching pass.

Venue (API doc read)How it is setUnfilled partHow the cancel is reported
Binance spotTime-in-force enum: GTC, IOC, FOKIOC “will try to fill the order as much as it can before the order expires”; FOK expires “if the full order cannot be filled”Status EXPIRED; reasons UNFILLED_IOC_QUANTITY_EXPIRED, UNFILLED_FOK_ORDER_EXPIRED
Kraken spot AddOrdertimeinforce: GTC (default), IOC, GTD, FOKIOC cancels “any remaining balance”; FOK fills in full “or cancel it entirely”Not stated in the reference read
Coinbase Advanced TradeInside the order_configuration key nameNo prose definition on the page readNot stated in the reference read
Geminioptions array, at most one valueIOC cancels the remainder so none is added to the book; FOK fills entirely or cancels"is_cancelled": true

Binance. The spot API enums file in Binance’s own GitHub docs repository defines order status EXPIRED as an order cancelled under its type’s rules, giving “LIMIT FOK orders with no fill, LIMIT IOC or MARKET orders that partially fill” as examples. The same file lists INSUFFICIENT_LIQUIDITY among its reasons.

Kraken. The AddOrder reference covers the spot endpoint only; nothing here applies to Kraken Futures. It adds GTD, which must coincide with an expiretm that can be set up to one month ahead.

Coinbase. On Advanced Trade’s Create Order reference, time in force is part of the configuration key: market_market_ioc, market_market_fok, limit_limit_gtc, limit_limit_gtd, limit_limit_fok. Among the keys shown in that example, a limit IOC appears as sor_limit_ioc. The text we could open defines none of them in prose, so this post attributes no behaviour to Coinbase.

Gemini. The Create New Order page says sending more than one option, or an unsupported one, gets the order rejected, and no options apply to stop-limit orders.

A worked partial fill (illustrative numbers)

Quantities here are invented for the arithmetic, not taken from any venue. A buyer sends a limit order for 10 units of a token. The book holds 4 units at or below the limit price.

  • IOC: 4 units fill. The remaining 6 are cancelled. On Binance the order ends EXPIRED with 4 executed; on Gemini the response carries "is_cancelled": true beside the 4-unit fill.
  • FOK: 0 units fill. All 10 are cancelled, because the full quantity was not there.
  • GTC limit: 4 units fill and 6 rest on the book as a maker order.

If the book had held 10 units or more, IOC and FOK would produce the same result.

What about market orders?

Binance’s status definition covers market orders that partially fill, so a thin book ends those the IOC way. Coinbase’s keys include market IOC and market FOK variants. Gemini’s page says its API “doesn’t directly support market orders” and recommends IOC with an aggressive limit price, yet its type enum also lists exchange market. This post reports both lines and asserts neither.

Is IOC or FOK a taker order?

Per Gemini’s wording, both “only remove liquidity”, which makes every fill a taker fill. That is the opposite of maker-or-cancel, which Gemini notes “some other exchanges call” post-only. The fee consequence is set out in our explainer on maker and taker fees, and the rest-or-nothing instruction in what a post-only order is. Gemini’s rates sit in the ActiveTrader fee schedule review.

All four pages read are API documents. Whether a venue’s app or web screen offers IOC or FOK was not read and is not claimed.

IOC vs FOK order FAQ

What is the difference between fill or kill and immediate or cancel?

Both execute only on arrival and never rest on the book. The difference is the partial fill. Immediate-or-cancel keeps whatever matched and cancels the remainder. Fill-or-kill accepts no partial result: either the whole quantity matches at once or nothing does. On Gemini both options only remove liquidity, so neither fills as a maker.

What is an IOC order in crypto?

An IOC order is a time-in-force instruction that tells the matching engine to fill as much as it can immediately and cancel the rest. Kraken’s spot AddOrder reference says it executes the amount possible and cancels any remaining balance rather than resting in the book. Binance’s enums file says an IOC order fills as much as it can before it expires.

What is a fill or kill order in crypto?

A fill-or-kill order must fill its entire quantity immediately or it is cancelled in full. Kraken’s reference says FOK will execute the full order immediately or cancel it entirely. On Binance, a limit FOK order with no fill ends in status EXPIRED. Gemini’s API returns is_cancelled: true when a fill-or-kill order does not fully fill at once.

Can an IOC order be partially filled?

Yes, and that is the point of it. Binance’s enums file names the case directly: a limit IOC order that partially fills ends in status EXPIRED, and its expiry reasons include UNFILLED_IOC_QUANTITY_EXPIRED. The matched part stays executed. Only the unmatched remainder is cancelled. A fill-or-kill order, by contrast, cannot be partially filled.

A time-in-force flag decides how an order dies, not whether the trade is a good idea, and nothing here says what to buy or when. Crypto assets are high risk. Read the venue’s current reference yourself before trusting any row above.