Historical data storage is the retention of past market and trading records for later use.
That definition hides the expensive part. Keeping a year of compressed files may cost little, while decoding, joining and replaying them through a strategy or risk engine can take hours and consume more compute than the archive costs in months. The right design depends on what replay means: a single instrument query, a full-market simulation, an incident investigation or a repeatable research run.
Define the replay before pricing the archive
Start with the data path, not the storage product. A tick replay may read trades, quotes, instrument metadata, corporate actions and reference data, then apply corrections and session calendars.
A strategy test might read the same market events several times, with separate passes for normalisation, feature generation and simulation. A one-pass scan and a deterministic, multi-pass replay have different cost profiles.
Measure the retained dataset in its stored form, then record the work needed to reproduce a result. Track bytes read, decompression CPU, event rate, peak memory, network transfer, and wall-clock time. Include the operational requirements too: point-in-time recovery, correction handling, access controls, retention rules and whether an engineer can reconstruct the exact version used for a prior test.
For a planning example, take 5 TB of compressed data for one year. One full read is 5 TB, but three to six passes make total reads 15 to 30 TB.
At a sustained 0.2 to 1 GB/s, that is roughly 4 to 42 hours of read time before accounting for decoding, joins or simulation. These are typical engineering ranges, not a service guarantee. The slowest stage, often CPU decompression or a serial strategy loop, sets the actual completion time.
Compare the storage patterns
Most firms combine formats and tiers rather than choosing one system for every access pattern. The ranges below are typical cloud-market planning figures per compressed TB. Prices vary by region, provider, redundancy and commitment; throughput depends on file size, concurrency and workload.
| Approach | Typical storage cost | Typical replay read rate | Useful for and trade-offs |
|---|---|---|---|
| Object store with Parquet or similar columnar files | $20 to $25 per TB-month for frequent-access tiers | 0.2 to 1.5 GB/s per well-tuned job | Low-cost archive and broad scans. Needs file layout, manifests and query or replay code. |
| Infrequent-access object tier | $4 to $16 per TB-month, plus retrieval charges on some tiers | About 0.1 to 1 GB/s after access is available | Rare investigations and compliance retention. Retrieval delay and fees can outweigh storage savings for repeated replay. |
| Block volumes attached to replay compute | $70 to $150 per TB-month, before compute | About 0.3 to 2 GB/s per host, subject to volume and instance limits | Predictable hot working sets and repeated local reads. Costs more to retain and needs capacity planning. |
| Managed time-series or analytical database | About $100 to $600+ per TB-month equivalent, often excluding compute | Highly workload-dependent, commonly 0.1 to 1 GB/s for large scans | Interactive queries and operational access. Ingest, indexing, replicas and query charges complicate the comparison. |
Columnar files usually suit research and batch replay because a job can read selected fields and time ranges without loading every record. Partition by date and, where useful, venue or instrument family. Avoid a file per symbol per minute: millions of small objects add listing, scheduling and metadata overhead. Files in the 256 MB to 1 GB range are a common starting point, then tune against the reader's parallelism and recovery needs.
A database earns its cost when users need low-latency filtering, concurrent access or managed retention controls. It is less compelling as the only source for a full-year scan.
A database index can speed selective queries but adds storage and write overhead, while broad scans may compete with live workloads. Keep an immutable source archive if the database is a derived serving layer.
Object storage prices alone do not show the cost of replay. Reading within the same region often avoids internet egress charges, but cross-region transfer or export can commonly add around $0.05 to $0.09 per GB. At 15 to 30 TB, that is roughly $750 to $2,700 for one transfer at those typical rates. Check provider-specific pricing and include request charges, temporary storage and compute in the estimate. The Trading Technology infrastructure coverage also looks at the operational choices behind trading platforms.
Build a replay cost estimate
Estimate a representative replay on the intended storage and compute path before moving a full year. Use the same codec, event schema and concurrency planned for production. Record both a cold run and a warm run: operating-system caches can make repeated tests look faster than a first read, while remote object reads behave differently from local volumes.
- Set the replay contract. Specify dates, venues, instruments, event types, correction policy and output. State whether the run must be bit-for-bit repeatable or only statistically comparable.
- Measure bytes per pass. Capture compressed bytes fetched and uncompressed bytes decoded. Add extra passes for feature generation, joins, risk calculations and strategy runs rather than assuming one scan.
- Benchmark the bottleneck. Run with the intended worker count and file layout. Measure throughput, CPU per event, memory pressure and time spent waiting on storage. Check whether adding workers improves completion time or simply raises contention.
- Price the whole run. Add storage for the retained year, retrieval and request charges, compute time, temporary spill, cross-region transfer and any replica. Include the cost of keeping a hot copy if users replay frequently.
- Repeat after a schema or format change. Version the decoder, normalisation rules and source manifest alongside each run. Store checksums and data-quality results so an apparently successful replay can be verified later.
For a 5 TB archive, the storage line at $20 to $25 per TB-month is about $100 to $125 monthly. That figure is modest beside a replay that reads 15 to 30 TB, runs dozens of compute workers for a day, or transfers data across regions. Conversely, a team replaying a narrow date and instrument range may need only a fraction of the full archive. Cost models should represent both patterns, not multiply the largest possible scan by every user.
Keep the hot path and archive distinct
A practical design keeps recent, frequently replayed partitions close to compute and moves older partitions to a cheaper tier when access falls. Set the transition from observed replay frequency, not an arbitrary age alone. If a desk repeatedly revisits the prior quarter, a tiering policy that moves it to a retrieval tier after 30 days creates latency and charges without saving much.
Make the archive authoritative and treat optimised copies as disposable. Maintain a manifest with date coverage, schema version, source sequence ranges, checksums and correction status. A replay should fail clearly when a partition is missing or a decoder does not support its schema. Silent gaps can produce plausible but invalid strategy results.
Before committing, review these operating habits:
- Stop storing every field in every replay file when most jobs select a small subset.
- Stop creating tiny files without measuring listing and scheduling overhead.
- Stop comparing storage prices while excluding compute, retrieval and transfer.
- Stop treating a successful run as reproducible unless its data versions and processing rules are recorded.
Frequently Asked Questions
What is the cheapest way to store historical market data?
For large archives that are read occasionally, compressed files in object storage are often the lowest-cost practical option. Infrequent-access tiers can reduce monthly storage charges, but retrieval fees and delays may make them costly for regular replay.
Is Parquet suitable for tick data replay?
Parquet can work well for analytical replay because columnar reads avoid loading fields a job does not use. Partitioning, file size and row-group layout need testing against the actual event filters and decoder.
How much data does a year of market replay use?
It depends on instruments, venues, event types, sampling and compression. Estimate from a representative period, then multiply by the number of full or partial passes in the replay pipeline.
Should a broker use a database or object storage for historical data?
Object storage is often a better fit for low-cost retention and large batch scans. A database can suit interactive queries and concurrent users, but indexing, replicas and compute add cost; many systems use both.
How can a trading firm make historical replay reproducible?
Version the source partitions, schema, decoder and processing rules used for each run. Record checksums, correction status and the replay configuration so another run can identify missing or changed inputs.
Platforms · Software · Providers · Markets