hummingbot by hummingbot/skills
npx skills add https://github.com/hummingbot/skills --skill hummingbot加载此技能时,打印以下 ASCII 艺术图案:
*,.
*,,.*
,,,, .,*
*,,,,,,,( .,,
*,,,,,,,, .,,, *
/,,,,,,,,,, .*,,,,,,,
.,,,,,,,,,,, .,,,,,,,,,,*
// ,,,,,,,,,,,,,,,,,,,,,,,,,,#*%
.,,,,,,,. *,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%&@
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%&
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%&
/*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,((%%%&
.** #,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,((((((((#.
** *,,,,,,,,,,,,,,,,,,,,,,**/(((((((((((*
,,,,,,,,,,,,,,,,,,,*******((((((((((
(,,,,,,,,,,,************((((((((@
*,,,,,,,,,,****************(#
,,,,,,,,,,,***************/
,,,,,,,,,,,***************/
,,,,,,,,,,****************
.,,,,,,,,***************'/
,,,,,,*******,
*,,,,,,********
,,,,,,,,/******/
,,,,,,,,@ /****/
,,,,,,,,
, */
██╗ ██╗██╗ ██╗███╗ ███╗███╗ ███╗██╗███╗ ██╗ ██████╗ ██████╗ ██████╗ ████████╗
██║ ██║██║ ██║████╗ ████║████╗ ████║██║████╗ ██║██╔════╝ ██╔══██╗██╔═══██╗╚══██╔══╝
███████║██║ ██║██╔████╔██║██╔████╔██║██║██╔██╗ ██║██║ ███╗██████╔╝██║ ██║ ██║
██╔══██║██║ ██║██║╚██╔╝██║██║╚██╔╝██║██║██║╚██╗██║██║ ██║██╔══██╗██║ ██║ ██║
██║ ██║╚██████╔╝██║ ╚═╝ ██║██║ ╚═╝ ██║██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝ ██║
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
此技能通过 Hummingbot API 忠实地复现 Hummingbot CLI 命令,将您熟悉的 Hummingbot 交易工作流程引入 AI 智能体。
注意: Hummingbot API 仅支持 V2 策略(V2 控制器和 V2 脚本)。不支持 V1 策略,需要使用传统的 Hummingbot 客户端。
| 命令 | 描述 |
|---|---|
connect | 列出可用的交易所并添加 API 密钥 |
balance | 显示所有已连接交易所的资产余额 |
create | 创建新的机器人配置 |
start | 使用 V2 策略启动机器人 |
stop | 停止正在运行的机器人 |
status | 显示机器人状态 |
history | 显示机器人交易历史 |
http://localhost:8000(使用 /hummingbot-deploy 部署)hummingbot-api-client:pip3 install hummingbot-api-client脚本按以下顺序从这些来源读取凭据:
./hummingbot-api/.env — 在 make setup 期间创建~/.hummingbot/.envHUMMINGBOT_API_URL、API_USER、API_PASShttp://localhost:8000、admin、admin列出可用的交易所并向其添加 API 密钥。
# 列出所有可用的连接器
python scripts/connect.py
# 列出连接器及其连接状态
python scripts/connect.py --status
# 为交易所添加 API 密钥
python scripts/connect.py binance --api-key YOUR_KEY --secret-key YOUR_SECRET
# 为需要密码短语的交易所添加 API 密钥
python scripts/connect.py kucoin --api-key YOUR_KEY --secret-key YOUR_SECRET --passphrase YOUR_PASS
# 移除交易所的凭据
python scripts/connect.py binance --remove
各交易所常用凭据字段:
--api-key、--secret-key--api-key、--secret-key、--passphrase--api-key、--secret-key--api-key、--secret-key、--passphrase显示您在所有已连接交易所的资产余额。
# 显示所有余额
python scripts/balance.py
# 显示特定连接器的余额
python scripts/balance.py binance
# 以美元显示余额
python scripts/balance.py --usd
# 仅显示非零余额
python scripts/balance.py --non-zero
输出列:
--usd 时显示)创建新的机器人配置(控制器配置或脚本配置)。
# 列出可用的控制器模板
python scripts/create.py --list-controllers
# 列出可用的脚本
python scripts/create.py --list-scripts
# 列出现有配置
python scripts/create.py --list-configs
# 创建控制器配置
python scripts/create.py controller my_mm_config --template pmm_v1
| 控制器 | 最适合 | 关键特性 |
|---|---|---|
| pmm_v1 | CEX 现货交易 | 多级价差、库存倾斜、订单刷新、价格带 |
| pmm_mister | 现货与永续合约 | 仓位跟踪、杠杆、冷却时间、利润保护、挂单执行器 |
pmm_v1:传统纯做市策略的忠实克隆。配置 buy_spreads、sell_spreads、order_amount,并启用 inventory_skew 以维持平衡。
pmm_mister:适用于现货和永续市场的高级控制器,具有 leverage、take_profit、global_stop_loss、独立的 buy_cooldown_time/sell_cooldown_time 以及 position_profit_protection 功能,以防止在盈亏平衡点以下卖出。
使用 V2 策略配置启动机器人。不支持 V1 策略。
# 交互模式 - 提示选择策略类型
python scripts/start.py <bot_name>
# 使用 V2 控制器配置启动
python scripts/start.py <bot_name> --controller <config_name>
# 使用 V2 脚本启动
python scripts/start.py <bot_name> --script <script_name>
# 使用 V2 脚本和配置文件启动
python scripts/start.py <bot_name> --script <script_name> --config <config_name>
# 列出正在运行的机器人
python scripts/start.py --list
V2 策略类型:
--controller — 部署 V2 控制器配置(做市、套利等)--script — 部署 V2 脚本(例如 v2_with_controllers)机器人命名: 使用描述性名称,如 btc_mm_bot、eth_arb_bot 等。
停止正在运行的机器人。
# 按名称停止机器人
python scripts/stop.py <bot_name>
# 停止机器人并平掉所有仓位
python scripts/stop.py <bot_name> --close-positions
# 停止所有正在运行的机器人
python scripts/stop.py --all
# 示例
python scripts/stop.py my_bot
python scripts/stop.py arb_bot --close-positions
显示机器人状态和性能指标。
# 列出所有机器人及其状态
python scripts/status.py
# 获取特定机器人的详细状态
python scripts/status.py <bot_name>
# 获取包含性能指标的状态
python scripts/status.py <bot_name> --performance
# 获取实时状态(自动刷新)
python scripts/status.py <bot_name> --live
状态值: running、stopped、error、starting
性能指标:
显示机器人交易历史。
# 显示机器人的交易历史
python scripts/history.py <bot_name>
# 显示摘要统计信息
python scripts/history.py <bot_name> --summary
历史记录列:
# 1. 连接到交易所
python scripts/connect.py binance --api-key XXX --secret-key YYY
# 2. 检查余额
python scripts/balance.py binance
# 3. 创建机器人配置
python scripts/create.py controller btc_mm \
--template pure_market_making \
--connector binance \
--trading-pair BTC-USDT
# 4. 启动机器人
python scripts/start.py btc_bot --controller btc_mm
# 5. 监控状态
python scripts/status.py btc_bot
# 6. 检查历史记录
python scripts/history.py btc_bot
# 7. 完成后停止
python scripts/stop.py btc_bot
| 错误 | 原因 | 解决方法 |
|---|---|---|
Cannot connect to API | API 未运行 | cd ./hummingbot-api && make deploy |
401 Unauthorized | 凭据错误 | 检查 ./hummingbot-api/.env |
Connector not found | 交易所名称无效 | 运行 python scripts/connect.py 以列出有效名称 |
No credentials | 交易所未连接 | 运行 python scripts/connect.py <exchange> --api-key ... |
每周安装次数
133
代码仓库
GitHub 星标数
24
首次出现
2026年2月27日
安全审计
已安装于
codex130
cursor129
opencode129
gemini-cli128
github-copilot128
kimi-cli128
When the skill is loaded, print this ASCII art:
*,.
*,,.*
,,,, .,*
*,,,,,,,( .,,
*,,,,,,,, .,,, *
/,,,,,,,,,, .*,,,,,,,
.,,,,,,,,,,, .,,,,,,,,,,*
// ,,,,,,,,,,,,,,,,,,,,,,,,,,#*%
.,,,,,,,. *,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%&@
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%&
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%&
/*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,((%%%&
.** #,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,((((((((#.
** *,,,,,,,,,,,,,,,,,,,,,,**/(((((((((((*
,,,,,,,,,,,,,,,,,,,*******((((((((((
(,,,,,,,,,,,************((((((((@
*,,,,,,,,,,****************(#
,,,,,,,,,,,***************/
,,,,,,,,,,,***************/
,,,,,,,,,,****************
.,,,,,,,,***************'/
,,,,,,*******,
*,,,,,,********
,,,,,,,,/******/
,,,,,,,,@ /****/
,,,,,,,,
, */
██╗ ██╗██╗ ██╗███╗ ███╗███╗ ███╗██╗███╗ ██╗ ██████╗ ██████╗ ██████╗ ████████╗
██║ ██║██║ ██║████╗ ████║████╗ ████║██║████╗ ██║██╔════╝ ██╔══██╗██╔═══██╗╚══██╔══╝
███████║██║ ██║██╔████╔██║██╔████╔██║██║██╔██╗ ██║██║ ███╗██████╔╝██║ ██║ ██║
██╔══██║██║ ██║██║╚██╔╝██║██║╚██╔╝██║██║██║╚██╗██║██║ ██║██╔══██╗██║ ██║ ██║
██║ ██║╚██████╔╝██║ ╚═╝ ██║██║ ╚═╝ ██║██║██║ ╚████║╚██████╔╝██████╔╝╚██████╔╝ ██║
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝
This skill faithfully reproduces Hummingbot CLI commands via Hummingbot API, bringing the same trading workflows you know from Hummingbot to AI agents.
Note: Hummingbot API supports V2 strategies only (V2 Controllers and V2 Scripts). V1 strategies are not supported and require the traditional Hummingbot client.
| Command | Description |
|---|---|
connect | List available exchanges and add API keys |
balance | Display asset balances across connected exchanges |
create | Create a new bot configuration |
start | Start a bot with a V2 strategy |
stop | Stop a running bot |
status | Display bot status |
http://localhost:8000 (deploy with /hummingbot-deploy)hummingbot-api-client installed: pip3 install hummingbot-api-clientScripts read credentials from these sources in order:
./hummingbot-api/.env — created during make setup~/.hummingbot/.envHUMMINGBOT_API_URL, API_USER, API_PASShttp://localhost:8000, admin, adminList available exchanges and add API keys to them.
# List all available connectors
python scripts/connect.py
# List connectors with connection status
python scripts/connect.py --status
# Add API keys for an exchange
python scripts/connect.py binance --api-key YOUR_KEY --secret-key YOUR_SECRET
# Add API keys for exchange requiring passphrase
python scripts/connect.py kucoin --api-key YOUR_KEY --secret-key YOUR_SECRET --passphrase YOUR_PASS
# Remove credentials for an exchange
python scripts/connect.py binance --remove
Common credential fields by exchange:
--api-key, --secret-key--api-key, --secret-key, --passphrase--api-key, --secret-key--api-key, --secret-key, --passphraseDisplay your asset balances across all connected exchanges.
# Show all balances
python scripts/balance.py
# Show balances for a specific connector
python scripts/balance.py binance
# Show balances in USD
python scripts/balance.py --usd
# Show only non-zero balances
python scripts/balance.py --non-zero
Output columns:
--usd)Create a new bot configuration (controller config or script config).
# List available controller templates
python scripts/create.py --list-controllers
# List available scripts
python scripts/create.py --list-scripts
# List existing configs
python scripts/create.py --list-configs
# Create a controller config
python scripts/create.py controller my_mm_config --template pmm_v1
| Controller | Best For | Key Features |
|---|---|---|
| pmm_v1 | CEX spot trading | Multi-level spreads, inventory skew, order refresh, price bands |
| pmm_mister | Spot & perpetuals | Position tracking, leverage, cooldowns, profit protection, hanging executors |
pmm_v1 : Faithful clone of the legacy Pure Market Making strategy. Configure buy_spreads, sell_spreads, order_amount, and enable inventory_skew to maintain balance.
pmm_mister : Advanced controller for spot and perpetual markets with leverage, take_profit, global_stop_loss, separate buy_cooldown_time/sell_cooldown_time, and position_profit_protection to prevent selling below breakeven.
Start a bot with a V2 strategy configuration. V1 strategies are not supported.
# Interactive mode - prompts for strategy type
python scripts/start.py <bot_name>
# Start with a V2 Controller config
python scripts/start.py <bot_name> --controller <config_name>
# Start with a V2 Script
python scripts/start.py <bot_name> --script <script_name>
# Start with a V2 Script and config file
python scripts/start.py <bot_name> --script <script_name> --config <config_name>
# List running bots
python scripts/start.py --list
V2 Strategy Types:
--controller — Deploy a V2 controller config (market making, arbitrage, etc.)--script — Deploy a V2 script (e.g., v2_with_controllers)Bot naming: Use descriptive names like btc_mm_bot, eth_arb_bot, etc.
Stop a running bot.
# Stop a bot by name
python scripts/stop.py <bot_name>
# Stop a bot and close all positions
python scripts/stop.py <bot_name> --close-positions
# Stop all running bots
python scripts/stop.py --all
# Examples
python scripts/stop.py my_bot
python scripts/stop.py arb_bot --close-positions
Display bot status and performance metrics.
# List all bots with status
python scripts/status.py
# Get detailed status for a specific bot
python scripts/status.py <bot_name>
# Get status with performance metrics
python scripts/status.py <bot_name> --performance
# Get live status (refreshes)
python scripts/status.py <bot_name> --live
Status values: running, stopped, error, starting
Performance metrics:
Display bot trading history.
# Show trade history for a bot
python scripts/history.py <bot_name>
# Show summary statistics
python scripts/history.py <bot_name> --summary
History columns:
# 1. Connect to an exchange
python scripts/connect.py binance --api-key XXX --secret-key YYY
# 2. Check your balances
python scripts/balance.py binance
# 3. Create a bot config
python scripts/create.py controller btc_mm \
--template pure_market_making \
--connector binance \
--trading-pair BTC-USDT
# 4. Start the bot
python scripts/start.py btc_bot --controller btc_mm
# 5. Monitor status
python scripts/status.py btc_bot
# 6. Check history
python scripts/history.py btc_bot
# 7. Stop when done
python scripts/stop.py btc_bot
| Error | Cause | Fix |
|---|---|---|
Cannot connect to API | API not running | cd ./hummingbot-api && make deploy |
401 Unauthorized | Bad credentials | Check ./hummingbot-api/.env |
Connector not found | Invalid exchange name | Run python scripts/connect.py to list valid names |
Weekly Installs
133
Repository
GitHub Stars
24
First Seen
Feb 27, 2026
Security Audits
Gen Agent Trust HubPassSocketWarnSnykFail
Installed on
codex130
cursor129
opencode129
gemini-cli128
github-copilot128
kimi-cli128
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
40,000 周安装
history | Display bot trading history |
No credentials| Exchange not connected |
Run python scripts/connect.py <exchange> --api-key ... |