Finding Arbitrage Opportunities
Overview
Detect and analyze arbitrage opportunities across cryptocurrency exchanges and DeFi protocols. Aggregates prices from CEX and DEX sources, calculates net profit after fees, and identifies direct, triangular, and cross-chain arbitrage paths.
Prerequisites
- Python 3.9+ with
httpx, rich, and networkx packages
- Internet access for API calls (no API keys required for basic use)
- Optional: Exchange API keys for real-time order book access
- Understanding of arbitrage concepts and trading fees
Instructions
Quick spread scan on a specific pair:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC
Shows current prices per exchange, spread %, estimated profit after fees, and recommended action.
Multi-exchange comparison across specific exchanges:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC \
--exchanges binance,coinbase,kraken,kucoin,okx
DEX price comparison across decentralized exchanges:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC --dex-only
Compares Uniswap V3, SushiSwap, Curve, Balancer with gas cost estimates.
Triangular arbitrage discovery within a single exchange:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py triangular binance --min-profit 0.5
Cross-chain opportunities across different blockchains:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py cross-chain USDC \
--chains ethereum,polygon,arbitrum
Real-time monitoring with threshold alerts:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py monitor ETH USDC \
--threshold 0.5 --interval 5
Export opportunities for bot integration:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC --output json > opportunities.json
Output
- Quick mode (default): Best opportunity with profit estimate, buy/sell recommendation, risk level
- Detailed mode (
--detailed): All exchange prices, fee breakdown, slippage estimates, historical spread context
- Monitor mode: Real-time updates with threshold alerts and trend indicators
See ${CLAUDE_SKILL_DIR}/references/implementation.md for exchange fee tables and output format examples.
Error Handling
| Error |
Cause |
Fix |
| Rate limited |
Too many API requests |
Reduce polling frequency or add API key |
| Stale prices |
Data older than 10s |
Flagged with warning; retry |
| No spread |
Efficient market pricing |
Normal condition; try different pairs |
| Insufficient liquidity |
Trade exceeds order book depth |
Reduce trade size |
Examples
Quick ETH/USDC spread scan - Find best buy/sell across all CEX exchanges:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC
Sample detection output:
ARB OPPORTUNITY: ETH/USDC
Buy: Binance @ $3,198.50 | Sell: Coinbase @ $3,214.20
Spread: 0.49% | Net Profit (after fees): 0.29% ($9.27 per ETH)
Risk: LOW | Confidence: HIGH | Window: ~30s
Triangular arb on Binance - Discover circular paths with minimum 0.5% net profit:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py triangular binance --min-profit 0.5
Cross-chain USDC opportunities - Compare stablecoin prices across L1/L2 chains:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py cross-chain USDC --chains ethereum,polygon,arbitrum
Calculate exact profit - Detailed fee breakdown for a specific trade:
python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py calc \
--buy-exchange binance --sell-exchange coinbase --pair ETH/USDC --amount 10 # 10 = trade size in ETH
Resources
- CoinGecko API - Free price data
- CCXT Library - Unified exchange API
- Uniswap Subgraph - DEX data
${CLAUDE_SKILL_DIR}/references/implementation.md - Exchange fee tables, configuration, advanced arbitrage types, disclaimer
Source: jeremylongshore/claude-code-plugins-plus-skills → skills/.curated/finding-arbitrage-opportunities/SKILL.md
Also appears in: jeremylongshore/claude-code-plugins-plus-skills/plugins/crypto/arbitrage-opportunity-finder/skills/finding-arbitrage-opportunities/SKILL.md
1---2name: finding-arbitrage-opportunities3description: "'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\". '"4allowed-tools: "Read, Write, Edit, Grep, Glob, Bash(crypto:arbitrage-*)"5category: general-purpose6source_repo: jeremylongshore/claude-code-plugins-plus-skills7source_path: "skills/.curated/finding-arbitrage-opportunities/SKILL.md"8source_url: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/HEAD/skills/.curated/finding-arbitrage-opportunities/SKILL.md9metadata:10 source: https://skillmd.com/skills/thedixitjain/finding-arbitrage-opportunities11---1213# Finding Arbitrage Opportunities1415## Overview1617Detect and analyze arbitrage opportunities across cryptocurrency exchanges and DeFi protocols. Aggregates prices from CEX and DEX sources, calculates net profit after fees, and identifies direct, triangular, and cross-chain arbitrage paths.1819## Prerequisites2021- Python 3.9+ with `httpx`, `rich`, and `networkx` packages22- Internet access for API calls (no API keys required for basic use)23- Optional: Exchange API keys for real-time order book access24- Understanding of arbitrage concepts and trading fees2526## Instructions27281. **Quick spread scan** on a specific pair:2930 ```bash31 python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC32 ```3334 Shows current prices per exchange, spread %, estimated profit after fees, and recommended action.35362. **Multi-exchange comparison** across specific exchanges:3738 ```bash39 python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC \40 --exchanges binance,coinbase,kraken,kucoin,okx41 ```42433. **DEX price comparison** across decentralized exchanges:4445 ```bash46 python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC --dex-only47 ```4849 Compares Uniswap V3, SushiSwap, Curve, Balancer with gas cost estimates.50514. **Triangular arbitrage discovery** within a single exchange:5253 ```bash54 python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py triangular binance --min-profit 0.555 ```56575. **Cross-chain opportunities** across different blockchains:5859 ```bash60 python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py cross-chain USDC \61 --chains ethereum,polygon,arbitrum62 ```63646. **Real-time monitoring** with threshold alerts:6566 ```bash67 python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py monitor ETH USDC \68 --threshold 0.5 --interval 569 ```70717. **Export opportunities** for bot integration:7273 ```bash74 python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC --output json > opportunities.json75 ```7677## Output7879- **Quick mode** (default): Best opportunity with profit estimate, buy/sell recommendation, risk level80- **Detailed mode** (`--detailed`): All exchange prices, fee breakdown, slippage estimates, historical spread context81- **Monitor mode**: Real-time updates with threshold alerts and trend indicators8283See `${CLAUDE_SKILL_DIR}/references/implementation.md` for exchange fee tables and output format examples.8485## Error Handling8687| Error | Cause | Fix |88|-------|-------|-----|89| Rate limited | Too many API requests | Reduce polling frequency or add API key |90| Stale prices | Data older than 10s | Flagged with warning; retry |91| No spread | Efficient market pricing | Normal condition; try different pairs |92| Insufficient liquidity | Trade exceeds order book depth | Reduce trade size |9394## Examples9596**Quick ETH/USDC spread scan** - Find best buy/sell across all CEX exchanges:9798```bash99python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py scan ETH USDC100```101102Sample detection output:103104```105 ARB OPPORTUNITY: ETH/USDC106 Buy: Binance @ $3,198.50 | Sell: Coinbase @ $3,214.20107 Spread: 0.49% | Net Profit (after fees): 0.29% ($9.27 per ETH)108 Risk: LOW | Confidence: HIGH | Window: ~30s109```110111**Triangular arb on Binance** - Discover circular paths with minimum 0.5% net profit:112113```bash114python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py triangular binance --min-profit 0.5115```116117**Cross-chain USDC opportunities** - Compare stablecoin prices across L1/L2 chains:118119```bash120python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py cross-chain USDC --chains ethereum,polygon,arbitrum121```122123**Calculate exact profit** - Detailed fee breakdown for a specific trade:124125```bash126python ${CLAUDE_SKILL_DIR}/scripts/arb_finder.py calc \127 --buy-exchange binance --sell-exchange coinbase --pair ETH/USDC --amount 10 # 10 = trade size in ETH128```129130## Resources131132- [CoinGecko API](https://www.coingecko.com/en/api) - Free price data133- [CCXT Library](https://github.com/ccxt/ccxt) - Unified exchange API134- Uniswap Subgraph - DEX data135- `${CLAUDE_SKILL_DIR}/references/implementation.md` - Exchange fee tables, configuration, advanced arbitrage types, disclaimer136137---138139**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `skills/.curated/finding-arbitrage-opportunities/SKILL.md`140141**Also appears in:** `jeremylongshore/claude-code-plugins-plus-skills/plugins/crypto/arbitrage-opportunity-finder/skills/finding-arbitrage-opportunities/SKILL.md`