"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
docs: announce nine financial correctness fixes on October 19
Haozhe Wudf8f09cfb760
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 88091910f..aff75d6ac 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,31 @@ This project adheres to [Semantic Versioning](https://semver.org/).## [Unreleased]+### Maintenance — 2026-10-19++- Weight the newest observation most heavily in `decay_linear`, retaining+ causal windows and missing-data masks; update the affected synthetic GTJA+ regression fixture (#1912).+- Apply ordinary ChiNext/STAR limits to 301/689 codes and Beijing limits to+ 920 and historical 4/8 codes; resolve Beijing symbols correctly in Eastmoney+ search and Tushare fallbacks (#1913, #1914). Listing-day exemptions and ST+ status still require information beyond a stock code.+- Derive SEC Q4 values only for currency flows with matching units, never+ weighted-average shares, EPS or dimensionless ratios (#1917).+- Keep event-study fitting data before both the event and its measured window,+ including post-event windows and a zero estimation gap (#1920).+- Normalize Futu market-prefixed holdings for risk analysis and cross-broker+ aggregation, preserving share classes. Invalidate older portfolio snapshots+ so the next refresh rebuilds holdings under the corrected contract (#1922).+- Preserve at least four significant digits for nonzero MACD/Bollinger values,+ including tiny components beside larger values; retain ordinary-price+ rounding (#1925).+- Reject materially negative specific variances; retain the existing covariance+ tolerance of 1e-8 for rounding noise and non-finite input rejection (#1928).+- Normalize Yahoo `=X` and case-insensitive `.FX` aliases before looking up+ configured forex spreads and overnight swaps (#1930). Rate assumptions are+ unchanged; these are not live broker quotes.+### Maintenance — 2026-10-18- Preserve explicit zero financial-rigor parameters and hypothesis backtestdiff --git a/README.md b/README.mdindex b4a358322..71e654af4 100644--- a/README.md+++ b/README.md@@ -52,6 +52,8 @@> ⚠️ **Security warning:** The X account `VibeTrading_HKU`, Virtuals project `101845`, and token contract `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` are not official Vibe-Trading assets. We have never launched or endorsed any token or memecoin. Do not buy, connect a wallet, or sign anything. [Details](SECURITY.md#official-channels--impersonation).+- **2026-10-19** 🛠️ **Nine financial correctness fixes**: Correct recency weights in factor decay, A-share board limits and Beijing symbol routing, SEC Q4 flow derivation, and event-study estimation windows. Preserve Futu holdings identity and tiny MACD/Bollinger values; reject negative specific variances and apply pair-specific fees to Yahoo forex symbols ([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912), [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920), [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). See [CHANGELOG](CHANGELOG.md) for all nine fixes and limits.+- **2026-10-17** 🛠️ **Token usage and research reliability**: View LLM usage in Run Detail, chat and swarm ([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). Shared scheduling now powers research and optional background jobs ([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)); live scheduling is unchanged. Fix journal date/time pairing, evidence paths, factor ties, memory roots, numeric error handling and channel progress. See [CHANGELOG](CHANGELOG.md).- **2026-10-16** 🛠️ **Credential safety and financial correctness**: Scrub more channel/provider secrets ([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)), refresh cached local bars after source edits ([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)), and allocate reversal fees once ([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). Correct European journal amounts, strict JSON, zero/negative comparisons, holding periods, weight floors, plateau detection and report paths. See [CHANGELOG](CHANGELOG.md).diff --git a/README_ar.md b/README_ar.mdindex 0cef0b0da..c7d4e2217 100644--- a/README_ar.md+++ b/README_ar.md@@ -52,6 +52,8 @@> ⚠️ **تحذير أمني:** حساب X باسم `VibeTrading_HKU`، ومشروع Virtuals رقم `101845`، وعقد التوكن `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` كلّها غير رسمية ولا تتبع Vibe-Trading. لم نُطلق أو نؤيد مطلقًا أي توكن أو عملة ميم. لا تشترِ هذا التوكن، ولا تربط محفظتك، ولا توقّع أي شيء. [التفاصيل](SECURITY.md#official-channels--impersonation).+- **2026-10-19** 🛠️ **تسعة إصلاحات للحسابات المالية**: تصحيح أوزان اضمحلال العوامل، وحدود أسعار الأسهم الصينية A ورموز بورصة بكين، واشتقاق تدفقات الربع الرابع من بيانات SEC، ونوافذ التقدير لدراسات الأحداث. الحفاظ على هوية مراكز Futu وقيم MACD وBollinger الصغيرة، ورفض التباينات الخاصة السالبة، وتطبيق فروق الأسعار ورسوم التبييت الخاصة بكل زوج على رموز عملات Yahoo ([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912)، [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920)، [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). التفاصيل والقيود في [CHANGELOG](CHANGELOG.md).+- **2026-10-17** 🛠️ **استخدام الرموز وموثوقية البحث**: عرض استخدام النموذج في تفاصيل التشغيل والدردشة وswarm ([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). أصبحت مهام البحث والمهام الخلفية الاختيارية تستخدم مجدولًا مشتركًا ([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893))؛ لم تتغير جدولة التداول الفعلي. تشمل الإصلاحات دمج تاريخ ووقت سجل التداول، ومسارات الأدلة، وتعادل قيم العوامل، ومسارات الذاكرة، ومعالجة الأخطاء العددية، وتقدم القنوات. راجع [CHANGELOG](CHANGELOG.md).- **2026-10-16** 🛠️ **حماية بيانات الاعتماد وصحة الحسابات المالية**: توسيع إخفاء أسرار القنوات ومزوّدي النماذج ([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880))، وتحديث بيانات الأسعار المخزنة بعد تعديل المصدر المحلي ([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879))، ومنع احتساب رسوم عكس المركز مرتين ([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). إصلاح مبالغ سجل التداول بالتنسيق الأوروبي، وJSON الصارم، ومقارنات الصفر والقيم السالبة، وفترات الاحتفاظ، والحد الأدنى للأوزان، والقمم والقيعان المسطحة، ومسارات التقارير. راجع [CHANGELOG](CHANGELOG.md).diff --git a/README_es.md b/README_es.mdindex fdf6baf96..a2401c97f 100644--- a/README_es.md+++ b/README_es.md@@ -52,6 +52,8 @@> ⚠️ **Advertencia de seguridad:** la cuenta de X `VibeTrading_HKU`, el proyecto de Virtuals `101845` y el contrato de token `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` no son activos oficiales de Vibe-Trading. Nunca hemos lanzado ni respaldado ningún token o memecoin. No compres, conectes una wallet ni firmes nada. [Detalles](SECURITY.md#official-channels--impersonation).+- **2026-10-19** 🛠️ **Nueve correcciones de cálculos financieros**: Corregimos los pesos temporales de factores, los límites de precios de acciones A y los códigos de Pekín, la derivación de flujos del cuarto trimestre de la SEC y las ventanas de estimación de estudios de eventos. Conservamos la identidad de posiciones Futu y valores diminutos de MACD/Bollinger; rechazamos varianzas específicas negativas y aplicamos diferenciales y swaps por par a los símbolos de divisas de Yahoo ([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912), [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920), [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). Detalles y límites de las nueve correcciones en [CHANGELOG](CHANGELOG.md).+- **2026-10-17** 🛠️ **Uso de tokens y fiabilidad de la investigación**: Consulta el uso del modelo en el detalle de ejecución, el chat y swarm ([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). Un planificador común gestiona la investigación y las tareas opcionales en segundo plano ([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)); la planificación de operaciones reales no cambia. Corregimos fechas y horas del diario, rutas de evidencias, empates de factores, rutas de memoria, errores numéricos y progreso en canales. Véase [CHANGELOG](CHANGELOG.md).- **2026-10-16** 🛠️ **Protección de credenciales y cálculos financieros**: Ampliamos la ocultación de secretos de canales y proveedores ([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)), actualizamos la caché al modificar datos locales ([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)) y evitamos duplicar comisiones al invertir una posición ([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). Corregimos importes europeos, JSON estricto, comparaciones con cero y negativos, períodos de tenencia, pesos mínimos, máximos y mínimos planos y rutas de informes. Véase [CHANGELOG](CHANGELOG.md).diff --git a/README_id.md b/README_id.mdindex 2f09b27fa..0d88e2825 100644--- a/README_id.md+++ b/README_id.md@@ -53,6 +53,8 @@> ⚠️ **Peringatan keamanan:** Akun X `VibeTrading_HKU`, proyek Virtuals `101845`, dan kontrak token `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` bukan aset resmi Vibe-Trading. Kami tidak pernah meluncurkan atau mendukung token maupun memecoin apa pun. Jangan membeli, menghubungkan wallet, atau menandatangani apa pun. [Detail](SECURITY.md#official-channels--impersonation).+- **2026-10-19** 🛠️ **Sembilan perbaikan perhitungan keuangan**: Memperbaiki bobot peluruhan faktor, batas harga saham A dan kode Beijing, derivasi arus kuartal keempat SEC, serta jendela estimasi studi peristiwa. Mempertahankan identitas posisi Futu dan nilai MACD/Bollinger yang sangat kecil; menolak varians spesifik negatif dan menerapkan spread serta swap per pasangan pada simbol valas Yahoo ([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912), [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920), [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). Rincian sembilan perbaikan dan batasannya ada di [CHANGELOG](CHANGELOG.md).+- **2026-10-17** 🛠️ **Penggunaan token dan keandalan riset**: Lihat penggunaan model pada detail eksekusi, chat, dan swarm ([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). Penjadwal bersama kini menangani riset dan tugas latar belakang opsional ([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)); penjadwalan perdagangan live tidak berubah. Memperbaiki penggabungan tanggal/waktu jurnal, jalur bukti, nilai faktor yang sama, lokasi memori, penanganan kesalahan numerik, dan progres kanal. Lihat [CHANGELOG](CHANGELOG.md).- **2026-10-16** 🛠️ **Keamanan kredensial dan ketepatan perhitungan keuangan**: Memperluas penyamaran rahasia kanal dan penyedia model ([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)), memperbarui cache harga setelah data lokal diubah ([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)), dan mencegah penghitungan ganda biaya pembalikan posisi ([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). Memperbaiki angka jurnal berformat Eropa, JSON ketat, perbandingan nol dan negatif, periode kepemilikan, bobot minimum, deteksi puncak/lembah datar, serta jalur laporan. Lihat [CHANGELOG](CHANGELOG.md).diff --git a/README_ja.md b/README_ja.mdindex 39b6e0715..4f3e64f0a 100644--- a/README_ja.md+++ b/README_ja.md@@ -52,6 +52,8 @@> ⚠️ **セキュリティ警告:** Xアカウント `VibeTrading_HKU`、Virtualsプロジェクト `101845`、およびトークンコントラクト `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` は、いずれもVibe-Trading公式のものではありません。Vibe-Tradingはこれまで、いかなるトークンやミームコインも発行・公認していません。購入、ウォレットの接続、署名は行わないでください。[詳細](SECURITY.md#official-channels--impersonation)+- **2026-10-19** 🛠️ **金融計算の9件の修正**:因子の減衰ウェイト、A株の市場別値幅制限と北京銘柄コード、SEC第4四半期のフロー推計、イベント分析の推定期間を修正。Futu保有銘柄の識別と微小なMACD・ボリンジャーバンドの値を保持し、負の固有分散を拒否。Yahooの為替コードにも通貨ペア別スプレッドとスワップを適用します([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912)、[#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920)、[#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930))。全9件の詳細と制約は [CHANGELOG](CHANGELOG.md)。+- **2026-10-17** 🛠️ **Token 使用量とリサーチの信頼性**:実行詳細・チャット・swarm でモデル使用量を確認できます([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890))。リサーチと任意のバックグラウンドジョブに共通スケジューラを導入しました([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893))。実取引のスケジューラは変更していません。取引記録の日時結合、根拠ファイルのパス、因子の同値処理、メモリ保存先、数値エラー処理、チャネル進捗を修正。詳細は [CHANGELOG](CHANGELOG.md)。- **2026-10-16** 🛠️ **認証情報の保護と金融計算の修正**:チャネル・モデルの認証情報のマスキングを拡充([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880))、ローカルデータ更新後の価格キャッシュを更新([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879))、ドテン売買の手数料の二重計上を修正([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891))。欧州形式の取引金額、厳密な JSON、ゼロ・負値の比較、保有期間、最低ウェイト、横ばいの高値・安値判定、レポートのパスも修正。[CHANGELOG](CHANGELOG.md) を参照。diff --git a/README_ko.md b/README_ko.mdindex 71db25008..038bb3316 100644--- a/README_ko.md+++ b/README_ko.md@@ -52,6 +52,8 @@> ⚠️ **보안 경고:** X 계정 `VibeTrading_HKU`, Virtuals 프로젝트 `101845`, 토큰 컨트랙트 `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4`는 모두 Vibe-Trading 공식과 무관합니다. Vibe-Trading은 어떠한 토큰이나 밈코인도 발행하거나 공식적으로 지지한 적이 없습니다. 해당 토큰을 구매하거나 지갑을 연결하거나 어떠한 서명도 하지 마세요. [자세히 보기](SECURITY.md#official-channels--impersonation).+- **2026-10-19** 🛠️ **금융 계산 오류 9건 수정**: 팩터 감쇠 가중치, A주 시장별 가격 제한과 베이징 종목 코드, SEC 4분기 유량 추정, 이벤트 연구 추정 기간을 수정했습니다. Futu 보유 종목 식별과 작은 MACD·볼린저 밴드 값을 보존하고 음의 고유 분산을 거부합니다. Yahoo 외환 코드에도 통화쌍별 스프레드와 스왑을 적용합니다([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912), [#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920), [#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930)). 전체 9건과 제한 사항은 [CHANGELOG](CHANGELOG.md)를 참고하세요.+- **2026-10-17** 🛠️ **Token 사용량과 리서치 신뢰성**: 실행 상세·채팅·swarm에서 모델 사용량을 확인할 수 있습니다([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890)). 리서치와 선택적 백그라운드 작업에 공통 스케줄러를 적용했으며([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)), 실거래 스케줄러는 변경하지 않았습니다. 거래 일지 날짜·시간 결합, 근거 파일 경로, 팩터 동률 처리, 메모리 저장 경로, 수치 오류 처리와 채널 진행 표시를 수정했습니다. [CHANGELOG](CHANGELOG.md)를 참조하세요.- **2026-10-16** 🛠️ **인증 정보 보호와 금융 계산 수정**: 채널·모델 인증 정보 마스킹을 확대하고([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)), 로컬 데이터 수정 후 가격 캐시를 갱신하며([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)), 포지션 전환 수수료 중복 계산을 수정했습니다([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891)). 유럽식 거래 금액, 엄격한 JSON, 0·음수 비교, 보유 기간, 최소 비중, 평평한 고점·저점 판정, 보고서 경로도 수정했습니다. [CHANGELOG](CHANGELOG.md)를 참조하세요.diff --git a/README_zh.md b/README_zh.mdindex 20e554d17..6b6b9a6d4 100644--- a/README_zh.md+++ b/README_zh.md@@ -52,6 +52,8 @@> ⚠️ **安全警告:** X 账号 `VibeTrading_HKU`、Virtuals 项目 `101845` 及代币合约 `0x640BDBF77b6447E8b7DB7894cED84BD1c40571f4` 均非 Vibe-Trading 官方。我们从未发行或背书任何代币或 meme 币。请勿购买、连接钱包或签名。[详细说明](SECURITY.md#official-channels--impersonation)。+- **2026-10-19** 🛠️ **九项金融计算修复**:纠正因子衰减的新旧数据权重、A 股板块涨跌幅与北交所代码识别、SEC 第四季度流量推导及事件研究估计窗口。保留富途持仓代码身份和极小 MACD/布林带数值;拒绝负特异方差,让 Yahoo 外汇代码使用对应货币对的点差与隔夜费([#1912](https://github.com/HKUDS/Vibe-Trading/pull/1912)、[#1920](https://github.com/HKUDS/Vibe-Trading/pull/1920)、[#1930](https://github.com/HKUDS/Vibe-Trading/pull/1930))。完整九项修复与限制见 [CHANGELOG](CHANGELOG.md)。+- **2026-10-17** 🛠️ **Token 用量与研究可靠性**:运行详情、聊天和 swarm 展示模型用量([#1890](https://github.com/HKUDS/Vibe-Trading/pull/1890))。研究任务与可选后台任务采用共享调度内核([#1893](https://github.com/HKUDS/Vibe-Trading/pull/1893)),实盘调度保持不变。修复交易日志日期时间配对、证据路径、因子并列值、记忆目录、数值错误处理与渠道进度。详见 [CHANGELOG](CHANGELOG.md)。- **2026-10-16** 🛠️ **凭据安全与金融计算修复**:扩大渠道及模型凭据脱敏覆盖([#1880](https://github.com/HKUDS/Vibe-Trading/pull/1880)),本地数据修改后刷新行情缓存([#1879](https://github.com/HKUDS/Vibe-Trading/pull/1879)),反向开仓手续费只计一次([#1891](https://github.com/HKUDS/Vibe-Trading/pull/1891))。修正欧洲格式交易金额、严格 JSON、零值及负值比较、持仓周期、最低权重、平台型峰谷识别与报告路径。详见 [CHANGELOG](CHANGELOG.md)。