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,266 stars 315 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
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

finding-arbitrage-opportunities

Detect profitable arbitrage opportunities across CEX, DEX, and cross-chain markets in real-time. Use when scanning for price spreads, finding arbitrage paths, comparing exchange prices, or analyzing triangular arbitrage opportunities. Trigger with phrases like "find arbitrage", "scan for arb", "price spread", "exchange arbitrage", "triangular arb", "DEX price difference", or "cross-exchange opportunity".

2,266 Updated today
jeremylongshore
AI & Automation Featured

optimizing-gas-fees

Optimize blockchain gas costs by analyzing prices, patterns, and timing. Use when checking gas prices, estimating costs, or finding optimal windows. Trigger with phrases like "gas prices", "optimize gas", "transaction cost", "when to transact".

2,266 Updated today
jeremylongshore
AI & Automation Featured

simulating-flash-loans

Simulate flash loan strategies with profitability calculations and risk assessment across Aave, dYdX, and Balancer. Use when simulating flash loans, analyzing arbitrage profitability, evaluating liquidation opportunities, or comparing flash loan providers. Trigger with phrases like "simulate flash loan", "flash loan arbitrage", "liquidation profit", "compare Aave dYdX", "flash loan strategy", or "DeFi arbitrage simulation".

2,266 Updated today
jeremylongshore
Web & Frontend Listed

liquidity-depth-analyzer

DEX liquidity analysis and slippage estimation for MEV trading. Use when implementing swaps, route selection, or position sizing. Triggers on: liquidity, slippage, price impact, depth, AMM math, Uniswap, Curve.

335 Updated today
aiskillstore
AI & Automation Featured

tracking-crypto-derivatives

Track cryptocurrency futures, options, and perpetual swaps with funding rates, open interest, liquidations, and comprehensive derivatives market analysis. Use when monitoring derivatives markets, analyzing funding rates, tracking open interest, finding liquidation levels, or researching options flow. Trigger with phrases like "funding rate", "open interest", "perpetual swap", "futures basis", "liquidation levels", "options flow", "put call ratio", "derivatives analysis", or "BTC perps".

2,266 Updated today
jeremylongshore