find-xemm-opps by hummingbot/skills
npx skills add https://github.com/hummingbot/skills --skill find-xemm-opps通过分析已连接交易所的订单簿深度和流动性,寻找跨交易所做市(XEMM)机会。
XEMM 涉及在一个交易所(挂单方)报价,同时在另一个交易所(吃单/对冲方)对冲成交。最佳机会存在于以下情况:
必须运行 Hummingbot API 并配置好交易所连接器:
bash <(curl -s https://raw.githubusercontent.com/hummingbot/skills/main/skills/lp-agent/scripts/check_prerequisites.sh)
# 扫描 SOL/USDT 的 XEMM 机会
python scripts/find_xemm_opps.py --base SOL --quote USDT
# 包含可替代等价物
python scripts/find_xemm_opps.py --base ETH,WETH --quote USDT,USDC
# 筛选特定连接器
python scripts/find_xemm_opps.py --base BTC --quote USDT --connectors binance,kraken,coinbase,okx
# 交易所间最小中间价差(默认:0.0%)
python scripts/find_xemm_opps.py --base SOL --quote USDC --min-spread 0.05
脚本输出一个和排序后的:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
====================================================================
XEMM 机会 — SOL / USDC
订单簿深度:20 档 | 数据源:18
====================================================================
交易所 交易对 中间价 价差 买盘深度 卖盘深度 B/A
---------------------- -------------- ---------- -------- ------------ ------------ ------
bitstamp SOL-USDC $87.45 0.120% $23.4K $18.9K 1.24
binance SOL-USDT $87.51 0.015% $412.0K $389.0K 1.06
okx SOL-USDT $87.56 0.023% $287.0K $301.0K 0.95
...
最佳 XEMM 机会(挂单方 → 在对冲方对冲):
----------------------------------------------------------------
#1 评分:8.42
挂单方 bitstamp $87.45 价差 0.120% 深度 $42.3K
对冲方 binance $87.51 价差 0.015% 深度 $801.0K
中间价差:0.0686% | 价差比率:8.0x | 深度比率:18.9x
列说明:
| 列 | 描述 |
|---|---|
| Mid | 最优买卖价之间的中间价 |
| Spread | 买卖价差占中间价的百分比 |
| Bid/Ask Depth | 前 N 档订单簿的总报价价值 |
| B/A | 买盘与卖盘深度比率(>1 = 更多买入压力) |
| Spread ratio | 挂单方价差 ÷ 对冲方价差 —— 越高 = 挂单方优势越大 |
| Depth ratio | 对冲方深度 ÷ 挂单方深度 —— 越高 = 对冲流动性越好 |
| 选项 | 描述 |
|---|---|
--base | 基础代币,逗号分隔(例如:ETH,WETH) |
--quote | 计价代币,逗号分隔(例如:USDT,USDC) |
--connectors | 筛选特定连接器(可选) |
--depth | 每个交易所的订单簿深度(默认:20) |
--min-spread | 交易所间最小中间价差百分比(默认:0.0) |
--include-btc-markets | 包含 btc_markets(仅限澳大利亚居民) |
--include-ndax | 包含 ndax(仅限加拿大居民) |
--json | 以 JSON 格式输出 |
export HUMMINGBOT_API_URL=http://localhost:8000
export API_USER=admin
export API_PASS=admin
脚本按以下顺序检查 .env 文件:./hummingbot-api/.env → ~/.hummingbot/.env → .env
每周安装量
104
代码仓库
GitHub 星标数
24
首次出现
2026年3月1日
安全审计
安装于
codex102
opencode101
cursor100
gemini-cli99
kimi-cli99
github-copilot99
Find Cross-Exchange Market Making (XEMM) opportunities by analyzing order book depth and liquidity across connected exchanges.
XEMM involves quoting on one exchange (the maker side) while hedging fills on another (the taker/hedge side). The best opportunities exist where:
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)
# Scan for SOL/USDT XEMM opportunities
python scripts/find_xemm_opps.py --base SOL --quote USDT
# Include fungible equivalents
python scripts/find_xemm_opps.py --base ETH,WETH --quote USDT,USDC
# Filter to specific connectors
python scripts/find_xemm_opps.py --base BTC --quote USDT --connectors binance,kraken,coinbase,okx
# Minimum mid-price spread between exchanges (default: 0.0%)
python scripts/find_xemm_opps.py --base SOL --quote USDC --min-spread 0.05
The script outputs a market overview table and ranked XEMM opportunity pairs :
====================================================================
XEMM Opportunities — SOL / USDC
Order book depth: 20 levels | Sources: 18
====================================================================
Exchange Pair Mid Spread Bid Depth Ask Depth B/A
---------------------- -------------- ---------- -------- ------------ ------------ ------
bitstamp SOL-USDC $87.45 0.120% $23.4K $18.9K 1.24
binance SOL-USDT $87.51 0.015% $412.0K $389.0K 1.06
okx SOL-USDT $87.56 0.023% $287.0K $301.0K 0.95
...
Top XEMM Opportunities (MAKER → hedge on TAKER):
----------------------------------------------------------------
#1 Score: 8.42
MAKER bitstamp $87.45 spread 0.120% depth $42.3K
TAKER binance $87.51 spread 0.015% depth $801.0K
Mid-price gap: 0.0686% | Spread ratio: 8.0x | Depth ratio: 18.9x
Columns explained:
| Column | Description |
|---|---|
| Mid | Mid-price between best bid and ask |
| Spread | Bid-ask spread as % of mid |
| Bid/Ask Depth | Total quote value of top-N order book levels |
| B/A | Bid-to-ask depth ratio (>1 = more buy pressure) |
| Spread ratio | Maker spread ÷ taker spread — higher = better maker edge |
| Depth ratio | Taker depth ÷ maker depth — higher = better hedge liquidity |
| Option | Description |
|---|---|
--base | Base token(s), comma-separated (e.g., ETH,WETH) |
--quote | Quote token(s), comma-separated (e.g., USDT,USDC) |
--connectors | Filter to specific connectors (optional) |
--depth | Order book depth per exchange (default: 20) |
--min-spread | Minimum mid-price spread % between exchanges (default: 0.0) |
--include-btc-markets |
export HUMMINGBOT_API_URL=http://localhost:8000
export API_USER=admin
export API_PASS=admin
Scripts check for .env in: ./hummingbot-api/.env → ~/.hummingbot/.env → .env
Weekly Installs
104
Repository
GitHub Stars
24
First Seen
Mar 1, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex102
opencode101
cursor100
gemini-cli99
kimi-cli99
github-copilot99
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
40,000 周安装
| Include btc_markets (Australian residents only) |
--include-ndax | Include ndax (Canadian residents only) |
--json | Output as JSON |