gitmyhub

polymarket-auto-teak-profit-bot-BTC-5min-UP-DOWN

Python ★ 17 updated 14d ago

polymarket auto teak-profit bot

An automated take-profit bot for Polymarket prediction markets that monitors your open trades every five seconds and instantly places a maker sell order at your configured profit percentage when it detects a new purchase.

PythonPolymarket APIsetup: moderatecomplexity 2/5

This is an automated take-profit bot for Polymarket, a prediction market platform where people buy shares in outcomes of real-world events. The bot is focused on short-term Bitcoin price markets. The README is written in Russian.

The bot runs continuously in the background and checks your Polymarket trade history every five seconds. When it detects that you have purchased a share in a market (whether through the Polymarket website or another script), it immediately places a limit sell order for that same share at a price that includes your desired profit percentage. You set this percentage in a configuration file before running the bot: for example, a multiplier of 1.15 means the sell order will be placed 15 percent above your purchase price.

The bot uses Polymarket's order book API to place what are called maker orders, which do not require paying transaction fees. After placing each sell order, it waits half a second and then checks the order book to confirm the exchange accepted the order and its status is active. The sell price is capped at $0.99 because $1.00 represents a market that has fully resolved, meaning the bet paid out in full and there is nothing left to sell.

Setup requires Python 3.9 or newer, a wallet private key, your funder address, and an optional proxy URL. These are stored in a configuration file before running the main server script. The bot is short and self-contained, relying on the official Polymarket client library.

Where it fits