Clone and install
ws- WebSocket client for Chainlink price feedchalk- Terminal UI colors
Start tracking
Launch the bot to begin monitoring live BTC markets:You’ll see the real-time interface with:
- Live BTC price from Polymarket’s Chainlink oracle
- Strike price for the current 5-minute interval
- Model prediction (UP/DOWN with confidence)
- Market probability vs model probability
- Expected Value and edge calculations
- Rolling accuracy stats
Watch predictions
The bot updates every second. Each 5-minute interval:
- Monitors live BTC price via WebSocket
- Fetches strike price from Vatic Trading API
- Predicts probability using Black-Scholes + momentum
- Compares model vs market to find +EV opportunities
- Records 30+ fields including predictions, results, and risk metrics
The bot tracks two prediction snapshots:
- Early 1m - Captured 60 seconds before close (trading signal)
- Pr 30s - Captured 30 seconds before close (final prediction)
Understanding the output
Live header
- Price & prediction
- Market analysis
- Risk management
- BTC Price - Live price from Chainlink (green if above strike)
- Strike - Target price for current interval
- Time - Countdown to interval close
- Prediction - Model output with confidence (e.g., “v DN 85%” = 85% confident DOWN)
Prediction format
History table
| Column | Description |
|---|---|
| # | Sequential interval number |
| Target | Strike price for this interval |
| Final | BTC price at interval close |
| Result | UP (closed above strike) or DOWN (closed below) |
| Early 1m | Prediction at 60 seconds before close (trading metric) |
| E.Ac | Early accuracy - OK if correct, MISS if wrong |
| q | Polymarket UP token price (market probability) |
| Bet | Bet size in USD from Kelly criterion |
| Pr 30s | Prediction at 30 seconds before close |
| F.Ac | Final accuracy - OK if correct, MISS if wrong |
Next steps
Installation
Detailed setup with Node.js and prerequisites
Configuration
Customize parameters, risk settings, and data feeds
How it works
Black-Scholes models, EWMA volatility, and momentum analysis
Reports
Understanding Brier Score, Murphy decomposition, and performance metrics
Dev mode
Development mode with auto-reload on file changes:node --watch src/index.js and automatically restarts the bot when you modify source files.