Home / Use cases

Market-data lakehouse

The problem

Market data arrives from many places: exchange feeds, vendors, broker files and internal systems. Each one has its own symbols, time zones and corrections. Researchers copy what they need into notebooks. Production jobs read a different copy. When a vendor corrects a price, one copy changes and the other does not. A backtest then uses data that was not known at the time, and the result looks better than it should.

What a good solution looks like

  • One governed store for ticks, bars, order-book snapshots and reference data, with access control and lineage.
  • Raw data kept as received. Corrections and restatements are added as new records, so you can rebuild any past view.
  • Point-in-time joins. A query can ask "what did we know at this time?" and get the answer without data from the future.
  • A clear symbol and reference model, so the same instrument has one identity across vendors.
  • Columnar storage and a file layout that fit the common queries: by instrument, by date, by venue.
  • Freshness and completeness checks per source, with alerts when a feed is late or has gaps.
  • Cost under control. Storage tiers and compute that match how often each data set is read.

How DataBlock approaches it

  1. Map the sources and the consumers. Which teams read what, how fresh it must be, and how far back.
  2. Design the medallion layers. Bronze keeps raw files and messages. Silver normalises symbols, time zones and types. Gold holds the bars, features and views that research and production share.
  3. Model corrections and as-of time in silver, so point-in-time queries are correct by design.
  4. Tune the layout (partitioning, clustering and file sizes) against the real query patterns.
  5. Add governance and checks: catalog, lineage, dbt tests and alerts on late or missing data.
  6. Hand over with docs and a walkthrough for research and engineering.

Related experience

DataBlock has not built a market-data lakehouse for a client yet. Related work:

  • At a healthcare analytics company, Edward Plata set up a medallion lakehouse on Databricks with Unity Catalog for lineage and access control.
  • At Accenture he built a self-service analytics platform on Databricks for 200+ analysts, and Kafka and Spark Structured Streaming pipelines for live dashboards.
  • At WeMeta he contributed a design to move market and event data from Postgres to Delta Lake with change data capture.
  • Titan, his C++20 market-data ingester, keeps order books from a public websocket feed. Write-up on edwardplata.com.

Service

This use case maps to data platform engineering.

Do your research and production jobs read the same market data?

Book a 30-minute call

Ask a question