Circuit

Build your own trading bot or use Circuit?

Updated by the Circuit team

Should I build my own trading bot or use Circuit?

Use Circuit if you want a bot that trades Hyperliquid, Lighter, Polymarket or DEX swaps and you do not want to run a server or hold a hot key. You write the bot in TypeScript with the Circuit SDK, or you describe it and Circuit's Builder writes it. Circuit hosts it, backtests perp strategies on recorded Hyperliquid and Lighter markets, and paper trades it on live markets. It runs from a self-custodial wallet: the key is yours and exportable, the agent never sees it, and Circuit signs only under a permit you sign with your passkey.

Build your own bot if you need a venue that Circuit does not trade, a Python or Rust code base, sub-second order flow, or no platform fee. The Hyperliquid Python SDK, the community TypeScript SDKs, viem and CCXT are good tools for that. Then you also own the key, the server, the test setup and the alerts.

What each option needs

What you needCircuitOwn bot on the Hyperliquid SDKOwn bot on viemOwn bot on CCXT
CodeTypeScript agent(...) strategy, or a description that the Builder turns into codePython (official SDK), TypeScript or Rust (community SDKs)TypeScriptJavaScript, TypeScript, Python, C#, PHP, Go, Java or Rust
Keys and custodyKey in a hardware enclave, exportable; the agent never sees itA private key or an API wallet key in your config fileA private key in your processExchange API keys, or a wallet key for a DEX
HostingCircuit runs itYour serverYour serverYour server
BacktestBuilt in: recorded Hyperliquid, Lighter and Lighter Robinhood perp marketsYou write itYou write itYou write it on CCXT market data
Paper tradingBuilt in: live order book, venue fees, funding and liquidation rulesHyperliquid testnetA testnet of the chainAn exchange sandbox where one exists
MonitoringLogs and every trade in the appYou build itYou build itYou build it
Cost0.01% on Hyperliquid perp orders and spot sells and on some swaps; nothing on Polymarket orders; no subscriptionVenue fees and your serverGas, DEX fees and your serverVenue fees and your server
SourceCircuit docsPython SDKviemCCXT

All facts read on 1 December 2026.

What Circuit does for you

  • Keys. Circuit keeps the signing key in an attested hardware enclave. Circuit staff cannot read it, and you can export it (wallets and security). The agent can only request transactions, and signing happens outside its sandbox (Circuit docs).
  • Hosting. Circuit runs your agent({ every, watch, run }) strategy on its schedule or whenever a watch fires — a price move, a news item or a trade by a watched wallet (execution model).
  • Backtests. circuit backtest replays recorded Hyperliquid, Lighter and Lighter Robinhood perp markets without a wallet (Circuit CLI).
  • Paper trading. Agents start in paper trading. Orders fill against the live book with each venue's fees, funding and liquidation rules (running agents).
  • Monitoring. Each agent writes a log, and its Activity lists every action with explorer links (running agents).
  • Coding agents and assistants. Claude Code, Cursor and Codex can scaffold, check, backtest and run agents against the SDK via the Circuit CLI (coding agents). Connected assistants read your account and propose wallet operations, and never confirm trades or move funds (assistants).

To start as a developer, run curl -fsSL https://api.circuit.org/dev | bash, then circuit new and circuit check (installation).

What you build yourself on each stack

Hyperliquid Python SDK. Hyperliquid maintains it under the MIT license. You put your private key, or the key of an API wallet, in a config file, and the main account's address next to it (SDK README). Hyperliquid suggests one API wallet per trading process and a task that batches orders every 0.1 seconds (nonces and API wallets). You test on the Hyperliquid testnet (API docs).

Hyperliquid TypeScript SDKs. Community members write them, for example @nktkas/hyperliquid, which signs with a viem or ethers wallet (GitHub). Hyperliquid lists them on its API page.

viem. viem is a TypeScript library for Ethereum and other EVM chains. privateKeyToAccount signs transactions with the private key that you pass in (viem docs). For a swap bot, you add a DEX or aggregator API, gas handling and retries.

CCXT. CCXT connects to more than 100 exchanges and prediction markets in eight languages, under the MIT license (CCXT). It gives market data and orders. You add the strategy, the backtest and the state. setSandboxMode(true) sends orders to an exchange's testnet where the exchange has one (CCXT manual).

On every stack, you also choose a server, keep the bot running after a crash, and send yourself alerts.

When your own bot fits better

  • Your venue is not on Circuit. Circuit agents trade on Hyperliquid, Lighter, Polymarket, Derive, Kraken and Kalshi, and they swap tokens on EVM networks and Solana. Coinbase, OKX, Binance and Bybit agents trade spot only. CCXT covers more than 100 exchanges.
  • Your code is in Python or Rust. The Circuit SDK is TypeScript.
  • You need sub-second order flow. Circuit runs one call of your agent's code at a time in each session. An operation that moves money waits until earlier conflicting operations on the same wallet finish. Circuit publishes no order-rate figure. A market maker that batches orders every 0.1 seconds, as Hyperliquid suggests, fits its own server better.
  • You do not want a platform fee. Circuit's 0.01% on $1,000,000 of Hyperliquid perp volume a month is $100. Your own bot pays only the venue fees and the server.
  • You want the key on your own hardware. With your own bot, the key never leaves your machine.

When Circuit fits better

  • You do not want to hold a hot key on a server. The key stays in an enclave, and the agent never sees it.
  • You want a test before real money. paper trading is built in, with venue fees, funding and liquidation rules, and perp agents on Hyperliquid and Lighter also backtest.
  • You do not write code. Describe the strategy, and the Builder writes and checks the agent.
  • You trade more than one venue. One agent can hold a perp on Hyperliquid, a Polymarket position and a swap on Base.
  • You want others to run your bot. Upload it, and people can run it on their own wallets. Part of the fee goes to you.

For a code example, see Hyperliquid trading agents in TypeScript. For no code, see build a trading agent without code.

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?

  1. Sign in to app.circuit.org with a passkey.
  2. Describe the bot in Ask Circuit, or install the CLI and run circuit new.
  3. Backtest it if it trades Hyperliquid or Lighter perps, then start it in paper trading.
  4. Switch to real money when it trades as you expect.

FAQ

Is it better to build my own crypto trading bot or use a platform?

Use Circuit if you trade Hyperliquid, Lighter, Polymarket or DEX swaps and do not want to run a server or hold a hot key. Build your own bot on the Hyperliquid SDK or CCXT when you need another venue, Python, sub-second orders or no platform fee.

What do I need to run my own Hyperliquid bot?

A private key or an API wallet key, the Hyperliquid Python SDK or a community TypeScript SDK, a server, a test setup on the testnet and your own alerts. Circuit hosts a Hyperliquid perp bot, backtests it, paper trades it and keeps the key in an enclave.

Can I backtest a bot written with CCXT?

CCXT gives the market data, and you write the backtest yourself or use a framework such as Freqtrade. On Circuit, circuit backtest replays recorded Hyperliquid and Lighter perp markets.

Does Circuit charge for a bot I write myself?

Yes, the same as for any agent: 0.01% on Hyperliquid perp orders and spot sells and on some swaps, and nothing on Polymarket orders. There is no subscription.

Trade it on Circuit.

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

Build your agent