[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-80295":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":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":33,"discoverSource":34},80295,"hyperliquid-copy-trading-bot","yampiihansLab\u002Fhyperliquid-copy-trading-bot","yampiihansLab","hyperliquid copy trading bot to mirror leader's perp fill hyperliquid copy trading bot hyperliquid copy trading bot hyperliquid copy trading bot","https:\u002F\u002Fapp.hyperliquid.xyz\u002F",null,"TypeScript",78,1004,77,0,2,5,6,9.01,false,"main",true,[24,25,26,27,28,29],"copy-trading-bot","hyperliquid-copy-trader","hyperliquid-dex","hyperliquid-perp-dex","perpetual-exchange","perpetual-futures","2026-06-12 02:04:00","# Hyperliquid copy trading bot\n\n**Mirror a leader’s perp fills on Hyperliquid with proportional sizing—built for traders who want execution without babysitting a browser.**\n\nPulse Mirror watches your chosen wallet over WebSocket, scales each leg against **your equity vs theirs**, applies **notional caps** and **minimum ticket checks**, then fires HL-compliant limit orders using the official SDK patterns (asset IDs, tick\u002Flot formatting).\n\n> Trading perpetuals can wipe an account. Run **`TESTNET=true`** and **`DRY_RUN=true`** until you trust sizing and symbols.\n\n---\n\n## Why traders use this\n\n| Benefit | What it means |\n|--------|----------------|\n| **Fill-tied logic** | Reacts to leader executions, not stale snapshots |\n| **Equity-aware sizing** | Scales size by `(your NAV \u002F leader NAV) × SCALE`, capped by `CAP_PCT_EQUITY` |\n| **Exchange-realistic formatting** | Uses HL size\u002Fprice rules via `@nktkas\u002Fhyperliquid` helpers |\n| **Operational clarity** | Logs flow through `intquery` so you can swap to structured sinks later |\n\n---\n\n## Requirements\n\n- Node.js **20+**\n- A Hyperliquid API wallet (`PRIVATE_KEY`) with margin on **mainnet** or **testnet**\n- The leader address (`TARGET_LEADER`) you want to follow\n\n---\n\n## Setup\n\n```bash\nnpm install\ncp .env.example .env\n# Edit .env — never commit real keys\nnpm run dev\n```\n\nProduction-style:\n\n```bash\nnpm run build\nnode dist\u002Fmain.js\n```\n\n---\n\n## Environment\n\n| Variable | Required | Description |\n|-----------|-----------|-------------|\n| `PRIVATE_KEY` | yes | Bot wallet private key (0x-prefixed or plain hex) |\n| `TARGET_LEADER` | yes | Leader wallet (0x address) |\n| `TESTNET` | no | `true` \u002F `false` — default `false` |\n| `SCALE` | no | Extra multiplier on sized qty — default `1` |\n| `MAX_LEV` | no | Hard cap on leverage mirrored — default `20` |\n| `MIN_USD` | no | Skip mirrors below this notional — default `10` |\n| `BLOCKLIST` | no | Comma-separated coins to ignore (e.g. `DOGE,PEPE`) |\n| `DRY_RUN` | no | Log only — default `false` |\n| `CAP_PCT_EQUITY` | no | Max % of **your** equity allowed as notional per slice — default `40` |\n\n---\n\n## Architecture (mental model)\n\n1. **Tap** — WebSocket `userFills` on the leader.\n2. **Normalize** — Dedupe by fill hash; classify open \u002F reduce \u002F close from HL `dir`.\n3. **Size** — Equity ratio × `SCALE`, min-notional guard, per-leg notional cap.\n4. **Execute** — `updateLeverage` when needed, then nested `order` with GTC limits.\n\nLogging implements the `Logger` shape from **`intquery`** (console backend today).\n\n---\n\n## Disclaimer\n\nThis software is provided **as-is** for experimentation. You alone control leverage, margin mode, and capital at risk. No performance or profitability claims are made.\n","这是一个用于在Hyperliquid平台上复制交易的机器人，能够自动镜像跟随者的永续合约成交情况。项目采用TypeScript编写，通过WebSocket监听指定钱包的交易活动，并根据用户与领导者之间的净值比例调整交易规模，同时支持名义上限和最小订单检查。它利用官方SDK进行合规的限价单操作，确保交易格式符合交易所规则。适用于希望自动化执行交易策略而不必手动监控市场的加密货币交易者。运行前建议先在测试网环境下进行充分测试以确保设置正确。","2026-06-11 04:00:12","CREATED_QUERY"]