TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Marketable limit orders and partial completion

Calculate fills across available offers subject to a maximum buy price.

0%

What you will learn

Prerequisites: Order-book levels, limit prices and immediate-or-cancel instructions.

Mechanism and decision rules

A marketable buy limit is priced at or above the current ask, allowing immediate execution against offers up to the limit. It constrains the worst permitted price but does not guarantee the requested quantity. A time-in-force instruction determines what happens to any remainder. Under an immediate-or-cancel convention, available quantity may fill and the rest is canceled; other order types can leave a resting balance.

The order-book snapshot is only an input to a hypothetical fill calculation. Liquidity can change before arrival, and hidden or newly arriving orders can alter results. A realistic strategy must handle partial completion and protect the actual position, rather than assuming the desired quantity exists because the order was marketable.

Worked example · synthetic data

A synthetic ask book has 100 units at ₹100.10,50 at ₹100.20 and 200 at ₹100.40. A 200-unit immediate-or-cancel buy limit at ₹100.30 can take the first 150 units under a static-book assumption. The ₹100.40 offer is beyond the cap, so 50 requested units remain unfilled and are canceled.

Executed cost is 100×100.10+50×100.20=₹15,020, average ₹100.1333. The price cap worked, but the strategy achieved only 75% of its requested quantity. Subsequent exits must use 150 units unless later orders deliberately add more.

Failure modes and limits

Actual time-in-force support and semantics are broker and venue specific. The book may move or contain hidden liquidity. A replacement order can duplicate exposure if the first state is uncertain. A strict price cap can miss a trade entirely during a jump; that is a designed tradeoff, not an execution failure to erase from testing.

Practice case

Asks are 100 units at 50.05,50 at 50.10 and 200 at 50.20. An 180-unit IOC buy limit is 50.15. Under a static-book model, find filled quantity, average price and canceled remainder.

Reveal the worked answer

It fills 150 units for ₹7,510, average ₹50.0667. The remaining 30 are canceled under the stated IOC rule because the next ask exceeds the limit. Actual execution can differ if the book changes.

Check your understanding

Does a marketable limit guarantee full quantity?


Explanation

It caps price while leaving liquidity and completion uncertain.

Why does the 100.40 offer not fill under a 100.30 buy limit?


Explanation

A buy limit cannot execute above its cap under the stated rule.

After 150 of 200 units fill, what position should exits reference?


Explanation

Partial fills create real exposure that must be tracked accurately.

Sources and next steps

The lesson, calculations and synthetic cases are original educational material. References explain underlying contract or chart conventions; none validates the profitability of a trading rule. Actual contract specifications, settlement obligations and charges must be checked before trading.

Explore OHLCV data in the chart lab · Explore volume-at-price and TPO data · Practice library