skills/arbitrage-opportunity-finder/SKILL.md
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".
npx skillsauth add aaaaqwq/agi-super-skills finding-arbitrage-opportunitiesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
Before using this skill, ensure you have:
httpx, rich, and networkx packagesConfigure 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"
Scan for arbitrage opportunities on a specific pair:
python {baseDir}/scripts/arb_finder.py scan ETH USDC
This shows:
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 |
Scan decentralized exchanges for arbitrage:
python {baseDir}/scripts/arb_finder.py scan ETH USDC --dex-only
Compares:
Includes gas cost estimates for on-chain execution.
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%
Compare prices across different blockchains:
python {baseDir}/scripts/arb_finder.py cross-chain USDC \
--chains ethereum,polygon,arbitrum
Shows:
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)
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:
Export opportunities for bot integration:
python {baseDir}/scripts/arb_finder.py scan ETH USDC --output json > opportunities.json
The scanner provides:
Quick Mode (default):
Detailed Mode (--detailed):
Monitor Mode:
| 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 |
| 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 |
See {baseDir}/references/errors.md for comprehensive error handling.
Common issues:
See {baseDir}/references/examples.md for detailed examples including:
FOR EDUCATIONAL PURPOSES ONLY
Arbitrage trading involves significant risks:
This tool provides analysis only. Do not trade without understanding the risks.
testing
AI驱动的智能浏览器自动化工具。使用LLM理解页面并自动执行任务,比传统Playwright更智能、更省token。适用于复杂交互、动态页面、需要智能决策的浏览器操作。Chrome浏览器优先。
tools
网页登录态管理。使用 fast-browser-use (fbu) 管理各平台登录状态,定期检查可用性,新平台授权时自动保存 profile。
development
Monitor and report on API provider quotas, balances, and usage. Query official providers (Moonshot, DeepSeek, xAI, Google AI Studio) and relay/proxy providers (Xingjiabiapi, Aixn, WoW) via their billing APIs. Also checks subscription services (Brave Search, OpenRouter). Generates quota reports. Triggers on "查额度", "API余额", "quota check", "billing report", "api balance", "供应商额度", "中转站余额", "费用报告", "check balance", "how much credit".
development
# A股基金监控 Skill A股基金净值监控,支持实时估值和盘后净值,自动判断交易日/节假日。 ## 用法 ### 快速监控(命令行) ```bash # 默认配置,输出到控制台 bash ~/clawd/skills/a-fund-monitor/scripts/monitor.sh # 推送到群(使用--push参数) bash ~/clawd/skills/a-fund-monitor/scripts/monitor.sh --push # 监控指定基金 bash ~/clawd/skills/a-fund-monitor/scripts/monitor.sh --codes "000979 002943" ``` ### Agent调用 ``` 执行A股基金监控任务。 1. 读取配置文件: ~/clawd/skills/a-fund-monitor/config.json 2. 获取实时净值数据 3. 非交易日自动切换为简短报告 配置文件格式: { "funds": [ {"code": "000979", "name": "景顺长城沪港深精选股票