High-frequency data

Data volume & engineering

∞structural
By . Reviewed 22 October 2026. As of 2026: a permanent feature of the market, not an edge that decays.

Terabytes per day per market. High-frequency data is enormous, irregularly timed, and unforgiving of naive storage: the engineering is half the battle.

The idea

One instrument to one venue: raw versus stored annotated diagramDG-FIREHOSE
PER INSTRUMENT-DAY raw 80 MB stored ~10 MB PER VENUE-DAY (3,000 NAMES) raw 240 GB ÷ 8 (Zstd) delta · dictionary · run-length stored ~30 GB/day ≈ 10 TB / year What it actually costs Object storage tens of $ / month Capture hardware (lossless) Market-data licence disk is the cheap part – these dwarf it by orders of magnitude

What this shows. A single instrument is tens of megabytes of tape a day and a whole venue is hundreds of gigabytes raw, but columnar compression at roughly eight times collapses that to tens of gigabytes stored – about ten terabytes a year. So disk is trivially cheap. The real bill is capturing the feed losslessly and paying the venue's market-data licence, which dwarf storage by orders of magnitude.

How much data does high-frequency trading actually generate?

More than any statistics course prepares you for. A daily bar is one row per instrument per day; a tape is one row per event, and on an active instrument events arrive thousands of times a second in bursts (irregular time). The row-count ratio between a tape and a daily series is six to nine orders of magnitude.

US options data is the extreme case. In its notice of 15 September 2025, OPRA's processor SIAC projected maximum output for October 2025 of 12.322 million messages in any 100-millisecond interval and 1.417 million in any 10 milliseconds, on a single stream, with capacity for 253 billion messages a day. Those are planning maxima, not observed peaks, and OPRA offers two redundant streams, so bandwidth doubles if you take both. Databento, a data vendor, reports that OPRA bursts can exceed 50 Gbps and that a day of OPRA packet capture is roughly 80 times a day of Nasdaq TotalView. A top-of-book quote stream for one liquid equity is far smaller but still runs to millions of messages a day, and full-depth order-by-order data multiplies that. Crypto adds 24/7 trading with no overnight lull across dozens of venues.

The growth has structural causes: finer tick sizes, more order types, more venues (fragmentation), nanosecond timestamps, and market makers who re-quote on every input. The volume is the defining engineering characteristic of this data, so treat it as a systems problem first and a statistics problem second.

The tape-to-bar row-count ratio is six to nine orders of magnitude: a daily series has one row per instrument-day, a tape has one row per event, and events arrive in bursts thousands per second on an active name.
rowstaperowsdaily  ∼  106–109per instrument\frac{\text{rows}_{\text{tape}}}{\text{rows}_{\text{daily}}} \;\sim\; 10^{6}\text{–}10^{9} \quad\text{per instrument}

Why can't you just use CSV and Pandas?

Because the layout decides whether a query takes milliseconds or minutes. Most tick queries ask for something like the trade prices for one instrument between 14:00 and 14:05. A row store must read every field of every row in that range; a columnar store reads only the price column for only that time slice.

CSV fails on every axis. It writes numbers as text, so a price like 50.01 costs five bytes or more where a binary float64 costs eight and a scaled integer can cost less, and a full-precision double needs 15 or more characters. It has no types, no compression, no index and no predicate pushdown. That is fine for a few thousand rows and hopeless for a billion. Pandas adds a second problem: loading a day of order-by-order data materialises every column in RAM, so you run out of memory before you run out of patience. You either chunk the work by hand or move to a columnar engine that streams.

A columnar query reads only the columns and row-ranges it touches; a row store reads everything in range. For a query touching a few of CC columns over a fraction of NN rows, the bytes-read ratio is the saving.
bytescolumnarbytesrow  ≈  kC⋅nN,k≪C,  n≪N\frac{\text{bytes}_{\text{columnar}}}{\text{bytes}_{\text{row}}} \;\approx\; \frac{k}{C}\cdot\frac{n}{N}, \qquad k \ll C,\; n \ll N

What storage formats and engines solve this?

