Skip to content

fix(data): 收口 A 股 Baostock venue 迁移 - #150

Merged
mirror29 merged 4 commits into
mainfrom
fix/baostock-venue-migration
Jul 23, 2026
Merged

fix(data): 收口 A 股 Baostock venue 迁移#150
mirror29 merged 4 commits into
mainfrom
fix/baostock-venue-migration

Conversation

@mirror29

@mirror29 mirror29 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • 统一 A 股 canonical identity 为 baostock + sh./sz.六码代码,兼容旧 akshare 与 Yahoo 后缀输入。
  • A 股行情和最新价改走腾讯 HTTPS,保留 Baostock 的财报、交易日历和指数成分能力;修复历史窗口、不复权价格与成交量单位。
  • 新增历史 bars symbol 规范化 migration、跨服务兼容回归测试、factor 鉴权 fixture 和 Python pytest CI。

Test plan

  • uv run --directory services/data pytest -q -m 'not integration'(154 passed)
  • uv run --directory services/data pytest -q -m integration tests/test_migration_0036.py(1 passed)
  • uv run --directory services/factor pytest -q -m 'not integration'(174 passed)
  • uv run --directory services/paper pytest -q tests/test_pool.py::test_noop_runs_in_subprocess(1 passed)
  • pnpm -C packages/orchestration run typecheck
  • pnpm -C packages/orchestration exec vitest run tests/sandbox.test.ts tests/workflows.hello.test.ts(39 passed)
  • bash scripts/check-consistency.sh

Notes

完整 paper 非集成 suite 曾有一次 test_noop_runs_in_subprocess 在本机 spawn worker 超时;单独复跑通过。完整 orchestration suite 曾出现已有的 sandbox 墙钟/进程负载 flaky,相关文件定向复跑通过。

🤖 Generated with Claude Code

mirror29 and others added 4 commits July 23, 2026 15:34
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Review base: c9f603a

🤖 GLM-5.2 PR Review

⚠️ review 未完成:GLM API 调用失败:IncompleteRead(13945 bytes read, 11 more expected)

@mirror29 mirror29 changed the title fix(data): 修复 A 股实时行情与市场身份 fix(data): 收口 A 股 Baostock venue 迁移 Jul 23, 2026
@mirror29
mirror29 force-pushed the fix/baostock-venue-migration branch from fbed3c0 to 929b981 Compare July 23, 2026 08:55
@mirror29
mirror29 merged commit d5e0e20 into main Jul 23, 2026
19 checks passed
@mirror29
mirror29 deleted the fix/baostock-venue-migration branch July 23, 2026 09:00
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