Crypto arbitrage bots: fees, latency and slippage explained

By Awais Chaudhry, 27 November 2026

An arbitrage bot looks simple on paper. Bitcoin trades at one price on one exchange and a slightly higher price on another, so the bot buys on the cheaper one and sells on the dearer one. In practice most of the gaps you see on a price screen disappear once three things are counted: the fees on every leg, the time it takes your orders to arrive, and the price you actually get compared with the price you saw. These are fees, latency and slippage, and they decide whether an arbitrage strategy is worth automating at all.

This guide explains each one in plain terms, shows how to do the arithmetic before you build anything, and describes how a well-built bot handles them. One point first: a bot automates the strategy you define. It cannot promise profits, crypto trading carries a real risk of loss, and every bot must follow the terms of the exchanges it trades on and the laws and tax rules where you live.

The three types of crypto arbitrage bots

  • Cross-exchange arbitrage buys a coin on one exchange and sells the same coin on another at the same moment, using balances already held on both.
  • Triangular arbitrage trades a loop of three pairs on one exchange, for example USDT to BTC, BTC to ETH and ETH back to USDT, and only acts when the loop ends with more than it started with.
  • Funding-rate (spot and perpetual) bots hold a spot position and an opposite perpetual futures position to collect funding payments, while watching margin and the chance that funding turns negative.

All three face the same three costs, but in different proportions. Triangular bots pay three trading fees but never move coins between exchanges. Cross-exchange bots pay two trading fees plus the cost of rebalancing. Funding-rate bots trade less often, so fees matter less and margin and funding changes matter more.

Fees: the cost you can calculate in advance

Fees are the easiest cost to measure and the one most often left out of "free arbitrage" screenshots. A complete fee picture has four parts.

Maker and taker trading fees

Exchanges charge a taker fee when your order fills immediately against the order book and a usually lower maker fee when your order rests on the book and someone else fills it. Arbitrage bots usually need both legs to fill now, so they mostly pay taker fees. Your rate depends on your 30-day volume tier, whether you pay fees in the exchange's own token, and the market type. Always use the fee rate on your own account, not the headline rate on the fee page.

Withdrawal and network fees

A cross-exchange bot keeps buying on one exchange and selling on another, so coins pile up on one side and cash on the other. Sooner or later you have to move funds back. Each transfer has an exchange withdrawal fee and often a blockchain network fee, and some networks are far cheaper than others for the same stablecoin. These costs do not hit every trade, but they must be spread across the trades they pay for.

Funding and borrowing costs

If the bot uses perpetual futures or margin, it pays or receives funding and may pay interest on borrowed coins. For funding-rate strategies this is the whole point; for other strategies it is a cost to track.

A worked fee example

As an illustration only, assume a taker fee of 0.10% on each of two exchanges, and a rebalancing cost that works out at 0.03% per trade. Before slippage, the bot needs a gap of at least 0.23% just to break even. If the screen shows a 0.15% gap, that trade loses money even if every order fills at the quoted price. A triangular loop with three 0.10% taker fees needs roughly 0.30% before it pays anything. You can try your own numbers in the spread check on our arbitrage bot development page.

Latency: the cost you pay in time

Latency is the delay between a price changing on the exchange and your order reaching the matching engine. It does not appear on any invoice, but it decides whether the gap you saw still exists when your order arrives. Gaps on popular pairs are visible to everyone, and professional firms with fast infrastructure compete for them, so a slow bot mostly finds the gaps that are already gone.

Where latency comes from

  • Data method. Polling prices over REST every second is far slower than a WebSocket stream that pushes order-book changes as they happen. Serious arbitrage bots use WebSocket order books and keep them in sync with sequence numbers.
  • Server location. Each exchange runs its matching engine in particular data centres. A server in a nearby cloud region cuts the round trip compared with a home PC or a server on another continent.
  • Code path. Parsing messages, recalculating opportunities and signing orders all take time. Efficient asynchronous code matters more than the choice between Python and Node.js for most single-user bots.
  • Rate limits. Exchanges limit how many requests and orders an account can send. A bot that hits the limit is paused or blocked at exactly the wrong moment, so it must count its own requests.

Leg risk: what happens when one side fills

A cross-exchange trade has two legs sent at almost the same time. If one fills and the other does not, the bot is no longer doing arbitrage; it is holding an open position in a moving market. A good bot has a written rule for this: retry within a price limit, hedge on the same exchange, or close the filled leg, then alert you. Leg failures are where most real losses come from, and they are more likely when latency is high.

Slippage: the cost hidden in the order book

Slippage is the difference between the price you expected and the average price you actually got. It comes from two sources.

  • Depth. The best price on screen may only be available for a small amount. A larger order "walks the book" and fills at worse prices on the next levels. A bot must size each trade to the volume that is actually available at a profitable price, not to the top line.
  • Movement. Prices move while your order travels. The higher the latency and the more volatile the market, the more the fill price drifts.

