Skip to content

复用现有 probe 原生持仓读取补齐归档库存 - #610

Merged
Pigbibi merged 2 commits into
mainfrom
codex/website-stock-inventory-20261025
Oct 25, 2026
Merged

Pigbibi merged 2 commits into
mainfrom
codex/website-stock-inventory-20261025

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

长桥现有 scheduler_archive 生产通道只归档余额和现金,持仓库存没有进入历史对象;原候选仅覆盖独立 GET 通道。现在复用原 probe 周期的一次原生 stock_positions 读取,在策略筛选前投影完整股票代码、数量和币种,并让后续组合计算复用同一响应或失败。已知余额继续保留,未知库存不写成空仓;真实空仓带完整标记,市值保持未知,丢弃成本、账户通道和其他私有字段。

归档消费同时接受并严格验证可选 stocks_only 库存组,原来源绑定、时间窗口、对象路径和上传限制保持。318 项相关测试、24 子测试、Ruff 与 diff 检查通过,包含真实 probe 单次读取、策略筛选与完整库存分离、未知/空仓、私有字段去除和归档往返。尚未部署或完成真实库存同步。

…erver

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi marked this pull request as draft October 24, 2026 19:21
Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi Pigbibi changed the title 通过既有独立观察器投递明确的股票库存 复用现有 probe 原生持仓读取补齐归档库存 Oct 25, 2026
@Pigbibi
Pigbibi marked this pull request as ready for review October 25, 2026 01:35
@Pigbibi
Pigbibi merged commit 05fd5c7 into main Oct 25, 2026
1 check passed
@Pigbibi
Pigbibi deleted the codex/website-stock-inventory-20261025 branch October 25, 2026 01:37
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.

1 participant