Guides

Pair bot

You need: trading keys on two DEXs.

Two modes

A Pair bot trades between the same two DEXs: long on one, short the same size on the other. The mode decides what it trades and when.

  • Funding: checks every market both DEXs list and enters the one that earns most after fees over the hold. If nothing pays, it waits.
  • Delta-neutral: holds one market you pick regardless of funding, closing and reopening on your hold. It's for volume and open interest.

Settings

  • DEX pair: the two DEXs.
  • Market: in Funding mode, the highest-APR market or one you choose. RWA only limits it to stocks, indices, commodities and FX (currently Arcus and Lighter). High volume only skips markets under $10M a day. Delta-neutral needs a market both DEXs list.
  • Margin and leverage: up to 10x. If a market's max is lower, it trades at that max on the same margin, so the position is smaller. A 6x market on a 10x bot opens 60% of the size.
  • Hold: a fixed time, or a random range drawn again each trade. Funding mode also has Until better.
  • Market rules: Strict, Recommended or Wide. Sets the minimum activity, the largest price gap between the DEXs and the slippage allowed.
  • Trade even when unprofitable (Funding mode): when no route pays, it takes the cheapest one instead of waiting. Good for volume, but it costs money.

Funding mode

Each DEX sets its own funding rate. When one DEX pays longs more than the other on the same market, long on the cheaper side plus short on the dearer side collects the difference every hour.

Opening a trade

  • Right before entering, it re-reads funding, both order books and the last 15 minutes of price. If the market is moving fast, it waits.
  • A limit order goes on one DEX, one tick inside the spread when there's room, and moves up whenever someone outbids it.
  • Each part that fills is hedged at once with a market order on the other DEX for exactly that size, so you're never one-sided while it waits.
  • After 5 minutes, whatever hasn't filled goes at market on both DEXs.

Closing a trade

  • Fixed or random hold: when the time is up.
  • Until better: no timer. It closes when funding has cost more than closing would, on two checks 15 minutes apart. It switches when another route on the same DEXs pays enough more to cover the switch within 8 hours. It holds at least 8 hours before switching, and switches at most twice a day.

Closing uses limit orders on both DEXs first, then a market order for the rest. Any guard can close it earlier (see Safety and guards).

Delta-neutral mode

It holds one market (BTC by default) long on one DEX and short on the other, regardless of funding. Many DEXs give points for volume and open interest, and this builds both. On each entry it picks the cheaper direction, based on fees, spread and the funding expected over the hold.

Shorter holds trade more volume per day, and each round trip costs fees and spread. The plan shows the cost of one round trip and of one day at your hold. On the bot card, Cost / $1M is the real figure from the DEXs' fills. Funding is earned or paid on top; this mode doesn't wait for it to be positive.

DZERO

Perpetual futures are risky. A hedge removes most price risk, not all of it: orders can fill unevenly, DEXs can go down and funding can turn against you. Rates shown are past readings, not a promise. Nothing here is financial advice.