explaingit

trade-of-economics-in-warsaw/market-sniping-trading-bot

Analysis updated 2026-05-18

148TypeScriptAudience · developer

TLDR

A TypeScript trading bot that places paired limit orders on Polymarket's 5-minute crypto Up/Down prediction markets.

Mindmap

mindmap
  root((Polymarket Bot))
    What it does
      Places dual limit orders
      Monitors order fills
      Sells on trigger
    Tech stack
      TypeScript
      Node.js
      CLOB v2 API
    Use cases
      Automated Up Down trading
      Strategy simulation
      Custom signal bots
    Audience
      Traders
      Developers
    Setup
      npm install
      Configure private key
      Choose signature type

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

What do people build with it?

USE CASE 1

Automatically place paired Up and Down limit orders at the start of each 5-minute Polymarket period.

USE CASE 2

Test a trading strategy safely in simulation mode before running it with real funds.

USE CASE 3

Extend the default sell trigger with custom signals like momentum or external data feeds.

USE CASE 4

Trade Polymarket's short-term Bitcoin, Ethereum, Solana, or XRP prediction markets automatically.

What is it built with?

TypeScriptNode.jsPolymarket CLOB v2viem

How does it compare?

trade-of-economics-in-warsaw/market-sniping-trading-botadguardteam/adguardmv3polymarket-trading-kit/sports-trading-bot
Stars148146150
LanguageTypeScriptTypeScriptTypeScript
Last pushed2024-07-12
MaintenanceDormant
Setup difficultymoderate
Complexity3/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

In plain English

This is a TypeScript trading bot for Polymarket, aimed at the platform's 5 minute Up or Down prediction markets on Bitcoin, Ethereum, Solana, and XRP prices. Rather than being a simple wrapper around the trading API, it includes market discovery, batch order placement, balance checking, and configurable exit rules, so it can run as a complete trading loop out of the box, or be extended with custom logic. The default strategy places limit buy orders on both the Up and Down side of a market at the same time, right when each 5 minute period starts, at a fixed price such as 45 cents. If only one side of that pair fills and the price on the other, unfilled side crosses a set trigger, such as 80 cents, the bot places a limit sell on the side that did fill, aiming for a target price like 85 cents. By default there is no hedge trade on the unfilled side, no stop loss, and no automatic redemption when a market closes, only the period start limit orders and the optional trigger based sell. The README describes the bot's structure as four parts: a monitor that discovers markets by their slug and takes snapshots, a main loop that decides when to place limit buys and when to check for the sell trigger, a trader component that actually sends orders and checks balances, and the underlying Polymarket CLOB and Gamma APIs it talks to. Developers can extend it into a signal based bot by swapping out the default sell trigger for their own logic, such as momentum indicators or external data feeds, without touching the order execution code. To run it, you need Node.js 20.10 or newer, a config file with your Polymarket wallet's private key, and depending on your wallet setup, a proxy wallet address and matching signature type. It supports both a simulation mode for testing and a live trading mode, and the README is explicit that traders should use their own wallet's private key for order signing, not the separate Builder attribution key from Polymarket's settings page. Collateral for trades is Polymarket's own USD token, called pUSD.

Copy-paste prompts

Prompt 1
Explain what dual_limit_SL_sell_trigger_bid and dual_limit_SL_sell_at_price do in this bot's config.json.
Prompt 2
Walk me through setting up config.json for this bot with a Gnosis Safe proxy wallet.
Prompt 3
How would I replace this bot's default sell trigger with my own custom signal logic.
Prompt 4
What is the difference between running this bot in simulation mode versus live trading mode.

Frequently asked questions

What is market-sniping-trading-bot?

A TypeScript trading bot that places paired limit orders on Polymarket's 5-minute crypto Up/Down prediction markets.

What language is market-sniping-trading-bot written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Polymarket CLOB v2.

Who is market-sniping-trading-bot for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.