explaingit

ddunaev247/polymarket-auto-teak-profit-bot-btc-5min-up-down

16PythonAudience · developerComplexity · 2/5Setup · moderate

TLDR

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.

Mindmap

mindmap
  root((repo))
    What It Does
      Auto take-profit orders
      Trade monitoring
      Maker sell placement
    How It Works
      Polls trades every 5 seconds
      Calculates target sell price
      Places maker order
      Confirms order status
    Tech Stack
      Python 3.9+
      Polymarket client library
    Setup
      Wallet private key
      Funder address
      Profit multiplier config
    Use Cases
      Bitcoin prediction markets
      Fee-free take-profit selling
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Set a profit multiplier in the config and let the bot automatically place a limit sell order at that price the moment you buy a share on Polymarket.

USE CASE 2

Run the bot alongside manual trading on the Polymarket website so take-profit orders are placed instantly without any extra steps.

USE CASE 3

Use maker orders via the Polymarket order book API to place take-profit sells without paying transaction fees.

Tech stack

PythonPolymarket API

Getting it running

Difficulty · moderate Time to first run · 30min

Requires a Polymarket wallet private key and funder address stored in a config file before running, an optional proxy URL is supported.

In plain English

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.

Copy-paste prompts

Prompt 1
I want to run the Polymarket take-profit bot. What do I put in the configuration file for my wallet private key, funder address, and profit multiplier?
Prompt 2
The bot places sell orders capped at $0.99. Why is $1.00 excluded, and what happens if the market resolves before my sell order fills?
Prompt 3
How does the bot confirm a sell order was accepted after placing it, and what does it do if the order does not appear as active in the order book?
Prompt 4
I want to route the bot's traffic through a proxy. Where in the configuration do I set the proxy URL and what format does it expect?
Open on GitHub → Explain another repo

← ddunaev247 on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.