[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-80632":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":14,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":16,"fork":16,"defaultBranch":17,"hasWiki":18,"hasPages":16,"topics":19,"createdAt":9,"pushedAt":9,"updatedAt":20,"readmeContent":21,"aiSummary":22,"trendingCount":14,"starSnapshotCount":14,"syncStatus":23,"lastSyncTime":24,"discoverSource":25},80632,"polymarket-sport-trading-bot","Trade-Execution-Labs\u002Fpolymarket-sport-trading-bot","Trade-Execution-Labs","polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot polymarket trading bot",null,"TypeScript",76,4059,79,0,10,false,"main",true,[],"2026-06-12 02:04:04","# polymarket-copytrader\n\nCopy-trade **any** Polymarket wallet at a configurable scale (default **1\u002F200**). When a leader buys $200, you buy $1; when they merge or redeem, you mirror at scaled size.\n\nTypeScript bot using official Polymarket SDKs (`@polymarket\u002Fclob-client-v2`, `viem`).\n\n## How it works\n\n1. Polls Polymarket **Data API** `GET \u002Factivity` for each leader wallet every `POLL_MS` (default 300ms).\n2. On first run, **zero-point**: recent activity is marked seen only (no historical copies).\n3. For each new event, mirrors by type:\n   - **TRADE** — market buy\u002Fsell via CLOB, scaled USDC, skips if below `MIN_ORDER_USD` ($1).\n   - **MERGE** — on-chain `mergePositions`, scaled share count (capped to your position).\n   - **SPLIT** — on-chain `splitPosition`, scaled USDC.\n   - **REDEEM** — redeem when you have a redeemable position on the same market.\n   - **CONVERSION** — logged only (not automated yet).\n\n## Setup\n\n```bash\ncd polymarket-copytrader\nnpm install\ncp .env.example .env\n```\n\nEdit `.env`:\n\n- **`TARGET_WALLET`** or **`TARGET_WALLETS`** — leader proxy address(es) from [polymarket.com](https:\u002F\u002Fpolymarket.com) (profile \u002F leaderboard). **Required.**\n- **`PRIVATE_KEY`** — EOA that controls your Polymarket proxy\u002FSafe\n- **`PROXY_WALLET_ADDRESS`** — your Polymarket trading address (settings)\n- Set **`DRY_RUN=false`** only when ready for live orders\n\n## Run\n\n```bash\n# Development (tsx)\nnpm run dev\n\n# Production build\nnpm run build\nnpm start\n\n# Override leader via CLI\nnpm run dev -- --wallet 0x204f72f35326db932158cba6adff0b9a1da95e14\nnpm run dev -- --wallets 0xabc...,0xdef...\n```\n\nDry-run (default) logs what would be copied without placing orders.\n\n## Environment\n\n| Variable | Default | Purpose |\n| --- | --- | --- |\n| `TARGET_WALLET` | — | Single leader wallet (required if no CLI) |\n| `TARGET_WALLETS` | — | Comma-separated; optional `0xaddr:label` per leader |\n| `COPY_DIVISOR` | `200` | Scale factor (leader ÷ this) |\n| `MIN_ORDER_USD` | `1` | Polymarket minimum notional for trades |\n| `ROUND_UP_SMALL_TRADES` | `false` | Bump sub-$1 scaled trades to minimum |\n| `DRY_RUN` | `true` | Log only, no live execution |\n| `POLL_MS` | `300` | Activity poll interval |\n| `PRIVATE_KEY` | — | Your signing key |\n| `PROXY_WALLET_ADDRESS` | — | Your Polymarket funder address |\n\n## Multiple leaders\n\n```env\nTARGET_WALLETS=0x204f72f35326db932158cba6adff0b9a1da95e14:swisstony,0xOTHER...\n```\n\nEach leader gets its own activity poller; copies run in parallel each poll cycle.\n\n## Project layout\n\n```\nsrc\u002F\n  bot.ts              # entry point\n  config.ts           # .env \u002F CLI\n  copytrader\u002F         # activity poll + executor + scaling\n  service\u002F            # Polymarket CLOB + on-chain\n```\n\n## Notes\n\n- Small leader trades under `$COPY_DIVISOR` often scale below $1 and are **skipped** unless `ROUND_UP_SMALL_TRADES=true`.\n- **MERGE\u002FSPLIT** use direct on-chain txs from your EOA; ensure enough **POL** for gas.\n- **REDEEM** uses relayer (with builder creds) or Safe\u002FEOA paths, same as before.\n- Copy-trading carries **risk** (latency, slippage, leader losses). Test with `DRY_RUN=true` first.\n\n## License\n\nPrivate use.\n","这是一个用于Polymarket平台的跟单交易机器人，能够以可配置的比例（默认1\u002F200）复制任何指定钱包的交易行为。核心功能包括实时监控目标钱包的交易活动，并自动执行相应的买卖、合并、拆分或赎回操作，使用TypeScript编写并基于官方SDK实现。该工具适合希望跟随优秀交易者策略进行市场操作的用户，尤其是在需要减少个人研究成本和时间投入的情况下。通过简单的环境变量配置即可快速部署运行，支持多目标跟踪及干运行模式下的安全测试。",2,"2026-06-01 03:51:47","CREATED_QUERY"]