Skip to content

Commit f15f683

Browse files
Pigbibiclaudecursoragent
committed
feat(config): canonical QuantSentinel telegram secret and docs
- platform-config.json notifications.quant_sentinel - docs/notifications-quant-sentinel.zh-CN.md - deprecate crisis-alert-telegram-bot-token Co-Authored-By: Claude <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0fdf2d3 commit f15f683

2 files changed

Lines changed: 56 additions & 1 deletion

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# 量化哨兵(QuantSentinel)通知架构
2+
3+
真源:`QuantRuntimeSettings/platform-config.json``notifications.quant_sentinel`
4+
5+
## GCP Secret
6+
7+
| 名称 | 用途 |
8+
|------|------|
9+
| `quant-sentinel-telegram-bot-token` | 组织统一哨兵 bot(监控、简报、插件告警) |
10+
| `crisis-alert-telegram-bot-token` | **已弃用**,保留只作回滚 |
11+
12+
各平台 GCP 项目均应有 sentinel secret 副本:`firstradequant``longbridgequant``charlesschwabquant``interactivebrokersquant`
13+
14+
## 环境变量(运行时)
15+
16+
| 变量 | 说明 |
17+
|------|------|
18+
| `TELEGRAM_TOKEN` | bot token(Cloud Run 由 secret ref 注入;VPS 由 `load_telegram_env.sh`|
19+
| `GLOBAL_TELEGRAM_CHAT_ID` | `5992562050` |
20+
21+
别名见 `platform-config.json``notifications.quant_sentinel.env_aliases`
22+
23+
## VPS
24+
25+
```bash
26+
scripts/load_telegram_env.sh /run/quant-monitor/telegram.env
27+
systemd/quant-monitor.service.example # ExecStartPre + EnvironmentFile
28+
scripts/daily_briefing_pipeline.sh # → AIAuditBridge --dispatch
29+
```
30+
31+
## Cloud Run
32+
33+
`STRATEGY_PLUGIN_ALERT_TELEGRAM_BOT_TOKEN_SECRET_NAME=quant-sentinel-telegram-bot-token`
34+
`GLOBAL_TELEGRAM_CHAT_ID` 来自 repo variable。
35+
36+
平台执行日报仍用各平台 `TELEGRAM_TOKEN_SECRET_NAME`(独立 bot)。

platform-config.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,28 @@
22
"$schema": "https://quantstratalab.github.io/configs/platform-config.schema.json",
33
"schema_version": 1,
44
"meta": {
5-
"last_updated": "2026-07-06",
5+
"last_updated": "2026-07-09",
66
"description": "Single source of truth for all platforms, domains, and strategies"
77
},
8+
"notifications": {
9+
"quant_sentinel": {
10+
"label_zh": "量化哨兵",
11+
"label_en": "QuantSentinel",
12+
"telegram_bot_token_secret_name": "quant-sentinel-telegram-bot-token",
13+
"telegram_chat_id": "5992562050",
14+
"gcp_projects": [
15+
"firstradequant",
16+
"longbridgequant",
17+
"charlesschwabquant",
18+
"interactivebrokersquant"
19+
],
20+
"env_aliases": {
21+
"bot_token": ["TELEGRAM_TOKEN", "TG_TOKEN", "STRATEGY_PLUGIN_ALERT_TELEGRAM_BOT_TOKEN"],
22+
"chat_id": ["GLOBAL_TELEGRAM_CHAT_ID", "QSL_GLOBAL_TELEGRAM_CHAT_ID", "STRATEGY_PLUGIN_ALERT_TELEGRAM_CHAT_IDS"]
23+
},
24+
"deprecated_secret_names": ["crisis-alert-telegram-bot-token"]
25+
}
26+
},
827
"domains": {
928
"us_equity": {
1029
"label_zh": "美股",

0 commit comments

Comments
 (0)