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

إخلاء المسؤولية
يُقدَّم هذا المحتوى لأغراضٍ إعلامية بهدف التوضيح فقط، وقد يتضمَّن إشارة لمنتجاتٍ أو خدماتٍ غير مُتاحة في منطقتك الجغرافية. لا يُقصَد به تقديم (1) مشورة استثماريَّة أو توصية استثماريَّة، أو (2) عرضًا أو التماسًا لشراء العملات/الأصول الرقمية أو بيعها أو الاحتفاظ بها، أو (3) مشورة ماليَّة أو محاسبيَّة أو قانونيَّة أو ضريبيَّة. تنطوي عمليات الاحتفاظ بالعملات الرقمية/الأصول الرقمية، بما فيها العملات المستقرة، على درجة عالية من المخاطرة، ويُمكِن أن تشهد تقلّبًا كبيرًا في قيمتها. لذا، ينبغي التفكير جيدًا فيما إذا كان تداوُل الأصول/العملات الرقمية أو الاحتفاظ بها مناسبًا لك حسب وضعك المالي. ويُرجى استشارة خبير الشؤون القانونيَّة أو الضريبيَّة أو الاستثماريَّة الذي تتعامَل معه بخصوص أي أسئلة متعلِّقة بظروفك الخاصَّة. المعلومات (بما في ذلك بيانات السوق والمعلومات الإحصائية، إن وجدت) الواردة في هذا المنشور مُقدَّمة لأغراض معلوماتية فقط. رغم اتخاذ جميع التدابير المعقولة لضمان الدقة عند إعداد هذه البيانات والرسوم البيانية، فإننا لا نتحمل أي مسؤولية عن أي أخطاء في الحقائق أو أي معلومات محذوفة واردة فيها.

الأصول الرقمية عرضة للتقلبات وغير مؤمَّن عليها. هذه ليست نصيحة مالية أو استثمارية. ليست جميع المنتجات والخدمات متاحة في جميع المناطق. تُطبَّق الاستثناءات والشروط والأحكام.

© 2026 OKX. يجوز إعادة نشر هذه المقالة أو توزيعها بالكامل، أو استخدام مقتطفات منها لا تتجاوز 100 كلمة، بشرط أن يكون هذا الاستخدام غير تجاري. ويتعيَّن أيضًا في أي عملية إعادة إنتاج أو توزيع للمقال بأكمله أن يُذكر وضوحًا: «تعود ملكية هذا المقال الفكرية لصالح © 2026 OKX وتُستخدَم بموجب إذن». ويجب أن تشير المقتطفات المسموح بها إلى اسم المقال وتتضمَّن الإسناد المرجعي، على سبيل المثال «اسم المقال، [اسم المؤلف إن وجد]، © 2026 OKX». قد يتضمَّن بعض هذا المحتوى موادّ أُنتِجَت أو جرى إعدادها بمساعدة أدوات الذكاء الاصطناعي (AI). لا يجوز إنتاج أي أعمال مشتقة من هذه المقالة أو استخدامها بطريقة أخرى.

المقالات ذات الصلة

عرض المزيد
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](#
‏27 نوفمبر 2026
trading-foundations-20-thumbnails-jpg-2026-11-25/quote-currency

What is total supply?

**Total supply is the total number of units of a crypto asset that have been created so far and still exist after the burned units are subtracted.** It includes units that are still locked, not yet re
‏27 نوفمبر 2026
trading-foundations-20-thumbnails-jpg-2026-11-25/order-book

What is a technical indicator?

**A technical indicator is a set of values or a curve calculated from market data such as price and trading volume according to a defined formula.** It organizes trading records into results that are
‏27 نوفمبر 2026
trading-foundations-20-thumbnails-jpg-2026-11-25/market-depth

What is technical analysis?

**Technical analysis (TA) is a family of analytical methods that study historical prices, trading volume, and other market trading data to identify trends and patterns.** A pattern here is a shape for
‏27 نوفمبر 2026
trading-foundations-20-thumbnails-jpg-2026-11-25/bid-price

What is a support level?

**A support level is a price zone marked in technical analysis where the price, when falling, has previously slowed, paused, or rebounded, so analysts watch whether a similar reaction will occur again
‏27 نوفمبر 2026
trading-foundations-20-thumbnails-jpg-2026-11-25/ask-price

What is a resistance level?

**A resistance level is a price area marked in technical analysis where price rises have previously slowed, paused or turned lower, so analysts watch whether a similar reaction appears again.** It des
‏27 نوفمبر 2026
عرض المزيد