Market structure
The SEC publishes, for every US common stock and ETF, a day’s cancels, trades, odd lots, trades
against hidden orders, and order and trade volume, measured from the exchanges’ own feeds. The
counts come per security and per security and exchange, with the security’s market cap, turnover,
volatility and price deciles. We serve both series from 2012 as two event types of
stocks/us. Source: SEC.
Not live yet. The types answer 404 until the history is published; this page and the
changelog will say when it is.
curl -s "https://getmarkethistory.com/query/v1/events/stocks/us/AAPL?type=market_structure&start=2024-01-01&end=2024-03-31" \ -H "Authorization: Bearer $MH_KEY"| Parameter | Meaning |
|---|---|
type |
market_structure (one row per day) or market_structure_exchange (one row per day and exchange). |
start, end |
A date or UTC instant; a row’s time is its trading day at 00:00 UTC. |
limit |
Rows a page; follow cursor (the X-Next-Cursor header) for the next one. |
format |
jsonl (default), csv, json, parquet or arrow. mbt1 is bars only. |
Each row is billed as one bar. The response says X-Feed: sec.
Columns
Section titled “Columns”| Column | Meaning |
|---|---|
ts |
the trading day, 00:00 UTC |
seq |
0, or the row’s place among the day’s exchanges (market_structure_exchange, in exchange order) |
security |
0 stock, 1 ETF |
exchange |
market_structure_exchange only: the exchange, a number labelled on Events |
mcap_rank, turn_rank, volatility_rank, price_rank |
deciles 1 to 10 of market cap, turnover, volatility and price; null when not ranked |
cancels |
cancel messages, full or partial |
trades, trade_vol |
trades and their volume (market_structure_exchange) |
lit_trades, lit_vol |
trades not against hidden orders, and their volume |
hidden, hidden_vol |
trades against hidden orders, and their volume |
trades_for_hidden, trade_vol_for_hidden |
trades and volume on the exchanges that report trades against hidden orders |
odd_lots, odd_lot_vol |
odd-lot trades and their volume |
trades_for_odd_lots, trade_vol_for_odd_lots |
trades and volume on the order-based exchanges (market_structure) |
order_vol |
volume of all add-order messages |
Counts are whole numbers. Volumes are shares (the SEC publishes thousands; we multiply by
1,000, which is exact). A metric the SEC does not publish for a file or an exchange is null, never
0: trades and trade_vol are per exchange only, trades_for_odd_lots and
trade_vol_for_odd_lots per security only.
Ratios
Section titled “Ratios”The SEC’s own metrics are ratios of these columns:
| Metric | Formula |
|---|---|
| cancel-to-trade | cancels / lit_trades |
| trade-to-order volume | 100 × lit_vol / order_vol |
| hidden rate | 100 × hidden / trades_for_hidden |
| hidden volume | 100 × hidden_vol / trade_vol_for_hidden |
| odd-lot rate | 100 × odd_lots / trades_for_odd_lots |
| odd-lot volume | 100 × odd_lot_vol / trade_vol_for_odd_lots |
What to know
Section titled “What to know”- Hours and universe. Counts run from 9:35 to 16:00 Eastern, over the SEC’s universe of common stocks and ETFs (“more than 4,800 securities” per the SEC; 9,216 tickers in 2026 Q2).
- Tickers are the day’s. The SEC keys each row by the ticker it traded under, with no permanent identifier. A ticker that changed hands is one series of two companies, and a renamed company is two series. Tickers no longer listed are served too.
- NYSE and Amex. Amex’s trades, volume and odd lots come from the consolidated tape, and so did NYSE’s until April 2017. For both, from January 2014, trades against hidden orders are estimated as the tape’s count minus the exchange’s direct feed. NYSE’s measurement moved to the NYSE Integrated Feed on 2017-05-01, and NYSE reports every symbol from 2018-04-09. NSX reports trades against hidden orders from 2018-05-21, CHX from 2019-11-04. Before those dates their hidden columns say nothing (null, or 0 where the SEC wrote 0).
- Odd lots. The definition of a round lot changed on 2025-11-03, so the odd-lot columns change meaning that day.
- Exchanges over time. IEX appears from 2017-07, MEMX and MIAX from 2020-07. NSX has no rows
from 2014-07 to 2015-12 and from 2017-04 to 2018-03. From 2016-01 to 2017-06, about 1,650 rows
have
exchange255 (none): the SEC lists the security that day with every metric blank, so every metric is null. - New quarters arrive about five weeks after a quarter ends.
- Not included: the SEC’s summary tables (sums of these rows by exchange, decile and quartile) and its quote-life series (how long orders rest before a cancel or trade, by size group), which these daily counts cannot give.