polymm
github.com/kachence/polymm
Sports market-making and arbitrage bot for Polymarket that de-vigs sportsbook odds, provides automated quoting, and hedging on binary outcomes.
Market-making/arbitrage: removes juice (overround) from sportsbook lines, converts to implied probabilities, quotes two-sided markets on Polymarket, and delta-hedges positions across correlated contracts.
polymm is a focused sports market-making bot that bridges traditional sportsbook implied probabilities to Polymarket's CLOB. Its core innovation is the de-vig algorithm: rather than blindly quoting, it scrapes lines from external books, removes the overround (juice), maps them to Polymarket's binary outcome tokens, and quotes on both sides with configurable spread. The repo uses asyncio for event-driven order book streaming and a custom risk engine that tracks net exposure across multiple contracts to prevent ruin from correlated outcomes. Code quality is above average: the market-making module is separated from the hedge calculator, with typed Python and docstrings explaining the Kelly-criterion adjustments. The author claims it ran a public wallet with $5k AUM, which adds credibility. For a developer or quant interested in sports prediction markets, polymm provides a reference implementation of the full pipeline: data ingestion → normalization → quoting → risk management. Weakness: limited documentation on parameter tuning (spread width, refresh cadence) and no backtesting harness. Still, it's a rare open-source market-making bot for Polymarket that isn't vaporware.