Circuit

Run a delta-neutral crypto strategy with an AI agent

Updated by the Circuit team

Can an AI agent run a delta-neutral yield strategy for me?

Yes. Use Circuit. You describe the hedge in plain words, and its Builder writes an agent that holds the asset, shorts the same amount of its perp and collects funding. The agent keeps the two legs equal, adds margin before the short nears liquidation and closes both legs when funding stops paying. It runs from your own wallet, and it never sees your private key.

The spot leg can sit on Hyperliquid spot, in the same account as the short. It can also be a token the agent buys through a swap on another network, such as ETH on Arbitrum. The short sits on Hyperliquid or Lighter.

FactValueSource
Hyperliquid funding intervalEvery hour, 27 Nov 2026Hyperliquid docs
Aero ANT Hedged Band, paper trading benchmark−6.18% since it started, 30 Nov 2026Agent page
Uniswap Hedged Boosted LP, paper trading benchmark−1.95% since it started, 30 Nov 2026Agent page
Circuit fee0.01% per Hyperliquid order or routed swapCircuit fees

The paper trading benchmark runs $1,000 forward on live markets from the agent's start, with the agent's default settings.

Other products cover parts of this. Ethena's USDe and Neutral Trade's vault run a delta-neutral book for you, with no say over the rules. tread.fi and Hummingbot open the two legs on exchange accounts you connect. Other delta-neutral options compares them with sources.

To start, open app.circuit.org and paste the spec under Build it on Circuit, or start a hedged agent from the live agent list.

Other delta-neutral options

These products also run or support delta-neutral positions. Each fact links to the product's own page, read on 30 Nov 2026.

ProductWhat you getYou set the rulesCost
CircuitAgent holds spot and an equal perp short from your wallet, rebalances and adds marginYes, in plain words or code0.01% per Hyperliquid order or routed swap. None on Lighter
tread.fi Delta Neutral BotBot opens a long and a short at once on connected exchange accountsYes, in its bot settings0.02% builder fee on Hyperliquid, Extended and Pacifica
HummingbotOpen-source scripts for perp-perp funding arbitrage and spot-perp arbitrageYes, in PythonFree software. You host it
Ethena USDe and sUSDeSynthetic dollar backed by hedged spot assets and stablecoinsNoNot a fee. Yield comes from the protocol
Neutral TradeManaged Hyperliquid funding vault with offsetting spot and perp positionsNo1% a year management, 20% performance and 0.3% withdrawal fees (fees)

The tread.fi Delta Neutral Bot opens a long and a short at the same time to earn the funding gap without price exposure. Each leg can sit on a different exchange account. Its stop loss closes both legs together. It charges a fixed 0.02% builder fee on Extended, Hyperliquid and Pacifica, plus the exchange's fees (tread.fi docs). It runs the two legs you choose. A Circuit agent can also hold the spot leg on another network, such as a pool position on Base, and add margin before the short nears liquidation.

Hummingbot is free open-source software. Its v2_funding_rate_arb script opens a long on one perp venue and an equal short on another, by default Hyperliquid and Binance (script). Its spot-perpetual arbitrage strategy pairs a spot order with an opposite perp position (Hummingbot). The Foundation no longer maintains its V1 templates, including the spot hedge strategy (V1 strategies). You write Python and host the bot yourself.

Ethena backs USDe partly with volatile assets paired with short futures of about the same size. The rest is stablecoins and short-term real-world assets that need no hedge (Ethena docs). Holding sUSDe gives you the hedged part of that book without running it. Its Reserve Fund absorbs periods of negative revenue, so sUSDe rewards are never negative. Only approved market makers who pass KYC can mint USDe directly. Other users buy it in pools (Ethena). You do not choose the assets, the venues or the size.

Neutral Trade's Hyperliquid Funding Arb vault holds offsetting spot and perp positions on USDC deposits and rebalances on its own. It has run since 11 June 2025 (Neutral Trade docs).

Which delta-neutral option fits

NeedProduct
A hedged position that runs itself from your own wallet, on rules you chooseCircuit
A Hyperliquid or Lighter short that hedges spot you hold or a pool positionCircuit
One bot that opens a long and a short on two exchange accountstread.fi
Perp-perp funding arbitrage that you write in Python and hostHummingbot
A token that you hold without running any tradeEthena's sUSDe
A managed funding vault for a USDC depositNeutral Trade

What delta-neutral means

Delta is how much a position gains or loses when the price moves by $1. A long of 1 BTC has a delta of 1 BTC. A short of 1 BTC has a delta of minus 1 BTC. Hold both and the total delta is zero. A price move makes one leg and costs the other the same amount.

A delta-neutral position makes no money from direction. It earns from something else that the hedge doesn't cancel. In crypto that is usually perp funding. Sometimes it is a basis between the perp and spot price or yield on the spot leg. The glossary defines the terms used here.

Spot plus short perp

The standard construction holds the asset and shorts the same amount of its perpetual future.

