Set up in 3 steps
About 15 minutes, once. You need your licence key from your dashboard (start the free trial to get one).
1 · Start the app
- Download the app and unzip it.
- Windows: double-click start-windows.bat. If Windows asks whether to run it, choose Run (or More info, then Run anyway).
Mac: double-click start-mac.command. If your Mac blocks it, open System Settings, Privacy & Security, scroll down and click Open Anyway.
Linux: run ./start-mac-linux.sh. - The first start sets itself up, which takes a few minutes (on Windows it installs Python if it's missing; on a Mac, if Python is missing, it opens the download page: install it and start the app again).
- Your browser opens the app. Paste your licence key and save.
Keep the computer on and the window open: the app trades only while it runs. If it stops, start it again and it catches up. Want it on around the clock without your computer? See running it on a server.
2 · Make a trade-only key on your exchange
An API key lets the app place trades on your account. It can't withdraw money if you leave withdrawals off.
- Get the account ready: verify your identity, switch on two-step login and open the USDT futures account. Move the money you want traded into the futures (USDT-M) wallet. Best of all, use a sub-account just for Anvil Quant (profit share needs one).
- Copy the app's internet address: it's shown in the app, under 2 · Exchange.
- Make the key on the exchange's website, with these settings everywhere: futures trading on, withdrawals and transfers off, and the app's internet address in the key's IP list.
Pick your exchange for the exact clicks:
Bybit
- On the Bybit website (keys can't be made in the app), click your profile icon, then API, then Create New Key and choose System-generated API Keys.
- Choose API Transaction and Read-Write.
- Under the contract or unified trading permissions, tick Orders and Positions. Leave Withdrawal and Assets unticked.
- Choose Only IPs with permissions granted and paste the app's internet address.
- Submit, then copy the API key and secret into the app.
Bybit asks for Google Authenticator first. A key with no IP address expires after 90 days.
Bybit's own guide (menus change from time to time; theirs is always current).
Binance
- Open your USDⓈ-M Futures account first, if you haven't (Binance asks a short quiz).
- Click your profile, Account, API Management, Create API, and choose System generated.
- On the new key, click Edit restrictions, choose Restrict access to trusted IPs only and paste the app's internet address.
- Tick Enable Futures. Leave Enable Withdrawals off. Save.
- Copy the API key and secret key into the app.
Binance only allows trading on keys limited to an IP address, so this step is required.
Binance's own guide (menus change from time to time; theirs is always current).
OKX
- Go to your profile, API, then Create API key.
- Purpose: API trading. Permissions: Read and Trade. Leave Withdraw off.
- Paste the app's internet address into the IP address allowlist.
- Choose a passphrase and write it down: OKX can't show it again.
- Copy the API key, secret and your passphrase into the app.
A trading key with no IP address is deleted after 14 days without use.
OKX's own guide (menus change from time to time; theirs is always current).
Bitget
- Go to your profile, API keys, Create API key, and choose System-generated.
- Choose a passphrase (8 to 32 letters and numbers) and write it down.
- Choose Read-write and tick futures trading (on a unified account: Trade under unified trading). Leave Withdraw off.
- Bind the app's internet address.
- Copy the API key, secret and your passphrase into the app.
Bitget's own guide (menus change from time to time; theirs is always current).
MEXC
- Complete MEXC's identity check (KYC) first: without it, a key can't trade futures.
- Go to your profile, API Management, and create a key.
- Tick the futures (contract) trading permissions. Leave withdrawals off.
- Link the app's internet address.
- Copy the access key and secret into the app.
MEXC doesn't allow API trading on its Innovation Zone coins, so the app will skip any trade there and say why.
MEXC's own guide (menus change from time to time; theirs is always current).
Gate
- Go to your profile, API Management, Create API Key, and choose an API v4 Key.
- Bind the app's internet address.
- Set Perpetual futures to Read and write. Leave everything else, and withdrawals, off.
- Confirm with your fund password and two-step code.
- Copy the API key and secret into the app.
Gate's own guide (menus change from time to time; theirs is always current).
KuCoin
- Click your avatar, API Management, Create API, and choose API-Based Trading.
- Enter a name and a passphrase, and write the passphrase down.
- Permissions: General and Futures. Leave Transfer off.
- Under IP restriction, paste the app's internet address.
- Confirm, then copy the API key, secret and your passphrase into the app.
A trading key with no IP address is deleted after 30 days without use.
KuCoin's own guide (menus change from time to time; theirs is always current).
Kraken Futures
- Kraken's futures account is separate: sign in at futures.kraken.com.
- Click your name, Settings, then the Create Key tab in the API panel.
- General API: Full Access (this never includes withdrawals). Withdrawal API: No Access.
- Click Create Key.
- Copy the public key and private key into the app (as API key and secret). The private key is shown only once.
Kraken Futures's own guide (menus change from time to time; theirs is always current).
3 · Connect
- In the app, under 2 · Exchange, choose your exchange and paste the key, secret and passphrase (only OKX, Bitget and KuCoin have one).
- Tick the confirmation and click Confirm and save. The app tests the key at once and tells you if anything is wrong.
- That's it: there's nothing to tune. Want to watch first? Tick Practice mode instead: pretend money, real prices.
If something doesn't work
- "The exchange refused the key": check futures trading is ticked, the IP list holds the address the app shows, the passphrase is right, and nothing was copied with extra spaces.
- It worked, then stopped weeks later: keys without an IP address expire on some exchanges (Bybit after 90 days; OKX and KuCoin when unused). Add the app's address to the key.
- Your home internet address changed: the app shows the new one; put it on the key in place of the old one.
- Balance shows 0: the money is in the spot wallet. Move it to the futures (USDT-M) wallet.
- A trade was skipped: the app's activity list says why, for example the coin isn't listed on your exchange.
Running it on a server (advanced)
To keep it on around the clock without your own computer, rent a small server with Docker, outside the United States (several exchanges refuse US servers). Unzip the app there and run:
docker run -d --restart=always -p 127.0.0.1:8765:8765 -v anvil:/data anvil-app
Then open it through an SSH tunnel: ssh -L 8765:127.0.0.1:8765 you@your-server, and visit http://127.0.0.1:8765. Use the server's address in the key's IP list.
Stuck?
Ask us anything
A question about the strategy, setup, your exchange or the plans? Send it here and we'll answer by email.