Polymarket Sentinel
Real-time prediction market monitoring and an AI agent trading pipeline
200+Markets monitored
4AI agent stages
6Concurrent tasks
The problem
Monitoring hundreds of prediction markets requires continuous price ingestion, a way to identify meaningful changes over multiple timeframes, and reliable data storage for later research. Agent-driven trading also needs explicit execution and risk controls.
What I built
Built a fully asynchronous Python system that streams live prices over WebSocket, detects price shifts with a multi-timeframe waterfall detector, and archives tick data to Parquet for backtesting with DuckDB. A four-stage AI pipeline connects Researcher, Analyst, Executor, and Outcome Observer through lease-based job queues and typed data contracts.
The outcome
- Streams live prices for 200+ prediction markets and detects significant changes across multiple timeframes.
- Archives tick data to Parquet for backtesting with DuckDB, with SQLite in WAL mode for hot storage.
- Implements Researcher, Analyst, Executor, and Outcome Observer agents with lease-based queues and typed contracts.
- Uses idempotent order execution and circuit breaker risk controls.
- Runs six concurrent asyncio tasks with Docker deployment, health checks, and systemd integration.
Built with
PythonasyncioWebSocketSQLiteParquetDuckDBDockersystemd
Next project