LegPositionWhat it does
SpotBuy 0.125 BTCGains when BTC rises
PerpShort 0.125 BTCLoses when BTC rises and receives funding when longs pay
CombinedNet zero BTCPrice moves cancel and funding remains

Size the legs by coin amount. If the spot leg is 0.125 BTC the short is 0.125 BTC. Dollar values then move together.

On Circuit both legs can sit on Hyperliquid, which has spot markets and perps in the same account. The spot leg can also be a token bought through a swap on any of Circuit's networks. BTC wrapped on Base or ETH on Arbitrum both work with the short on Hyperliquid or Lighter. Keeping both legs on one venue makes rebalancing simpler because the agent reads and moves everything in one place.

Where the return comes from

Funding. Perps stay near spot through funding. When the perp trades above spot longs pay shorts every hour on Hyperliquid and Lighter. The short leg collects it. Both venues use a baseline of 0.01% per 8 hours (0.00125% per hour), which longs pay to shorts whenever the premium stays small (Hyperliquid, Lighter). That baseline annualizes to 0.00125% × 24 × 365 = 10.95% of the short's notional.

Funding is not fixed. Ethena backs part of its USDe with this trade. It reports that ETH perp funding returned 16% in 2021, 0.6% in 2022, about 9% in 2023 and about 13% in 2024 on an open-interest-weighted basis (Ethena docs). The 2022 number is the one to remember. A delta-neutral book can earn almost nothing for a year.

Basis. If the perp trades above spot when you enter the short sells higher than the spot buy. Say spot BTC is $80,000 and the perp is $80,080—a 0.1% basis. On 0.125 BTC that is 0.125 × $80 = $10 captured if the two prices converge. Perps never expire. Convergence isn't guaranteed and the basis can widen against you while you hold.

Spot yield. If the spot leg can earn on its own that yield adds to funding. ETH lent or staked is one example. The stablecoin yield guide covers how agents move capital between lending rates.

A worked example

An agent starts with $16,000 and BTC at $80,000. It buys 0.125 BTC on Hyperliquid spot for $10,000. It shorts 0.125 BTC of the perp at 2x isolated margin with $5,000. It keeps $1,000 of USDC as a margin reserve. Fees use Hyperliquid's base tier as of October 2026: 0.07% spot taker and 0.045% perps taker (fee schedule). Circuit adds 0.01% to Hyperliquid perp orders and spot sells, and nothing to spot buys (Pricing).

ItemMathResult
Spot buy fee$10,000 × 0.07%$7.00
Perp short fee$10,000 × 0.045%$4.50
Circuit fee (perp open and close, spot sell)3 × $10,000 × 0.01%$3.00
Round trip, entry and exit2 × ($7.00 + $4.50) + $3.00$26.00
Funding at baseline 0.00125% per hour$10,000 × 0.00125%$0.125 per hour
Per day$0.125 × 24$3.00
Per year$3.00 × 365$1,095
Return on $16,000$1,095 ÷ $16,0006.84% a year
Days to cover fees$26.00 ÷ $3.008.7 days

At a higher rate of 0.005% per hour, the short collects $0.50 an hour, $12 a day, and $4,380 a year—27.4% on $16,000. Fees are covered in $26 ÷ $12 = 2.2 days.

Price doesn't matter while the hedge holds. If BTC rises 20% to $96,000 the spot leg gains 0.125 × $16,000 = $2,000 and the short loses the same $2,000. The account value is unchanged before funding and fees. The short's isolated margin fell from $5,000 to $3,000. That matters.

The short leg can still be liquidated

A hedged position can still lose money when one leg is liquidated and the other is left naked. The spot leg can't be liquidated. The short perp can.

Hyperliquid sets maintenance margin at half the initial margin at an asset's maximum leverage (liquidations). BTC's maximum is 40x as of October 2026. Maintenance margin is 1.25%. Before fees and funding an isolated short is liquidated near entry × (1 + 1/leverage) ÷ (1 + 0.0125).

Short leverageMath from $80,000Liquidation priceMove to liquidation
1x$80,000 × 2 ÷ 1.0125$158,025+97.5%
2x$80,000 × 1.5 ÷ 1.0125$118,519+48.1%
3x$80,000 × 1.3333 ÷ 1.0125$105,350+31.7%
5x$80,000 × 1.2 ÷ 1.0125$94,815+18.5%

In the example, after BTC rises to $96,000, the 2x short's liquidation price is still $118,519—now just 23.5% away instead of 48.1%. Adding the $1,000 reserve as isolated margin pushes it up to about $126,420, or 31.7% above $96,000. Without a top-up a further rally liquidates the short. The spot leg is then an unhedged long BTC position. Hyperliquid keeps the maintenance margin in a backstop liquidation.

Assets with lower maximum leverage carry higher maintenance margin. On a 10x asset it is 5%. That pulls every liquidation price closer. The asset pages list which perps public agents trade.

Rebalancing

