# ak_eod_wrapper.ps1 — sanguo-ak-eod schtask wrapper (daily 19:00 akshare 估值+财务摘要 --force) # per-stock marker 是 symbol 级, --force 才能刷新当日新数据; 5500股×2×0.8s≈2.5h 夜间 $env:http_proxy = '' $env:https_proxy = '' $env:all_proxy = '' Set-Location C:\sanguo_vnpy_v2 $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_eod_$ts.txt" C:\Python310\python.exe -X utf8 C:\sanguo_vnpy_v2\scripts\data_platform\akshare_static_download.py --types valuation,financial_abstract --force *>> $log exit $LASTEXITCODE