Files
sanguo_vnpy_v2/scripts/data_platform/ak_eod_wrapper.ps1
T

17 lines
944 B
PowerShell

# ak_eod_wrapper.ps1 — sanguo-ak-eod schtask wrapper (daily 19:00 akshare 估值 --force)
# per-stock marker 是 symbol 级, --force 才能刷新当日新数据; 5500股×0.8s≈1.2h 夜间
# 2026-09-16 (user-approved batch): financial_abstract 移至 ak-weekly (Sat 03:00
# ak_stock_wrapper) — sina quotes.sina.cn throttles the nightly 5.5k burst
# (30-circuit FATAL rc=2 on 09-14/15); quarterly data, weekly cadence is
# enough and cuts sina exposure ~87%.
$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 --force *>> $log
exit $LASTEXITCODE