You need to agree to share your Hugging Face information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

This dataset is free to browse and gated for download. Approval is tied to a Papers With Backtest subscription, which also covers the other datasets of the organisation: https://paperswithbacktest.com/pricing

Log in or Sign Up to review the conditions and access this dataset content.

Options Yearly Transaction Cost Params

The parameters of the cost model a backtest charges on a listed US option: half the quoted bid-ask spread, in dollars, by option price, distance to the money and liquidity of the underlying, with a row of its own for each of the 50 underlyings with the largest option volume. The options counterpart of Stocks-Yearly-TransactionCostParams and Forex-Yearly-TransactionCostParams.

11,440 rows, 16 columns: each year 5 liquidity tiers and 50 underlyings, each a grid of 2 moneyness bands by 8 price bands; 2014 to 2025 estimated from trades, 2026 measured on 4.4 million quotes of 5,416 underlyings.

Why It Matters

Options-Daily-Price holds trades, not quotes, so a backtest fills at the last trade and must add the spread itself. On options that spread is not a rounding error: the median half spread is 2.6 % of the option's price for the ten most traded underlyings, 5.3 % for the next 80, 9.3 % for the next 470, 13 % below them and 24 % for underlyings trading under a thousand contracts a day. A strategy that pays nothing for it, or a flat fee, is measuring something else.

Load It

pip install --upgrade pwb-toolbox
from pwb_toolbox import datasets as pwb_ds

params = pwb_ds.load_dataset("Options-Yearly-TransactionCostParams")
spy = params[params["symbol"] == "SPY"]

From pwb-toolbox 0.1.47, pwb_toolbox.backtesting.options_half_spread(price, otm, tier=..., underlying=..., year=...) reads this table and returns the dollar half spread of one contract, with the fallbacks below.

Columns

