One AAPL session, every print grouped by its sale condition
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-07, from Trade Condition Codes Explained.
| condition_name | pct_of_prints | pct_of_shares |
|---|---|---|
| Odd Lot Trade | 65.83 | 6.37 |
| Unmapped code 41 | 29.19 | 40.83 |
| Intermarket Sweep | 25.12 | 16.19 |
| Regular way (no code) | 20.96 | 30.49 |
| Derivatively Priced | 3.86 | 1.39 |
| Form T/Extended Hours | 2.57 | 7.85 |
| Average Price Trade | 1.12 | 1.99 |
| Cash Sale | 0.03 | 0 |
| Stock Option | 0.01 | 0.14 |
| Prior Reference Price | 0.01 | 5.36 |
| Qualified Contingent Trade | 0.01 | 1.85 |
| Seller | 0 | 0.02 |
- Rows × columns
- 12 × 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_name |
text | 12 distinct values | |
pct_of_prints |
number | 0 to 65.83 | percent |
pct_of_shares |
number | 0 to 40.83 | percent |
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
WITH
(SELECT count()
FROM global_markets.stocks_trades
WHERE ticker = 'AAPL'
AND sip_timestamp >= toDateTime('2026-06-17 08:00:00', 'UTC')
AND sip_timestamp < toDateTime('2026-06-18 00:00:00', 'UTC')) AS day_prints,
(SELECT sum(size)
FROM global_markets.stocks_trades
WHERE ticker = 'AAPL'
AND sip_timestamp >= toDateTime('2026-06-17 08:00:00', 'UTC')
AND sip_timestamp < toDateTime('2026-06-18 00:00:00', 'UTC')) AS day_shares
SELECT
multiIf(t.code = -1, 'Regular way (no code)',
c.code_name = '', concat('Unmapped code ', toString(t.code)),
c.code_name) AS condition_name,
round(100 * count() / day_prints, 2) AS pct_of_prints,
round(100 * sum(t.size) / day_shares, 2) AS pct_of_shares
FROM
(
SELECT
size,
arrayJoin(if(empty(conditions),
[toInt32(-1)],
arrayMap(x -> toInt32(x), conditions))) AS code
FROM global_markets.stocks_trades
WHERE ticker = 'AAPL'
AND sip_timestamp >= toDateTime('2026-06-17 08:00:00', 'UTC')
AND sip_timestamp < toDateTime('2026-06-18 00:00:00', 'UTC')
) AS t
LEFT JOIN
(
SELECT toInt32(id) AS code_id, any(name) AS code_name
FROM global_markets.stocks_condition_codes
WHERE asset_class = 'stocks'
AND type = 'sale_condition'
GROUP BY code_id
) AS c ON c.code_id = t.code
GROUP BY condition_name
ORDER BY pct_of_prints DESC
LIMIT 12
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 analysisTrade Condition Codes Explained
Condition code families defined for US stocks
ranking 8×2
→
Share of a session's prints carrying price-ineligible conditions
ranking 5×4
→
Two versions of the same AAPL session high, fifteen minutes at a time
series 26×3
→
Biggest stock losers this week (names trading $1B+, leveraged/inverse ETFs excluded)
ranking 10×4
→
Biggest stock gainers this week (names trading $1B+, leveraged/inverse ETFs excluded)
ranking 10×4
→
Odd lots, round lots and sub-one-share prints across six names, July 8 to 10, 2026
ranking 6×4
→
See all 2,170 queries →