grid2: remove fee check from verifyOrderTrades

This commit is contained in:
c9s 2022-12-06 15:39:37 +08:00
parent 423fe521b6
commit b4e403d632

View File

@ -225,11 +225,6 @@ func collectTradeFee(trades []types.Trade) map[string]fixedpoint.Value {
func (s *Strategy) verifyOrderTrades(o types.Order, trades []types.Trade) bool {
tq := fixedpoint.Zero
for _, t := range trades {
if t.Fee.IsZero() && t.FeeCurrency == "" {
s.logger.Warnf("trade fee and feeCurrency is zero: %+v", t)
return false
}
tq = tq.Add(t.Quantity)
}