Column Name Description
symbol Underlying ticker for an underlying's own row (SPY, AAPL); tier_0 to tier_4 for a liquidity-tier row.
tier Liquidity tier, 0 to 4, by mean daily option volume of the underlying: <1k, 1k-10k, 10k-100k, 100k-1M, >1M contracts. On an underlying's row, the tier it sat in over the measurement window.
year Calendar year of the measurement.
moneyness near: strike within 10 % of the spot (K/S for a call, S/K for a put, between 0.9 and 1.1). far: beyond.
price_min, price_max Option price band, in dollars per share: 0, 0.10, 0.50, 1, 2, 5, 10, 25, and no upper bound (price_max null) for the last.
half_spread Median of (ask - bid) / 2 over the cell, in dollars per share, to $0.001. Multiply by the contract multiplier (100) for the cost of one contract, on each side.
n_quotes Quotes in the cell, one per traded contract and session. On a tier_fallback row, the underlying's own count, under 20. On a year estimated from trades, the contracts (one per session) whose prints the estimate rests on.
n_underlyings Underlyings contributing to the cell (1 on an underlying's row).
method measured, or tier_fallback when the underlying had fewer than 20 quotes in that cell: the row then carries its tier's value. On the years estimated from trades (2014 to 2025), trade_estimate on a tier row, estimated from trades (below), and trade_estimate_tier_fallback on every underlying's row, which carries its tier's estimate.
volume_min, volume_max Bounds of the tier, in contracts a day (volume_max null for the top tier).
underlying_volume On an underlying's row, its mean daily option volume over the window; null on a tier row.
period_start, period_end First and last session of the year's measurement (a snapshot, or a trade session for an estimated year).
n_sessions Sessions measured that year.

How It Was Measured

2026 is measured on end-of-day snapshots of the whole US listed chain: the last quote of each contract before the close (15:59 ET for equity options, 16:14 for the ETFs that close late). Two-sided quotes only, and only contracts that traded that session, the ones a backtest on daily bars can actually fill. Each quote is placed in a price band by its mid, in a moneyness band by its strike against the underlying's price, and in a tier by its underlying's mean daily option volume over the window; the half spread of a cell is the median over its quotes.

The 50 underlyings with the largest option volume get a grid of their own, measured on their quotes alone. Their rows are not always tighter than their tier (Apple near the money at $1-2: 0.105 against 0.03 for the top tier); they are more accurate, not more lenient.

2014 to 2025: Estimated From Trades

There is no quote session before May 2022 and only a few a year after it, but every trading session from June 2014 has its trades, and a trade carries the spread it crossed: successive fills of one contract alternate between bid and ask. Each cell of 2014 to 2025 is estimated from that bounce, the mean move between successive single-leg electronic fills of its contracts, halved and pooled over the year's sessions (a contract whose mean move exceeds its own price is a bad print or an expiry-day collapse, and is left out). The bounce is not the quoted spread: it is mapped onto it, per price band, moneyness and tier, by a power law fitted on the 28 quote sessions of May 2022 to September 2025, where both are known.

How close it comes, on those sessions, as the median error over the cells:

  • leaving each session out in turn: 17 % (one cell in ten above 47 %), against 20 % for carrying the other sessions' level over; on the four stress sessions, 22 % against 50 %;
  • leaving each year out, at the yearly level this table publishes: 10 % to 19 % for 2022 to 2025, against 11 % to 31 %;
  • the whole chain run on every trading session of 2022 to 2025, each year left out of the fit, against that year's quotes: 13 % to 20 % on the tier rows, but 32 % to 36 % on the rows of the 50 largest underlyings, no better than their tier's row. So in an estimated year an underlying's row carries its tier's value (trade_estimate_tier_fallback); n_quotes still counts its own contracts.

Three choices behind it. Only automatic-execution and intermarket-sweep fills count, the two trade conditions that mean the same thing before and after the 2019-2020 overhaul of option trade conditions. The quote sessions from October 2025 on are left out of the fit (see the caveat on the quote feed below). A half spread is never below half a cent.

How to Read a Contract's Cost

  1. Use the underlying's own row if it has one, else its tier from its trailing option volume (21 sessions is what the published strategies use).
  2. Pick near or far, then the price band holding the option's price.
  3. Never charge more than the price itself: a $0.05 option cannot cost $0.05 on top of its price to sell.
  4. A year without a measurement takes the nearest measured year, and the cost should be labelled as extrapolated. 2014 to 2025 are estimated from trades (method) and 2026 is measured on quotes, so no year between 2014 and 2026 is missing; the years before 2014 take 2014 and the years after 2026 take 2026.

pwb-toolbox applies these four rules, and maps FB to META's row (the options table names an underlying as it was named at the time).

Caveats

  • 2014 to 2025 are estimates. They rest on trades mapped onto quotes, not on quotes: a cell is within about 17 % of the quoted spread in the median, and one in ten is off by half or more. 2014 starts in June. The mapping is the one of May 2022 to September 2025; if the link between trades and quotes was different before 2022, nothing in the trades can show it.
  • A break in the quote feed, 2025-09-30 and 2025-10-10. From 2025-09-30 one exchange alone sets the best bid and offer more and more often (from under a tenth of the time to over a third, while its share of executions stays near 5 %); on 2025-10-10 the quote updates per contract fall by about 60 % overnight and the quoted spread of the less liquid underlyings doubles, and both stay so. The trades see none of it: the bounce, the round-price share and the fill sizes do not move. Hence 2022 to 2025, the last quarter of 2025 included, come from trades, and 2026, measured on quotes after the break, is probably overstated on tiers 0 to 3 (the trades put it at about half to two thirds of the quoted level; the top tier is barely affected). It is kept as measured: if the feed is at fault, 2026 charges too much, never too little.
  • Before 2014, every year takes the 2014 level.
  • Five snapshots. It measures the level of a cell, not its day-to-day variation, and the close of a quiet week rather than a stressed market.
  • No SPX, RUT, XSP or VIX quotes in the snapshots: those options are priced by their tier. NDX is measured, and wide at 16:15.
  • Quoted, not effective. A patient order inside the spread pays less than half the quoted spread; this is the cost of crossing it, the conservative side.
  • Contracts that did not trade are left out, so a far, deep or long-dated contract is measured only on the days it traded.

Access

Browsing the card and the schema is open to anyone. Downloading the files needs an approved request, tied to a subscription: what each plan includes. The same approval covers every dataset of the organisation.

Elsewhere

Downloads last month
587