A production-grade Python bot that automates tail-end sniper trading on Polymarket by identifying and executing near-resolution prediction market opportunities with favorable odds.

Stars

414

7-day growth

+88

Forks

1,131

Open issues

0

License

MIT

Last updated

2026-07-28

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It combines a sophisticated endcycle sniper strategy with robust risk management, dry-run safety, and full audit logging, making automated prediction market trading accessible and safer.

Who it is for

  • Prediction market traders seeking automated strategies
  • DeFi bot developers looking for reference architecture
  • Risk-conscious retail investors exploring edge trading on Polymarket
  • Researchers studying prediction market efficiency

Use cases

  • Automatically scanning and bidding on nearly-resolved Polymarket markets with small positive edge
  • Backtesting sniper strategies using current market conditions as proxy
  • Managing concurrent positions with configurable risk limits and daily loss caps
  • Monitoring markets and receiving Telegram alerts for new opportunities and fills

Strengths

  • Dry-run mode enabled by default to prevent accidental real trades
  • Comprehensive risk controls: position sizing, exposure limits, daily loss caps, and cooldowns
  • Full audit trail via SQLite logging of all opportunities, trades, and PnL
  • Professional CLI with Typer + Rich and Pythonic Pydantic v2 modeling

Considerations

  • Backtesting only replays current market conditions, not historical order book data
  • Requires Polygon mainnet and funded wallet for live trading, adding friction
  • Dependent on Polymarket API and CLOB infrastructure which may change without notice

README quick start

Installation

Related repositories

Similar projects matched by category, topics, and programming language.

lopopolo
Featured
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI & Machine LearningAI Agents
2,390
slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
littledivy
Featured
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI & Machine Learning
1,482