Sub topic 5
Anatomy of an order ticket
An order ticket is the form your broker shows you when you want to buy or sell a stock. Every field on it becomes part of an instruction that the broker routes to a market. This chapter covers what each field means, which fields change the price you pay, and which ones usually cause mistakes.
This chapter assumes you know what a share and a ticker are, and that you can read a bid and ask quote from the earlier chapters. It also assumes you can multiply a price by a quantity. A paper-trading account is enough to follow along.
The working model
A ticket is a small set of answers to five questions:
- What do you want to do? (side)
- Which security? (symbol)
- How much? (quantity)
- At what price rule? (order type and price fields)
- For how long? (time in force)
The broker adds a sixth item, which account the order is for, and a seventh, the estimate it shows you. Once you submit, the order is sent as data. The market has no way to ask "did you mean that?", so the ticket is your last check.
The fields, one by one
| Field | What it controls | Typical values |
|---|---|---|
| Account | Which pool of cash and shares the order uses | Cash, margin, retirement, paper |
| Side | Direction of the trade | Buy, Sell |
| Symbol | The security | A ticker such as XYZ |
| Quantity | Number of shares | A whole number, or a fraction at some brokers |
| Order type | How the price is determined | Market, Limit, Stop, Stop-limit |
| Limit price | The worst price you accept | Required for limit orders |
| Time in force | How long the order stays active | Day, GTC |
| Estimated cost | The broker's calculation of what you will pay or receive | Quantity times a reference price |
Account and side
If you have more than one account, the ticket usually defaults to the last one you used. A purchase placed in the wrong account may be rejected for lack of funds. Worse, it may succeed in an account you did not intend to use, such as a retirement account.
Side is a single toggle, and mixing it up is among the most expensive beginner errors. Buying when you meant to sell increases your exposure. Selling when you do not own the shares either fails or, on a margin account, can open a short position, which carries different risks. Read the side aloud before you submit.
Symbol
Tickers are short and can look alike. Different companies can have similar tickers, and the same company can trade on more than one exchange or have several share classes. Confirm the company name that the ticket displays next to the symbol, not only the letters you typed.
Quantity
Quantity is a count of shares, not dollars. Typing 500 intending "$500" buys 500 shares. At a price near 50.00 that is about 25,000 in cost. Some brokers offer a separate dollar-based mode that buys fractional shares. If your ticket has such a toggle, check which mode is active.
Order type and price fields
The order type decides what the price rule is. A market order has no price field because it accepts whatever the market offers. A limit order adds a limit price, which is a boundary. For a buy, the limit price is the most you will pay per share. For a sell, it is the least you will accept. Later chapters cover each type in depth. For the ticket itself, remember that the price field means different things depending on side.
Time in force
Time in force (TIF) says when the order expires if it is not filled. Day orders expire at the close of the regular session. Good-til-canceled (GTC) orders stay active until filled or canceled, usually up to a broker-specific maximum such as 60 or 90 days. A market order that can fill immediately rarely depends on TIF, but a limit order that rests on the book depends on it heavily.
Reading the estimated cost
The estimate depends on the order type, and the two cases mean different things.
Side: BUY
Symbol: XYZ
Quantity: 20
Order type: LIMIT
Limit price: 50.00
Time in force: DAY
Estimated cost: 20 x 50.00 = 1000.00 at most, plus any feesFor a limit buy, the estimate is a ceiling. You cannot pay more than 50.00 per share, so the total cannot exceed 1000.00 before fees. For a market buy, there is no ceiling. The broker typically multiplies the quantity by the last price or the ask, and the real fill can differ because of slippage.
For a sell, the same arithmetic gives estimated proceeds, and a limit sell gives a floor instead of a ceiling.
A ticket checker you can run
Writing the checks as code makes the logic concrete. The function below applies the same sanity checks a careful trader makes by hand: valid fields, a cost estimate, a buying power test, and whether a limit order is marketable. An order is marketable when it can fill immediately. A buy limit at or above the ask, or a sell limit at or below the bid, is marketable.
from dataclasses import dataclass
@dataclass
class Ticket:
side: str # "BUY" or "SELL"
symbol: str
quantity: int
order_type: str # "MARKET" or "LIMIT"
tif: str = "DAY"
limit_price: float | None = None
def check_ticket(t, bid, ask, buying_power):
notes = []
if t.side not in ("BUY", "SELL"):
return ["Side must be BUY or SELL."]
if t.quantity <= 0:
return ["Quantity must be positive."]
if t.order_type == "LIMIT" and t.limit_price is None:
return ["A limit order needs a limit price."]
if t.order_type == "MARKET":
ref = ask if t.side == "BUY" else bid
label = "an estimate, not a cap"
else:
ref = t.limit_price
label = "at most" if t.side == "BUY" else "at least"
value = t.quantity * ref
word = "cost" if t.side == "BUY" else "proceeds"
notes.append(f"Estimated {word}: {value:.2f} ({label}, plus fees)")
if t.side == "BUY" and value > buying_power:
notes.append(
f"Exceeds buying power {buying_power:.2f} by {value - buying_power:.2f}."
)
if t.order_type == "LIMIT":
marketable = (t.side == "BUY" and t.limit_price >= ask) or (
t.side == "SELL" and t.limit_price <= bid
)
if marketable:
notes.append("Marketable: this order can fill immediately.")
else:
notes.append("Not marketable: it will rest on the book until the price reaches your limit.")
return notes
bid, ask, power = 49.98, 50.02, 1500.00
tickets = [
Ticket("BUY", "XYZ", 20, "LIMIT", limit_price=50.00),
Ticket("BUY", "XYZ", 40, "MARKET"),
]
for t in tickets:
print(t.order_type, t.side, t.quantity)
for line in check_ticket(t, bid, ask, power):
print(" ", line)Running it prints:
LIMIT BUY 20
Estimated cost: 1000.00 (at most, plus fees)
Not marketable: it will rest on the book until the price reaches your limit.
MARKET BUY 40
Estimated cost: 2000.80 (an estimate, not a cap, plus fees)
Exceeds buying power 1500.00 by 500.80.The first ticket sets its limit at 50.00, below the 50.02 ask. It will not fill until a seller accepts 50.00 or less, so it waits. The second ticket would be rejected by most brokers for insufficient buying power.
Common errors
- Wrong side. Confirm the toggle says what you intend before every submission.
- Shares versus dollars. Check the unit next to the quantity box.
- Limit price on the wrong side of the quote. A buy limit far above the ask is marketable, so it fills at the ask, not at your limit. The limit is only a cap. A buy limit far below the bid will probably never fill. Either may come from a misplaced decimal, such as 5.00 instead of 50.00.
- Stale quotes. The ticket estimate uses data from the moment you opened it. If you leave the page open, refresh the quote first.
- Forgetting TIF. A day order you expected to wait for days will vanish at the close. A GTC order you forgot about may fill weeks later at a price you no longer want.
- Wrong account. Verify the account name, especially if one account is for retirement savings.
- Ignoring the review screen. Many brokers show a final confirmation page. Treat it as the point where you read every field once more.
Exercise
A ticket reads: Side BUY, Symbol XYZ, Quantity 30, Order type LIMIT, Limit price 48.00, Time in force DAY. The quote is bid 49.98 and ask 50.02. What is the maximum cost before fees, and will the order fill right away?
Show answer
The maximum cost is 30 x 48.00 = 1440.00. It will not fill right away, because the limit of 48.00 is below the ask of 50.02. The order rests on the book until a seller accepts 48.00 or less, and it expires at the close of the day if that does not happen.
Exercise
You meant to spend about 500 dollars on a stock trading near 25.00, and you typed 500 into the quantity box of a share-based ticket. What would the order cost, and which field should you check to catch this before submitting?
Show answer
You would order 500 shares, costing about 500 x 25.00 = 12,500, which is 25 times what you intended. Check the quantity unit (shares versus dollars) and the estimated cost line. The intended quantity was 500 / 25.00 = 20 shares.