<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fund-lab.git/src/FundLab.Api/MarketDataService.fs, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>http://git.somhairle.bid/fund-lab.git/atom?h=main</id>
<link rel='self' href='http://git.somhairle.bid/fund-lab.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.somhairle.bid/fund-lab.git/'/>
<updated>2026-09-21T19:25:00+00:00</updated>
<entry>
<title>Add real AKShare stock daily history probe slice (3d-19)</title>
<updated>2026-09-21T19:25:00+00:00</updated>
<author>
<name>Somhairle H. Marisol</name>
<email>muqiu-han@outlook.com</email>
</author>
<published>2026-09-21T19:25:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.somhairle.bid/fund-lab.git/commit/?id=7dd0e3f42105569b6e6ec02aeeec9b5a8bbd9dd3'/>
<id>urn:sha1:7dd0e3f42105569b6e6ec02aeeec9b5a8bbd9dd3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add real AKShare stock quote probe slice (3d-17)</title>
<updated>2026-09-21T18:13:04+00:00</updated>
<author>
<name>Somhairle H. Marisol</name>
<email>muqiu-han@outlook.com</email>
</author>
<published>2026-09-21T18:13:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.somhairle.bid/fund-lab.git/commit/?id=7da3c3d938e4b64a43963d602ab4a0a8c89f6f9e'/>
<id>urn:sha1:7da3c3d938e4b64a43963d602ab4a0a8c89f6f9e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add real AKShare bond quote probe slice (3d-14)</title>
<updated>2026-09-21T17:12:52+00:00</updated>
<author>
<name>Somhairle H. Marisol</name>
<email>muqiu-han@outlook.com</email>
</author>
<published>2026-09-21T17:12:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.somhairle.bid/fund-lab.git/commit/?id=3cc0b4dcfeed042e5a69628c6b7f45580ad1e2f9'/>
<id>urn:sha1:3cc0b4dcfeed042e5a69628c6b7f45580ad1e2f9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(api): EOF 阶段到期一律判定超时，恢复的载荷不得转为成功</title>
<updated>2026-09-20T19:12:09+00:00</updated>
<author>
<name>Somhairle H. Marisol</name>
<email>muqiu-han@outlook.com</email>
</author>
<published>2026-09-20T19:12:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.somhairle.bid/fund-lab.git/commit/?id=d870d67cd0dfe9d48205f16cb8fbcfc4bd5e0b05'/>
<id>urn:sha1:d870d67cd0dfe9d48205f16cb8fbcfc4bd5e0b05</id>
<content type='text'>
- 退出阶段与 EOF 阶段统一用 expired 标志：EOF 等待按剩余总期限计时，未完成读取且非请求取消即视为期限已过，即便清理宽限期回收了载荷也只返回超时错误
- EOF 等待挂接 deadline+请求 联合取消令牌，请求取消即刻中断等待；清理宽限期（2s）仅用于回收日志，不再影响结果分类
- 预先取消的请求不启动采集器进程
- 回归：孤儿管道持有至总期限→超时+后代死亡；EOF 等待中取消→延迟&lt;5s+后代死亡；预取消→无进程启动；保留成功/stderr 洪泛等原行为
- 验证：聚焦 ProcessCollector 11/11，全量 Domain 19 / Web 17 / API 32 通过（构建 0 警告）；实机挂起采集器 HTTP 503 2.3s 且无进程残留
</content>
</entry>
<entry>
<title>fix(api): 加固行情采集子进程超时、取消与进程组清理并脱敏错误</title>
<updated>2026-09-20T19:03:59+00:00</updated>
<author>
<name>Somhairle H. Marisol</name>
<email>muqiu-han@outlook.com</email>
</author>
<published>2026-09-20T19:03:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.somhairle.bid/fund-lab.git/commit/?id=ea3a5026ad76028562ee4aa6b70c79c94fb17d4b'/>
<id>urn:sha1:ea3a5026ad76028562ee4aa6b70c79c94fb17d4b</id>
<content type='text'>
- MarketDataService: setsid 独立会话启动采集器，硬超时覆盖子进程退出与管道 EOF 两个阶段；超时、取消与异常路径按进程组杀灭（含持有管道的后台子进程），不遗留孤儿进程
- App.ts/Search/RefreshNav 传入 ctx.RequestAborted，客户端断开即取消采集
- 对外错误仅返回统一短消息（503 MARKET_DATA_UNAVAILABLE 等），不泄露路径、stderr 或密钥；stderr 仅记录服务端日志
- 新增 9 项子进程回归（成功/stderr 洪泛/超时杀灭/取消杀灭/孤儿管道恢复/畸形载荷/非零退出/启动失败/缺脚本）与 HTTP 脱敏回归；全文套件 66 通过（Domain 19 / Web 17 / API 30）
- 实机验证：挂起采集器 503 2.4s 无进程残留；真实 akshare 1.18.96 搜索 000001 返回 200，净值刷新持久化 6010 条观测
- README 与 qa/README 补充环境变量、回归命令、G1 过滤断言口径与真实建档标签辨析
</content>
</entry>
<entry>
<title>feat(app): 接入 AKShare 行情采集、净值查询与前端净值曲线</title>
<updated>2026-09-20T17:40:10+00:00</updated>
<author>
<name>Somhairle H. Marisol</name>
<email>muqiu-han@outlook.com</email>
</author>
<published>2026-09-20T17:40:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.somhairle.bid/fund-lab.git/commit/?id=be1afd248e4cc9b03a1e21090602a945af6988b2'/>
<id>urn:sha1:be1afd248e4cc9b03a1e21090602a945af6988b2</id>
<content type='text'>
[变更性质]
- 本提交完成 3b 行情闭环：真实 AKShare 搜索与净值采集、PostgreSQL 持久化、鉴权 API 与 Fable 前端净值曲线展示。

[新增功能]
- API 新增 /api/instruments/search、/api/instruments/{code}/nav 与 nav/refresh 接口，经 Bearer 鉴权调用 AKShare Python 采集器并幂等落库。
- 前端提供基金搜索、精确代码选择、历史净值刷新/重读与 SVG 折线图，token 变更即清空私有结果并失效在途请求。

[实现方案]
- MarketData 以 requiredProperty 校验采集器 payload，净值观测按 (code, nav_date) 幂等 upsert 并保留来源与哈希。
- 前端以 requestId 序列守卫 SearchCompleted/SearchFailed/NavCompleted/NavFailed，TokenChanged 同时递增 searchSeq/navSeq 拒绝过期响应；边界解码兼容 F# option 的 {"case":"Some"} 线格式。

[影响范围]
- 新增 FundLab.Web.Tests（边界解码、序列失效、图表纯函数共 8 项），扩展 API 测试至 20 项；vite dev 代理 /api 至本地 API。
- 真实 AKShare 端到端依赖本机 akshare 环境，由负责人另行验收；本提交不包含 docs/overnight-progress.md 的现有修改。
</content>
</entry>
</feed>
