[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-83146":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":34,"discoverSource":35},83146,"polymarket-copy-bot","kppox\u002Fpolymarket-copy-bot","kppox","polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy polymarket copy","",null,"TypeScript",230,4966,7,0,2,10,9,false,"main",[22,23,24,25,26,27,28,29,30],"blockchain","bot","crypto","forecast","gambling","polymarket","polymarket-crypto-sports-trading-bot","polymarket-trading-bot-strategies","web3","2026-06-12 02:04:31","\u003Cdiv align=\"center\">\n\n# Polymarket Copy Bot\n\n\n**Mirror a target trader’s Polymarket activity from your own account** — TypeScript\u002FNode, poll-based, with size caps and safety rails.\n\n\u003Cbr\u002F>\n\n\u003Cimg src=\"src\u002Fimg\u002F3.png\" alt=\"Polymarket portfolio overview, P\u002FL chart, and activity history\" width=\"920\" \u002F>\n\n\n\u003Cbr\u002F>\n\n[![Node.js](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fnode-%3E%3D20-339933?logo=node.js&logoColor=white)](https:\u002F\u002Fnodejs.org\u002F)\n[![TypeScript](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTypeScript-3178C6?logo=typescript&logoColor=white)](https:\u002F\u002Fwww.typescriptlang.org\u002F)\n[![GitHub](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGitHub-repo-181717?logo=github)](https:\u002F\u002Fgithub.com\u002Fkppox\u002Fpolymarket-copy-bot)\n\n\n\u003C\u002Fdiv>\n\n---\n\n## At a glance\n\n| | |\n|:--|:--|\n| **Watch** | A target user (address or username → proxy) on Polymarket |\n| **Poll** | On your schedule (`COPY_POLL_INTERVAL_MS`) |\n| **Copy** | Similar orders from *your* wallet, with multiplier & max size limits |\n\n\n---\n\n## See it in context\n\nThese screenshots show the **Polymarket** experience: live activity, open positions, and portfolio stats. The bot automates the *follow-the-leader* part so you don’t have to chase every fill by hand.\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cimg src=\"src\u002Fimg\u002F1.png\" alt=\"Polymarket activity feed with recent buys and claims\" width=\"100%\" \u002F>\n      \u003Csub>\u003Cb>Activity\u003C\u002Fb> — recent trades and claims; this is the stream the bot polls.\u003C\u002Fsub>\n    \u003C\u002Ftd>\n    \u003Ctd align=\"center\" width=\"50%\">\n      \u003Cimg src=\"src\u002Fimg\u002F2.png\" alt=\"Polymarket portfolio balance and positions table\" width=\"100%\" \u002F>\n      \u003Csub>\u003Cb>Positions\u003C\u002Fb> — how outcomes show up in your portfolio after execution.\u003C\u002Fsub>\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n---\n\n## What it does\n\n- **Watches** a target user (address or username → proxy) on Polymarket\n- **Polls periodically** and fetches recent activity\n- **Copies trades** to your account with optional risk controls (multiplier, max order size, trades-only mode)\n\n---\n\n## What it *doesn’t* do\n\n- **No profit guarantees**. If the target trader jumps off a cliff, the bot will politely ask if you’d like to join them.\n\n---\n\n## Run (step by step)\n\n### 1. Prerequisites\n\n| Requirement | Notes |\n| --- | --- |\n| **Git** | So you can clone the repo ([install Git](https:\u002F\u002Fgit-scm.com\u002Fdownloads) if needed). |\n| **Node.js** | **v20 or newer** — check with `node -v`. Download from [nodejs.org](https:\u002F\u002Fnodejs.org\u002F) if required. |\n| **npm** | Ships with Node; confirm with `npm -v`. |\n| **Polymarket account** | Funded account you control. |\n| **Secrets** | Your **EOA private key** and **Polymarket proxy \u002F funder address** from the Polymarket UI (never share these). |\n\n### 2. Clone the repository\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fkppox\u002Fpolymarket-copy-bot\ncd polymarket-copy-bot\n```\n\n### 3. Install dependencies\n\nFrom the project root (`polymarket-copy-bot\u002F`):\n\n```bash\nnpm install\n```\n\n### 4. Create your environment file\n\nThe bot reads configuration from a **`.env`** file in the project root. Start from the template:\n\n**Windows (Command Prompt or PowerShell):**\n\n```bash\ncopy .env.example .env\n```\n\n**macOS \u002F Linux:**\n\n```bash\ncp .env.example .env\n```\nWe recommend using VS Code for everything—it makes things much easier.\n\n### 5. Edit `.env`\n\nOpen `.env` in your editor and set at least:\n\n- **`COPY_TARGET_USER`** — Polymarket proxy address (`0x…`) or username of the trader to mirror.\n- **`POLYMARKET_PRIVATE_KEY`** — your wallet private key (64 hex characters, with or without `0x`).\n- **`POLYMARKET_ADDRESS`** — your **Polymarket proxy \u002F funder address** from the Polymarket UI.\n\nOptional variables (poll interval, size multiplier, caps, etc.) are documented in [Configuration](#configuration) and in `.env.example`.\n\n**Security:** Never commit `.env` or paste keys into issues or chat. `.gitignore` should keep `.env` local; if you fork the repo, double-check before pushing.\n\n### 6. Run the bot\n\n```bash\nnpm start\n```\n\nLeave the terminal open while the bot runs. Stop with **Ctrl+C**.\n\n### 7. Quick sanity checks\n\n- If the process exits immediately, read the error: missing `POLYMARKET_PRIVATE_KEY`, bad hex, or unresolved `COPY_TARGET_USER` are common fixes (see **Troubleshooting** below).\n- For first tests, use a **small** `COPY_SIZE_MULTIPLIER` and a **non-zero** `COPY_MAX_ORDER_USD` cap (see **Safety** below).\n\n---\n\n\n## Configuration\n\nAll config is via environment variables (see `.env.example`).\n\n### Copy target\n\nPick one:\n\n- **`COPY_TARGET_USER`**: target proxy address *or* username (the bot will try to resolve username → proxy)\n\n### Core knobs\n\n| Variable | What it controls | Example |\n|---|---|---|\n| `COPY_POLL_INTERVAL_MS` | How often to poll for new activity | `15000` |\n| `COPY_ACTIVITY_LIMIT` | How many recent activities to consider per poll | `100` |\n| `COPY_SIZE_MULTIPLIER` | Multiply copied trade size | `1` |\n| `COPY_MAX_ORDER_USD` | Hard cap per copied order (0 = no cap) | `25` |\n| `COPY_TRADES_ONLY` | If `true`, avoids copying non-trade activity | `true` |\n\n### Your wallet \u002F Polymarket account\n\n| Variable | Required | Notes |\n|---|---:|---|\n| `POLYMARKET_PRIVATE_KEY` | ✅ | 64 hex chars (with or without `0x`) |\n| `POLYMARKET_ADDRESS` | ✅ | Your Polymarket proxy\u002Ffunder address (from UI) |\n\n---\n\n## Safety\n\n- **Never commit your `.env`**. If you do, the internet will treat it like free samples at Costco.\n- Start with `COPY_SIZE_MULTIPLIER=0.1` and a small `COPY_MAX_ORDER_USD`.\n\n---\n\n## Troubleshooting\n\n- **`POLYMARKET_PRIVATE_KEY is required...`**  \n  Your key is missing or not valid hex. The bot accepts **64 hex chars** with optional `0x`.\n\n- **“Could not resolve username to proxy”**  \n  Use a **proxy address** (0x…) for `COPY_TARGET_USER` or set the correct target.\n\n---\n\n\n## Disclaimer\n\nTrading prediction markets can result in total loss of capital deployed. Everything here is provided for education and experimentation. Authors and contributors are not responsible for trading losses, bugs, exchange or protocol rule changes, or regulatory issues in your jurisdiction.\n","Polymarket Copy Bot 是一个用于自动复制目标交易者在 Polymarket 上操作的工具。它使用 TypeScript 编写，基于 Node.js 运行，能够定期轮询目标用户的活动，并根据设定的参数（如乘数、最大订单规模等）复制相应的交易到您的账户中。该机器人还提供了安全机制以防止过度交易。适用于希望跟随特定成功交易者的用户，尤其是在加密货币预测市场和博彩场景下。通过自动化这一过程，用户可以节省手动跟踪和执行交易的时间。","2026-06-11 04:10:16","CREATED_QUERY"]