关于 hummingbot
hummingbot 是为使用或开发 hummingbot 的用户提供参考资料的技能,内容整理自官方文档。它包含交易、策略、连接器、开发和故障排查资料及代码示例。
主要功能
- 01提供 hummingbot 主题参考文档
- 02涵盖交易、策略与连接器
- 03包含开发和配置说明
- 04列出常见代码与命令示例
适用场景
- 01查阅 hummingbot 入门资料
- 02实现或调试 hummingbot 代码
- 03了解交易策略与连接器用法
- 04排查配置或交易问题
安装
复制下面的命令,在终端中运行。
npx skills add https:/ / github.com/ 2025emma/ vibe-coding-cn --skill hummingbot安装后在 Claude Code 中输入/hummingbot确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/advanced.mdconfiguration.mdconnectors.mddevelopment.mdgetting_started.mdindex.mdother.mdstrategies.mdtrading.mdtroubleshooting.md详细介绍
Hummingbot 技能
基于官方文档生成的 Hummingbot 开发综合指南。
何时使用此技能
在以下情况下应触发此技能:
- 使用 Hummingbot
- 询问 Hummingbot 的功能或 API
- 实现 Hummingbot 解决方案
- 调试 Hummingbot 代码
- 学习 Hummingbot 最佳实践
快速参考
常见模式
**模式 1:**例如:candles = [CandlesFactory.get_candle(connector=kucoin, trading_pair="ETH-USDT", interval="1m", max_records=100)]
candles = [CandlesFactory.get_candle(connector=kucoin,
trading_pair="ETH-USDT", interval="1m", max_records=100)]
**模式 2:**示例:
bin/hummingbot_quickstart.py -p a -f simple_pmm_example_config.py -c conf_simple_pmm_example_config_1.yml
模式 3:>>> gateway swap --help usage: gateway swap [-h] [connector] [args ...] positional arguments: connector Connector name/type (e.g., jupiter/router) args Arguments: [base-quote] [side] [amount] options: -h, --help show this help message and exit
>>> gateway swap --help
usage: gateway swap [-h] [connector] [args ...]
positional arguments:
connector Connector name/type (e.g., jupiter/router)
args Arguments: [base-quote] [side] [amount]
options:
-h, --help show this help message and exit
**模式 4:**usage: gateway list [-h]
usage: gateway list [-h]
**模式 5:**示例:
price = self.market_data_provider.get_price_by_type('binance', 'BTC-USDT', PriceType.MidPrice)
**模式 6:**示例:
price = self.market_data_provider.get_price_by_volume('binance', 'BTC-USDT', volume: 10000, True)
**模式 7:**示例:
price = self.market_data_provider.get_volume_for_price('binance', 'BTC-USDT', 70000, True)
**模式 8:**示例:
price = self.market_data_provider.get_order_book_snapshot('binance', 'BTC-USDT')
参考文件
此技能包含 references/ 中的完整文档:
- advanced.md - 高级文档
- configuration.md - 配置文档
- connectors.md - 连接器文档
- development.md - 开发文档
- getting_started.md - 入门文档
- other.md - 其他文档
- strategies.md - 策略文档
- trading.md - 交易文档
- troubleshooting.md - 故障排查文档
需要详细信息时,使用 view 查看特定参考文件。
使用此技能
初学者
从 getting_started 或 tutorials 参考文件开始,了解基础概念。
特定功能
使用相应类别的参考文件(api、guides 等)获取详细信息。
代码示例
上方的快速参考部分包含从官方文档中提取的常见模式。
资源
references/
从官方来源提取并整理的文档。这些文件包含:
- 详细说明
- 带语言标注的代码示例
- 指向原始文档的链接
- 便于快速导航的目录
scripts/
在此处添加用于常见自动化任务的辅助脚本。
assets/
在此处添加模板、样板代码或示例项目。
备注
- 此技能由官方文档自动生成
- 参考文件保留了源文档的结构和示例
- 代码示例包含语言检测,以便更好地进行语法高亮
- 快速参考模式提取自文档中的常见用法示例
更新
要使用更新后的文档刷新此技能:
- 使用相同的配置重新运行抓取程序
- 技能将使用最新信息重新构建