You cannot calculate slippage exactly in advance, but you can estimate it from order-book snapshots and then measure it on real fills. That is why we compare expected and actual prices on every paper and live trade, and feed the measured slippage back into the bot's minimum spread setting.

Putting it together: the break-even spread

Before any trade, the bot should run one check:

Net result = gross gap − trading fees on every leg − expected slippage − rebalancing cost per trade − your safety margin

If the result is not positive, the bot does nothing. The safety margin covers the costs you cannot see, such as a leg failing or an exchange changing its fee tier. Many bots that "find lots of opportunities" in testing simply lack this check, or use the top-of-book price without depth.

How a well-built arbitrage bot manages these costs

  • Fee rates loaded from your actual account, refreshed when your tier changes.
  • Depth-aware sizing that only counts volume at prices that still clear the break-even spread.
  • A configurable minimum net spread and maximum trade size per pair.
  • Written leg-failure rules, with alerts on Telegram or a dashboard.
  • Per-exchange balance tracking with low-balance stops and rebalancing alerts.
  • Logs of every opportunity seen, taken and missed, with expected and actual prices.
  • A daily loss limit, a kill switch and API keys with trading only, withdrawals disabled and IP allow-listing where the exchange supports it.

Test before you trade: scanner, paper, small live

The cheapest way to find out whether an arbitrage idea works is not to trade it. We usually start with a scanner that watches live order books on your exchanges and logs every gap after your real fees and estimated slippage, with no orders placed. After a week or two the data shows how often after-cost gaps appear, how large they are and how long they last. If they are rare or tiny, you have saved the cost of building the trading engine. If they look real, the next step is paper trading against live books, then a small live start with tight limits on your own accounts.

What an arbitrage bot costs to build

At $50 per hour, a scanner with Telegram alerts across two to four exchanges is usually 40 to 80 hours ($2,000 to $4,000). A triangular bot on one exchange is about 100 to 180 hours ($5,000 to $9,000), and a cross-exchange bot with automatic execution 150 to 300 hours ($7,500 to $15,000). Running costs are a cloud server near the exchanges, often $10 to $60 a month, plus any paid data. For a range from your own feature list, use our bot cost calculator, and see how much a trading bot costs to build in 2026 for other bot types.

Risks and rules to accept first

Gaps close in milliseconds, legs fail, exchanges pause withdrawals or go offline, and funds spread across several exchanges carry each exchange's counterparty risk. Limits reduce losses but cannot remove them. You are responsible for each exchange's terms and for the laws and tax rules where you live, and running a bot with other people's money may be regulated, so take legal advice first. We do not build MEV, sandwich, front-running or wash-trading bots.

How we build arbitrage bots

We have built software from Lahore, Pakistan since 2014. For arbitrage work we collect your real fee tiers and minimum order sizes, build the scanner first, and only build execution if the data supports it. Code is usually Python with asyncio and ccxt, or Node.js where it fits an existing system, and you get the source in your own repository. See our crypto arbitrage bot development service, crypto trading bots, trading bot development, Telegram and Discord bots for alerts and control, and the bot development hub. If you are weighing open-source tools, read Freqtrade vs Hummingbot vs a custom bot. For the non-trading side, see business automation, web scraping and AI chatbot development.

Questions traders ask

Is crypto arbitrage still profitable in 2026?

Nobody can honestly promise that. Visible gaps on major pairs are often smaller than fees and slippage, and fast professional firms compete for them. The only reliable answer for your exchanges and pairs comes from logging after-cost gaps with a scanner before you build an automatic trading bot. Crypto trading carries a real risk of loss.

What spread does an arbitrage bot need to break even?

It must be larger than the trading fees on every leg, plus expected slippage, plus rebalancing costs per trade, plus a safety margin. As an illustration, two 0.10% taker fees and 0.03% rebalancing need a gap above 0.23% before slippage. Use your own account's fee rates, because tiers and discounts change the answer.

How do I reduce latency for an arbitrage bot?

Use WebSocket order-book streams instead of REST polling, run the bot on a cloud server in a region close to the exchanges' matching engines, keep the code path short and asynchronous, and stay inside each exchange's rate limits. Lower latency reduces slippage and failed legs, but it does not guarantee you win gaps against faster firms.

Check your arbitrage idea first

Send us your exchanges, pairs and fee tiers. We reply within one business day with questions or a milestone estimate at $50 per hour, usually starting with a scanner. Start a project, or hire us on Freelancer, where we are a Preferred Freelancer with a 4.9 average from 356 reviews, and you pay 0% commission through this link.