mirror of
https://github.com/laoxong/nofx.git
synced 2026-06-04 09:58:22 +08:00
fix(stats): fixed the PNL calculation (#963)
This commit is contained in:
@@ -36,6 +36,7 @@ type AccountSnapshot struct {
|
||||
TotalUnrealizedProfit float64 `json:"total_unrealized_profit"`
|
||||
PositionCount int `json:"position_count"`
|
||||
MarginUsedPct float64 `json:"margin_used_pct"`
|
||||
InitialBalance float64 `json:"initial_balance"` // 记录当时的初始余额基准
|
||||
}
|
||||
|
||||
// PositionSnapshot 持仓快照
|
||||
|
||||
Reference in New Issue
Block a user