CircuitGet started

ETH/BTC ratio trading bot

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 assigned USDC 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 in one click

Start from this exact spec: "Build an agent to trade the ETH/BTC ratio". Circuit's Builder turns it into an agent, checks the code, and lets you backtest it on recorded markets and paper trade it on live markets before any real money moves. Every number in the spec is a setting you can change.

Self-custodial by design

Agents run on a wallet you create in Circuit or import from Phantom, Rabby or MetaMask. Agents never see private keys: they request typed actions through Circuit's SDK, and Circuit signs outside the agent's sandbox only under a permit you sign with your passkey. Pause, resume or stop any agent at any time; stopping leaves your positions in your wallet.

Build this agent