Market microstructure & order books

Order types: limit, market, IOC, FOK, iceberg

∞structural
By . Reviewed 23 November 2026. As of 2026: a permanent feature of the market, not an edge that decays.

A market order takes what the book offers now; a limit order sets a worst price and may wait. IOC, FOK, iceberg, peg and post-only change when and how.

See it move

Order-type playgroundswitch the typeIX-ORDERTYPE
what the book shows vs what you actually hold
200
hidden 1800
Iceberg. Shows a small slice; refreshes from a hidden reserve as it fills. Hides true size from the book.

What to notice. Order types are tools for managing information leakage and priority. An iceberg hides size at the cost of refresh latency; post-only guarantees the rebate; IOC leaves no footprint. HFTs both use these and detect them in others' flow.

Market vs limit order: what each does to the book

A market order takes whatever the book offers right now, at whatever prices that turns out to be. A limit order names a worst price: it trades at that price or better, and whatever cannot trade yet rests in the book and waits. Cboe BZX's rulebook defines a limit order as "an order to buy or sell a stated amount of a security at a specified price or better" (Rule 11.9), and the SEC's Investor.gov says a market order "guarantees that the order will be executed, but does not guarantee the execution price". So the choice is price certainty against fill certainty.

Venues add guardrails to the market order. A Cboe BZX market order executes at the national best bid and offer when it arrives and does not trade through protected quotes. CME Globex has no unprotected market order at all: its "market order with protection" fills only inside a protected range around the best opposite price, and any remainder rests as a limit order at the edge of that range.

Here is one book, the same illustrative XYZ book as on the limit order book page (sizes in lots, tick 0.01, mid 50.005).

PriceAsks (sellers)Bids (buyers)
50.03500
50.02200
50.01100 (best ask)
50.00300 (best bid)
49.99400
49.98600

A market buy for 600 takes 100 at 50.01, 200 at 50.02 and 300 at 50.03. The average price is 50.023, about 1.8 ticks above the mid, and the best ask is now 50.03 with 200 left. The order filled in full and the price was whatever the book said.

A limit buy for 600 at 50.02 takes the first 300 (100 at 50.01 and 200 at 50.02, an average of 50.017) and refuses the 50.03 offer. The other 300 rest at 50.02 and become the new best bid, so the book now shows a bid of 50.02 against an ask of 50.03. The order paid less per share and got only half its size so far; the rest fills only if sellers come to it. A limit buy for 100 at 50.00 does not trade at all: it joins the queue behind the 300 already resting there (see price-time priority).

Advanced order types manage what a plain limit order gives away

A plain limit order leaks three things you may not want to give away: your size, your price intention and your urgency. Advanced order types manage each: conceal size (iceberg, hidden), automate price (pegged), pre-arm a trigger (stop) or control immediacy and fees (IOC, FOK, post-only). Each trades one cost for another and leaves a different footprint on the book.

Posting a big visible limit order is like showing your whole hand. A large resting bid announces a buyer of size, inviting others to trade ahead of you (quote-matching) or to fade you. Bessembinder, Panayides and Venkataraman (2009) measured how much traders conceal on Euronext Paris, where hidden orders made up 44% of their sample's order volume. They found that hidden orders are less likely to fill fully and take longer to execute, that exposing size raises execution costs, and that hidden size can be partly predicted from observable traits.

The order types act on three axes: visibility (iceberg, hidden), price-tracking (pegged) and time or condition (stop, IOC, FOK, post-only, GTC, day). A single order can combine flags (a hidden, post-only, day order is ordinary), so the catalogue is a set of dials, not a menu. The table summarises it; the sections that follow take each in turn, and the order-type playground above lets you place each one and watch what the book reveals.

