explaingit

chiryanoy/mimicpolymarket

Analysis updated 2026-05-18

32TypeScriptAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

An automated bot that copies the trades of chosen wallets on Polymarket, batching fast trades into cleaner orders.

Mindmap

mindmap
  root((MimicPolymarket))
    What it does
      Copies wallet trades
      Aggregates fast orders
      Handles deposit wallet flow
    Tech stack
      TypeScript
      Node.js
      MongoDB
    Use cases
      Copy trading
      Risk sized positions
      State recovery
    Audience
      Crypto traders
      Developers

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 mirror the trades of specific Polymarket wallets into your own account.

USE CASE 2

Set per-wallet copy percentages and order size caps through a JSON strategy file.

USE CASE 3

Recover trading state from MongoDB after a restart without losing track of open positions.

USE CASE 4

Handle Polymarket's newer Account Abstraction deposit wallet signature flow automatically.

What is it built with?

TypeScriptNode.jsMongoDB

How does it compare?

chiryanoy/mimicpolymarketalexmt/mobile-for-argocdalvinunreal/juice
Stars323232
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyhardmoderateeasy
Complexity4/53/53/5
Audiencedeveloperops devopsdeveloper

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

How do you get it running?

Difficulty · hard Time to first run · 1h+

Needs a funded Polygon wallet, a MongoDB database, and an RPC endpoint from a provider like Infura or Alchemy.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Polymarket Mimic Trading Bot is an automated tool that monitors the trading activity of specific wallets on Polymarket, a prediction market platform, and copies their trades into your own account. Rather than mirroring each trade individually, the bot aggregates small rapid trades that appear within a short time window into single cleaner batch orders, which reduces transaction fees and avoids rate limits. Polymarket updated its API to require trades to go through an Account Abstraction deposit wallet flow instead of direct wallet signatures. The bot handles this natively, implementing the required signature protocol and relayer interaction. It validates on startup that your wallet configuration matches your on-chain setup, if there is a mismatch, it stops immediately rather than risking a failed transaction. Position sizing is controlled through a JSON strategy configuration. For each wallet you monitor, you set a percentage of that wallet's trade size to copy, along with caps on individual order size and total position size. The bot applies slippage controls: buy orders use a strict limit price to cap entry cost, and sell orders prioritize speed to exit positions quickly before canceling any open buy orders on that asset first. All state, including open positions, order history, and execution records, is saved to a MongoDB database in real time. If the process restarts, it recovers from that stored state. Network errors are handled with exponential backoff retry logic. Prerequisites include Node.js 18 or newer, a MongoDB database, a Polygon wallet funded with USDC and the network's gas token, and a Polygon RPC endpoint from a provider like Infura or Alchemy.

Copy-paste prompts

Prompt 1
Walk me through setting up MimicPolymarket with a Polygon wallet and MongoDB.
Prompt 2
Explain how the trade aggregation window and slippage controls work in this bot.
Prompt 3
Help me write a TRADER_STRATEGIES JSON config that copies one wallet at 50 percent size.
Prompt 4
What is the difference between LEGACY and DEPOSIT wallet mode in this project?

Frequently asked questions

What is mimicpolymarket?

An automated bot that copies the trades of chosen wallets on Polymarket, batching fast trades into cleaner orders.

What language is mimicpolymarket written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, MongoDB.

What license does mimicpolymarket use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is mimicpolymarket to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is mimicpolymarket for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.