Sub topic 10
From Submitted to Filled: Order Statuses and Partial Fills
This chapter assumes you know what a bid, ask and spread are, and that you can tell a market order from a limit order. It also assumes you have a live or paper-trading account in which to watch real statuses. It covers what happens after you press submit, how to read each status your broker shows, and how to handle an order that fills only in part.
Why statuses matter
A submitted order is a request. It is not a trade. Between your click and your final position, the order passes through several states, and each one tells you what you can still do. Misreading a status causes common first-trade errors: assuming you own shares when you don't, canceling an order that has already filled, or sizing a follow-up trade from the wrong quantity.
Your broker validates the order, routes it to a venue (an exchange or other market center), and the venue matches it against resting orders on the other side. Each step reports back to you, and the broker translates those reports into a status label.
The common statuses
Names differ between brokers, but the meanings are close to universal.
| Status (typical label) | Meaning | What you can do |
|---|---|---|
| Pending, received, or queued | The broker has your order but has not confirmed it with a venue. | Usually cancel. Wait a few seconds. |
| Open, working, or active | The venue accepted the order. It is waiting for a match. | Cancel or modify. |
| Partially filled | Some shares traded and some are still waiting. | Cancel the remainder or leave it working. |
| Filled, or executed | All requested shares traded. | Nothing to manage. The position exists. |
| Canceled | The order was removed before filling completely. | Place a new order if you still want the trade. |
| Rejected | The broker or venue refused the order. | Read the reason, fix it and resubmit. |
| Expired | The time in force ran out before the order filled. | Place a new order if you still want the trade. |
| Pending cancel or pending replace | You asked for a change and it is not confirmed yet. | Wait. The order can still fill meanwhile. |
Rejections usually have a plain cause: not enough buying power, a limit price the venue will not accept, a symbol typo, or trading outside the hours the order type allows. The reason is normally shown next to the status. Read it before you resubmit.
The lifecycle as a state machine
The diagram shows the usual paths. The only terminal states, where nothing more can happen, are filled, canceled, rejected and expired.
A market order usually moves through Pending and Open so quickly that you only see Filled. A limit order whose price is not yet reachable stays Open, possibly for the entire time in force.
Partial fills
A partial fill happens when the shares available at acceptable prices are fewer than the shares you asked for. Two situations cause it.
- A market order that is larger than the displayed depth. The order walks up the asks. In the usual case it still fills completely, in several pieces at different prices. Splitting across prices is one fill event with a blended average.
- A limit order whose price stops the walk. Shares beyond your limit are not available to you, so the order fills what it can and the rest keeps waiting.
Each piece that trades is called an execution, or a fill. An order's final price is the average of its fills, weighted by quantity:
average price = (sum of quantity × price over all fills) ÷ (total filled quantity)
Here is a small model that follows an order through its statuses. It uses the earlier example: a limit buy for 400 shares at 50.05, against asks of 100 at 50.02, 200 at 50.05 and 500 at 50.10.
from dataclasses import dataclass, field
@dataclass
class Order:
side: str
qty: int
limit: float = None
status: str = "pending"
fills: list = field(default_factory=list)
@property
def filled_qty(self):
return sum(q for q, _ in self.fills)
@property
def remaining(self):
return self.qty - self.filled_qty
@property
def avg_price(self):
if not self.fills:
return None
total = sum(q * p for q, p in self.fills)
return round(total / self.filled_qty, 4)
def accept(self):
if self.status != "pending":
raise ValueError("only a pending order can be accepted")
self.status = "open"
def add_fill(self, qty, price):
if self.status not in ("open", "partially filled"):
raise ValueError(f"cannot fill an order that is {self.status}")
if qty <= 0 or qty > self.remaining:
raise ValueError("fill quantity must be between 1 and the remaining quantity")
self.fills.append((qty, price))
self.status = "filled" if self.remaining == 0 else "partially filled"
def cancel(self):
if self.status in ("filled", "canceled", "rejected", "expired"):
raise ValueError(f"cannot cancel an order that is {self.status}")
self.status = "canceled"
def show(order):
print(order.status, order.filled_qty, order.remaining, order.avg_price)
order = Order("buy", 400, limit=50.05)
order.accept()
show(order) # open 0 400 None
order.add_fill(100, 50.02)
show(order) # partially filled 100 300 50.02
order.add_fill(200, 50.05)
show(order) # partially filled 300 100 50.04
order.cancel()
show(order) # canceled 300 100 50.04Look at the last line. The order is canceled, yet you own 300 shares at an average of 50.04. The 100 shares in the "remaining" column never traded. The cancel only removed the unfilled part.
Reading an execution report
After a fill, your broker shows an order detail or history view. Look for these fields:
- Ordered quantity and filled quantity. If they differ, the order is partial or was canceled partway.
- Average fill price. This is what you actually paid or received per share. Compare it with the quote you saw at submission to measure slippage.
- Individual fills with times. Several fills seconds apart indicate a walk through the book or a limit order that filled as sellers arrived.
- Fees. Some brokers charge per order, others per share, and many charge nothing. The next chapters on costs cover this. Check whether a partial fill generates more than one charge on your broker.
- Order ID. You need it if you contact support about a disputed fill.
A limit buy can fill below its limit price. If your limit is 50.05 and a seller offers at 50.02, you pay 50.02. The limit is a ceiling, not a target.
Practical handling of a partially filled order
When you see "partially filled," decide among three choices, in this order:
- Do you still want the full quantity? If your reason for the trade has not changed, leave the order working.
- Is the remaining price still acceptable? If the market moved away, the remainder may never fill. Cancel it, or replace it with a new limit price you accept.
- Is the partial position already enough? If your plan allows a smaller position, cancel the rest and stop.
Do not place a second identical order while the first is still open. You could end up with double the shares you meant to buy if both fill.
Common errors
- Treating "submitted" as "owned." Your position and buying power update on fill, not on submit.
- Ignoring the remaining quantity. A forgotten partial remainder can fill hours later on a different price, if the time in force is long.
- Assuming a rejection means a loss. A rejected order never reached the market. Nothing traded and nothing is owed.
- Reading status labels from memory. Learn your broker's exact words in a paper account before using real money.
- Comparing the average price to the last price instead of the quote you saw at the time. Last price moves between your decision and your fill.
Exercise
A limit buy for 500 shares at 20.10 has been working for ten minutes. Your broker shows "partially filled: 180 of 500 at average 20.08." You cancel the order. How many shares do you now own, and what do you do about the other 320?
Show answer
You own 180 shares at an average of 20.08, because the fills that already happened stand. The cancel only removes the unfilled 320 shares. If you still want them, you must place a new order with a limit price you accept now.
Exercise
A market buy for 300 shares shows "filled" with fills of 100 at 10.00, 100 at 10.02 and 100 at 10.05. What is the average fill price, and why is it higher than the best ask at submission?
Show answer
The average is (100×10.00 + 100×10.02 + 100×10.05) ÷ 300 = 3007 ÷ 300 ≈ 10.0233. It is higher than the best ask of 10.00 because only 100 shares were available at that price, so the order took the next, higher-priced asks to fill the rest.