Tick data lives in columnar stores, and the choice is a triangle of cost, speed and fidelity. Parquet with Arrow and an engine such as DuckDB, ClickHouse or Polars is the open default: columnar files in cloud object storage, queried by an embedded or columnar engine. It is cheap, portable, free of licence fees and scales out, which is the main reason the storage barrier has fallen. kdb+/q is the incumbent for serious tick work: an in-memory-first columnar time-series database with a terse vector language, strong at as-of joins (aligning each trade to the prevailing quote, which trade-sign inference needs) and at real-time streaming analytics. It has been expensive, and it remains the benchmark for latency-sensitive tick analytics.

ArcticDB suits Python-centred research. According to its documentation, Arctic was built at Man Group from 2012 and open-sourced in 2015 on a MongoDB backend. ArcticDB, begun in 2018, is a C++ rewrite with no MongoDB dependency that stores dataframes on object storage such as S3. Man Group announced a partnership with Bloomberg around it in February 2023. Check its Business Source License before production use; it is not plain open source. At the capture edge sits raw pcap: the network packets stored losslessly so you can re-decode the feed later. It is the ground truth, at the cost of size. Most serious shops run more than one tier.

The format choice trades cost against query latency against operability against fidelity: Parquet on object storage for cheap reach, kdb+ for low-latency analytics, ArcticDB for Python versioning, pcap for lossless ground truth.
pcap (fidelity)  →  Parquet (cost)  →  kdb+ (latency)\text{pcap (fidelity)} \;\to\; \text{Parquet (cost)} \;\to\; \text{kdb+ (latency)}

How does compression work on tick data?

Tick data compresses well because it is repetitive and slowly varying, and a columnar layout puts like values next to each other. A price column reading "50.00, 50.00, 50.01, 50.01, 50.01, 50.00" becomes a first value plus deltas that are mostly zero, which a general compressor shrinks easily.

The encodings have standard names. Apache Parquet documents dictionary encoding (RLE_DICTIONARY) for side, condition-code and instrument columns, a run-length and bit-packing hybrid for repeated values and small integers, and DELTA_BINARY_PACKED for monotonic columns such as timestamps. On top goes a byte-level codec: Zstandard for ratio, LZ4 for decode speed. The best-documented figure comes from outside finance. Pelkonen et al. (2015), describing Facebook's Gorilla monitoring database, combined delta-of-delta timestamps with XOR-encoded floating-point values and averaged 1.37 bytes per data point, a 12-fold reduction. Tick data has its own structure, so the ratio will differ, but the technique carries over; the 8-fold ratio in the worked example below is an illustrative assumption in the same range.

The trade-off is CPU against bytes. Maximise the ratio for archives and favour decode speed on hot query paths. This is why a raw "terabytes a day" figure becomes a few hundred gigabytes stored.

Delta encoding turns a slowly-varying column into a stream of near-zeros, dictionary encoding maps a few distinct categories to small integers, and a general codec crushes the result, compounding to the 5–20× range this site assumes for tick data.
prices  →  Δ    {0,0,+1,0,0,−1,… }  →  Zstd    15–120 size\text{prices} \;\xrightarrow{\;\Delta\;}\; \{0,0,+1,0,0,-1,\dots\} \;\xrightarrow{\;\text{Zstd}\;}\; \tfrac{1}{5}\text{–}\tfrac{1}{20}\ \text{size}

What does capturing the feed correctly actually take?

Receiving every message, in order, at the rate the venue sends it. Storage is cheap; not losing a message during a burst is the hard part. Capture means timestamping at the network card, detecting sequence gaps and recovering them, and writing to disk without dropping anything under load. A capture that silently drops packets leaves gaps that corrupt every reconstructed book downstream (sequence numbers).

In practice that takes kernel-bypass NICs, so the operating system does not drop multicast during a burst; hardware or PTP timestamping (clock sync); A/B feed arbitration for gap-free recovery; and enough buffering that a storage stall never turns into packet loss. OPRA's notice also asks participants to add 10% to their bandwidth for retransmissions, and reports a median latency under 18 microseconds. This is the low-latency stack and colocation and FPGA, seen from the data side. Open formats commoditised storage and query. Lossless capture at the edge still needs colocated hardware and careful engineering, so the value of a clean tape increasingly lies in how it was captured.

Why is data volume both a barrier and a business?

Because clean, complete tick data is hard and costly to capture, store and query, and that difficulty is what makes a clean dataset worth paying for (datasets). If reconstructable L2 and L3 data were trivial it would be free.

