Routing Engine
Off-chain pathfinding engine for optimal trade routes across DEXes.
Product 2 of the defi-router store. Part of the CryptoForge DeFi toolkit.
Price: $19.99 | License: MIT | Runtime: Node.js ≥18 | Language: TypeScript + Python
Overview
@cryptoforge/routing-engine is a high-performance, off-chain routing engine that finds the optimal trade path across multiple DEX pools. It uses graph algorithms (Dijkstra, split-route optimization) to compute the best route for any token pair, accounting for fees, price impact, liquidity depth, and gas costs.
Key Features
- Multi-DEX support — Uniswap V2, Uniswap V3, SushiSwap, Curve, Balancer
- Split-route optimization — Automatically splits large trades across multiple paths to minimize price impact
- Graph-based pathfinding — Dijkstra shortest-path with liquidity-aware edge weights
- Constant product simulation — Full swap simulation with fee deduction and price impact calculation
- Gas-aware quoting — Estimates gas per route and factors it into net output
- Batched RPC calls — Multicall3 for efficient pool data fetching
- Python bindings — Use from Python via subprocess or HTTP API
- Configurable — Max hops, max splits, slippage tolerance, protocol filters, pool exclusions
🔒 Available in full product
Architecture
🔒 Available in full product
Quick Start
You’ve reached the end of the free preview
Get the full Routing Engine and unlock everything.
All Chapters
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Full Tool Suite
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Source Files
Downloadable source code, configuration files, and working examples from every chapter.
Lifetime Updates
Free updates for life. Every new chapter, tool, and improvement included.
Buy Now — $20 →
📦 Free sample included — download another copy for the full product.
Routing Engine v1.0.0 — Free Preview