How jinwovo/polymarket-btc-updown-jury-bot works
This repository is an automated Polymarket short-window trading system with a monitoring and control dashboard. The documented workflow collects market data, evaluates signals, stores them for live and paper traders, and presents trading status and history to operators. Backtesting and multi-market BTC/ETH trading are additional product capabilities. The collector and several specialized runners are unsampled, so their documented roles are shown without asserting unverified internal calls; dashboard-to-API wiring is likewise left unverified.
Main entry points: main.py Live trader · db_config.py Signal cache · data_collector.py Market collector · polymarket_client.py Polymarket client
Components 20
Market data and signals
- Market collector
data_collector.py - Binance feed
binance_ws.py - Polymarket client
polymarket_client.py - Jury judges
judges.py
Trading and risk
- Live trader
main.py - Paper trader
paper_trade_sim.py - Risk manager
risk_manager.py - Entry gate
trade_gate.py - CLOB authentication
clob_auth.py - BTC/ETH runners
live_btc15.py
Operations and persistence
- Signal cache
db_config.py - Runtime configuration
config.py - Notifications
telegram_notifier.py - Dashboard API
dashboard_server.py
Dashboard and controls
- Dashboard UI
components/dashboard/live-dashboard.tsx - Account manager
components/dashboard/account-manager.tsx - Account endpoint
app/api/accounts/route.ts
Replay and research
- Backtester
backtest.py - Paper replay
paper_replay.py
Other components
- Operator
Connections 22
- Market collector → Binance feed: reads feed
- Market collector → Polymarket client: polls markets
- Market collector → Jury judges: evaluates signals
- Market collector → Signal cache: writes signals
- Live trader → Signal cache: reads signals
main.py - Paper trader → Signal cache: reads signals
- Live trader → Binance feed: uses feed
main.py - Live trader → Polymarket client: places orders
main.py - Live trader → Jury judges: requests verdicts
main.py - Live trader → Risk manager: checks risk
main.py - Live trader → Entry gate: checks entries
main.py - Live trader → Notifications: sends notices
main.py - Live trader → Signal cache: reads PnL
main.py - Polymarket client → CLOB authentication: authenticates
polymarket_client.py - Live trader → Runtime configuration: loads settings
main.py - Operator → Dashboard UI: monitors controls
- Dashboard UI → Dashboard API: requests status
- Account manager → Account endpoint: manages accounts
components/dashboard/account-manager.tsx - Operator → Dashboard API: starts services
- Backtester → Signal cache: uses history
- Paper replay → Signal cache: replays signals
- Operator → BTC/ETH runners: runs strategies