Home/Glossary/IOC — Immediate or Cancel
Execution & tools

IOC — Immediate or Cancel

An execution policy allowing the immediately available volume to be filled while cancelling any unfilled remainder. The result may be a full fill, a partial fill or no execution. IOC does not leave the residual volume as a resting order and does not guarantee a particular price regardless of order conditions. Check whether the instrument and execution mode support it.
Example. An order requests 0.10 lot but only 0.04 lot is available under its conditions. IOC may fill 0.04 lot and cancel 0.06. With a 100,000 EUR contract size per lot, exposure is 4,000 EUR rather than the planned 10,000 EUR.

How it works

After submission, read the actual executed volume and price. A partial fill changes pip value and notional exposure. Resubmitting the cancelled remainder is a new decision: available prices and market conditions may already have changed.

Common mistake

Do not calculate position risk from the requested volume when the server confirmed only part of it. Nor should you resend the full original amount without reconciling the existing position; that could increase exposure beyond the intended size.

Further learning

In the course: 2.7 Forex order types and execution modes. Sources: MetaTrader 5: order properties.

Changed risk after partial execution

If EUR 4,000 executed instead of EUR 10,000, one EUR/USD pip is USD 0.40 rather than USD 1 under the usual linear specification. Recalculate exits and cash exposure from the fill, and check fixed or minimum commissions that may not shrink proportionally.

FAQ

Does IOC always produce a partial fill?
No. If the full volume is available on acceptable terms, the entire order can execute.
Does IOC leave its unfilled quantity waiting?

No. The remaining quantity is cancelled under IOC; submitting it again creates a new instruction.

← Back to the full glossary

Jarosław Wasiński

Editor-in-chief, ForexMechanics.com • Macro & FX analyst

Independent analyst and practitioner with over 20 years of experience in financial markets. Actively involved in Forex since 2007, with a focus on fundamental analysis, OTC market structure, and disciplined capital risk management.

  • Creator and editor-in-chief of MyBank.pl, providing reliable financial education since 2004.
  • Author of hundreds of in-depth market commentaries, structural analyses, and educational materials for traders and investors.
  • Advocate for market transparency, promoting education grounded in hard data and institutional reports (BIS, ESMA, CFTC).

Full author profile, credentials & published research →

All content is educational and informational only – it does not constitute investment advice or a recommendation. Remember: leveraged trading (Forex/CFD) carries a high risk of rapid capital loss.