fix: fund overview history starts from 2026-06-09

Add HUB_FUND_HISTORY_START_DAY so curves and drawdown exclude snapshots before the baseline trading day.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-10 16:58:57 +08:00
parent 77c7bbbb13
commit ba629ea0ee
7 changed files with 71 additions and 9 deletions
+2 -1
View File
@@ -215,7 +215,8 @@
const parts = [
"交易日 " + (data.trading_day || "—"),
"切日 " + (data.reset_hour != null ? data.reset_hour : 8) + ":00 北京",
"历史 " + (data.keep_days || 180) + " ",
" " + (data.history_start_day || "2026-06-09") + " ",
"最多 " + (data.keep_days || 180) + " 交易日",
];
if (data.updated_at) parts.push("刷新 " + data.updated_at);
if (totals.live_known_count != null) {