The feeds also extract rent, and regulators have noticed. The US Securities and Exchange Commission's Market Data Infrastructure rule (Release 34-90610, 9 December 2020) expanded the content of consolidated data and introduced competing consolidators. The UK Financial Conduct Authority's trade data review (results published 2 March 2023) found concentrated markets where users "have little choice", complex pricing, and costs likely to be passed on to retail investors and savers. Data fees are a recognised cost line in their own right, separate from hardware and storage.

What has shifted is which half is hard. Storage economics collapsed with object stores, Parquet and DuckDB. Capture and licensing economics did not. The edge moved from "can you afford kdb+" to "can you capture losslessly and clean correctly", which is about engineering discipline more than budget, and good news for a solo shop (going independent in 2026).

Worked example

This is a back-of-envelope sizing for one instrument-day, using illustrative numbers. Take a liquid equity with full-depth order-by-order data and assume about 2,000,000 messages on an active day. A normalised message is roughly 40 bytes (timestamp 8, sequence 8, type 1, side 1, price 8, size 8, ids and flags about 6), so the raw size is 2,000,000×40=80 MB2{,}000{,}000 \times 40 = 80\ \text{MB} per instrument-day uncompressed. Scale to a venue of 3,000 active instruments and that is about 240 GB a day raw.

Per instrument-day: 2M messages × ~40 bytes ≈ 80 MB raw. A 3,000-name venue ≈ 240 GB/day raw, which columnar compression at ~8× collapses to ~30 GB/day stored. Over 252 trading days that is about 7.6 TB; the 10 TB below rounds up generously.
240 GB/day⏟raw  →  ÷ 8 (Zstd)    30 GB/day⏟stored  ≈  10 TB/yr\underbrace{240\ \text{GB/day}}_{\text{raw}} \;\xrightarrow{\;\div\,8\,(\text{Zstd})\;}\; \underbrace{30\ \text{GB/day}}_{\text{stored}} \;\approx\; 10\ \text{TB/yr}

Precisely, 30 GB a day over 252 trading days is 7.56 TB, and 10 TB takes about 333 days of capture, so the round figure suits a venue that trades every day, such as a crypto exchange. Either way, price it. Amazon S3 Standard in US East is listed at $0.023 per GB-month for the first 50 TB (AWS Price List, published 15 October 2026), so 10 TB costs about $230 a month and 7.6 TB about $174. Glacier Flexible Retrieval at $0.0036 per GB-month brings 10 TB to about $36. Storage is therefore a few hundred dollars a month on standard tiers and tens on archive tiers, small next to the cost of capture hardware and market-data licences. Message rates, widths and fees differ by venue, so check the venue's own statistics and fee schedule before you plan. The hard part, then, is a clean, compressed and reconstructable tape, not the disk it sits on (datasets and tools).

Sources

  1. Pelkonen, T., Franklin, S., Teller, J., Cavallaro, P., Huang, Q., Meza, J. and Veeraraghavan, K. (2015). "Gorilla: A fast, scalable, in-memory time series database". Proceedings of the VLDB Endowment 8(12), 1816–1827. doi.org
  2. OPRA / SIAC. "Revised OPRA Capacity Projections" (notice of 15 September 2025). opraplan.com
  3. US Securities and Exchange Commission. "Market Data Infrastructure", final rule, Release No. 34-90610 (9 December 2020). sec.gov
  4. UK Financial Conduct Authority. "Trade data findings" (2 March 2023). fca.org.uk
  5. Apache Parquet. "Encodings" (file format documentation). parquet.apache.org
  6. ArcticDB documentation. "History". docs.arcticdb.io
  7. Amazon Web Services. "Amazon S3 pricing", US East (N. Virginia), price list published 15 October 2026. aws.amazon.com
  8. Databento (5 September 2025). "Beyond 40 Gbps: Processing OPRA in real-time". databento.com

Where this fits

Common questions

Why is high-frequency data hard to work with?
Because it breaks the assumptions slower data lets you make. It is enormous (terabytes per day per market), irregularly timed (events, not clock ticks), heavy-tailed and non-normal, and contaminated by microstructure noise such as bid-ask bounce. Timestamps need care, and naive resampling destroys exactly the signal you want. It demands event-driven, point-process thinking rather than fixed-interval statistics.