28d1606947
5 wrapper(ak_eod daily19:00估值+财务摘要/ak_quarter财报季三表+预告快报/ ak_events daily19:30龙虎榜+大宗+两融+解禁 per-date当日/ak_stock weekly周六 北向+股本+十大股东/index_monthly 16号成份股3源+migrate+merge)+register_akshare _schtasks(/m APR,MAY,SEP,NOV财报季)+verify_akshare_e2e; 均unset proxy+夜间避封IP
13 lines
702 B
PowerShell
13 lines
702 B
PowerShell
# 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
|