Hyperliquid perps

Hyperliquid copy-trading API and SDK.

Let your users copy Hyperliquid perpetual traders from inside your app, non-custodially, and earn a share of the venue’s builder fee. Per-user agent wallets that can trade but never withdraw, leaders graded for copyability, and one SDK that also covers EVM spot.

Try it freeRead the docsLive venue. Self-serve sandbox key in minutes.

The custody model: trade, never withdraw

Copy trading on Hyperliquid runs on the venue’s own agent-wallet primitive. Your user approves a per-user agent from their account, signing the approval in their own wallet. From then on the agent can place and cancel orders within the user’s risk caps, and the Hyperliquid protocol itself forbids it from withdrawing, transferring or re-delegating. If the user revokes the agent on Hyperliquid, execution stops — the key dies in their wallet, not ours. Funds never leave the user’s control, and no private key of theirs is ever shared.

Three calls to live perps

// Hyperliquid perps in three calls
const { agentId } = await client.createAgent({
  venue: 'hyperliquid-perps',
  leaderWalletAddress: leader.address,
  riskConfig: { maxUsd: '500', copyPercent: 10 },
})
await client.activate(agentId, signer) // signs the HL agent + builder-fee approvals
const { executions } = await client.listExecutions(agentId)

activate() is the one handshake across every venue: the server returns exactly what Hyperliquid needs signed and the SDK routes it to the user’s wallet. Full path in the quickstart.

The 0.10% builder fee, shared with you

Hyperliquid’s builder-code program charges a builder fee on the fill, capped at 0.10% — and this integration uses that cap. You keep 70% of it on the flow your users generate. Nothing to price, nothing to invoice: the fee is collected by the venue and split to you. Because a copy agent mirrors its leader around the clock, one active user routes far more volume than a hand-run account, and the fee follows the volume.

Leaders graded for copyability

The Hyperliquid leaderboard ranks by profit, which quietly selects for large idle books and for scalpers — neither of which a follower can mirror. Measured against real closed-trade history, 9 of the top 10 had no closed trades in 90 days and the tenth held for about a minute. The API’s listLeaders screens the active population instead and returns traders who hold long enough to copy, with an edge that survives fees. Every leader carries its grade, the reasons behind it, and how far its trades run against you before closing — so your users copy a trader, not a market maker.

Common questions

How does non-custodial Hyperliquid copy trading work?
Each user approves a per-user Hyperliquid agent wallet from their own account. The Hyperliquid protocol lets an agent wallet place and cancel orders only — it can never withdraw, transfer or re-delegate funds. The user signs the approval client-side and revokes it on Hyperliquid whenever they want. The copy engine trades inside that grant and the risk caps the user set.
What does Hyperliquid copy trading cost to run?
Hyperliquid charges a builder fee of 0.10% — the venue’s own cap — on the copied fills, and you keep 70% of it. There is no separate platform fee to design or bill; the fee is charged by the venue and shared with you.
How many calls to add Hyperliquid copy trading?
Three: create the agent for a leader with the user’s risk config, have the user sign the Hyperliquid agent and builder-fee approvals through activate(), then stream executions. The same SDK and the same activation flow also cover EVM spot and Polymarket.
Why not just copy the Hyperliquid leaderboard?
Because the leaderboard ranks by profit, which selects for large idle books and for scalpers — the two things a follower cannot mirror. Measured against real trade history, 9 of the top 10 had no closed trades in 90 days and the tenth held for about a minute. The API grades leaders for copyability instead, so your users mirror traders whose fills a follower can actually reproduce.

Add Hyperliquid copy trading

Start against sandbox in paper mode, then flip live. See the full copy-trading API for spot and predictions, or the infrastructure overview.