Repository navigation
复用现有 probe 原生持仓读取补齐归档库存 - #610
Merged
Merged
Conversation
…erver Co-Authored-By: Codex <noreply@openai.com>
Pigbibi
marked this pull request as draft
October 24, 2026 19:21
Co-Authored-By: Codex <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
长桥现有 scheduler_archive 生产通道只归档余额和现金,持仓库存没有进入历史对象;原候选仅覆盖独立 GET 通道。现在复用原 probe 周期的一次原生 stock_positions 读取,在策略筛选前投影完整股票代码、数量和币种,并让后续组合计算复用同一响应或失败。已知余额继续保留,未知库存不写成空仓;真实空仓带完整标记,市值保持未知,丢弃成本、账户通道和其他私有字段。
归档消费同时接受并严格验证可选 stocks_only 库存组,原来源绑定、时间窗口、对象路径和上传限制保持。318 项相关测试、24 子测试、Ruff 与 diff 检查通过,包含真实 probe 单次读取、策略筛选与完整库存分离、未知/空仓、私有字段去除和归档往返。尚未部署或完成真实库存同步。