← All projects
Copytrade icon

Copytrade

Python · ccxt · Hyperliquid · FastAPI · SQLite

Copy-trade bots for Hyperliquid perpetual futures. Each bot follows one trader and mirrors their trades on its own account, from the moment the bot starts. Screenshots are from a local copy with made-up bots and trades.

How it works

  • Delta replay: the bot doesn’t copy orders. It keeps comparing the trader’s open positions with what it saw last and trades only the difference, scaled to its own account. Positions the trader already had when the bot started are left alone.
  • Stays in sync: a regular REST check backs up the live feed, so a dropped WebSocket can’t leave the bot out of step.
  • Built as a standalone ccxt app rather than a Freqtrade strategy, because “snapshot, then replay changes” doesn’t fit Freqtrade’s one-trade-at-a-time model. Orders go through a small Hyperliquid client with retries and rate-limit pacing.
  • Each bot runs on its own small server, with an offline test suite and a dry-run mode that sends nothing.

Dashboard

A read-only web app, rendered on the server: totals across all bots, an equity curve and year-end projection per bot, open positions, fills, completed trades and health checks. Everything comes from Hyperliquid’s public API, and the dashboard can’t place orders.

The bots’ fills and funding end up in TaxChain at the end of the year.

Overview: totals across all bots, then one card per bot with returns, projection, margin used and win rate Bot page: headline numbers and the equity curve since launch against its starting baseline Completed trades: each round trip with coin, side, holding time, entry and exit, PnL and fees