Skip to content

Conversation

@tukuaiai
Copy link
Owner

变更摘要

1. Telegram Bot 管理面板

  • 新增 ADMIN_USER_IDS 配置项,支持多管理员
  • 增强 env_manager.py 配置管理逻辑
  • 新增 407 条英文翻译

2. 文档清理

  • 删除重复的订单簿审计文档(已整合到 ORDER_BOOK_AUDIT.md)

3. 滑动窗口方案

  • 新增 docs/TODO_SLIDING_WINDOW.md 实施计划
  • 新增 scripts/ddl/sliding_window_retention.sql DDL 脚本
  • 目标:存储从 99GB 降至 ~80MB(每周期保留 500 根 K 线)

Commits (4)

  1. feat(telegram): add admin config panel and user management
  2. chore(docs): remove duplicate audit docs
  3. docs: add sliding window retention plan and DDL script
  4. feat(telegram): enhance env manager with i18n translations

风险评估

低风险 - 新增功能和文档,不影响现有流程

tukuaiai and others added 6 commits January 10, 2026 19:14
- Add '⚙️ 配置' button to main menu inline keyboard
- Add '⚙️ 配置' button to bottom reply keyboard
- Add button_mapping for keyboard message handling
- Add kb.config i18n entries (zh_CN/en)

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
New pg_formatter.py:
- 12 signal type templates with icons and titles
- Support both zh/en languages
- format(): detailed multi-line format with strength bar
- format_simple(): single-line format for batch display
- format_batch(): batch format for multiple signals

Update pg_engine.py:
- Integrate formatter in notify() method
- Pass formatted message to callbacks

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- Add ADMIN_USER_IDS config for admin access control
- Add i18n translations for new admin features (en/zh_CN)
- Update compiled .mo files
- Add TODO_SLIDING_WINDOW.md with phased implementation plan
- Add sliding_window_retention.sql DDL for TimescaleDB retention policy
- Target: reduce storage from 99GB to ~80MB with 500 candles per timeframe
- Update bot.po with 407 new translation entries
- Refactor env_manager.py for better config handling
@tukuaiai tukuaiai merged commit cf718bb into main Jan 10, 2026
1 of 2 checks passed
@tukuaiai tukuaiai deleted the feature/telegram-admin-and-sliding-window branch January 10, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants