Releases: 0xethanq/astra-quant-agent
Release list
Release v8.6.1: fix ledger reset_time penetration, auto-purge legacy trades & baseline cycle management
AstraQuant v8.6.1 Release Notes
- Ledger Security & Baseline Guard: Eliminate reset_time epoch penetration (1970 fallback) in
sync_full_ledger.pyand/api/v1/public/ledger; inheritevolution_start_timebaseline to prevent historical manual trades from polluting quant ledger. - Automated Legacy Trade Purge: Add on-the-fly purge before ledger persistence to strip pre-baseline foreign closed trades, instantly cleaning contaminated user ledgers upon next sync.
- Baseline Cycle Management: Export
update_reset_timeinaccount_baseline.pyand exposePUT /api/v1/admin/account-baseline/reset-timewith atomic lock and Beijing datetime validation. - Ledger UI & Perceptibility: Resolve empty-array clearance bug in
LedgerView.vue, add explicit cycle vs all-time badges ([本期] / [全量]) to eliminate user scope ambiguity. - Verification & Test Coverage: Add comprehensive unit tests for
update_reset_timeand router endpoints; full test suites passing across Tier 0 (1,549), Tier 1 (3,912), and Tier 2 (3,755).
AstraQuant v8.6.0: Regime-Adaptive Dual-Mode Engine (Trend vs Chop), Agile Breakeven & Anti-Chop Guardrails
🚀 AstraQuant v8.6.0: Regime-Adaptive Dual-Mode Engine, Anti-Chop Protocol & Agile Capital Management
AstraQuant v8.6.0 Official Feature Release is live! This major release addresses a critical real-world trading dilemma: protecting capital during choppy, range-bound markets while maximizing trend capture. It introduces the Regime-Adaptive Dual-Mode Architecture, an uncompromising Anti-Chop Protocol, agile breakeven ratcheting, and tightened capital rotation.
⚡ 1. Regime-Adaptive Dual-Mode Engine (Trend vs. Chop)
- Autonomous Market Regime Classifier: Dynamic instrument-level classification combining 4H macro channel, 1H swing structure, and 1H ADX:
STRONG_TREND: 4H macro and 1H swing aligned + 1H ADX ≥ 20.0 (aggressive pullback buying, trend breakouts, distant multi-tier TP2 trailing).CHOP_RANGE: 4H range, 1H chop, or 1H ADX < 20.0 (strict defensive posture, zero momentum chasing, boundary mean-reversion only).
- Prompt Architecture Regime Injection: Real-time regime diagnosis banners injected directly into each asset's triple-barrier structure (
- 🏛️ 三重滤网宏观结构: ... | 标的体制=CHOP_RANGE (区间震荡·严禁追单)), providing LLM CIO agents with explicit, unambiguous market context.
🛡️ 2. Quantitative Anti-Chop Protocol & Signal Engine Hardening
- Suppression of False Breakouts: Programmatically disables
Setup 3(🚀 Momentum Breakout) andSetup 4(🌪️ Breakdown Acceleration) when ADX indicates range-bound conditions, eliminating the fatal trap of buying range tops and shorting range bottoms. - Extreme Boundary Mean Reversion: Restricts chop entries exclusively to
Setup 5(💎 Extreme Mean Reversion) andSetup 6(🛡️ Sweep Reversal) at 24H VWAP Value Area extremes (VAL / VAH) with confirmed exhaustion wicks. - Mid-Range Noise Gating: Zeroes out deceptive temporary EMA alignment scores in chop; enforces strict
HOLDwhen an asset lacks extreme reversal setups, preventing random sub-factor sum bleed. - Elevated Confidence Threshold: Increases minimum entry confidence to ≥ 82% in chop regimes.
🎯 3. Agile Breakeven Ratchet & Tightened Capital Rotation
- Chop-Adaptive Breakeven Trigger:
- In normal/trend markets: preserves the standard 1.5x ATR trigger for wave breathing.
- In chop regimes: ratchets breakeven stop loss forward at 0.9x ATR peak profit (~0.6R–0.7R), locking in cost + 0.2% fee cushion before oscillating swings reverse.
- Compact Volatility Time-Stop: Shortens time-stop from 4.0 hours to 2.5 hours (
0.625x) for range-bound positions, immediately freeing up collateral and avoiding dead capital lockup. - Near-End Structural Take-Profit: Prohibits unreachable distant targets (>2.0x ATR) in chop; mandates pinning TP to range centers (VWAP / POC) or opposite bounds.
🎨 4. Workstation & Landing Page Upgrades
- Landing Page Modernization: Refreshed visual aesthetics, high-conversion typography, and interactive trading preview card.
- Exchange Referral Channels: Integrated official fee rebate channels for OKX, Binance, and Gate.
- Standardized Community Templates: Added GitHub Issue & Pull Request templates (
.github/).
🧪 5. Multi-Tier Quality Gate Verification
- Tier 0 (Core Quant Gates): 1,545 Python tests + 459 frontend tests passing 100%.
- Tier 1 (Multi-Model & UI Gates): 3,909 Python tests passing + Vue production bundle compiled +
vue-tsctype-check clean. - Tier 2 (Full System & Audit Gates): 2,531 architecture and invariant audit tests passing 100%.
📦 Upgrade Guide
git pull origin main
# For Docker deployments:
./deploy/docker-start.sh
# For Bare Metal deployments:
sh deploy/install.sh && ./start.shAstraQuant v8.5.1: Clean Text Notification Engine, Prompt Guide Overhaul & Risk Alignment
🚀 AstraQuant v8.5.1: Clean Text Notification Engine, Prompt Engineering Guide Overhaul & Risk Guardrail Alignment
AstraQuant v8.5.1 Maintenance & Quality Release is officially released! This release focuses on de-slopping the notification engine, overhauling the quantitative prompt authoring guide, hardening risk parameters, and ensuring seamless custom AI model configuration.
📢 1. Notification Engine Upgrade & Quantitative Text De-Slop
- Emoji & Noise Removal: Stripped noisy and emotional emojis (
🟢,🔴,🚀,🎉,🏷️) across trading notifications, replacing them with institutional bracketed labels ([实盘开仓],[限价成交],[风控止损],[阶梯止盈 TP1 达成]). - Enriched Quantitative Metadata: Open alerts now explicitly report the active AI decision model (
AI主脑:{active_model}) and order execution mode (委托单型:市价单/限价单), alongside 1H ATR volatility references. - Physical Message Sanitizer: Hardened gateway worker with an automated HTML/SVG/IMG sanitizer (
sanitize_message_content), stripping rogue rich-text and SVG payloads to guarantee clean display across notification channels.
📖 2. Complete Rewrite of the Prompt Engineering Guide (docs/PROMPT_GUIDE.md)
- Full Alignment with v8.5+ Architecture: Purged historical deprecated calculus concepts (
v/a/j/I/E/A/VaR) and fake-zero macro regime fallbacks. - 7-Tier Microstructure Factor Reference: Standardized prompt integration for T0 Derivatives, T0.5 Orderflow CVD, T1 Orderbook OBI, T1.5 Options Skew, T2 Term Basis, T3 VWAP/POC, and T4 Normalized MACD.
- 5 Golden Rules for High-Winrate Swings:
- Structural Breathing: Refrain from premature breakeven trailing; grant 1.8x–2.2x ATR breathing room.
- Let Runners Run: Eliminate panic market exits during healthy intraday retracements.
- Directional Beta Discipline: Enforce higher entry confidence thresholds (≥85%) when holding ≥2 correlated positions.
- Post-Stop Composure: Programmatic cooldown enforcement against revenge trading.
- Maker Limit Geometry: Strict geometric enforcement with positive mathematical expectancy (R:R ≥ 1.6).
- Prompt Studio Variable Dictionary: Synchronized in-app metadata in
scripts/prompt_library.pyto match the 7-tier factor matrix.
🛡️ 3. Execution Risk Guardrail & LLM Configuration Hardening
- Position Cap Invariant Alignment: Corrected cross-field validation between concurrent position cap and same-direction limits, ensuring long-running backend processes reload risk snapshots without drift (
stale: false). - Custom LLM Provider Dual-Sync: Streamlined quick onboarding modal to pure custom provider inputs (Base URL, Model Name, API Key) with atomic dual-synchronization to
data/llm_models.json.
🧪 4. Full Quality Gate Verification
- Tier 0 (Core Quant Gates): 1,538 Python tests + 459 frontend tests passing 100%.
- Tier 1 (Multi-Model & UI Gates): 3,904 Python tests passing + Vue production bundle compiled +
vue-tsctype-check clean. - Tier 2 (Audit & Invariants): 3,751 tests passing 100%.
📦 Upgrade Guide
git pull origin main
# For Docker deployments:
./deploy/docker-start.sh
# For Bare Metal deployments:
sh deploy/install.sh && ./start.shAstraQuant v8.5.0: Autonomous Quant OS, Prompt Caching Architecture & Ethereal Workstation
🚀 AstraQuant v8.5.0: Autonomous Quant OS, Prompt Caching Architecture & Ethereal Workstation
AstraQuant v8.5.0 Official Release is here! This milestone release marks the full maturation of our autonomous quant trading operating system, delivering enterprise-grade Prompt Caching & Session Affinity, high-end Ethereal Glassmorphic UI, GNU AGPL-3.0 + Commons Clause v1.0 + Anti-Scam Rider licensing, a 2-minute Zero-Config Setup Wizard, and a comprehensive overhaul of our documentation center.
⚡ 1. Upstream Prompt Caching & Session Affinity Architecture (2026-10)
Multi-agent quant desks usually suffer from massive LLM token overheads and latency. v8.5.0 introduces an institutional-grade prompt caching architecture:
- Shared Market & Rules Prefix (>90% cached): Static trading doctrine, risk mandates, and the 7-tier quant factor matrix are consolidated into the prefix, enabling multi-agent council seats (Trend, Momentum, Quant, Macro) to hit the same KV cache block.
- Monotonic Volatility Hierarchy: Strict structuring by mutation frequency:
- Zone 0 (Immutable): Core doctrine, role identities, and read-only JSON Schema.
- Zone 1 (Slow-moving): 6-hour self-evolution memory lessons.
- Zone 2 (Medium-moving): 10-minute news intelligence and sentiment scores.
- Zone 3 (Cycle-moving): 15-minute 7-tier quant factor matrix.
- Zone 4 (Fast-moving): Second-level orderbook ticks and millisecond timestamps.
- Claude Ephemeral Breakpoints: Native injection of
cache_control: {"type": "ephemeral"}at Zone boundaries; 64/128-token chunk alignment for OpenAI and DeepSeek models. - Float Anti-Jitter: Mathematical rounding stabilization prevents minute decimal fluctuations from busting upstream cache keys.
- L1 In-Memory + SQLite Persistent Cache: Eliminates redundant remote roundtrips during council debate and failover sequences.
🎨 2. Ethereal Glassmorphism & High-End Minimalist UI
- Ethereal Glass Surfaces: Translucent frosted glass layering (
rgba(13, 15, 21, 0.76)+backdrop-filter: blur(20px) saturate(180%)) with subtle ambient spatial depth. - Dual-Bezel Hairline Inset Highlights: Ultra-fine chamfered borders (
inset 0 1px 0 rgba(255, 255, 255, 0.09)) replacing heavy borders with crisp optical edges. - Tactile Micro-Interactions: Custom buttons with active depression kinematics, polished focus rings, and zero cyberpunk visual pollution.
- Sanitized Framework Comments: Completely cleaned all legacy external platform attribution comments across CSS and Vue components for pristine production delivery.
⚖️ 3. GNU AGPL-3.0 + Commons Clause v1.0 + Anti-Scam Rider
To protect open-source quant contributors and community users from commercial resale, predatory closed-sourcing, and financial scams:
- Strong Copyleft for Network Services (AGPL-3.0): Anyone modifying and hosting the system over a network must make full source code available to users.
- No Commercial Resale or Paid Signals (Commons Clause v1.0): Prohibits selling, renting, or charging subscription fees for the software or derived signal channels. Private self-hosted trading and academic research remain 100% free.
- Anti-Scam Rider: Strictly bans fraudulent financial schemes, token issuance, and unauthorized paid copy-trading groups.
🚀 4. Production Deployment & Onboarding Overhaul
- 2-Minute Interactive Setup Wizard (
./setup.sh): Fast CLI onboarding for exchange mode (Demo/Live), API keys, AI model provider, risk baseline, and secure password generation; supports--non-interactivefor automated server deployments. - Docker Compose Clean-up: Completely eliminated stale
./pluginsmounts following the 2026-10 strategy interceptor retirement, preventing root-owned host folder pollution. - Adaptive Execution:
install.shnow upgrades pip automatically before installing dependencies; systemd services properly inherit virtualenv binaries.
🛡️ 5. Strategy Execution & Physical Risk Pipeline
- Direct LLM Decision Seam: The model holds the decision right; the base layer strictly enforces physical geometric validity, margin caps, and atomic conditional protection.
- 7-Tier Quant Factor Matrix: T0 Funding/OI, T0.5 CVD Orderflow, T1 L2 Orderbook/OBI, T1.5 Options IV/Max Pain, T2 Term Basis, T3 VWAP/POC, T4 MACD Velocity/Acceleration & ADX.
- 2-Leg Scale-Out with 100% Cloud OCO Protection: TP1 executed via independent
reduceOnlyleg on the exchange matching engine; TP2 captures runners with trailing breakeven ratchets.
📖 6. Documentation Center Rewrite (Docs & OpenAPI)
- Complete 12-Chapter Rewrite of
/docs(DocsView.vue): Comprehensive technical manual covering quant philosophy, trading workstation, council debate, policy snapshots, prompt studio, physical validation, risk control, prompt caching, self-evolution, deployment, licensing, and FAQ. - Synchronized READMEs: English
README.mdand ChineseREADME.zh-CN.mdfully aligned with port8080and the latest v8.5.0 architecture.
🧪 7. 100% Passing Test Gates
Documentation claims and critical paths are guaranteed by automated regression gates:
- Frontend: 458 passed, 0 failed,
vue-tsctype-check clean, production bundle compiled. - Backend Tier 0 (Core Quant): 1,538 passed, 282 subtests passed.
- Backend Tier 1 (LLM & UI): 3,903 passed, 1,261 subtests passed.
- Backend Tier 2 (Audit & Invariants): 3,751 passed, 729 subtests passed.
- Total: Over 9,190+ backend tests and 450+ frontend tests passing 100%.
📦 Upgrade Guide
git pull origin main
./setup.sh # Optional: review or update credentials
# For Docker:
./deploy/docker-start.sh
# For Bare Metal:
sh deploy/install.sh && ./start.shAstraQuant v8.4.0: Obsidian-Emerald Workstation, Dynamic Sizing & Production Engine
🚀 AstraQuant v8.4.0: Obsidian-Emerald Workstation, Dynamic Sizing & Production Engine
AstraQuant v8.4.0 is a milestone release delivering an all-new Obsidian-Emerald visual brand identity, dynamic equity-proportional sizing, high-frequency prompt & risk suites, a live-only Strategy Plaza sharing endpoint, unified 3-source error center, and best-in-class bilingual documentation with updated high-resolution telemetry screenshots.
🌟 What's New in v8.4.0
1. 🖥️ Obsidian-Emerald Trading Workstation & Brand Upgrade
- Visual Identity: Upgraded to the new institutional Obsidian-Emerald design system (
#00E599emerald accent on deep obsidian slate) with the Concept C Astral Spark brand logo. - KLineChart v10 Native Candlestick Engine: High-fidelity candlestick chart rendering live BBO maker limit entry, multi-target TP1/TP2 brackets, trailing stop lines, and depth metrics with zero horizontal line truncation or mobile indicator clipping.
- Brand-New Landing Page: Introduced a modern, responsive showcase page at
/with real-time connectivity telemetry, features breakdown, and instant access to the trading desk.
2. ⚡ Dynamic Margin Sizing & Capital Allocation
- Pure Dynamic Equity Sizing: Completely eliminated historical fixed USD floors. All 1R risk budgets, single-trade margin bounds, cumulative account limits, and daily drawdown halts are now purely proportional to account equity ($1R = \text{min}(\text{cap}, \text{equity} \times 2.0%)$).
- Proportional Scaling: Seamless scaling from a 20 USDT demo trial to 10,000+ USDT institutional capital pools without configuration hacks.
-
Order Execution Mode: Prioritized order mode selection in
/admin/security, supporting both BBO Maker limit execution and instant Market orders.
3. 👥 Multi-Model Investment Committee & Fail-Closed Risk Pipeline
- Heterogeneous LLM Routing: Each committee seat independently binds to its own provider, model, and reasoning temperature (Claude 3.7 / DeepSeek-R1 / GPT-4o / Gemini).
- Thinking Budget Control: Global long-CoT reasoning budget support (10s to 1800s) with millisecond-grade failover across backup model chains on HTTP 429 / provider outages.
- 4 Factory Interceptor Gates: Non-bypassable physical Python risk pipeline (4H macro trend veto, entry confidence gate, 1H ADX chop filter, and 2.0R risk/reward floor). Fail-closed by design: any error or timeout unconditionally halts order entry.
4. 🌐 Three-Venue Equal Parity & Strategy Plaza
- OKX, Binance & Gate Parity: Equal status across all 3 venues with unified asset telemetry, native hedge-mode handling, and atomic conditional orders.
- Strategy Plaza Live Sharing: Introduced
/api/v1/public/plaza/profiletelemetry and one-click clone endpoint with a strict live-trading preflight guard (rejects demo mode) and physical zero-secret sanitization. - Admin Control: Granular privacy switches to conceal exact equity, trades history, or active positions while sharing strategy fingerprints.
5. 🧬 Closed-Loop Self-Evolution & 3-Source Error Center
- 6-Hour Heuristic Evolution: Mines closed-trade ledgers for win rate, profit factor, and attribution slices, distilling operational wisdom into long-term prompt memory with a 7–14 day sharpness half-life.
- Consolidated Error Center: Unified system logs under
/admin/decisionswith a dedicated 3-source Error Center aggregating trader daemon, FastAPI backend, and gateway scheduler errors. - Full Lifecycle Untruncated Ledger: Delivered untruncated trade lifecycle history with pagination support and all-time statistics.
6. 📖 Best-in-Class Documentation & Updated Visuals
- Comprehensive Bilingual Documentation: Completely rewritten README.md (English) and README.zh-CN.md (Chinese) covering core architecture, mathematical calculus dynamics, risk mechanics, and developer code maps.
- 15 Fresh Screenshots: Replaced legacy graphics with 15 crisp, high-resolution production screenshots captured directly from the live v8.4.0 environment.
🚀 Quick Start (60 Seconds)
git clone https://github.com/0xethanq/astra-quant-agent.git
cd astra-quant-agent
./deploy/docker-start.sh # Docker (recommended); for host install run ./deploy/install.sh| Surface | URL | Access |
|---|---|---|
| Trading Workstation | http://localhost:8080/trading (or /) |
Public |
| Admin Control Plane | http://localhost:8080/admin/login |
Default: admin |
| System Docs & API Specs | http://localhost:8080/docs |
Public |
- Official Website: https://www.astraquant.tech
- Community: LINUX DO (linux.do)
- Documentation: README.md · README.zh-CN.md · STANDALONE.md · RECOVERY_GUIDE.md
AstraQuant boots in paper / demo simulation mode by default. Real funds are touched only after you explicitly configure exchange credentials and switch to Live on /admin/security.
AstraQuant v8.3.1
🚀 AstraQuant v8.3.1
本仓库已于 2026-09 更名为 AstraQuant(原内部代号 R20)。本 release 对应
v8.3.1版本线:
内容是在 v8.3.0 之上的版本号收口;v8.3.1 之后的开发(品牌改名、注册通道、容器自愈等)
已随后续提交发布在main。
本版能力(继承自 v8.3.0 生产级基线)
- 三所平权撮合:OKX / Binance / Gate 直签执行,跨所持仓与保证金可见
- LLM 多智能体投委会:席位交叉质询 → CIO 采纳席位,逐单可溯源
- 17 项 fail-closed 硬风控:Python 拦截管线在风险触发时物理阻断下单
- 持仓保护腿全生命周期对账 + 孤儿挂单可观测性治理
- Docker 一键部署(
deploy/docker-start.sh)与宿主安装(deploy/install.sh)
获取与运行
git clone https://github.com/555cute/astra-quant-agent.git
cd astra-quant-agent
./deploy/docker-start.sh- 官网:https://astraquant.tech
- 部署与排错:
STANDALONE.md·
应急恢复:RECOVERY_GUIDE.md - 运行需要两套凭证:LLM Provider Key + 交易所 API Key(默认模拟盘,资金安全)
建议
main 分支已包含品牌改名后的完整状态,建议直接以 main 为准。
R20 Quantum Trader v8.3.0 · 生产级Docker一键部署、持仓保护全生命周期对账与周期可观测性加固
🚀 R20 Quantum Trader v8.3.0 核心更新说明
R20 Quantum Trader v8.3.0 是面向生产部署、跨交易所平权交易与高精度持仓保护审计的重磅升级版本。本次发版正式交付了全栈生产级 Docker 一键部署方案,并在多所持仓保护腿对账、孤儿挂单可观测性治理、周期运行透明披露与高可用架构门禁方面实现了质的跨越。
1. 🐳 生产级 Docker 与 Docker Compose 解耦编排一键部署
- 多阶段生产镜像(Multi-stage Build):
- 基于
node:20-slim编译 Vue 3 生产静态资源,自动构建并剥离所有前端开发工具链; - 基于
python:3.11-slim封装后端控制面与调度引擎,集成健康检查(Healthcheck)与北京时区原生支持;
- 基于
- 双服务解耦编排(
docker-compose.yml):backend:提供 FastAPI 控制面、前台操盘大屏与管理后台,暴露 8080 端口;gateway:专注于 15 分钟波段扫描、因子计算、AI 投委会调度与硬风控执行;
- 全量持久化与热修改回写支持:
- 持久化挂载
./data(实盘数据库与加密凭据)、./logs(日志)与./backups(夜间冷备份); - 首创针对 Docker 单文件 bind-mount 挂载点的 EBUSY 截断写入回退机制:彻底根治 Linux 容器挂载单文件时
os.replace报Device or resource busy的内核级限制,支持在管理后台随时热改风控与切换大模型并实时刷盘;
- 持久化挂载
- 启动引导与误挂载自愈:
- 提供
deploy/docker-start.sh,自动检测宿主机环境,防止裸敲 Compose 命令将.env误创建为空目录并自动规范权限。
- 提供
2. 🛡️ 跨所持仓保护全生命周期对账与孤儿单治理
- 持仓保护腿逐腿归属与可观测性披露:
- 针对 Binance / OKX / Gate,建立「交易所实况 × 本方台账」的逐腿精准归因模型;
- 明确隔离「已确认绑定的保护腿」、「归属不符的腿(方向/量语义分离)」与「无法归因的孤儿腿」;
- 操盘面板与管理后台可视化呈现保护腿类型(按标记价/最新价/指数价触发),原样透传不猜映射;
- 平仓收尾与孤儿单自动化安全清理:
- 周期平仓收尾时,自动撤销确认属于本方系统历史持仓的保护腿,从源头消灭死单;
- 提供带物理护栏的孤儿单撤销工具,严禁越界误撤手动单;
- 跨所保护巡检防抖(G8)与预演模式(Dry-run):
- 增加状态持续性防抖窗口,杜绝由于 API 瞬间网络抖动造成的频繁重复挂单;
- 支持仅报告不写单的纯演练审计模式。
3. 📊 15分钟扫描周期披露透明化与可观测性升级
- 开跑前只读形状预检:
- 扫描周期执行前对账户状态、各所连通性与标的池形状进行 warn-only 预检,将潜在隐患转化为清晰可查的显式警告;
- 周期跳过与未核验透明披露:
- 汇总每轮未触发下单的具体阻断原因(如宏观震荡不满足、ATR波幅不足等),不再静默空转;
- 跨进程
/metrics指标打通:- 周期披露、孤儿腿计数与风控健康度接入 Prometheus
/metrics端点,支持无侵入式生产告警。
- 周期披露、孤儿腿计数与风控健康度接入 Prometheus
4. 🧪 自动化测试与工程门禁保障
- 新增 100+ 项严格门禁测试:包含 Docker EBUSY 回退单测、受管子包一致性审计、文档路径真实性校验(存在即被跟踪);
- 全栈门禁验证:前端 411 项测试 + 后端 1100+ 项测试 100% 绿色通过。
v8.1.1: 修复工位沉浸模式无限下沉 Bug 与 Web 防黑屏缓存机制全链路加固
🚀 R20 Quantum Trader v8.1.1 核心更新说明
本版本为紧急质量与体验加固版本,彻底根治了工位沉浸模式下的界面持续下沉问题,并系统性建立了防黑屏、防缓存错位与错误自愈体系。
1. 🐞 修复工位沉浸模式“界面无限下沉”死循环缺陷
- 根因阻断:在图表容器上使用
min-h-0阻断 CSS Grid 单元反向撑大父容器高度的通道; - 重构弹性尺寸:
chartContainer在沉浸模式(chartHeight: 100%)下重构为flex-1 min-h-[340px] xl:min-h-0 overflow-hidden,大屏自适应吃满 Header 剩余空间且完全阻断 Canvas 溢出,窄屏保底 340px,彻底终止ResizeObserver扩张死循环; - 全屏与还原:全屏及退出全屏无缝平滑还原,高度精准锁定。
2. 🛡️ Web 缓存穿透与全链路防黑屏自愈体系
- 路由层智能破缓存重试:扩充
router.onError异常匹配正则,全面覆盖 Chrome / Safari / Firefox / 移动端 WebView 的动态切片加载失败;触发重试时自动附加_v=${Date.now()}时间戳强制穿透浏览器内存缓存与 CDN 缓存; - 全局根级 ErrorBoundary 错误边界:在 Vue 顶层使用
onErrorCaptured拦截组件树崩溃,彻底终结暗黑模式下无提示的纯黑屏视觉灾难,优雅降级呈现多语言告警卡片并提供一键刷新自愈入口; - 后端强力禁绝 HTML 缓存:所有分发前端 SPA 外壳的后端路由收口至
serve_vue_spa,统一返回严格的Cache-Control: no-cache, no-store, must-revalidate, max-age=0及Pragma、Expires头,阻断 ETag 协商缓存; - 字体加载异步化:优化 Google Fonts 外部依赖为
media="print" onload="this.media='all'",杜绝因外部网络抖动导致首屏渲染阻塞。
🧪 本版本已 100% 跑通前端 398 项单元/无障碍/视口测试与后端 856 项全套门禁。
v8.0.1: K线图交互体验与多所保证金契约优化
🚀 R20 Quantum Trader v8.0.1 发版说明
本版本为紧急交互体验与多所平权契约修复补丁版本,包含以下核心改进与修复:
📈 1. K 线工作站体验重构
- 解除 Y 轴机械绑架:彻底废除止盈线对 Y 轴坐标系的强行固定,K 线缩放回归基于可视窗口高低点的专业动态 Auto-fit,恢复行情的真实自然波动张力;
- 全屏与退出全屏体验修复:
- 修复全屏容器由于 CSS 变量缺失导致背景透明、与主页资产卡片重影透叠的严重缺陷,强制启用实底纯黑遮罩;
- 修复退出全屏后图表高度无法恢复卡死在全屏高度的问题,确保严格恢复 520px / 自适应高度;
- 全屏状态右上角提供醒目的「退出全屏」胶囊按钮,并支持
Escape键盘快捷键退出;
- K 线视觉密度优化:默认 K 线显示根数调整为之前的 3/4(单根蜡烛宽度扩大为 4/3),使蜡烛柱体更加饱满清晰、行情斜率更平滑舒适;
- 防遮挡呼吸区:右侧预留 75px~95px 呼吸缓冲区,有效避免急涨急跌行情下的最新 K 线与价格线胶囊撞车堆叠。
🛡️ 2. 量化底层与多所持仓契约校正
- 修复外所合约张数乘数 Bug:修复 Gate.io 永续合约张数与币数混淆导致的名义价值与保证金放大万倍问题,优先采纳交易所官方原生
notional/margin字段,校正保证金使用率爆表问题; - 自进化复盘枚举对齐:修复前台复盘自进化状态误将标准状态
ADD/REVISE判定为FAILED的枚举缺陷,建立权威解析事实源。
🧪 3. 门禁测试与代码健康
- 前端 398 项单测、后端 528 项单元与契约测试全量通过。
R20 Quantum Trader v8.0.0 · 全市场宏观体制自适应识别、深度思考链(CoT)心流与宽幅震荡官方预设体系
🚀 R20 Quantum Trader v8.0.0 正式发布
R20 Quantum Trader 是一套面向专业交易团队与量化交易员打造的多交易所平权量化决策与自动化执行操作系统。在 v8.0.0 架构跃迁中,系统深度融合了大语言模型(LLM)的宏观推理能力、因果微积分动力学矩阵与对冲基金 Trading Desk 投委会协同博弈机制,彻底打通**「市场体制自适应识别 ➔ 策略套件动态挂载 ➔ 投委会交叉质询 ➔ 底层物理风控硬拦截 ➔ 毫秒级多所执行 ➔ 实盘台账自进化」**的完整自主操盘大闭环。
1. 🌐 全市场宏观态势自适应识别引擎 (Market Regime Engine)
-
四态宏观体制动态研判:新增全市场态势识别引擎 (
scripts/calculus/regime.py),综合多标的微积分速度$v$ 、加速度$a$ 、定积分能量$E$ 与波动率偏态,自动研判当前大盘处于 单边趋势扩张 (TREND_EXPANSION)、宽幅震荡箱体 (WIDE_RANGE_OSCILLATION)、低波动收敛震荡 (LOW_VOL_CHOPPY) 还是 强波动脉冲冲击 (VOLATILITY_SHOCK); - 智能策略范式自适应匹配:告别“单边市跑网格被套、震荡市跑趋势被磨损”的传统困局,根据实时体制自适应匹配最优策略模版与风控预设;
-
标准化 9 大语义变量插槽:原生引入
{{market_regime}}全市场宏观体制插槽,并向下兼容自动注入{{market_matrix}}。
2. 🌊 深度思考链 (CoT) 心流与决策轨迹白盒化
- 宏观态势动态指示条:前台操盘轨迹面板原生集成大盘态势条,毫秒级透出宏观趋势分、波动分、震荡指数与主导力量;
- 展开式深度思考链 (CoT) 抽屉:彻底告别决策黑盒。前台完整折叠展现每笔发单/观望意图的形态结构、微积分特征、概率期望与大模型原始推演草稿;
- 席位交锋全链路可观测:支持穿透查看投委会多席位交叉质询与辩论证据。
3. 🛡️ 官方双旗舰预设套件体系 (Preset Suites)
- 出厂双旗舰套件发布:
- 🚀 「全维度波段强化版」(默认主策略):基于 1H~4H 宏观多空趋势、因果微积分动能共振、概率期望优先定性,给足波段呼吸空间,让利润充分奔跑;
- 🛡️ 「宽幅震荡箱体收割版」(应对高波动无序洗盘):针对高波动箱体震荡定制,严禁半山腰追价,在箱体上下轨边际高抛低吸,给足 2.2x ATR 宽止损隔绝假突破插针,浮盈 1.5R 稳固波段立即保本移损锁死胜率;
- 平滑兼容老用户:默认激活策略保持 stable,用户随时可在提示词工坊一键载入新套件。
4. 📱 前台操盘大屏与移动端响应式深度重构
- 移动端舆情情报重塑:彻底解决小屏下 Header 挤压单字断行与卡片错位,新增「收起/展开多空面板」折叠切换,直接露出快讯流首屏;
- 快讯体验提升:新增信源 Tab 横向轻滑与实时关键词/币种搜索过滤;
- 原生货币图标矩阵:新增主流币种高清矢量与精简图标资产库,提升仪表盘与工位质感;
- 严苛工程门禁:通过 392 项前端类型、A11y、设计 Token、双语对称性等自动化测试。
5. ⚙️ 全仓工程规范与全景文档升级
- 全套实机原图重构:全面更新根层
README.md与docs/PROMPT_GUIDE.md,同步更新 12 张 1080P 实机原图; - 全仓门禁保障:通过 1200+ 项后端审计、量化模型与风控拦截测试,保障生产环境高可靠运行。