|
|
@@ -39,6 +39,7 @@ export const useAccountStore = defineStore(() => {
|
|
|
profitLoss: number; // 浮动盈亏
|
|
|
hazardValue: number; // 风险净值
|
|
|
hazardRatio: number; // 风险率
|
|
|
+ liquidationRate: number; // 斩仓率
|
|
|
hazardRatioColor: string; // 风险率颜色
|
|
|
})[] = []
|
|
|
|
|
|
@@ -128,6 +129,9 @@ export const useAccountStore = defineStore(() => {
|
|
|
hazardRatioColor = 'g-risk-red'
|
|
|
}
|
|
|
|
|
|
+ // 计算斩仓率 任务 #5808
|
|
|
+ const liquidationRate = cutriskratio ? hazardRatio / cutriskratio : 0
|
|
|
+
|
|
|
result.push({
|
|
|
...item,
|
|
|
freezeMargin,
|
|
|
@@ -136,7 +140,8 @@ export const useAccountStore = defineStore(() => {
|
|
|
profitLoss,
|
|
|
hazardValue,
|
|
|
hazardRatio,
|
|
|
- hazardRatioColor
|
|
|
+ hazardRatioColor,
|
|
|
+ liquidationRate
|
|
|
})
|
|
|
})
|
|
|
|