Trade condition codes that restrict high, low, and last
Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-08-08, from How OHLCV Bars Are Built From Ticks.
| condition_id | condition_name | condition_type |
|---|---|---|
| 2 | Average Price Trade | sale_condition |
| 10 | Derivatively Priced | sale_condition |
| 13 | Extended Hours (Sold Out Of Sequence) | sale_condition |
| 22 | Prior Reference Price | sale_condition |
| 32 | Sold (Out Of Sequence) | sale_condition |
| 33 | Sold (Out of Sequence) and Stopped Stock | sale_condition |
| 37 | Odd Lot Trade | sale_condition |
- Rows × columns
- 7 × 3
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
condition_id |
number | 2 to 37 | |
condition_name |
text | 7 distinct values | |
condition_type |
text | 1 distinct value (sale_condition) |
Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.
the exact SQL behind every number
SELECT
id AS condition_id,
any(name) AS condition_name,
any(type) AS condition_type
FROM global_markets.stocks_condition_codes
WHERE asset_class = 'stocks'
AND (positionCaseInsensitive(name, 'odd lot') > 0
OR positionCaseInsensitive(name, 'out of sequence') > 0
OR positionCaseInsensitive(name, 'derivatively') > 0
OR positionCaseInsensitive(name, 'average price') > 0
OR positionCaseInsensitive(name, 'prior reference') > 0)
GROUP BY id
ORDER BY id
Run your own version of this
The same 22 years of US equities and 12 years of options data are queryable in SQL or plain English. A free account runs 100 queries a day and takes no card.
More from this analysisHow OHLCV Bars Are Built From Ticks
How many of the 390 session minutes each US symbol traded in
ranking 10×2
→
SPY volume by minute into the close, June 10 2026
series 25×3
→
Odd lot share of prints and of volume, minute by minute
series 15×4
→
One-minute AAPL bars rebuilt from individual trades, June 10 2026
series 15×6
→
Trading sessions per year under FB and META
ranking 15×3
→
New listings landing on a symbol that already had history
ranking 11×3
→
See all 2,170 queries →