feat(portfolio): 支持显示已清仓历史持仓,增加防乱码 CSV 导出功能
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user