Repository navigation
Releases
Releases · CtrlAltDevelop/mdp-outbox
v0.2.0
Added
GET /v1/symbolslists the symbols a deployment serves and the available
timeframes, so a client can discover what to request.
Changed
- Trade
priceandqtyare limited to 38 digits and 18 decimal places. A
trade outside that is rejected asmalformedand dead-lettered; before, an
absurd magnitude passed validation, failed the database insert on every
redelivery and stalled the aggregator. Prices below1e-18are now refused. - Docker base image is
python:3.15-slim, and locked dependencies are updated.
Fixed
- A WebSocket binary frame gets an error reply instead of dropping the
connection. - A Binance or Kraken frame with an out-of-range timestamp is rejected as
malformedinstead of crashing the ingest source.
v0.1.2
Changed
- Locked dependencies updated: python-dotenv 1.2.4 and tzdata 2026.5, plus
development tools. The Docker image picks these up; the package's own
dependency ranges are unchanged.
Full changelog: v0.1.1...v0.1.2
v0.1.1
Fixed
- A WebSocket client whose connection failed mid-send now always leaves the
hub; before, its subscriptions and the client gauge leaked for good. - The hub's Redis reader survives any error instead of only connection
errors, so live updates no longer stop silently, and a failed Redis
unsubscribe no longer aborts a client's disconnect half way. from/tooutside the representable date range are refused with 422
instead of failing with 500.mdp ingestandmdp aggregateclose their Redis connection on exit.
Full changelog: v0.1.0...v0.1.1
v0.1.0
Added
- A normalized trade schema with decimal-string prices, and deduplication on
(source, trade_id)at ingest and in the trade log. - Source adapters for the Binance and Kraken public WebSockets and for a
matching engine's JSON events over WebSocket or a Redis stream, all behind
oneTradeSourceprotocol. Reconnects use exponential backoff with full
jitter, and a watchdog catches silent connections. - A seeded synthetic source for demos, tests and benchmarks.
- An event-time candle aggregator for 1m, 5m, 1h and 1d with a watermark,
allowed lateness, a wall-clock idle advance, and dead-lettering of late
trades. - Redis Streams with consumer groups between ingest and aggregation, and a
dead-letter stream with the reason and original payload of every refusal. - TimescaleDB storage: a candles hypertable with idempotent snapshot upserts,
a deduplicating trade log, and a per-symbol checkpoint written in the same
transaction. Compression and retention policies. - Restart recovery from consumer-group offsets, orphaned messages and the
checkpoint. GET /v1/candles, the/v1/wsWebSocket withcandles:{symbol}:{tf}
channels fanned out from one Redis subscription per channel,/healthz,
/readyzand/metrics/.- Backfill from Binance and Kraken REST klines, and a repair job that finds
minutes with no candle and fetches them, then rebuilds the closed higher
timeframes. - Prometheus metrics for throughput, lag, errors and fan-out, and a
provisioned Grafana dashboard. - The
mdpcommand, a Dockerfile, and a docker compose stack that runs the
whole pipeline on the synthetic source. - Benchmarks for aggregator throughput, end-to-end latency and storage.