Agent skill · marketing growth · jeremylongshore
routing-dex-trades
Route trades across multiple DEXs to find optimal prices with minimal
Why this skill is useful
Adds executable scripts for optimal trade routing across DEXs, including multi-hop analysis and MEV risk assessment that aren't available in public documentation.
What it needs
Requires python installed locally. Requires 0x, 1inch, paraswap account access. About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Routing DEX Trades Contents Overview Prerequisites Instructions Output Error Handling Examples Resources Overview Optimal trade routing across decentralized exchanges by aggregating quotes from 1inch, Paraswap, and 0x. Discovers multi-hop routes, calculates split orders for large trades, and assesses MEV risk to minimize slippage and gas costs. Prerequisites 1. Install Python 3.9+ with httpx, pydantic, and rich packages 2. Verify network access to aggregator APIs (1inch, Paraswap, 0x) 3. Optionally add API keys for 1inch and 0x (higher rate limits) 4. Copy settings: cp ${CLAUDESKILLDIR}/config/settings.yaml.example ${CLAUDESKILLDIR}/config/settings.yaml Instructions 1. Get a quick quote for the single best price with gas cost and effective rate: 2. Compare all DEXs to see quotes ranked by effective rate (after gas): 3. Analyze multi-hop routes to compare direct vs. multi-hop (2-3 pools) with hop-by-hop breakdown: 4. Split large orders ($10K+) across multiple DEXs to minimize total price impact: 5. Assess MEV risk (sandwich attack risk score: LOW/MEDIUM/HIGH) before executing: 6. Run full analysis combining all features for comprehensive output: Output Quick Quote: Best price, output amount, gas cost, recommended venue Comparison: All venues ranked by effective rate with price impact and gas Route Analysis: Direct vs. multi-hop with hop-by-hop breakdown Split Mode: Optimal allocation percentages with dollar savings vs. single-venue MEV Assessment: Risk score, exposure estimate, protection recommendations See ${CLAUDESKILLDIR}/references/implementation.md for detailed output examples. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/routing-dex-trades--19923d