How cbyn/bitpredict works
bitpredict collects Bitfinex order-book and trade snapshots, engineers microstructure features, trains and evaluates prediction models, then runs threshold-based theoretical trading and presents prediction/performance charts. The graph follows documented workflows and sampled calls; unsampled runtime details are omitted, and uncertain training-to-live model handoff is shown as unverified.
Main entry points: features.py Feature Engineering · model.py Model Training · predict.py Live Prediction · collect_books.py Book Collector
Components 20
Market Data
- Book Collector
collect-data/collect_books.py - Trade Collector
collect-data/collect_trades.py - Market MongoDB
- Trade Aggregation
mongo-queries/group_ltc.js
Prediction Analytics
- Feature Engineering
model/features.py - Model Training
model/model.py - Strategy Backtest
model/strategy.py
Live Trading
- Live Prediction
app/predict.py - Prediction MongoDB
- Prediction Checks
app/check_preds.py - Performance Analysis
app/performance.py
Web Presentation
- Live Charts
app/run_charts.py - Extended Charts
app/run_charts_extended.py - Performance Charts
app/run_charts_performance.py - Flask App
app/app.py - Chart Pages
app/templates
Other components
- User
- Bitfinex API
Connections 19
- Book Collector → Bitfinex API: fetches books
collect-data/collect_books.py - Trade Collector → Bitfinex API: fetches trades
collect-data/collect_trades.py - Book Collector → Market MongoDB: writes snapshots
collect-data/collect_books.py - Trade Collector → Market MongoDB: writes trades
collect-data/collect_trades.py - Feature Engineering → Market MongoDB: reads market data
model/features.py - Trade Aggregation → Market MongoDB: aggregates trades
mongo-queries/group_ltc.js - Feature Engineering → Model Training: engineers model inputs
README.md - Model Training → Strategy Backtest: supports strategy evaluation
- Feature Engineering → Live Prediction: builds live features
app/predict.py - Model Training → Live Prediction: supplies trained model
- Live Prediction → Prediction MongoDB: writes predictions
app/predict.py - Prediction Checks → Prediction MongoDB: checks predictions
- Performance Analysis → Prediction MongoDB: analyzes results
- Live Charts → Prediction MongoDB: reads chart data
app/run_charts.py - Extended Charts → Prediction MongoDB: reads chart data
app/run_charts_extended.py - Performance Charts → Prediction MongoDB: reads chart data
- User → Flask App: requests pages
app/app.py - Flask App → Chart Pages: renders pages
app/app.py - Bootstrap → jQuery: requires
app/static/js/bootstrap.js