DEX & Program Configuration

This section covers how to configure which decentralized exchanges (DEXes) and arbitrage programs arb-assist monitors.

DEX Configuration

dexes

Type: array Required: Yes Description: List of DEX program IDs to include in arbitrage analysis

dexes = [
  "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",   # raydium amm v4
  "CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C",   # raydium cpmm
  "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",    # pumpfun amm
  "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo",    # meteora dlmm
  "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",    # orca whirlpools
  "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK",   # raydium clmm
  "Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB",   # meteora dynamic
  "SoLFiHG9TfgtdUXUjWAxi3LtvYuFyDLVhBWxdMZxyCe",    # solfi
  "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG",    # meteora damm v2
  "vrTGoBuy5rYSxAfV3jaRJWHH6nN9WK4NRExGxsk1bCJ",    # vertigo
]

Supported DEXes

Raydium

Meteora

Orca

Other DEXes

DEX Selection Strategy

Choose DEXes based on:

  1. Liquidity: Include high-liquidity DEXes

  2. Volume: Focus on active trading venues

  3. Arbitrage Potential: Some DEX pairs create more opportunities

  4. Gas Efficiency: Some DEXes have lower transaction costs

Recommended minimum set:

Arbitrage Program Configuration

filter_programs

Type: boolean Required: No Default: false Description: Whether to only include transactions from specified arbitrage programs

arb_programs

Type: array Required: Yes if filter_programs = true Description: List of arbitrage program addresses to monitor

Copy Trading Configuration

You can monitor successful traders or bots:

This allows you to:

  • Copy strategies from profitable traders

  • Learn from successful bot configurations

  • Identify new arbitrage opportunities

Common Arbitrage Programs

Production Bots

Example Traders (for learning)

Token Configuration

exclude_mints

Type: array Required: No Default: [] Description: Token mints to exclude from arbitrage

Common exclusions:

  • Base tokens: Often used as intermediaries

  • Stablecoins: Low volatility, minimal arbitrage

  • Problematic tokens: Known issues or restrictions

base_mints

Type: array Required: Yes Description: Base tokens for arbitrage paths

Strategies:

  • WSOL only: Most liquid, standard approach

  • USDC only: Stablecoin arbitrage

  • Both: 3-hop and 4-hop opportunities

include_token2022

Type: boolean Required: No Default: false Description: Whether to include Token-2022 (Token Extensions) mints

Market Filtering

Pool Requirements

Configure minimum pool requirements:

Market Age Filtering

Filter by pool age (since first detection):

Performance Considerations

DEX Count Impact

More DEXes = More opportunities but:

  • Higher CPU usage

  • More memory consumption

  • Increased network traffic

  • Slower processing

Recommended:

  • Production: 5-10 major DEXes

  • Testing: 3-5 DEXes

  • Research: All available

Program Filtering Impact

With filter_programs = true:

  • ✅ Faster processing

  • ✅ Less noise

  • ✅ Focus on proven strategies

  • ❌ May miss new opportunities

With filter_programs = false:

  • ✅ Discover new strategies

  • ✅ Complete market view

  • ❌ Much slower

  • ❌ More false positives

Best Practices

  1. Start Focused

  2. Expand Gradually

    • Add DEXes one at a time

    • Monitor performance impact

    • Track new opportunities

  3. Regular Updates

    • Check for new DEX deployments

    • Update program addresses

    • Remove deprecated DEXes

  4. Monitor Effectiveness

    • Track arbitrage count by DEX

    • Measure profit by program

    • Identify optimal combinations

Troubleshooting

No Arbitrage Found

Check:

  1. DEX addresses are correct

  2. Programs are actively trading

  3. Not filtering too aggressively

  4. Base mints are appropriate

High CPU Usage

Try:

  1. Reduce number of DEXes

  2. Enable program filtering

  3. Increase update_interval

  4. Exclude low-volume DEXes

Missing Opportunities

Consider:

  1. Adding more DEXes

  2. Including new programs

  3. Reducing exclusions

  4. Monitoring competitors

Last updated