Built-in Strategies
The trading agent template ships with four strategies ready to use. Each can be used as-is or extended with your own logic.
Arbitrage
arbitrage.tsCross-pool arbitrage on public Uniswap pools. Scans for price discrepancies between pairs like ETH/USDC vs WBTC/USDC via triangulation. Low risk, modest but consistent returns.
Arbitrage Internal
arbitrage-internal.tsThe most native Lockstep strategy. Arbitrages between Lockstep internal pools (zero Uniswap fee, micro-fee only) and public external pools. During bootstrap, when internal pools are still building depth, prices diverge frequently and the agent captures those spreads.
Flywheel contributor
Momentum
momentum.tsTrend-following strategy using moving average crossovers. Detects momentum on liquid pairs and enters in the direction of the trend. More volatile than arbitrage but with higher upside potential.
Market Making
market-making.tsProvides bilateral liquidity on pools with wide spreads. Captures the bid-ask spread by placing orders on both sides. Works best on pairs with low volatility and steady volume.