AI & Data
Polymarket Bot
A prediction-market trader built on an LMSR pricer and Bayesian belief updates.
ArchitectureSource on GitHub
Polymarket Bot
01Market scanner
02News · social · crypto
03Bayesian engine
04LMSR pricer
05Order executor
PythonPolymarket CLOBBayesian inferenceLMSRloguru
Overview
A Python bot against Polymarket's CLOB API. A scanner finds markets, news, social and crypto signals feed a Bayesian engine, an LMSR model prices outcomes, and quarter-Kelly sizing decides how much. Version 2 added active trading strategies with stateful position management.
What I built
- An LMSR cost function using the log-sum-exp trick for numerical stability
- A Bayesian engine tracking belief per market, blended with live prices and sized at a quarter-Kelly fraction
- Four strategies: spread scalping, short-duration markets resolving within 72 hours, take-profit at +15% or +8¢, and stop-loss at −25%, −10¢ or an EV flip
- Position management with an exit-all switch and daily rotating logs
How it flows
ArchitectureSource on GitHub
Polymarket Bot
01Market scanner
02News · social · crypto
03Bayesian engine
04LMSR pricer
05Order executor
PythonPolymarket CLOBBayesian inferenceLMSRloguru