Files
Hermes-Skills/trading/okx-auto-position/references/channel-prompts-config.md
T
Hermes Skills Manager 6770bc9b9d Initial commit: Hermes Agent skills collection
- Trading skills (OKX, dividend, lottery, quantitative)
- Creative skills (ASCII art, diagrams, video)
- Development skills (GitHub, debugging, TDD)
- Research skills (arXiv, blog monitoring)
- Productivity skills (email, documents, notes)
- MCP integration skills
- Custom user skills
2026-07-05 02:31:15 -04:00

39 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Channel Prompts 信号处理配置
## 位置
`~/.hermes/config.yaml` 中有4处相同的prompttelegram/discord/mattermost各一处 + 顶层一处)。
## 当前prompt逻辑(2026-06-25更新)
```
第一步:消息分类
A) 交易信号 — 含币种名称、方向、仓位
B) 确认/取消 — Y/确认/ok/N/取消
C) 平仓信号 — 平仓/止盈/止损/close
D) 非交易消息 — 广告/闲聊/图片/表情 → 忽略
第二步:按类型处理
A类 → trade_signal_handler.py signal → trade_notifier.py notify
B类 → confirm/cancel
C类 → okx_position_advisor.py --close
D类 → 不做任何操作
```
## 编辑注意事项
- **不能用patch工具**直接编辑config.yaml(安全策略保护)
- **不能用yaml.dump**整体重写(会破坏格式/丢注释/改版本号)
- 必须用terminal + Python regex替换:
```python
import re
with open('/home/openclaw/.hermes/config.yaml', 'r') as f:
content = f.read()
new_content, count = re.subn(old_pattern, new_prompt, content)
with open('/home/openclaw/.hermes/config.yaml', 'w') as f:
f.write(new_content)
```
- 替换后需要**重启gateway**才能生效(从外部shell执行)
## 群ID
- 交易信号群: `-1003966251111`
- 配置了 `free_response_channels` 和 `free_response_chats`