Back to bots

Create bot

Docs

Step 1: Choose venues

2 venues required

Set each venue to Any, Long or Short for direction-sensitive strategies

Step 2: Select markets

Trade every coin, or only the asset classes you pick

Step 3: Size each pair

What each venue puts up for its leg. The goal's leverage sets the position size

Margin per venue

Each venue funds its own leg from its own balance

USD

Step 4: Pick a goal

A goal sets every rule below. Change any of them to tune it

Rules

Entering

Funding rule

Enters once the funding spread has stayed positive for 6 hours

Cost limit

Up to 0.25% to open and close

Profit floor

Enters any pair within the cost limit

Holding

At 5x, a move of under 20% against one leg can liquidate it, hedged or not

x

14 days, then longer while the pair still pays. Another rule may close the pair sooner

Extend max holdNew

Keeps a pair past 14 days while the pair still pays, saving the fees to close and reopen it

Exiting

Exit each pair at

Holds each pair until another rule closes it

Funding exitNew

Closes the pair once funding has cost more than $0.25 an hour (about $6.00 a day) for every $1,000 in each leg for 15 min

an hour per $1,000
min
Emergency exitNew

If funding costs more than $2.00 an hour (about $48 a day) for every $1,000 in each leg, the bot closes the pair right away instead of waiting

an hour per $1,000
Exit before liquidation

From 75% of the way to liquidation, the bot closes with a limit order for lower fees, and at market if it doesn't fill. At 90%, a move of under 18% at 5x, it closes at market at once.

Liq.
Limit
Market
Cooldown between pairs

Waits a random 5โ€“10 min after a pair closes before looking for the next

min
min

Connect a wallet to set up and start an arbitrage bot

โ€”