Back to projects

Polymarket Sentinel

Real-time prediction market monitoring and an AI agent trading pipeline

Polymarket Sentinel architecture: live WebSocket prices pass through a waterfall detector into Researcher, Analyst, Executor, and Outcome Observer agents, with execution controls, SQLite hot storage, and Parquet/DuckDB archives.

Real-time systems & AI agents

March 2026 – Present

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
View on GitHub

Next project

Tauroi Technologies

Ask about Luis

An AI guide to my work and experience.

What would you like to know?

AI can make mistakes. Email me directly.