Overview
| Property | Value |
|---|---|
| Position Type | Spot |
| keep_position | Configurable |
| Use Cases | Cross-exchange arbitrage, market making, spread capture |
Configuration
Parameters
| Parameter | Description |
|---|---|
buying_market | Exchange and pair for buy side |
selling_market | Exchange and pair for sell side |
maker_side | Which side places maker orders (buy or sell) |
order_amount | Order size in base asset |
min_profitability | Minimum profit threshold after fees |
How It Works
- Price Monitoring: Watches prices on both exchanges
- Spread Calculation: Computes potential profit including fees
- Maker Order: Places limit order on maker side
- Taker Order: When maker fills, immediately takes on other side
- 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:| Exchange | Position |
|---|---|
| Buying Exchange | Long base asset |
| Selling Exchange | Short base asset (or sold) |
keep_position setting:
true: Positions remain for future managementfalse: Inventory rebalanced or hedged