Every advanced order type manages one of three leaks (size, price, or urgency) by moving along the visibility, price-tracking, or time-and-condition axis.
order type∈{visibility}⏟iceberg, hidden×{price-tracking}⏟pegged×{time / condition}⏟stop, IOC, FOK, post-only\text{order type} \in \underbrace{\{\text{visibility}\}}_{\text{iceberg, hidden}} \times \underbrace{\{\text{price-tracking}\}}_{\text{pegged}} \times \underbrace{\{\text{time / condition}\}}_{\text{stop, IOC, FOK, post-only}}
Order type Rests on the book? Can it cross on arrival? Shown to others? If it would cross Typical use
MarketNo (CME's protected market order rests any remainder as a limit)Yes, that is its jobNoTakes the best prices level by levelImmediacy when the price matters less than the fill
LimitYes, whatever does not tradeYes, up to its limit priceYesTrades at its price or better, rests the restPrice control
IOC (CME calls it FAK)NoYesNoFills what it can now, cancels the restTaking liquidity without leaving a footprint
FOKNoYesNoFills in full or is cancelledWhen a partial fill is useless
Iceberg (reserve)YesAs a limit orderOnly the peak; the reserve refills itAs a limit orderWorking large size without showing it
HiddenYesAs a limit orderNoAs a limit order; at one price it ranks behind displayed sizeConcealing size entirely
Pegged (primary, midpoint, market)Yes, re-priced as the quotes moveA market peg behaves like a market order against the opposite quoteMidpoint pegs are not displayedDepends on the pegHolding a relative price without resubmitting
Post-onlyYesNot by designYesRejected on Binance spot; on Cboe BZX slid, cancelled or, if cheaper after fees, executedMaker-only strategies
StopNo, not until its trigger tradesBecomes a market order (CME: market with protection)NoCan fill well beyond the stop priceRisk exits
Stop-limitNo, not until its trigger tradesBecomes a limit orderNoCaps the price, may not fillExits with a price cap

Venue details were read in November 2026 from Cboe BZX Rules 11.9 and 11.12 (rulebook updated 10 November 2026), the CME Globex order-type and qualifier pages, and the Binance spot API documentation. GTC is not the same everywhere: on Cboe BZX a "GTC" order is cancelled at the close of regular trading hours. CME's published pages list no post-only instruction.

Iceberg and hidden orders: concealing size

An iceberg (reserve) order displays only a small peak of its true size and refills it from a hidden reserve; a hidden order shows nothing on the feed but still rests and trades. Both let large orders participate without advertising size, at the cost of ranking behind displayed orders at the same price.

Post 10,000 lots with a 500-lot peak and the book shows 500; when it fills, another 500 surfaces, until the reserve is spent. The tell is a level that keeps refilling after repeated fills, which tape-readers learned to spot. Some venues let the participant stop that. Cboe BZX offers Random Replenishment, which refills the display by a round-lot size drawn around a value the participant sets (Rule 11.9(c)). The ranking cost is explicit in the rulebook. At one price Cboe BZX ranks displayed limit orders first, then non-displayed orders, with reserve size after those, and a reserve order gets a new timestamp each time it is refreshed from reserve (Rule 11.12(a)). CME's display quantity works the same way: each refill enters as a new order at the bottom of the queue. Hidden orders can still be hit by incoming orders; they simply wait behind the displayed size. Hidden orders can still be hit by incoming orders; they simply wait behind the displayed size.

The HFT angle cuts both ways. Liquidity providers use these types to work size without leakage, while others try to detect hidden quantity by sending tiny orders to see what trades against nothing visible, the subject of pinging & sniffing.

An iceberg shows a peak and replenishes from a hidden reserve; a hidden order shows nothing at all. The public book is not the true book: concealed size rests beneath what the feed displays.
Qtrue=Qdisplayed+Qhidden,Qdisplayed=peak  ≪  QtrueQ_{\text{true}} = Q_{\text{displayed}} + Q_{\text{hidden}}, \qquad Q_{\text{displayed}} = \text{peak} \;\ll\; Q_{\text{true}}

Pegged orders: tracking the price automatically

A pegged order re-prices itself to a reference the venue maintains, so you hold a relative price without cancelling and replacing. Under Nasdaq Rule 4703(d), a Primary Peg tracks the same side's inside quote, a Market Peg the opposite side, and a Midpoint Peg the midpoint (as the rule was worded in a 2016 filing).

A Primary or Market peg may carry an offset that is passive or aggressive. Nasdaq's own example is a primary-peg buy with a $0.05 passive offset at an $11.00 inside bid, which is priced at $10.95. A Market Peg with no offset behaves like a market order against liquidity at the opposite inside quote. A Midpoint Peg is never displayed and may execute in sub-pennies: with an inside bid of $11.00 and offer of $11.06 it is priced at $11.03, a non-displayed "split the spread" order. You give up nothing to the other side and capture half the spread, with a fill only when someone else accepts the mid.

HFTs care about pegs because they hand the cancel-and-replace work to the venue, cutting message traffic, and because midpoint pegs are a main way to source or provide hidden liquidity at the mid. The catch is that a peg's behaviour is fully specified by the venue, so it is predictable, and predictable orders can be modelled by others. Note also that a midpoint peg can trade at a half-penny where an ordinary limit order cannot: Rule 612 of Regulation NMS bars sub-penny limit prices for stocks at or above $1.00.

A pegged order re-prices itself to a reference the venue maintains (same-side touch, mid, or opposite touch) so you hold a relative price without resubmitting.
pprimary=best bid−offset,pmid=bid+ask2,pmarket=best askp_{\text{primary}} = \text{best bid} - \text{offset}, \qquad p_{\text{mid}} = \tfrac{\text{bid} + \text{ask}}{2}, \qquad p_{\text{market}} = \text{best ask}

Conditional and time-in-force: stop, IOC, FOK, post-only

Conditional orders activate on a trigger, while time-in-force and execution flags govern lifespan and maker or taker status. A stop becomes a market order once its stop price trades, a stop-limit becomes a limit order, IOC fills what it can now and cancels the rest, FOK fills completely or not at all, and post-only rejects or re-prices rather than crossing.

A stop is not on the book until its trigger prints, which makes it useful for risk exits and breakout entries. Because it releases as a market order, in a fast move it can fill far through the stop price, while a stop-limit caps the price but risks no fill. Where a stop is released depends on the venue. On Cboe BZX a stop is elected when the consolidated last sale reaches the stop price and then becomes a market order, and a stop-limit becomes a limit order (Rule 11.9(c)). CME Globex offers stop-limit and a "stop order with protection", futures only, which becomes a market order capped at the trigger plus or minus a set number of protection points. Binance spot has STOP_LOSS, which executes a market order, and STOP_LOSS_LIMIT. Clusters of stops are a known liquidity feature, and deliberately triggering them edges into momentum ignition, which is abuse.

IOC is the workhorse of liquidity-taking and leaves no resting footprint. Plenty of limit orders behave like IOCs anyway: Hasbrouck and Saar (2009) found that over one-third of non-marketable limit orders in 100 Nasdaq-listed stocks on INET were cancelled within two seconds, and called them fleeting orders. FOK suits cases where a partial fill is useless, such as one leg of an arbitrage that only works in full size. Post-only is built to rest and never take: on Binance spot a post-only (LIMIT_MAKER) order is rejected if it would match as a taker, while Cboe BZX slides or cancels it and lets it execute only where taking is worth at least as much after fees (Rule 11.9(c)). Used for maker-only strategies, it earns the rebate and avoids the taker fee (see maker-taker), and it is common on crypto venues. The plain lifespan flags (GTC, day, GTD) set how long an order lives.

Order-type descriptions have also drawn enforcement. In January 2015 the SEC fined Direct Edge's EDGA and EDGX exchanges $14 million, then its largest penalty against an exchange, because their rules described one "price sliding" process while the exchanges offered three, and the details went only to some members, including some HFT firms. In the same month UBS paid more than $14.4 million (including a $12 million penalty) over its dark pool's PrimaryPegPlus order type, which accepted sub-penny prices that jumped ahead of whole-penny orders. Both Direct Edge and UBS settled without admitting or denying the SEC's findings.

IOC takes what it can and cancels the rest; FOK demands the whole quantity or nothing; post-only is built to rest as a maker rather than take.
IOC: fill min⁡(Q, Qavail)    FOK: fill Q iff Qavail≥Q    post-only: rest, never cross\text{IOC: fill } \min(Q,\,Q_{\text{avail}}) \quad\;\; \text{FOK: fill } Q \text{ iff } Q_{\text{avail}} \geq Q \quad\;\; \text{post-only: rest, never cross}

Worked example: displayed 200, hidden 1,000

Take a book where the best ask is 50.01 with 200 lots displayed, a hidden 1,000 lots also rests at 50.01, and the mid is 50.005. The numbers are illustrative; reproduce them in the playground above. The point is that the public book is not the true book.

An iceberg buy of 5,000 with a 500-lot peak at 50.00 shows 500 on the feed; as sellers hit it, it refills to 500 nine more times until the 5,000 is worked. A tape-reader sees the level never run out unless the trader randomises the peaks (say 380, 540, 470, and so on), which defeats the simple detector. A midpoint-peg buy rests hidden at 50.005, invisible on the lit feed, and fills only when a sell also accepts the mid, capturing half the spread versus crossing to 50.01. A post-only buy at 50.01 would be marketable, since it crosses the 50.01 ask, so Binance spot rejects it and Cboe BZX can slide it to 50.00, keeping you a maker rather than accidentally paying the taker fee.

A one-lot IOC at the ask fills against the 200 displayed. If a follow-up one-lot midpoint-peg IOC also fills, a hidden seller is resting at the mid, which the feed never showed.
IOC1@50.01→fills 1⟹IOC1@50.005→fills 1  ⇒  hidden size at the mid\text{IOC}_1@50.01 \to \text{fills 1} \quad\Longrightarrow\quad \text{IOC}_1@50.005 \to \text{fills 1} \;\Rightarrow\; \text{hidden size at the mid}

That two-step sequence is the detection logic described in pinging & sniffing, and venues surveil for it. (On a US equity exchange only a midpoint-pegged order can execute at the half-penny; a plain limit price of 50.005 would breach Rule 612.) Finally, an FOK buy of 1,000 at 50.01 sees only 200 displayed, but 1,200 lots are available at 50.01 once the hidden 1,000 is counted. Non-displayed orders are executable by incoming orders; they only rank after displayed size. So the FOK fills in full, 200 displayed and then 800 hidden, even though the feed showed only 200.

Sources

  1. Bessembinder, H., Panayides, M. and Venkataraman, K. (2009). "Hidden liquidity: an analysis of order exposure strategies in electronic stock markets". Journal of Financial Economics 94(3), 361–383. doi.org
  2. Hasbrouck, J. and Saar, G. (2009). "Technology and liquidity provision: the blurring of traditional definitions". Journal of Financial Markets 12(2), 143–172. doi.org
  3. Nasdaq. Rule 4703 (Order Attributes): pegging as printed in SEC filing SR-NASDAQ-2016-155, Exhibit 5, and pegging offsets as printed in SR-NASDAQ-2023-030, Exhibit 5. sec.gov, sec.gov
  4. Cboe BZX Exchange. Rules 11.9 (Orders and Modifiers) and 11.12 (Priority of Orders), rulebook updated 10 November 2026. cboe.com
  5. CME Group. "Order Types for Futures and Options" and "Order Qualifiers", CME Globex client systems wiki (read November 2026). cmegroupclientsite.atlassian.net
  6. Binance. Spot API documentation, REST API and enums (repository read 13 November 2026). github.com
  7. SEC Office of Investor Education. "Types of orders", Investor.gov. investor.gov
  8. SEC (12 and 15 January 2015). Press releases 2015-2 (Direct Edge exchanges, order types) and 2015-7 (UBS dark pool, PrimaryPegPlus). sec.gov, sec.gov

Where this fits