From af837ea2374d464f4b0f6b9b71d9aba4d4fb2018 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 6 Dec 2021 13:36:38 +0800 Subject: [PATCH] do not omit empty for field feeInUSD --- pkg/accounting/pnl/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/accounting/pnl/report.go b/pkg/accounting/pnl/report.go index 9693a3cff..b9e7e56f9 100644 --- a/pkg/accounting/pnl/report.go +++ b/pkg/accounting/pnl/report.go @@ -26,7 +26,7 @@ type AverageCostPnlReport struct { AverageCost float64 `json:"averageCost"` BuyVolume float64 `json:"buyVolume,omitempty"` SellVolume float64 `json:"sellVolume,omitempty"` - FeeInUSD float64 `json:"feeInUSD,omitempty"` + FeeInUSD float64 `json:"feeInUSD"` Stock float64 `json:"stock"` CurrencyFees map[string]float64 `json:"currencyFees"` }