15 lines
930 B
PowerShell
15 lines
930 B
PowerShell
# ak_quarter_wrapper.ps1 — sanguo-ak-quarter schtask wrapper (财报季月首个周六 02:00 akshare 三表+预告/快报 --force)
|
||
# balance+income+cashflow+forecast+express; per-stock 全量(5500×5表)单趟 20h+,
|
||
# 只能周末跑 (2026-09-01 事故: 月内1号02:00 起 7.5h 夜窗装不下, 洗库穿交易日,
|
||
# 09:32 决策窗撞 balance/income vintage 撕裂; 首个周六起跑周一 09:30 前有 55h 跑道)
|
||
$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_quarter_$ts.txt"
|
||
C:\Python310\python.exe -X utf8 C:\sanguo_vnpy_v2\scripts\data_platform\akshare_static_download.py --types balance,income,cashflow,forecast,express --force *>> $log
|
||
exit $LASTEXITCODE
|