From e67fa1932370289f96ad897be7cbb0439c16b7a0 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 27 Nov 2023 17:56:57 +0800 Subject: [PATCH] types: extend PeriodProfitStats fields --- pkg/types/profit.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkg/types/profit.go b/pkg/types/profit.go index eb4d998ac..cca988414 100644 --- a/pkg/types/profit.go +++ b/pkg/types/profit.go @@ -155,9 +155,14 @@ type PeriodProfitStats struct { GrossProfit fixedpoint.Value `json:"grossProfit,omitempty"` GrossLoss fixedpoint.Value `json:"grossLoss,omitempty"` Volume fixedpoint.Value `json:"volume,omitempty"` - LastTradeTime time.Time `json:"lastTradeTime,omitempty"` - StartTime time.Time `json:"startTime,omitempty"` - EndTime time.Time `json:"endTime,omitempty"` + VolumeInQuote fixedpoint.Value `json:"volumeInQuote,omitempty"` + MakerVolume fixedpoint.Value `json:"makerVolume,omitempty"` + TakerVolume fixedpoint.Value `json:"takerVolume,omitempty"` + + // time fields + LastTradeTime time.Time `json:"lastTradeTime,omitempty"` + StartTime time.Time `json:"startTime,omitempty"` + EndTime time.Time `json:"endTime,omitempty"` } type ProfitStats struct {