improve/profitStatsTracker: temporarily remove lines relate to time in profit stats

This commit is contained in:
Andy Cheng 2023-07-10 15:50:18 +08:00
parent ae7ae27d82
commit 2ccce12cbf
No known key found for this signature in database
GPG Key ID: 936427CF651A9D28
2 changed files with 5 additions and 5 deletions

View File

@ -165,8 +165,8 @@ type ProfitStats struct {
TodayGrossLoss fixedpoint.Value `json:"todayGrossLoss,omitempty"` TodayGrossLoss fixedpoint.Value `json:"todayGrossLoss,omitempty"`
TodaySince int64 `json:"todaySince,omitempty"` TodaySince int64 `json:"todaySince,omitempty"`
startTime time.Time //StartTime time.Time
endTime time.Time //EndTime time.Time
} }
func NewProfitStats(market Market) *ProfitStats { func NewProfitStats(market Market) *ProfitStats {
@ -185,8 +185,8 @@ func NewProfitStats(market Market) *ProfitStats {
TodayGrossProfit: fixedpoint.Zero, TodayGrossProfit: fixedpoint.Zero,
TodayGrossLoss: fixedpoint.Zero, TodayGrossLoss: fixedpoint.Zero,
TodaySince: 0, TodaySince: 0,
startTime: time.Now().UTC(), //StartTime: time.Now().UTC(),
endTime: time.Now().UTC(), //EndTime: time.Now().UTC(),
} }
} }
@ -229,7 +229,7 @@ func (s *ProfitStats) AddProfit(profit Profit) {
s.TodayGrossLoss = s.TodayGrossLoss.Add(profit.Profit) s.TodayGrossLoss = s.TodayGrossLoss.Add(profit.Profit)
} }
s.endTime = profit.TradedAt.UTC() //s.EndTime = profit.TradedAt.UTC()
} }
func (s *ProfitStats) AddTrade(trade Trade) { func (s *ProfitStats) AddTrade(trade Trade) {