fix(ui): 修复现价变量映射错误,修正负收益绿色显示丢失负号的 Bug
This commit is contained in:
@@ -37,6 +37,7 @@ interface Position {
|
||||
floatingPnlPercent: string;
|
||||
cumulativePnlNative: string;
|
||||
cumulativePnlPercent: string;
|
||||
latestPrice: string;
|
||||
transactions: TransactionRecord[];
|
||||
}
|
||||
|
||||
@@ -399,6 +400,7 @@ export async function getPortfolioPositions(): Promise<Position[]> {
|
||||
floatingPnlPercent: floatingPnlPercent.toString(),
|
||||
cumulativePnlNative: cumulativePnlNative.toString(),
|
||||
cumulativePnlPercent: cumulativePnlPercent.toString(),
|
||||
latestPrice: holding.latestPrice,
|
||||
transactions: holding.transactions,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user