routing-dex-trades

Featured

Route trades across multiple DEXs to find optimal prices with minimal slippage and gas costs. Use when comparing DEX prices, finding optimal swap routes, analyzing price impact, splitting large orders, or assessing MEV risk. Trigger with phrases like "find best swap", "compare DEX prices", "route trade", "optimal swap route", "split order", "DEX aggregator", "check slippage", or "MEV protection".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Routing DEX Trades ## Contents [Overview](#overview) | [Prerequisites](#prerequisites) | [Instructions](#instructions) | [Output](#output) | [Error Handling](#error-handling) | [Examples](#examples) | [Resources](#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 ${CLAUDE_SKILL_DIR}/config/settings.yaml.example ${CLAUDE_SKILL_DIR}/config/settings.yaml` ## Instructions 1. Get a quick quote for the single best price with gas cost and effective rate: ```bash python ${CLAUDE_SKILL_DIR}/scripts/dex_router.py ETH USDC 1.0 ``` 2. Compare all DEXs to see quotes ranked by effective rate (after gas): ```bash python ${CLAUDE_SKILL_DIR}/scripts/dex_router.py ETH USDC 5.0 --compare ``` 3. Analyze multi-hop routes to compare direct vs. multi-hop (2-3 pools) with hop-by-hop breakdown: ```bash python ${CLAUDE_SKILL_DIR}/scripts/dex_router.py ETH USDC 10.0 --routes ``` 4. Split large orders ($10K+) across multiple DEXs to minimize total price impact: ```bash python ${CLAUDE_SKILL_DIR}/scripts/dex_router.py ETH USD...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category