From 61421de1d98b76f659782d5d8c57146afc57ec82 Mon Sep 17 00:00:00 2001 From: claude_dev Date: Thu, 20 Aug 2026 12:58:20 +0800 Subject: [PATCH] =?UTF-8?q?chore(data):=20bs=5Ffund=5Fwrapper.ps1=E2=80=94?= =?UTF-8?q?=E2=80=94sanguo-bs-fund=20schtask=2023:05=20wrapper(=E9=95=9C?= =?UTF-8?q?=E5=83=8F=20bs=5Feod=5Fwrapper:=E6=B8=85=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E7=9B=B4=E8=BF=9E=E9=93=81=E5=BE=8B+=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=9B=AE=E5=BD=95+=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=A0=81=E9=80=8F=E4=BC=A0),=E8=B7=91=20baostock=20=E5=AD=A3?= =?UTF-8?q?=E9=A2=91=E8=B4=A2=E5=8A=A1+=E4=B8=9A=E7=BB=A9=E6=8A=A5?= =?UTF-8?q?=E5=91=8A(bs=5Ffundamentals.py,=E6=95=B0=E6=8D=AEsession=20P1+P?= =?UTF-8?q?2+P3);wrapper=20=E9=9A=8F=E6=9C=ACcommit=E8=BF=9Brepo,schtask?= =?UTF-8?q?=20=E5=BD=93=E5=9C=BA=E5=9C=A8VPS=E5=BB=BA(23:05,SYSTEM/HIGHEST?= =?UTF-8?q?,=E5=90=8Cbs-eod=E5=8F=82=E6=95=B0),run707=E5=B7=B2=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E8=84=9A=E6=9C=AC=E6=9C=AC=E4=BD=93=20[vps]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/data_platform/bs_fund_wrapper.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/data_platform/bs_fund_wrapper.ps1 diff --git a/scripts/data_platform/bs_fund_wrapper.ps1 b/scripts/data_platform/bs_fund_wrapper.ps1 new file mode 100644 index 0000000..e9458ec --- /dev/null +++ b/scripts/data_platform/bs_fund_wrapper.ps1 @@ -0,0 +1,13 @@ +# bs_fund_wrapper.ps1 — sanguo-bs-fund schtask wrapper (23:05 baostock 季频财务+业绩报告) +# 数据补全 P1+P2+P3: profit/dupont 季频回灌+增量 + forecast/express 业绩预告快报 +# -> parquet data/fundamentals_baostock/ (读侧按 pubDate<=date 过滤防前视) +$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 "bs_fund_$ts.txt" +C:\Python310\python.exe -X utf8 C:\sanguo_vnpy_v2\scripts\data_platform\bs_fundamentals.py *>> $log +exit $LASTEXITCODE