grid2: remove todo item

This commit is contained in:
c9s 2022-12-15 19:06:34 +08:00
parent 78f10212b9
commit bbc47bb63a
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -343,8 +343,6 @@ func (s *Strategy) processFilledOrder(o types.Order) {
newQuantity = fixedpoint.Max(orderQuoteQuantity.Div(newPrice), s.Market.MinQuantity)
}
// calculate profit
// TODO: send profit notification
profit := s.calculateProfit(o, newPrice, newQuantity)
s.logger.Infof("GENERATED GRID PROFIT: %+v", profit)
s.GridProfitStats.AddProfit(profit)