Skip to content
Back to projects
// Case study2026

BTC 5M Predictor

Realtime BTC/USD 5-minute interval settlement and forecasting service.

BTC 5-minute predictor dashboard
Settlement window
5 minutes
Advance forecast
T-10s
Backend
FastAPI
Operator UI
Streamlit
Role

Solo engineer

Stack
  • Python
  • FastAPI
  • Streamlit
  • PostgreSQL
  • Linux

Problem

Polymarket-style 5-minute BTC markets need a service that ingests live ticks, settles each interval deterministically, and produces two forecasts per window — one ten seconds before the interval, one real-time inside it.

Approach

FastAPI service ingests live BTC/USD ticks from a realtime data source, persists raw ticks before any downstream processing, constructs ordered tick streams + normalized candles, and emits deterministic 5-minute settlements. A Streamlit operator UI surfaces health, latest settlements and predictions.

Outcome

Running as a standalone private service with an operator dashboard and per-interval audit log. Most actively developed repo on my GitHub.

Design constraints

Determinism matters more than cleverness here — a settlement has to be reproducible from stored ticks alone so operators can replay and audit any window. Raw ticks land first; everything downstream is a pure function of that table.

Why two predictions

The T-10s forecast exists so a trader (or an automated strategy) can take position before the window opens. The in-window real-time assessment lets the operator see how the current interval is developing without waiting for settlement.