Here is a clean, minimal, and production-ready README.md using uv.
A high-frequency market-making bot for Polymarket's 15-Minute ETH Up/Down markets. Built for speed using uv, aiohttp, and the Polymarket CLOB API.
- Legging-In Strategy: Asymmetrically buys YES/NO shares when
Cost(YES) + Cost(NO) < $1.00. - Imbalance Throttling: automatically halts trading on one side if exposure becomes too lopsided (
Max Delta > 50), forcing a hedge. - Auto-Discovery: Detects and switches to the active 15-minute market window automatically.
- Proxy Support: Native support for Polymarket's Gnosis Safe Proxy architecture.
-
Clone the repository:
git clone https://github.com/yourusername/gabagool-bot.git cd gabagool-bot -
Install dependencies with
uv:uv add aiohttp python-dotenv py-clob-client rich eth-account eth-utils
-
Configure Credentials: Create a
.envfile in the project root:# [REQUIRED] Your Polygon Wallet Private Key PRIVATE_KEY=0xYourPrivateKeyHere... # [REQUIRED] Your Polymarket Proxy Address # Found at: Polymarket.com -> Profile -> Copy Address POLYMARKET_PROXY=0xYourProxyAddressHere...
Start the bot:
uv run bot.pyThe bot monitors the Order Book for price dislocations:
- Entry: If
Ask(YES) + Ask(NO) < Target (0.985), it buys the cheaper side. - Risk Control: It tracks the "Delta" (difference between YES/NO shares).
- The Lock: It prioritizes buying the opposing side to flatten the Delta, locking in a guaranteed USDC profit regardless of the market outcome.
MIT License.