feat(ak): ak-weekly 周六档追加 margin 全史回补兜底+退役僵尸 northbound——深北段TMC最近两日块窗的旧缺口每周六整段翻页幂等补齐;northbound(EM个股北向持股2024-08已下线)每周2883空跑单位移除,北向转HKEX官方渠道(spec §20.4) [vps]
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# ak_stock_wrapper.ps1 — sanguo-ak-weekly schtask wrapper (weekly 周六03:00 akshare per-stock 慢)
|
||||
# --force 全量刷新; 顺序=gdhs,share_capital,top_holders,northbound (09-06 调序:
|
||||
# 09-05 northbound 1117/2883 无数据标的连败触发断路器, 饿死后续 3 类型——
|
||||
# 最大最险的 northbound 挪最后, 即使再断路也不连累前面);
|
||||
# --force 全量刷新; 顺序=gdhs,share_capital,top_holders (09-06 调序把最大最险的挪最后;
|
||||
# 2026-09-12 移除 northbound: EM 沪深港通个股持股 2024-08 后已全量下线,
|
||||
# 每周六 2883 单位全空跑纯烧时——北向改 HKEX 官方渠道, 见融合 spec §20.4);
|
||||
# gdhs=股东户数 per-period 全市场单次 (09-02 入列, 披露守卫>90天季度末, marker 去重无新期零网络)
|
||||
# margin 回补兜底 (2026-09-12 §20): 深北段 TMC 只保留最近两日块, nightly
|
||||
# T-2~T 窗漏的旧缺口每周六整段翻页幂等补齐 (state 断点续传)
|
||||
$env:http_proxy = ''
|
||||
$env:https_proxy = ''
|
||||
$env:all_proxy = ''
|
||||
@@ -11,5 +13,9 @@ $ts = Get-Date -Format 'yyyyMMdd_HHmmss'
|
||||
$logDir = 'C:\sanguo_vnpy_v2\data\migration_logs'
|
||||
if (-not (Test-Path $logDir)) { New-Item -ItemType Directory -Path $logDir -Force | Out-Null }
|
||||
$log = Join-Path $logDir "ak_stock_$ts.txt"
|
||||
C:\Python310\python.exe -X utf8 C:\sanguo_vnpy_v2\scripts\data_platform\akshare_static_download.py --types gdhs,share_capital,top_holders,northbound --force *>> $log
|
||||
exit $LASTEXITCODE
|
||||
C:\Python310\python.exe -X utf8 C:\sanguo_vnpy_v2\scripts\data_platform\akshare_static_download.py --types gdhs,share_capital,top_holders --force *>> $log
|
||||
$rc1 = $LASTEXITCODE
|
||||
$bfLog = Join-Path $logDir "margin_backfill_$ts.txt"
|
||||
C:\Python310\python.exe -X utf8 C:\sanguo_vnpy_v2\scripts\data_platform\akshare_static_download.py --margin-backfill *>> $bfLog
|
||||
$rc2 = $LASTEXITCODE
|
||||
if ($rc1 -ne 0 -or $rc2 -ne 0) { exit 1 } else { exit 0 }
|
||||
|
||||
Reference in New Issue
Block a user