feat(portfolio): 支持显示已清仓历史持仓,增加防乱码 CSV 导出功能

This commit is contained in:
2026-05-02 15:04:56 +08:00
parent 2570144112
commit 3e81c1dc5b
4 changed files with 84 additions and 9 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ function getTodayInShanghai(): string {
}
export async function recordDailySnapshot() {
const positions = await getPortfolioPositions();
const positions = await getPortfolioPositions(false);
// 统一使用 engine 输出的 marketValueCny / accumulatedPnlCny
const totalValueCny = positions.reduce(