Lab: free tools · size first · stock scanner · crypto scanner · journal

Trading

Arbitrage

Arbitrage in crypto is the practice of profiting from price discrepancies for the same asset across different markets, buying an asset where it is cheaper and simultaneously selling it where it is more expensive, capturing the price difference as profit. In DeFi, arbitrage bots continuously equalise prices across DEX pools by trading against pricing inefficiencies, earning profit while providing the economic service of price alignment across the fragmented crypto market.

Arbitrage is buying an asset where it is cheap and selling it where it is dear, at nearly the same time, so the profit does not depend on which way the market moves. In crypto, the gaps show up between exchanges, between spot and futures, and between DEX pools. They are rarely free money for long: fees, withdrawal delays, transfer times and slippage eat most visible spreads, and bots close the obvious ones in seconds. The edge is usually in execution and capital access, not in spotting the gap.

The main types

  • Cross-exchange: the same asset trades at different prices on two venues. Buy on one, sell on the other.
  • Triangular: prices across three pairs on one exchange, such as BTC/USDT, ETH/BTC and ETH/USDT, briefly imply a profit if you trade around the loop.
  • Cash-and-carry: buy spot and short a future or perpetual priced above it, collecting the basis or funding. This is the most common form for larger funds.
  • DEX arbitrage: realigning prices between pools, or between a DEX and a centralized exchange. Bots compete for these trades block by block, and the competition is part of MEV.
  • Statistical arbitrage: trading historical relationships between assets. Despite the name it carries real market risk, because relationships break.

What eats the spread

A visible price gap is not a profit until every cost is subtracted. Trading fees on both legs, withdrawal fees, network fees, slippage on each side and the time it takes to move funds between venues all count. If you have to transfer coins before you can sell them, the gap can close while the transfer confirms. That is why serious arbitrageurs keep inventory on both sides and rebalance later.

The risks that are not in the spreadsheet

Counterparty risk is the big one. Persistent price gaps often exist because one venue is hard to withdraw from, is in trouble, or serves a market with capital controls. Money stuck on FTX when it halted withdrawals in November 2022 is the standing reminder. Other risks: an exchange suspending deposits of one coin, a hedged perpetual short being liquidated in a spike on its own venue, and stablecoins wobbling off their peg mid-trade.

Flash loans and on-chain arbitrage

On-chain, flash loans let a trader borrow large amounts inside one transaction, as long as the loan is repaid before the transaction ends. That removes the capital barrier for some DEX arbitrage, but the competition is automated searchers who pay validators for priority, and the profit usually goes to whoever is fastest and pays most for block space. Arbitrage strategies has worked setups.

If a gap has stayed open for days, ask why nobody has closed it. The answer is usually the risk.