What we design around your workflow
A price gap between two exchanges, or around a loop of three pairs on one exchange, is easy to spot and hard to capture. Fees on every leg, thin depth behind the quote, withdrawal costs, and capital parked on each venue erase many gaps, and fast, well-funded traders contest the rest. We build the scanner to measure that first, then design execution, testing, and controls around what survives.
Cost-aware scanner
Watch order books on every connected venue and rank each gap by what is left after fees, depth for your size, and transfer costs.
Triangular loop engine
Evaluate loops of three pairs on one exchange, with every leg rounded to that pair's quantity and price steps first.
Leg-aware execution
Send all legs as price-capped orders and apply rules written in advance when one leg fills and another does not.
Inventory and rebalancing
Track balances on each venue, flag drift toward one side, and propose rebalancing transfers for a person to approve.
Limits and kill switch
Cap trade size, open legs, venue exposure, and daily loss, with one command that halts trading and cancels every open order.
Price the gap after every cost, not before
A quoted gap between two venues is not a profit. Each leg pays a trading fee, usually at the taker rate, because arbitrage trades against orders already resting in the book. The best price covers only the first level of the book, so a realistic size fills deeper and worse. Moving coins between exchanges adds withdrawal fees and waits for confirmations that each exchange sets per asset and can pause. Cross-exchange bots therefore hold inventory on every venue, tying up capital and carrying the price risk of the coins held.
Executable, not quoted
Walk each order book to the intended size and compare average fill prices, not the best bid against the best ask.
Gaps that cannot close
Treat a persistent gap with suspicion: transfers for that asset may be suspended, or one ticker may name different tokens on different venues.
Inventory has a price
Count idle capital, exposure on the coins held, and the cost of any hedge beside the trading fees.
Primary sources
- Kraken Support: cryptocurrency deposit processing timesDeposits are credited only after a number of confirmations that varies by asset, with timing subject to network conditions and maintenance.
Separate finding opportunities from acting on them
The scanner and the executor do different jobs and fail in different ways. The scanner keeps a local copy of each order book, built from a snapshot plus sequenced updates, and publishes candidate trades with their age and net value. The executor rechecks freshness and limits, then sends immediate-or-cancel orders capped at the worst price the trade can afford, so a moved market yields a partial fill or none. Triangular loops keep all three legs on one venue: no transfers, but a third fee and a third chance of a partial fill.
Books you can trust
Discard and rebuild a local order book as soon as an update arrives out of sequence, as Binance's API documentation prescribes.
Rules for a lone leg
Decide beforehand whether a filled leg without its partner is retried within a price limit, hedged, or unwound, and log the result.
Rounding in loops
Round each triangular leg to the pair's quantity step, and track the small leftover balances that rounding creates.
Primary sources
- Binance Spot API: how to manage a local order book correctlyBinance's procedure for combining a depth snapshot with diff updates, including discarding the local book when events are missed.
Backtest on real order books, then paper trade live
Candle data cannot show what a trade of your size would have paid, so arbitrage backtests replay historical order book data wherever it exists. The model adds the delay between spotting a gap and the order arriving, your actual fee tier, partial and failed legs, and each venue's inventory at the time, because a bot cannot sell coins it does not hold there. Results come back per opportunity, gross and net. The same code then paper trades on live books before a small live allocation.
Latency in the model
Fill each simulated order against the book as it stood when the order would have arrived, not when the gap was first seen.
Failures in the totals
Count unwound legs, missed fills, and rebalancing costs instead of reporting only completed round trips.
Testnets for plumbing
Use exchange testnets to prove order handling; a testnet is a separate market, so it cannot show whether real gaps exist.
Cap exposure and keep a kill switch within reach
Limits sit outside the strategy code: size per trade, open legs, inventory per venue, and daily loss. The bot pauses on stale books, repeated rejections, or a venue suspending transfers, and one command cancels open orders everywhere. Where an exchange offers a dead man's switch, such as Kraken's cancel-all-orders-after timer, orders also expire if the bot loses its connection. Who the bot trades for can change the legal picture: in the UK, for example, dealing in qualifying cryptoassets as principal or as agent is becoming an FCA-authorized activity, with the new rules applying from 25 October 2027. Confirm your obligations with qualified counsel.
Pause triggers
Stop on stale data, rejected orders, rate-limit responses, abnormal losses, or an exchange halting deposits and withdrawals.
Keys without withdrawals
Give trading keys no withdrawal rights, and run rebalancing as a separate approved step, to allowlisted addresses where the exchange supports them.
Inside published limits
Keep request rates within each venue's documented limits and API terms, and back off at the first throttling response.
Primary sources
- Kraken API: cancel all orders after XKraken's dead man's switch, a countdown timer that cancels all of a client's orders unless it is renewed.
- FCA: cryptoasset regulated activitiesThe new UK activities needing authorization, including dealing in qualifying cryptoassets as principal and as agent, with rules applying from 25 October 2027.
Realistic limits and operator controls
No promised profit
The bot finds and acts on price gaps. Only testing and live results show whether any survive your costs and the competition, and results can be negative.
Competition narrows the field
Low-latency firms watch the same major pairs, so gaps there are rare and brief; what remains tends to sit in thinner markets with limited size.
Capital spread across venues
Arbitrage needs funds on every exchange it trades, so each venue's outages, withdrawal freezes, and solvency become your exposure.
Frequently asked questions
Is crypto arbitrage still profitable?
We cannot promise that it will be for you. Many apparent gaps vanish once costs are counted, so we start with the scanner in record-only mode to show how often a net opportunity exists for your venues and trade size.
Do we need funds on every exchange?
For cross-exchange arbitrage, in practice yes. Both legs trade at once from balances already on each venue, and transfers rebalance inventory later, because waiting for confirmations on every trade would let the gap close first.
Can it run triangular arbitrage on a single exchange?
Yes. Triangular loops avoid transfers but pay three fees and risk a partial fill on each leg, so the engine checks depth and rounding on all three legs before it trades.
Is running an arbitrage bot legal?
It depends on your country, each exchange's terms and availability where you live, and whether you trade for anyone else, so confirm your position with qualified counsel. Tax treatment of frequent trades also varies by country, and this page is not legal or tax advice.
