Skip to main content
Arbitrage opportunities arise from price differences between Drift’s AMM, DLOB, and external exchanges.

Types of Arbitrage

AMM vs Oracle

Trade when AMM price diverges from oracle

Cross-Exchange

Arbitrage Drift vs other exchanges

Funding Rate

Capture funding rate differentials

Spot-Perp

Arbitrage spot and perp prices

AMM vs Oracle Arbitrage

amm-oracle-arb.ts

Cross-Exchange Arbitrage

cross-exchange.ts

Funding Rate Arbitrage

funding-arb.ts

Key Considerations

Factor in gas fees, exchange fees, and slippage when calculating profitability.
Arbitrage opportunities are fleeting. Use fast infrastructure and priority fees.
Always hedge your positions to avoid directional exposure.
Optimize capital allocation across opportunities.

Production Requirements

  • Low latency: Co-located servers, fast RPC
  • Capital: Sufficient liquidity for trades
  • Hedging: Accounts on multiple exchanges
  • Monitoring: Track PnL and positions
  • Error handling: Robust retry and fallback logic
Arbitrage trading is competitive and requires significant capital and infrastructure. Test thoroughly before deploying capital.

Next Steps

Market Making

Market making strategies

Advanced Features

Advanced SDK capabilities