Circuit

ETH/BTC ratio trading agent

The strategy

Compute the ETH/BTC price ratio from Hyperliquid perp mid prices on completed hourly candles, with a 20-candle rolling mean and standard deviation. When the ratio drops 2 standard deviations below the mean, go long ETH and short BTC with equal position value, 20% of my allocated amount per leg. When it rises 2 standard deviations above the mean, take the opposite pair. Close both legs when the ratio returns to the mean or moves another 2 standard deviations against the entry. One pair open at a time. Check every hour. Make the lookback, band width, size and exits adjustable.

Build it

Start from this exact spec: "Build an agent to trade the ETH/BTC ratio". The Builder turns it into an agent, checks the code, and lets you backtest on recorded markets and run it in Paper trading before using 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.

Trade it on Circuit.

Build it or fork it. Backtest it and run it in Paper trading before using real money.

Run It