Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions notifications/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,20 @@
"blend_gate_reason_rsi_cap": "RSI 超阈值",
"blend_gate_reason_bollinger_cap": "突破布林上轨",
"blend_gate_reason_volatility_delever": "{symbol} {window} 日年化波动率 {volatility} 高于 {threshold},SOXL 转向 {redirect_symbol}",
"strategy_plugin_line": "🧩 插件:{plugin} | 模式:{mode} | 路由:{route} | 建议:{action}",
"strategy_plugin_name_crisis_response_shadow": "危机响应观察",
"strategy_plugin_line": "🧩 插件:{plugin} | 状态:{route} | 提醒:{action}",
"strategy_plugin_name_crisis_response_shadow": "危机观察通知",
"strategy_plugin_mode_shadow": "影子观察",
"strategy_plugin_route_no_action": "不操作",
"strategy_plugin_route_no_action": "未触发危机",
"strategy_plugin_route_true_crisis": "真危机",
"strategy_plugin_route_taco_fake_crisis": "TACO 假危机",
"strategy_plugin_route_unknown_route": "未知路由",
"strategy_plugin_route_unknown_route": "未知状态",
"strategy_plugin_action_no_action": "不操作",
"strategy_plugin_action_watch_only": "仅观察",
"strategy_plugin_action_watch_only": "仅通知",
"strategy_plugin_action_small_taco": "小仓 TACO",
"strategy_plugin_action_defend": "防守",
"strategy_plugin_action_blocked": "已阻断",
"strategy_plugin_action_monitor": "监控",
"strategy_plugin_action_unknown_action": "未知建议",
"strategy_plugin_action_monitor": "持续观察",
"strategy_plugin_action_unknown_action": "未知提醒",
"no_trades": "✅ 无需调仓",
"emergency": "🛡️ 金丝雀应急: {n_bad}/4 坏, 全部转入 {safe}",
"quarterly": "📊 季度调仓: 前 {n} 名轮动",
Expand Down Expand Up @@ -178,20 +178,20 @@
"blend_gate_reason_rsi_cap": "RSI over threshold",
"blend_gate_reason_bollinger_cap": "price above upper band",
"blend_gate_reason_volatility_delever": "{symbol} {window}d annualized volatility {volatility} is above {threshold}; redirect SOXL to {redirect_symbol}",
"strategy_plugin_line": "🧩 Plugin: {plugin} | mode: {mode} | route: {route} | action: {action}",
"strategy_plugin_name_crisis_response_shadow": "Crisis Response Shadow",
"strategy_plugin_line": "🧩 Plugin: {plugin} | status: {route} | notice: {action}",
"strategy_plugin_name_crisis_response_shadow": "Crisis Watch Notice",
"strategy_plugin_mode_shadow": "shadow",
"strategy_plugin_route_no_action": "no action",
"strategy_plugin_route_no_action": "no crisis detected",
"strategy_plugin_route_true_crisis": "true crisis",
"strategy_plugin_route_taco_fake_crisis": "TACO fake crisis",
"strategy_plugin_route_unknown_route": "unknown route",
"strategy_plugin_route_unknown_route": "unknown status",
"strategy_plugin_action_no_action": "no action",
"strategy_plugin_action_watch_only": "watch only",
"strategy_plugin_action_watch_only": "notify only",
"strategy_plugin_action_small_taco": "small TACO",
"strategy_plugin_action_defend": "defend",
"strategy_plugin_action_blocked": "blocked",
"strategy_plugin_action_monitor": "monitor",
"strategy_plugin_action_unknown_action": "unknown action",
"strategy_plugin_action_monitor": "watch",
"strategy_plugin_action_unknown_action": "unknown notice",
"no_trades": "✅ No rebalance needed",
"emergency": "🛡️ Canary Emergency: {n_bad}/4 bad, rotating to {safe}",
"quarterly": "📊 Quarterly Rebalance: Top {n} rotation",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_build_translator_supports_chinese():
route=translate("strategy_plugin_route_no_action"),
action=translate("strategy_plugin_action_watch_only"),
)
== "🧩 插件:危机响应观察 | 模式:影子观察 | 路由:不操作 | 建议:仅观察"
== "🧩 插件:危机观察通知 | 状态:未触发危机 | 提醒:仅通知"
)
assert (
translate(
Expand Down