FinTech · Market data

Real-time options flow and dark pool pipeline

A market data pipeline that ingests the US options (OPRA) firehose and dark pool trades without dropping messages during market-open bursts.

item bounded queue
50k
messages per batch write
5,000
burst detection buckets
200 ms
automatic feed recovery
< 3 min
Context

The challenge

Client
Options analytics company (name withheld under NDA)
Industry
FinTech · Market data

Market open produces violent traffic bursts. The previous approach dropped messages and stalled silently, so dashboards showed stale or incomplete flow at the moments traders cared about most.

Solution

What we built

  1. Stream writer with a bounded 50,000-item queue, a connection pool per stream, pipelined batch writes of 5,000 messages and alerts on any dropped message.

  2. 60-second aggregation across 8 parallel jobs feeding live dashboards over WebSockets.

  3. Two-tier trade sentiment (bid/ask spread first, tick rule as fallback), a correction pass five minutes after each trade and atomic alert cooldowns.

  4. Burst detection on 200 ms buckets and self-healing that restarts a stalled feed within three minutes.

Architecture

How the system fits together

The path a request or message takes through the production system, end to end.

  1. OPRA firehose
  2. Bounded queue · 50k
  3. Redis Streams
  4. 60s aggregation × 8
  5. WebSocket fan-out
  6. Analytics UI

Tech stack

  • Python
  • Redis Streams
  • RediSearch
  • WebSockets
  • Multithreading
  • AWS S3
  • PM2
Start a project

Have a similar system to build?

Tell us what you want to ship. You will get a technical roadmap and a fixed-scope proposal within 48 hours.

  • Reply within 1 business day
  • NDA on request
  • You own 100% of the IP