find-arbitrage-opps by hummingbot/skills
npx skills add https://github.com/hummingbot/skills --skill find-arbitrage-opps通过比较交易对的价格,并考虑可互换代币(例如,BTC = WBTC,USDT = USDC),在所有 Hummingbot 连接的交易所中寻找套利机会。
必须运行 Hummingbot API 并配置好交易所连接器:
bash <(curl -s https://raw.githubusercontent.com/hummingbot/skills/main/skills/lp-agent/scripts/check_prerequisites.sh)
默认情况下,脚本通过 Hummingbot API 查询 CEX 连接器。添加 --dex 参数以同时从以下 DEX 获取价格:
| DEX | 链 | 默认网络 |
|---|---|---|
| Jupiter | Solana | mainnet-beta |
| Uniswap | Ethereum | mainnet |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| PancakeSwap | Ethereum (BSC) | bsc |
DEX 价格通过 Hummingbot Gateway 直接获取。请确保 Gateway 运行在 http://localhost:15888(或设置 GATEWAY_URL)。
⚠️ BTC 市场 在某些交易所仅对澳大利亚居民开放。当搜索中包含 BTC/WBTC/cbBTC 时,会自动打印警告。
用户指定基础代币和报价代币,包括其可互换等价物:
# 基础 - 仅 CEX
python scripts/find_arb_opps.py --base BTC --quote USDT
# 包含可互换代币
python scripts/find_arb_opps.py --base BTC,WBTC --quote USDT,USDC
# 包含 DEX 价格(通过 Gateway 获取 Jupiter + Uniswap)
python scripts/find_arb_opps.py --base SOL --quote USDC --dex
python scripts/find_arb_opps.py --base ETH,WETH --quote USDT,USDC --dex
# 最小价差过滤器
python scripts/find_arb_opps.py --base SOL --quote USDC --dex --min-spread 0.1
# 过滤到特定的 CEX 连接器
python scripts/find_arb_opps.py --base BTC --quote USDT --connectors binance,kraken,coinbase
脚本输出:
python scripts/find_arb_opps.py --help
| 选项 | 描述 |
|---|---|
--base | 基础代币,逗号分隔(例如,BTC,WBTC) |
--quote | 报价代币,逗号分隔(例如,USDT,USDC) |
--connectors | 过滤到特定的 CEX 连接器(可选) |
--dex | 通过 Gateway 包含 DEX 价格(Jupiter + Uniswap) |
--min-spread | 显示的最小价差百分比(默认:0.0) |
--json | 以 JSON 格式输出 |
============================================================
SOL / USDC 套利扫描器
DEX: Jupiter (Solana mainnet-beta), Uniswap (Ethereum mainnet)
============================================================
最低价: binance $132.4500
最高价: jupiter (DEX) $132.8900
价差: 0.332% ($0.4400)
数据源: 5 个价格来自 5 个源
最佳套利机会:
--------------------------------------------------------
1. 买入 binance @ $132.4500
卖出 jupiter (DEX) @ $132.8900
利润: 0.332% ($0.4400)
export HUMMINGBOT_API_URL=http://localhost:8000
export API_USER=admin
export API_PASS=admin
export GATEWAY_URL=http://localhost:15888 # 用于 DEX 价格
脚本按顺序检查以下位置的 .env 文件:./hummingbot-api/.env → ~/.hummingbot/.env → .env
--dex 标志的 DEX 价格)每周安装次数
169
代码仓库
GitHub 星标数
24
首次出现
2026年2月25日
安全审计
安装于
codex165
cursor164
opencode164
github-copilot163
gemini-cli163
kimi-cli163
Find arbitrage opportunities across all Hummingbot-connected exchanges by comparing prices for a trading pair, accounting for fungible tokens (e.g., BTC = WBTC, USDT = USDC).
Hummingbot API must be running with exchange connectors configured:
bash <(curl -s https://raw.githubusercontent.com/hummingbot/skills/main/skills/lp-agent/scripts/check_prerequisites.sh)
By default the script queries CEX connectors via the Hummingbot API. Add --dex to also fetch prices from:
| DEX | Chain | Default Network |
|---|---|---|
| Jupiter | Solana | mainnet-beta |
| Uniswap | Ethereum | mainnet |
| PancakeSwap | Ethereum (BSC) | bsc |
DEX prices are fetched directly via the Hummingbot Gateway. Make sure Gateway is running on http://localhost:15888 (or set GATEWAY_URL).
⚠️ BTC markets are only available to Australian residents on some exchanges. A warning is printed automatically when BTC/WBTC/cbBTC is included in the search.
User specifies the base and quote tokens, including fungible equivalents:
# Basic - CEX only
python scripts/find_arb_opps.py --base BTC --quote USDT
# Include fungible tokens
python scripts/find_arb_opps.py --base BTC,WBTC --quote USDT,USDC
# Include DEX prices (Jupiter + Uniswap via Gateway)
python scripts/find_arb_opps.py --base SOL --quote USDC --dex
python scripts/find_arb_opps.py --base ETH,WETH --quote USDT,USDC --dex
# Minimum spread filter
python scripts/find_arb_opps.py --base SOL --quote USDC --dex --min-spread 0.1
# Filter to specific CEX connectors
python scripts/find_arb_opps.py --base BTC --quote USDT --connectors binance,kraken,coinbase
The script outputs:
python scripts/find_arb_opps.py --help
| Option | Description |
|---|---|
--base | Base token(s), comma-separated (e.g., BTC,WBTC) |
--quote | Quote token(s), comma-separated (e.g., USDT,USDC) |
--connectors | Filter to specific CEX connectors (optional) |
--dex | Include DEX prices via Gateway (Jupiter + Uniswap) |
--min-spread | Minimum spread % to show (default: 0.0) |
--json |
============================================================
SOL / USDC Arbitrage Scanner
DEX: Jupiter (Solana mainnet-beta), Uniswap (Ethereum mainnet)
============================================================
Lowest: binance $132.4500
Highest: jupiter (DEX) $132.8900
Spread: 0.332% ($0.4400)
Sources: 5 prices from 5 sources
Top Arbitrage Opportunities:
--------------------------------------------------------
1. Buy binance @ $132.4500
Sell jupiter (DEX) @ $132.8900
Profit: 0.332% ($0.4400)
export HUMMINGBOT_API_URL=http://localhost:8000
export API_USER=admin
export API_PASS=admin
export GATEWAY_URL=http://localhost:15888 # for DEX prices
Scripts check for .env in: ./hummingbot-api/.env → ~/.hummingbot/.env → .env
--dex flag)Weekly Installs
169
Repository
GitHub Stars
24
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex165
cursor164
opencode164
github-copilot163
gemini-cli163
kimi-cli163
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
33,600 周安装
| Output as JSON |