From 4bd856ab8ddaf8e6bfbca520c44c1fd518c81c0a Mon Sep 17 00:00:00 2001 From: claude_dev Date: Thu, 10 Sep 2026 19:06:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(data):=20xt=5Feod=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=85=BF=E5=88=87=E5=A4=A7QMT=E6=A1=A5=E2=80=94=E2=80=94wrappe?= =?UTF-8?q?r=E6=B3=A8=E5=85=A5xtquant=5Fbridge=20PYTHONPATH+redis=E5=87=AD?= =?UTF-8?q?=E8=AF=81env,=E6=9B=BF=E4=BB=A3=E5=B7=B2=E6=AD=BB=E7=9A=84mini?= =?UTF-8?q?=E6=A0=8858610=20[vps]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 背景: miniQMT 58610 IPythonApiServer 自 09-09 误杀后不再自启(isAutoBind实验无效), xt_eod连续断粮;桥shim(xtquant_compat)全量覆盖xt_eod所需函数 - 坑: PS5.1对无BOM文件按ANSI/GBK解析——wrapper含中文注释时多字节字符错位可吃掉 后续语句行(PYTHONPATH行被注释->仍走site-packages原版xtquant),故wrapper强制ASCII - 实测: universe 2264+39/下载ok/入库ok=400 empty=0 fail=0 rows=9200进行中 --- scripts/data_platform/xt_eod_wrapper.ps1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/data_platform/xt_eod_wrapper.ps1 b/scripts/data_platform/xt_eod_wrapper.ps1 index 89edbb6..ad82a60 100644 --- a/scripts/data_platform/xt_eod_wrapper.ps1 +++ b/scripts/data_platform/xt_eod_wrapper.ps1 @@ -1,5 +1,13 @@ -# xt_eod_wrapper.ps1 — sanguo-xt-eod schtask wrapper (18:40 xtata ETF/基金 EOD 增量) -# 方案A: ETF/基金(baostock 盲区) -> dbbardata('d') +# xt_eod_wrapper.ps1 - sanguo-xt-eod schtask wrapper (21:00 xtdata ETF/fund EOD increment) +# plan A: ETF/fund (baostock blind zone) -> dbbardata('d') +# 2026-09-10 data leg switch: xtquant via big-QMT redis bridge shim +# (xtquant_bridge PYTHONPATH -> in-process full market data). Replaces the dead +# miniQMT 58610 standalone service (IPythonApiServer stopped self-starting after +# the 09-09 accidental kill; root cause unresolved). +# NOTE: keep this file ASCII-only (PS 5.1 reads no-BOM files as ANSI/GBK). +$env:PYTHONPATH = 'C:\sanguo_bigqmt\xtquant_bridge;C:\sanguo_vnpy_v2;C:\sanguo_vnpy_v2\vnpy_v4.4.0;C:\sanguo_vnpy_v2\vnpy_qmt_v0.3.3' +$env:BIGQMT_ACCOUNT_ID = '66639661' +$env:BIGQMT_REDIS_PASSWORD = (Select-String -Path 'C:\redis\redis.conf' -Pattern '^requirepass\s+(\S+)' | ForEach-Object { $_.Matches[0].Groups[1].Value }) Set-Location C:\sanguo_vnpy_v2 $ts = Get-Date -Format 'yyyyMMdd_HHmmss' $logDir = 'C:\sanguo_vnpy_v2\data\migration_logs'