Freeze quantity in options: limits and order splitting
Freeze quantity is the maximum number of units permitted in one F&O order. It differs from lot size (the trading increment) and position limits (total permitted exposure). To trade above the per-order freeze quantity, split the total into valid child orders; this does not override margin or position limits.
Where do I find the current freeze quantity and lot size?
Use the exchange's current NSE contract information, which publishes quantity-freeze and permitted-lot-size files, and match the exact broker instrument and expiry. This also applies when looking up a stock future such as ACC: an old lot-size value is not a safe default. Stop order submission if required contract metadata is missing.
Worked example: trading above freeze quantity
For a hypothetical lot size of 25 units and freeze quantity of 1,000 units, a 2,250-unit order becomes 1,000 + 1,000 + 250. These numbers demonstrate the calculation, not today's NIFTY contract limits. All chunks must be whole lots.
Splitting a large order into freeze-compliant chunks
def split_order_by_freeze_limit(total_qty: int, lot_size: int, freeze_qty: int) -> list[int]:
if any(type(value) is not int or value <= 0 for value in (total_qty, lot_size, freeze_qty)):
raise ValueError("Quantities and lot size must be positive integers")
if total_qty % lot_size:
raise ValueError("Total quantity must be a whole number of lots")
if freeze_qty < lot_size:
raise ValueError("Freeze quantity cannot fit one lot")
max_lots_per_order = freeze_qty // lot_size
chunk_qty = max_lots_per_order * lot_size
chunks = []
remaining = total_qty
while remaining > 0:
take = min(chunk_qty, remaining)
chunks.append(take)
remaining -= take
return chunks
def place_large_fno_order(kite, exchange, symbol, total_qty, lot_size, freeze_qty, **order_kwargs):
import time
chunks = split_order_by_freeze_limit(total_qty, lot_size, freeze_qty)
order_ids = []
for qty in chunks:
oid = kite.place_order(
exchange=exchange, tradingsymbol=symbol, quantity=qty, **order_kwargs
)
order_ids.append(oid)
time.sleep(0.3) # avoid rate-limit bursts, chapter 20
return order_ids
This submission sketch is not retry-safe. Persist each accepted order ID before proceeding; if a later call fails, reconcile earlier chunks before retrying. A fixed sleep alone does not enforce shared per-minute or daily limits across multiple workers.
Why this matters even for "small" retail accounts
Freeze quantity limits apply per order regardless of account size — a trader running an index-option strategy with even a moderate lot count (not necessarily huge capital) can exceed the freeze limit on liquid near-the-money strikes during high-conviction trades. Not handling this means the order is rejected in full, and a naive bot might interpret that as "no liquidity" or some other wrong diagnosis instead of the actual cause.
Track chunk results independently
Each chunk is a separate order with its own order_id, fill status, and potential partial fill (chapter 56) — reconcile total filled quantity across all chunks, don't assume they all filled identically.