STRASMORE/EXPLORE 3,214 QUERIES

Distance from the prevailing mid by trade size, AAPL, one midday hour

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-10-08, from How Much Slippage to Assume in a Backtest.

as of ranking 5×3read in context →
Distance from the prevailing mid by trade size, AAPL, one midday hour — 5 rows by 3 columns, computed from US exchange, SIP and OPRA data.
size_bucketavg_distance_bpspct_outside_touch
1 to 99 shares0.55214.31
100 to 4990.40114.21
500 to 9990.6316.91
1,000 to 4,9990.52315.38
5,000 or more4.63836.36
Rows × columns
5 × 3
Computed
Completeness
No missing values
Source
US exchange, SIP and OPRA market data
Licence
Strasmore terms · free, no signup
Formats
JSON · CSV · the SQL below

What each column holds

Column definitions for Distance from the prevailing mid by trade size, AAPL, one midday hour, derived from the stored result.
ColumnTypeRangeNotes
size_bucket text 5 distinct values
avg_distance_bps number 0.401 to 4.638
pct_outside_touch number 14.21 to 36.36 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.

Run it yourself

This is the exact query behind the result above. Change a ticker, a date or a column and run it against the warehouse — no account, no key. The no-signup tier is smaller than the one this page was computed on; a query that reaches past it comes back saying which plan runs it.

WITH
    quotes AS
    (
        SELECT
            ticker,
            sip_timestamp,
            toFloat64(bid_price + ask_price) / 2 AS mid,
            toFloat64(ask_price - bid_price) / 2 AS half_spread
        FROM global_markets.cache_stocks_quotes
        WHERE ticker = 'AAPL'
          AND sip_timestamp >= toDateTime('2026-09-16 14:00:00', 'UTC')
          AND sip_timestamp <  toDateTime('2026-09-16 15:00:00', 'UTC')
          AND bid_price > 0
          AND ask_price > bid_price
    ),
    fills AS
    (
        SELECT
            ticker,
            sip_timestamp,
            toFloat64(price) AS fill_price,
            size
        FROM global_markets.stocks_trades
        WHERE ticker = 'AAPL'
          AND sip_timestamp >= toDateTime('2026-09-16 14:00:00', 'UTC')
          AND sip_timestamp <  toDateTime('2026-09-16 15:00:00', 'UTC')
          AND price > 0
          AND size > 0
    )
SELECT
    multiIf(f.size < 100,  '1 to 99 shares',
            f.size < 500,  '100 to 499',
            f.size < 1000, '500 to 999',
            f.size < 5000, '1,000 to 4,999',
                           '5,000 or more')                                      AS size_bucket,
    round(avg(abs(f.fill_price - q.mid) / q.mid) * 10000, 3)                      AS avg_distance_bps,
    round(100 * countIf(abs(f.fill_price - q.mid) > q.half_spread) / count(), 2)  AS pct_outside_touch
FROM fills AS f
ASOF JOIN quotes AS q ON f.ticker = q.ticker AND f.sip_timestamp >= q.sip_timestamp
GROUP BY size_bucket
ORDER BY min(f.size)
⌘/Ctrl + Enter

Work with this data in your AI assistant

Opens ready to query, with this page's data. Free, no account.

More from this analysisHow Much Slippage to Assume in a Backtest
Quoted spread and the half spread floor, six household names, one midday hour ranking 6×3 → A naive open-to-close yardstick, netted against a ladder of slippage assumptions ranking 6×4 → A five cent concession as a share of premium, near-the-money SPY contracts by expiry ranking 5×3 → Contracts that traded once, and contracts still trading at expiry series 57×5 → One SPY put traced through its final weeks, June 2024 expiry series 35×5 → How much of a modelled credit survives one volatility point of vega table 6×5 → See all 3,214 queries →