Skip to main content
The XEMM Executor (Cross-Exchange Market Making) captures arbitrage by simultaneously placing orders on different exchanges, exploiting price discrepancies.

Overview

Configuration

Parameters

How It Works

  1. Price Monitoring: Watches prices on both exchanges
  2. Spread Calculation: Computes potential profit including fees
  3. Maker Order: Places limit order on maker side
  4. Taker Order: When maker fills, immediately takes on other side
  5. Profit Capture: Locks in spread as profit

Arbitrage Validation

The executor validates that:
  • Trading pairs are interchangeable (same tokens)
  • Sufficient balance on both exchanges
  • Spread exceeds minimum profitability threshold
  • Transaction costs are accounted for

Example: ETH Arbitrage

Example: Stablecoin Spread

Profitability Calculation

Inventory Management

The executor creates positions on both exchanges: Total inventory risk depends on keep_position setting:
  • true: Positions remain for future management
  • false: Inventory rebalanced or hedged