A delta-neutral agent has two jobs after entry. Keep the legs equal. Keep the short away from liquidation.

  • Margin top-ups. Add margin when the short's margin falls below a threshold such as 60% of where it started. On Circuit an agent can add or remove isolated margin on an open Hyperliquid or Lighter position as its own operation.
  • Rebalance from gains. When price rises the spot leg is worth more. Sell a slice of spot and reduce the short by the same coin amount. Then use the USDC as margin. The hedge stays equal and the cushion grows.
  • Drift limits. Fills, fees and funding make the legs drift apart. Rebalance when they differ by more than a set share, such as 2% of notional.
  • Exit rules. Close both legs when funding stays below the cost of holding for a set time such as 24 hours under 0.0015% per hour. Also close them when the short comes within a set distance of liquidation.

Every rebalance pays fees. An agent that rebalances on every small move can spend more on fees than it earns in funding. Thresholds in percent of notional keep it calm.

Variations

  • Cross-venue funding spread. Short the perp where funding is high and long it where funding is low. Hyperliquid against Lighter is one pair. Both legs are perps and both can be liquidated. The funding rate scanner guide works through it.
  • Funding fade. A directional trade that shorts extreme funding with no spot hedge, covered in the funding rate short strategy.
  • Papertrade hedged pairs. Opening an equal long and short on Papertrade is delta-neutral with no funding; those agents earn PAPER from losing closes instead (see the Papertrade guide).

Delta-neutral agents on Circuit now

Aero ANT Hedged Band puts 75% of its money into an ANTc/USDC position on Aerodrome on Base and 25% into margin for an ANT short on Lighter Robinhood. It keeps the short equal to the ANTc it holds. It adds margin when the margin falls below 40% of the short's value and closes both legs below 25% (agent page). On 30 Nov 2026 its paper trading benchmark showed −6.18% since it started.

Uniswap Hedged Boosted LP holds SPY pools on Uniswap v4 on Robinhood Chain and hedges them with Lighter Robinhood perps. It puts 75% of its money into three SPY pools and 25% into margin for shorts that match the tokens it holds. It adds margin below 15% of the short's value and starts a full exit below 10%. On 30 Nov 2026 its paper trading benchmark showed −1.95% since it started (Uniswap Hedged Boosted LP).

Paper Mill holds an equal BTC long and short on Papertrade and earns PAPER from losing closes. On 30 Nov 2026 its paper trading benchmark showed −18.54% since it started, and its page showed 26 started in the last 30 days (Paper Mill).

Build it on Circuit

A spec for Circuit:

"Start with my USDC on Hyperliquid. Buy UBTC, Hyperliquid's spot BTC, with 62.5% of it, and short the same BTC amount on the BTC perp at 2x isolated margin. Keep the rest as a reserve. Every hour, read the funding rate. If the short's margin drops below 60% of its starting amount, add margin from the reserve. If the spot and short sizes differ by more than 2%, trade the smaller gap back to equal. Close both legs if funding has been below 0.0015% per hour for 24 hours, or if BTC is within 15% of the short's liquidation price. Log funding received every hour."

The Builder writes the code, checks it and shows each setting. Backtests on Circuit replay perp orders on recorded Hyperliquid and Lighter markets and fail spot orders. Test the entry, rebalancing and exit rules in paper trading. Paper trading fills both legs against live prices, and it also runs the isolated margin and its top-ups. When the agent behaves as you expect, start it small with real money.

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.

FAQ

Can I hedge spot crypto with perps automatically?

Yes. Use Circuit: a Circuit agent can hold the spot leg and an equal short on Hyperliquid or Lighter. It rebalances when the two legs drift apart by more than a set share, such as 2%, and adds margin before the short nears liquidation.

What is a delta-neutral strategy in crypto?

A position whose gains and losses from price moves cancel out. Most often it is spot holdings plus an equal short in the perpetual future. It earns from funding, basis or spot yield instead of direction.

Is delta-neutral trading risk-free?

No. Funding can turn negative so the short pays. The short leg can be liquidated in a sharp rally. Fees can exceed funding. Venue or smart contract failures affect both legs. Ethena reports ETH funding of only 0.6% for all of 2022.

How much does a delta-neutral funding trade earn?

At Hyperliquid's baseline funding, the short earns about 10.95% a year on its notional. That baseline is 0.00125% per hour. In the worked example with $16,000 of capital that is $1,095 a year before fees, or 6.84%. Funding changes every hour, so the real return can be higher or much lower.

What leverage should the short leg use?

Lower leverage moves liquidation further away. On BTC with 1.25% maintenance margin an isolated short at 2x is liquidated about 48% above entry before fees and funding. At 5x it is about 18.5% above entry.

Can I backtest a delta-neutral agent on Circuit?

Partly. Backtests replay perp orders on recorded Hyperliquid and Lighter markets with hourly funding. Spot orders fail in a backtest. Paper trading runs both legs, isolated margin and top-ups included, on live markets.

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.

All public agents

Trade it on Circuit.

Build it or fork it. Backtest and paper trade live before using real money.

Build your agent