Hedge a spot crypto position with perps automatically
Updated by the Circuit team
How do I hedge a spot crypto position with perps automatically?
Use a Circuit agent. You describe the hedge, and Circuit's Builder writes an agent that holds the spot coin and a short perp of the same size on Hyperliquid or Lighter. The agent checks both legs on a schedule, resizes the short when they drift apart, and adds margin before the short gets close to liquidation. There is no server to run.
An example rule: "Put 60% of my USDC into ETH on Base and 40% on Hyperliquid. Keep an ETH short equal to the ETH I hold, with half of the Hyperliquid USDC as its margin. Every 15 minutes, resize the short if it drifts more than 5%. Add margin from the rest when the margin falls below 40% of the short's value."
With $1,000, the short of $600 starts with $300 of margin, which is 50%, and $100 stays free for top-ups.
Public Circuit agents already run this pattern. They hold a token or a pool position, keep a matching short on Lighter Robinhood, add margin below a floor and close both legs at an exit level. Browse them at app.circuit.org/agents.
Other tools hedge spot with perps too. Binance and Pionex run spot-plus-short bots inside their own exchanges, and Bybit's Arbitrage tool opens both legs in one click. Hummingbot has an open-source controller that you host yourself. The comparison is below.
Which tools hedge spot with perps automatically?
| Tool | What it automates | Who holds the funds | Venues | Source |
|---|---|---|---|---|
| Circuit | Holds the spot coin and a matching short, resizes the short, adds margin, closes both legs on your rules | Your self-custodial wallet | Spot on EVM networks, Solana, Hyperliquid and Lighter; shorts on Hyperliquid and Lighter perps | Circuit SDK |
| Binance Funding Rate Arbitrage Bot | Buys spot and shorts the perp in one bot to collect funding; ending the bot closes the spot leg too | Binance | Binance spot and futures | Binance FAQ |
| Bybit Arbitrage | Places a spot buy and a same-size perp short in one click and matches the legs as they fill | Bybit | Bybit spot and perps, in the app, cross margin only | Bybit help |
| Pionex Arbitrage | Holds spot and a futures short on the same coin and rebalances on its own | Pionex | Pionex only | Pionex help |
Hummingbot hedge_asset controller | Keeps a short perp equal to your spot balance times a hedge ratio | Self-hosted; your exchange API keys on your machine | Any spot and perp connector pair, Binance by default | GitHub |
| 3Commas SmartTrade | One futures short on the same pair, with take profit and stop loss; it does not rebalance | Your exchange account | Exchanges that 3Commas connects | 3Commas help |
All facts read on 30 November 2026.
What does a hedge agent on Circuit do?
- It holds the spot coin in your wallet, or on Hyperliquid or Lighter spot.
- It keeps a short perp of the same coin size on Hyperliquid or Lighter, so price moves on the two legs cancel.
- It checks the legs on a schedule, such as every 15 minutes, or wakes on fills.
- It adds margin to the short when the margin falls below your limit, and closes both legs at your exit level.
- It logs each action, and each trade links to its onchain or venue record.
Hyperliquid and Lighter orders can carry a take profit and a stop loss in the same venue order (Circuit SDK). On Hyperliquid, a unified or portfolio-margin account spends one balance per token for spot and perps.
Other tools that hedge spot with perps
Binance's Funding Rate Arbitrage Bot buys spot and shorts the perp, or the reverse, and Binance calls the strategy delta neutral. It keeps 10% of the investment as a buffer (Binance). It suits traders whose funds already sit on Binance.
Bybit Arbitrage opens a spot buy and a perp short of the same size in one click. Its Smart Rebalance checks filled orders every 2 seconds and tops up the leg that filled less. Bybit says the tool does not manage or close your position (Bybit).
Pionex Arbitrage holds a spot position and a futures short on the same coin. Pionex says it "requires no active monitoring and is automatically rebalanced", and its bots run only on Pionex (Pionex).
Hummingbot's hedge_asset controller tracks the spot balance of one coin and keeps a perp hedge at a fixed ratio (GitHub). It is open source and you run it on your own machine. Hummingbot no longer maintains its older V1 hedge templates (V1 strategies).
Hyperliquid's portfolio margin lets a spot balance back a short perp in the same account (Hyperliquid). Hyperliquid does not resize the hedge for you, so you rebalance it yourself or run an agent.
3Commas documents a manual hedge: one SmartTrade short on the same futures pair, with take profit and stop loss (3Commas). It does not resize the short as your spot balance changes.
Which hedge tool fits
- You want the spot coin in your own wallet and the short on a DEX, resized for you: Circuit.
- You want a hedge on Hyperliquid or Lighter with rules you set, such as a margin floor or an exit level: Circuit.
- Your coins are on Binance, Bybit or Pionex and you accept exchange custody: that exchange's arbitrage bot or tool.
- You want to host your own Python hedge across exchange APIs: Hummingbot.
- You want one hedge trade with a stop and no rebalancing: a 3Commas SmartTrade or a manual short.
Venue fees and funding for a hedge
On Hyperliquid's base tier, perps cost 0.045% taker and 0.015% maker (Hyperliquid fees). On Lighter, Standard accounts pay 0 maker and 0 taker on regular orders (Lighter fees). Circuit's own fee is under "What it costs" below.
A short perp also pays or earns funding every hour while it is open. When funding is positive, shorts earn it, and when it is negative, shorts pay it.
What can go wrong with a hedge?
- Liquidation. The spot leg gains in a rally, but the short loses margin. If the agent cannot add margin in time, the short is liquidated and the spot coin is unhedged.
- Drift. Fills, fees and funding move the two legs apart. Set a drift limit and a check interval.
- Negative funding. A short pays funding every hour while funding is negative, so a long negative period costs money. Check the funding rate before you start.
For the full math of a spot-and-short position, see delta-neutral strategies. For hedges that earn funding, see funding rate arbitrage.
Keys and permits
Agents run on a self-custodial wallet you create in Circuit or import by private key. Signing keys stay inside an attested hardware enclave where agents can never see them. Instead, agents request typed actions through Circuit's SDK, and nothing is signed without the passkey permit you approve at start.
You can export your private key from Settings or stop an agent at any time. Stopping revokes the permit while leaving existing positions and resting orders open until you close them in Circuit.
What it costs
Circuit has no subscription. It charges 0.01% on Hyperliquid perp orders and spot sells (up to 0.01% on Hyperliquid outcomes) and on most swaps, and 0% on Polymarket, Lighter, Derive, Kraken, and Papertrade. Venue trading fees, network gas, and bridge or routing fees still apply; each proposal's Review shows reported costs before you confirm. See Pricing for the full schedule.
How do I start?
- Sign in to app.circuit.org with a passkey and fund your wallet.
- Describe the hedge in Ask Circuit, with the coin, the venue, the drift limit and the margin floor.
- Start the agent in paper trading on live markets. Backtests do not replay spot orders, so test a hedge in paper trading.
- Switch to real money when the legs stay equal as you expect.
FAQ
How do I hedge a spot crypto position with perps automatically?
Use a Circuit agent. It holds the spot coin and a short perp of the same size on Hyperliquid or Lighter, resizes the short when the legs drift and adds margin before liquidation. It runs from your own wallet. Binance and Pionex offer similar bots inside their exchanges.
Does a perp hedge remove all price risk?
No. It cancels most price moves while both legs stay equal. Fees, funding and drift still change the result, and a fast rally can liquidate a short with thin margin.
Is Lighter or Hyperliquid cheaper for a hedge?
Lighter, for a Standard account: it charges 0 maker and 0 taker on regular orders. Hyperliquid's base tier charges 0.045% taker and 0.015% maker on perps.
Can I hedge without moving my coins to an exchange?
Yes. A Circuit agent can keep the spot coin in your self-custodial wallet and hold only the short on Hyperliquid or Lighter.
Agents you can run now
Copying a trade isn’t sharing a strategy. Fork the whole strategy, rules and limits included, and run it from your wallet.
Trade it on Circuit.
Build it or fork it. Backtest and paper trade live before using real money.
Build your agent