Skip to content

Releases

v0.2.0

Choose a tag to compare

@CtrlAltDevelop CtrlAltDevelop released this 26 Nov 14:08
6e26f2b

Added

  • GET /v1/symbols lists the symbols a deployment serves and the available
    timeframes, so a client can discover what to request.

Changed

  • Trade price and qty are limited to 38 digits and 18 decimal places. A
    trade outside that is rejected as malformed and dead-lettered; before, an
    absurd magnitude passed validation, failed the database insert on every
    redelivery and stalled the aggregator. Prices below 1e-18 are 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
    malformed instead of crashing the ingest source.

v0.1.2

Choose a tag to compare

@CtrlAltDevelop CtrlAltDevelop released this 15 Oct 12:10

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

Choose a tag to compare

@CtrlAltDevelop CtrlAltDevelop released this 15 Oct 12:01

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/to outside the representable date range are refused with 422
    instead of failing with 500.
  • mdp ingest and mdp aggregate close their Redis connection on exit.

Full changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@CtrlAltDevelop CtrlAltDevelop released this 30 Sep 07:04
b27b75e

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
    one TradeSource protocol. 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/ws WebSocket with candles:{symbol}:{tf}
    channels fanned out from one Redis subscription per channel, /healthz,
    /readyz and /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 mdp command, 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.