types: extend PeriodProfitStats fields

This commit is contained in:
c9s 2023-11-27 17:56:57 +08:00
parent df2daf33a7
commit e67fa19323
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -155,6 +155,11 @@ type PeriodProfitStats struct {
GrossProfit fixedpoint.Value `json:"grossProfit,omitempty"`
GrossLoss fixedpoint.Value `json:"grossLoss,omitempty"`
Volume fixedpoint.Value `json:"volume,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"`