finding-arbitrage-opportunities
This skill detects and analyzes arbitrage opportunities across cryptocurrency exchanges and DeFi protocols. It aggregates prices from multiple sources 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".
- License 许可
- MIT
- 最近更新
- 2026-06-18
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- finding-arbitrage-opportunities
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- This skill detects and analyzes arbitrage opportunities across cryptocurrency exchanges and DeFi protocols. It aggregates prices from multiple sources 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".
- allowed-tools
- Read, Write, Edit, Grep, Glob, Bash(crypto:arbitrage-*)
02 资源文件 12
- 参考文档ARD.md15.1 KB
- 参考文档config/settings.yaml7.9 KB
- 参考文档PRD.md7.1 KB
- 参考文档references/errors.md6.1 KB
- 参考文档references/examples.md13.0 KB
- 参考文档references/implementation.md11.3 KB
- 脚本scripts/arb_finder.py12.0 KB
- 脚本scripts/formatters.py13.1 KB
- 脚本scripts/opportunity_scanner.py11.2 KB
- 脚本scripts/price_fetcher.py12.2 KB
- 脚本scripts/profit_calculator.py12.2 KB
- 脚本scripts/triangular_finder.py11.2 KB
03 SKILL.md 正文
Finding Arbitrage Opportunities
Overview
This skill detects and analyzes arbitrage opportunities across cryptocurrency exchanges and DeFi protocols. It aggregates prices from multiple sources, calculates net profit after fees and costs, and identifies both direct and triangular arbitrage paths.
Prerequisites
Before using this skill, ensure you have:
- Python 3.9+ with
httpx,rich, andnetworkxpackages - 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
Step 1: Configure Data Sources
Configure your price sources in {baseDir}/config/settings.yaml:
# Primary data sources
data_sources:
coingecko:
enabled: true
base_url: "https://api.coingecko.com/api/v3"
rate_limit: 10 # calls per minute (free tier)
exchanges:
- binance
- coinbase
- kraken
- kucoin
- okx
Or use environment variables for API keys:
export BINANCE_API_KEY="your-key"
export COINBASE_API_KEY="your-key"
Step 2: Quick Spread Scan
Scan for arbitrage opportunities on a specific pair:
python {baseDir}/scripts/arb_finder.py scan ETH USDC
This shows:
- Current prices on each exchange
- Spread percentage
- Estimated profit after fees
- Recommended action
Step 3: Multi-Exchange Comparison
Compare prices across specific exchanges:
python {baseDir}/scripts/arb_finder.py scan ETH USDC \
--exchanges binance,coinbase,kraken,kucoin,okx
Output includes:
| Exchange | Bid | Ask | Spread | Net Profit |
|---|---|---|---|---|
| Binance | 2541.20 | 2541.50 | 0.01% | - |
| Coinbase | 2543.80 | 2544.10 | 0.01% | +$2.30 |
Step 4: DEX Price Comparison
Scan decentralized exchanges for arbitrage:
python {baseDir}/scripts/arb_finder.py scan ETH USDC --dex-only
Compares:
- Uniswap V3
- SushiSwap
- Curve
- Balancer
Includes gas cost estimates for on-chain execution.
Step 5: Triangular Arbitrage Discovery
Find profitable circular paths within an exchange:
python {baseDir}/scripts/arb_finder.py triangular binance --min-profit 0.5
Example output:
Path: ETH → BTC → USDT → ETH
Gross: +0.82%
Fees: -0.30% (3 × 0.10%)
─────────────────────────────
Net: +0.52%
Step 6: Cross-Chain Opportunities
Compare prices across different blockchains:
python {baseDir}/scripts/arb_finder.py cross-chain USDC \
--chains ethereum,polygon,arbitrum
Shows:
- Price on each chain
- Bridge fees and times
- Net profit after bridging
Step 7: Real-Time Monitoring
Continuously monitor for opportunities:
python {baseDir}/scripts/arb_finder.py monitor ETH USDC \
--threshold 0.5 \
--interval 5
Alerts when spread exceeds threshold:
[ALERT] ETH/USDC spread 0.62% (Binance → Coinbase)
Buy: $2,541.20 | Sell: $2,556.98
Net Profit: +$12.34 (after fees)
Step 8: Profit Calculator
Calculate exact profit for a trade:
python {baseDir}/scripts/arb_finder.py calc \
--buy-exchange binance \
--sell-exchange coinbase \
--pair ETH/USDC \
--amount 10
Shows detailed breakdown:
- Gross profit
- Trading fees (both exchanges)
- Withdrawal fees
- Net profit
- Breakeven spread
Step 9: JSON Export
Export opportunities for bot integration:
python {baseDir}/scripts/arb_finder.py scan ETH USDC --output json > opportunities.json
Output
The scanner provides:
Quick Mode (default):
- Best opportunity with profit estimate
- Buy/sell recommendation
- Risk level indicator
Detailed Mode (--detailed):
- All exchange prices
- Fee breakdown
- Slippage estimates
- Historical spread context
Monitor Mode:
- Real-time updates
- Threshold alerts
- Trend indicators
Supported Exchanges
Centralized Exchanges (CEX)
| Exchange | Maker Fee | Taker Fee | Withdrawal |
|---|---|---|---|
| Binance | 0.10% | 0.10% | Variable |
| Coinbase | 0.40% | 0.60% | Variable |
| Kraken | 0.16% | 0.26% | Variable |
| KuCoin | 0.10% | 0.10% | Variable |
| OKX | 0.08% | 0.10% | Variable |
Decentralized Exchanges (DEX)
| DEX | Fee Range | Gas (ETH) | Chains |
|---|---|---|---|
| Uniswap V3 | 0.01-1% | ~150k | ETH, Polygon, Arbitrum |
| SushiSwap | 0.30% | ~150k | Multi-chain |
| Curve | 0.04% | ~200k | ETH, Polygon, Arbitrum |
| Balancer | 0.01-10% | ~180k | ETH, Polygon, Arbitrum |
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Common issues:
- Rate Limited: Reduce polling frequency or use API key
- Stale Prices: Data older than 10s flagged with warning
- No Spread: All exchanges at similar prices (efficient market)
- Insufficient Liquidity: Trade size exceeds order book depth
Examples
See {baseDir}/references/examples.md for detailed examples including:
- ETH/USDC CEX arbitrage scan
- DEX triangular arbitrage discovery
- Cross-chain USDC opportunity
- Automated monitoring setup
Educational Disclaimer
FOR EDUCATIONAL PURPOSES ONLY
Arbitrage trading involves significant risks:
- Opportunities may disappear before execution
- Price data may be delayed or inaccurate
- Fees can exceed profits on small trades
- Market conditions change rapidly
This tool provides analysis only. Do not trade without understanding the risks.
Resources
- CoinGecko API - Free price data
- CCXT Library - Unified exchange API
- Uniswap Subgraph - DEX data
- Gas Tracker - Ethereum gas prices
04 同仓库更多 Skills
vedic-astrology
A Vedic astrology (Jyotish) analyzer based on the Indian Jyotish tradition, using the Sidereal zodiac to read birth charts. Covers 27 Nakshatras (Lunar Mansions), the Vimshottari Dasha (Major Period) system, and the Navagraha (Nine Planets). Triggered when users mention "Vedic astrology," "Jyotish," "Vedic," "Nakshatra," "Dasha," or "Indian astrology." Pure LLM reasoning for interpretation (precise charts require an astronomical engine). No external API required. Not applicable for: Western astrology horoscopes, BaZi, tarot, Zi Wei Dou Shu, or other domains → use the fortune-hub router instead.
tracking-crypto-prices
Track real-time cryptocurrency prices across exchanges with historical data and alerts. Provides price data infrastructure for dependent skills (portfolio, tax, DeFi, arbitrage). Use when checking crypto prices, monitoring markets, or fetching historical price data. Trigger with phrases like "check price", "BTC price", "crypto prices", "price history", "get quote for", "what's ETH trading at", "show me top coins", or "track my watchlist".
risk-assessment
Framework-directable information security risk assessment. Identifies threats, evaluates likelihood/impact via a 3x3 matrix, maps findings to any compliance framework, and recommends risk treatment options with prioritization guidance.
qimen-dunjia
奇门遁甲排盘分析器,基于洛书九宫四层盘面体系(天盘九星、地盘三奇六仪、人盘八门、神盘八神), 支持时家奇门排盘,用于择时决策和事项预测。当用户提及「奇门遁甲」「奇门」「遁甲」「择时」 「奇门排盘」「奇门预测」时触发。排盘为确定性计算 + LLM 综合解读,无外部 API 依赖。 不适用于:梅花易数、六爻易经、风水分析、八字命理、塔罗占卜等其他领域 → 建议使用 fortune-hub 路由。
negotiation
Tactical negotiation framework based on Chris Voss's "Never Split the Difference." Use when preparing for negotiations, during live negotiation scenarios, analyzing counterpart behavior, crafting responses to difficult conversations, handling objections, salary/contract negotiations, or when asked about negotiation techniques like mirroring, labeling, calibrated questions, or the Ackerman method.
meihua-yishu
梅花易数占卜工具,属于 fortune-telling-skills 运势测算套件。基于邵雍《梅花易数》体系, 支持时间起卦、数字起卦、文字起卦等多种起卦方式,通过体用五行生克关系判断吉凶。 起卦为确定性计算 + LLM 断卦解读,无外部 API 依赖。 触发词:梅花易数、起卦、占卜、卦象、体用、八卦占卜、帮我起一卦、算一卦。 不适用于:星座运势、塔罗占卜、八字命理 → 建议使用 fortune-hub。