Enable trading
Enable Trading sets up an API wallet (Hyperliquid also calls it an agent). It signs your orders, so you don't have to confirm each one in your wallet.
What happens when you click it
- Whenly generates a new private key in your browser.
- Your wallet asks you to sign an approval for that key, named
whenly valid_until …. If your wallet is on another chain, it asks to switch to Arbitrum first. - If you haven't approved Whenly's builder fee yet, your wallet asks for a second signature. See below.
These are signatures, not transactions. They cost no gas.
What the API wallet can and can't do
It can place, change and cancel orders, and change leverage and margin. It can't withdraw, or send funds to another address. Those need a signature from your own wallet. Hyperliquid's API page says the same: API wallets act for your account "without having withdrawal permissions".
Where the key is kept
Only in this browser, in its local storage (IndexedDB), separately for each wallet and network. It is never sent to Whenly or to anyone else. The only key Whenly ever holds is the separate Rules agent, if you turn on Automated rules.
When you sign again
The API wallet is valid for 90 days. Whenly creates a new one, and asks you to sign again, when it has expired, when you clear this site's data, or when you use another browser or device. An old key is never reused, and a new Whenly API wallet replaces the previous one, so Whenly only ever takes one slot. It also means one browser or device trades per wallet at a time: enabling trading on one turns it off on the others, and Enable Trading there switches it back.
If all API wallet slots are taken
Hyperliquid limits the named API wallets per account: 3 until the account and its sub-accounts have traded $100,000 in total, then 23, plus 2 for every $100 million traded, up to 103. An expired API wallet keeps its slot until Hyperliquid clears it.
If other apps use every slot, clicking Enable Trading asks whether to remove one, and names it: an expired one if there is one, otherwise the one that expires soonest. Confirm, sign the removal in your wallet, then click Enable Trading again. To pick a different one, remove it on Hyperliquid's API page instead (below).
Revoke it
- Open app.hyperliquid.xyz/API and connect the same wallet.
- In the row for
whenly, click Remove. - Click Remove in the Remove API Wallet window and sign in your wallet.
The key left in your browser then can't sign anything.
The builder fee approval
The second signature lets Whenly charge a builder fee of up to 0.05% per order. Orders you place by hand are charged 0.025%. Orders placed by Automated rules are charged the 0.05% maximum. You sign it once per account. See Fees.
To revoke it, open app.hyperliquid.xyz/builderCodes, click Remove next to Whenly's builder address (0x1dfcd29ed6652e1ac7f445241aafb45430b7e423) and sign in your wallet. Whenly then asks you to approve it again before you can place orders.