All arbitrage strategiesManual funding rate guide

How to automate funding rate arbitrage with an AI agent

The agent scans, explains, and dry-runs. You confirm before any live order.

Runs on your machine · keys never go in chat · dry-run before every live order

Reading a scan

Hover each field the agent must obey. Live spreads are on the funding rate guide.

perp --json arb scan --min 10 --top 5
symbol
BTC

Sample row for the field names. Confirm the live scan before you size a trade.

longExch

Open the long on this venue. In the sample, lt is Lighter. Do not swap it with the short.

shortExch

Open the short on this venue. In the sample, hl is Hyperliquid. Follow the scan exactly.

netSpread

Annualized funding spread for the pair. Skip the row when this is 0 or below.

The prompt

Paste this into your agent after the zip is in Downloads. It works with Claude Code, Cursor, Codex, Gemini CLI.

I downloaded Perps Agent (perps-agent.zip, probably in Downloads). Unzip it, run ./install.sh, then read the perp-cli skill. Run `perp --json health` and `perp --json arb scan --min 10 --top 5` and explain the best opportunities in plain English. For wallets, tell me to run `perp setup` myself in a terminal; never ask me to paste a private key in chat. Always dry-run first and never place a real trade unless I clearly say so.

Step-by-step

From the download to a monitored hedge. Live trading waits for a clear yes.

Step 1 of 7

Download the CLI

Download Perps Agent from the dashboard after you have Premium access and accept the trading-tools terms. The zip runs on your machine. Keys never pass through ArbBets.

Safety

Automation still leaves you with two live positions. These are the failures that show up first.

Pasting a key into chat

A private key in the agent transcript can be logged, synced, or reused. Run perp setup in a terminal. The agent never needs the key.

Skipping the dry-run

A live arb exec, close, fund move, or bot start should follow a --dry-run of the same command. The dry-run is how you see size and venues before anything is sent.

Reversing long and short

longExch is the long and shortExch is the short. Swapping them collects the wrong side of the funding spread.

Resubmitting a pending order

ORDER_PENDING means a leg is unconfirmed. Check trade status for that id. Sending the order again can double the size.

One leg left open

If one side closes and the other stays on, you are directionally exposed. Close the remaining leg immediately.

An unattended bot sized too large

arb auto is off until you start it. Dry-run with a small --size first. Background mode keeps trading after you leave the terminal.

Leverage above 1–3×

Funding carry does not need high leverage. Prefer 1–3× and isolated margin on each leg so one liquidation does not take the hedge with it.

Where to go next

Perps Agent FAQ