Skip to content

Commit

Permalink
log when amount is not greater than the minimal order quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
narumiruna committed Mar 27, 2024
1 parent e010619 commit 5cd68d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/strategy/xalign/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ func (s *Strategy) selectSessionForCurrency(
Market: market,
TimeInForce: types.TimeInForceGTC,
}
} else {
log.Infof("The amount %f is not greater than the minimal order quantity for %s", requiredQuoteAmount.Float64(), market.Symbol)
}

case types.SideTypeSell:
Expand Down Expand Up @@ -288,6 +290,8 @@ func (s *Strategy) selectSessionForCurrency(
Market: market,
TimeInForce: types.TimeInForceGTC,
}
} else {
log.Infof("The amount %f is not greater than the minimal order quantity for %s", q.Float64(), market.Symbol)
}
}

Expand Down

0 comments on commit 5cd68d3

Please sign in to comment.