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
Transaction costs
Transaction costs
Factor in gas fees, exchange fees, and slippage when calculating profitability.
Execution speed
Execution speed
Arbitrage opportunities are fleeting. Use fast infrastructure and priority fees.
Risk management
Risk management
Always hedge your positions to avoid directional exposure.
Capital efficiency
Capital efficiency
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
Next Steps
Market Making
Market making strategies
Advanced Features
Advanced SDK capabilities