TL;DR: CEX-DEX Arbitrage exploits price differences between centralized exchanges (Binance, Coinbase) and decentralized exchanges (Uniswap, dYdX). Buy on the cheaper side, sell on the more expensive side simultaneously. Profit margins are small (1-3% per trade) but can be consistent. Requires bots for fast execution and precise calculation of gas and trading fees.
CEX-DEX Arbitrage exploits price discrepancies between centralized exchanges (Binance, Coinbase) and decentralized exchanges (Uniswap, Sushiswap). Example: ETH trades at $3,000 on Coinbase but $3,020 on Uniswap → buy on Coinbase, sell on Uniswap, profit $20. Sam Bankman-Fried built Alameda Research into $100M+ using crypto arbitrage (though his later actions were fraudulent). Modern arbitrage is highly competitive (bots dominate), requiring speed, capital, and low fees. Profitable opportunities appear during: high volatility, new token listings, chain congestion. Risk: execution delays, gas fees eating profits, exchange withdrawal limits.
Core principles
- 1. Identify price differences >1-2% (after fees)
- 2. Execute both sides simultaneously (reduce execution risk)
- 3. Factor in gas fees, exchange fees, slippage
- 4. Automate with bots for speed
- 01 Price difference >2% after fees
- 02 Sufficient liquidity on both exchanges
- 03 Fast execution capability (API/bot)
- 04 Accounts funded on both exchanges
- 01 Execute both trades simultaneously (buy + sell)
- 02 Cancel if execution takes >60 seconds
- 03 Monitor gas fees (can kill profits)
Risks to respect
- Account for slippage on DEX side
- Maintain buffer for gas fee spikes
- Avoid illiquid pairs (execution risk)
- Monitor exchange withdrawal limits
- Use limit orders when possible
Risk management
- Account for slippage on DEX side
- Maintain buffer for gas fee spikes
- Avoid illiquid pairs (execution risk)
- Monitor exchange withdrawal limits
- Use limit orders when possible
Step-by- step plan
- 1
Set Up Accounts on Multiple Exchanges
Create and verify accounts on 3-5 major CEXs (Binance, Coinbase, Kraken, OKX) and set up wallets for DEXs (Uniswap, Sushiswap, Curve). Complete KYC to unlock higher withdrawal limits. Enable API access on CEXs for faster execution. Pre-fund accounts with the assets you plan to arbitrage.
- 2
Build or Acquire Price Monitoring Tools
You need real-time price feeds from multiple sources. Options: build custom scripts using exchange APIs (Python/JavaScript), use aggregators (CoinGecko, DEXTools), or subscribe to professional arbitrage scanning services. Set alerts for spreads exceeding your profit threshold (typically >1.5% after fees).
- 3
Calculate Your Break-Even Threshold
Before any trade, calculate all costs: CEX maker/taker fees, DEX swap fees, gas costs (current and estimated at execution), potential slippage based on your trade size and pool liquidity. Your minimum spread requirement = sum of all costs + desired profit margin. Update this calculation regularly as costs change.
- 4
Execute Simultaneous Buy and Sell Orders
When opportunity appears, execute both legs as close to simultaneously as possible. On CEX, use limit orders at your target price or market orders for guaranteed fill. On DEX, set appropriate slippage tolerance (0.5-1% for stable pairs, 2-3% for volatile). Speed is critical—have all transaction parameters pre-prepared.
- 5
Track Performance and Optimize Strategy
Log every trade: entry/exit prices, fees, gas costs, slippage, execution time, profit/loss. Analyze patterns: which pairs are most profitable? What times have best spreads? Are you losing to faster competitors? Continuously refine your threshold calculations and consider automation as you identify consistent opportunities.
In detail
Price Discrepancies Between Exchanges: Why Arbitrage Exists
Crypto markets are fragmented across hundreds of exchanges, each with different liquidity, user bases, and order books. This fragmentation creates price discrepancies—the same asset can trade at different prices on different venues. Arbitrageurs profit by buying low on one exchange and selling high on another, simultaneously. Why do discrepancies exist? Centralized exchanges (CEXs) like Binance and Coinbase have deep order books with institutional liquidity. Decentralized exchanges (DEXs) like Uniswap use AMM pools where prices depend on the ratio of tokens in the pool—large trades cause slippage. During volatile markets, these prices can diverge significantly. The 'Kimchi Premium' is a famous example: South Korean exchanges often priced Bitcoin 5-30% higher than global exchanges due to capital controls preventing easy arbitrage. Alameda Research (before its scandal) made millions exploiting this premium. Modern opportunities are smaller (0.5-2%) but still profitable at scale with automation.
Execution Speed Requirements: The Race Against Bots
Arbitrage is a speed game. The moment a price discrepancy appears, hundreds of bots compete to capture it. By the time you manually spot an opportunity and execute, it's likely gone. Successful arbitrage requires sub-second execution or finding opportunities others miss. Professional arbitrageurs use: API trading (direct exchange API access for fastest execution), co-location (servers physically near exchange data centers), and MEV bots on DEXs (which can reorder transactions within blocks to guarantee execution). The infrastructure cost for competitive arbitrage can reach $10,000-50,000+ annually. For retail traders, the opportunity lies in: less competitive pairs (small-cap tokens, new listings), cross-chain arbitrage (where bridge times create windows), and event-driven arbitrage (during exchange outages, listing announcements, or chain congestion when professionals struggle too). Manual arbitrage is possible during extreme volatility when opportunities are large enough to survive slower execution.
Transaction Cost Analysis: The Profit Equation
An arbitrage trade only works if: (Sell Price - Buy Price) > (CEX Fees + DEX Fees + Gas Costs + Slippage). Each component can destroy profitability if not carefully calculated. CEX fees typically range 0.1-0.3% per trade. DEX fees are usually 0.3% (Uniswap) to 0.05% (some stablecoin pools). Gas fees on Ethereum can range $5-100+ depending on network congestion—a $50 gas fee requires $5,000+ trade size just to break even. Slippage on DEXs depends on trade size relative to pool liquidity—large trades can experience 1-3% slippage. Example calculation: Buy 1 ETH at $3,000 on Coinbase (0.1% fee = $3), sell on Uniswap at $3,050 (0.3% fee = $9.15, gas = $20). Gross profit: $50. Net profit: $50 - $3 - $9.15 - $20 = $17.85 (0.6% return). This only works if execution is fast enough that prices don't change. Layer 2 solutions (Arbitrum, Optimism) reduce gas costs dramatically, making smaller arbitrage trades viable.
Flash Loans and Advanced Arbitrage Mechanics
Flash loans are a DeFi innovation that transformed arbitrage. They allow borrowing millions of dollars for the duration of a single transaction with no collateral—if you don't return the funds within the same transaction, the entire transaction reverts as if it never happened. With flash loans, you can: borrow $1M in USDC, buy ETH on DEX 1 where it's cheap, sell ETH on DEX 2 where it's expensive, repay the loan + tiny fee, and keep the profit—all in one atomic transaction. This eliminates capital requirements and execution risk. Popular flash loan providers include Aave and dYdX. However, flash loan arbitrage is extremely competitive. MEV (Maximal Extractable Value) bots monitor the mempool for pending arbitrage transactions and front-run them. Flashbots and private transaction pools offer some protection. Writing profitable flash loan bots requires deep Solidity knowledge, understanding of AMM mechanics, and sophisticated MEV protection strategies. This is the realm of professional DeFi developers, not casual traders.
Key takeaways
- Arbitrage profits exist because crypto markets are fragmented—the same asset trades at different prices on different exchanges. Opportunities range from 0.5-3% spreads, but require fast execution before bots close the gap.
- Transaction costs determine profitability: CEX fees (0.1-0.3%), DEX fees (0.05-0.3%), gas costs ($5-100+), and slippage (1-3% for large trades) must all be calculated before every trade. A seemingly profitable spread can become a loss after fees.
- Speed is the competitive advantage. Professional arbitrageurs use API trading, co-located servers, and MEV bots. Retail traders can find opportunities in less competitive pairs, cross-chain arbitrage, or during extreme volatility when spreads are large enough for manual execution.
- Flash loans enable capital-free arbitrage for advanced developers—borrow millions for a single transaction, arbitrage across DEXs, repay instantly. However, this requires deep Solidity expertise and MEV protection strategies to avoid being front-run.
Frequently asked questions
Do I need programming skills for CEX-DEX arbitrage? +
For professional arbitrage: yes, Python or JavaScript knowledge is virtually required for bot automation. Manual arbitrage is technically possible but practically unfeasible — crypto arbitrage opportunities close within seconds. Ready-made bot frameworks (Hummingbot) exist as a middle ground.
What are the actual costs per arbitrage round trip? +
Add up: CEX trading fee (0.1-0.2% per side), DEX swap fee (0.3% on Uniswap v2, 0.05% on v3), Ethereum gas costs (variable, $5-50 depending on network), DEX slippage (0.1-0.5%). Total minimum 0.5-1% per round trip. An arbitrage opportunity below 2% after costs is barely profitable.
Is this a strategy individual investors can execute? +
Increasingly difficult. Professional arbitrage desks and MEV bots dominate this space and close opportunities within milliseconds. For individuals, small niche arbitrages are still possible: cross-chain arbitrage, less liquid DEX pairs, or specific on-chain events. Expect realistic returns of 20-50% per year with significant time investment.
Historical context
Alameda Research made millions in 2018-2020 exploiting kimchi premium (Korea arbitrage)
- Programming/API skills (for automation)
- Understanding of DEX mechanics
- High-speed execution setup
- Trading bot/API access
- Fast internet connection
- Multiple exchange accounts
- DEX aggregator