Skip to content

Conversation

@tukuaiai
Copy link
Owner

@tukuaiai tukuaiai commented Jan 9, 2026

变更摘要

新增 markets-service 订单簿采集系统审计文档:

  • order_book_audit_2026-01-09.md - 详细审计报告(含修复记录)
  • order-book-audit-report.md - 结构化摘要格式

文档内容

  • 表结构设计(tick/full 双表)
  • 采集器代码要点(幂等、乱序检测)
  • 观测指标与验证方法
  • 残留风险与行动项
  • 存储估算

风险评估

无风险 - 仅添加文档

tukuaiai and others added 8 commits January 9, 2026 16:07
- X axis: bandwidth (squeeze/normal/expansion)
- Y axis: %B position (oversold to overbought)
- 9-grid matrix for breakout/panic detection
- Circle size = bandwidth, color = volume, edge = price change

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- Sort bubbles by volume (larger first)
- Greedy search for non-overlapping position
- Penalty function: overlap count + y-offset distance
- Reduced bubble overlap significantly

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- Smaller bubble radius (0.015 + 0.008*size)
- Denser search grid (30 x-points, 25 y-offsets)
- Smaller font and padding
- Much better overlap reduction for 428 coins

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- Add env_manager.py for reading/writing .env config via Bot
- Support hot-reload for SYMBOLS_*, BLOCKED_SYMBOLS, cards, locale
- Add /env command with category buttons and inline editing
- Convert BLOCKED_SYMBOLS to dynamic getter for hot-reload support
- Add reset_symbols_cache() to data_provider for hot-reload
- White-list security: only safe configs are editable via Bot

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
…ed signals

- Remove bot/signal_formatter.py (CoinGlass-based formatter)
- Remove _load_signal_formatter() and related methods from app.py
- Keep signals/formatter.py (new rule engine formatter)
- Simplify TradeCatBot __init__ (no more signal_formatter initialization)
- Update env_manager.py with improved UX design

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Design principles applied:
- Max 3 steps to complete any operation
- Friendly copy, no blame words
- Instant feedback with clear next actions
- Proactive help with examples and hints

UI improvements:
- Category icons and descriptions
- Friendly option labels (e.g., '🔥 主流4币' instead of 'main4')
- Clear current value display with formatted labels
- 'Clear this item' button for text inputs
- 'OK' button after save to guide user back
- Better error messages with examples of correct format

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- Add order_book_audit_2026-01-09.md (detailed audit with fixes)
- Add order-book-audit-report.md (summary format)
- Document table schema, collector code, metrics, and risks
@tukuaiai tukuaiai merged commit 9de69d7 into main Jan 9, 2026
1 of 2 checks passed
@tukuaiai tukuaiai deleted the docs/order-book-audit branch January 9, 2026 08:40
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