mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-09 05:51:01 +08:00
fix(stats): fixed the PNL calculation (#963)
This commit is contained in:
@@ -48,6 +48,7 @@ type PositionInfo struct {
|
||||
type AccountInfo struct {
|
||||
TotalEquity float64 `json:"total_equity"` // 账户净值
|
||||
AvailableBalance float64 `json:"available_balance"` // 可用余额
|
||||
UnrealizedPnL float64 `json:"unrealized_pnl"` // 未实现盈亏
|
||||
TotalPnL float64 `json:"total_pnl"` // 总盈亏
|
||||
TotalPnLPct float64 `json:"total_pnl_pct"` // 总盈亏百分比
|
||||
MarginUsed float64 `json:"margin_used"` // 已用保证金
|
||||
|
||||
Reference in New Issue
Block a user