mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
grid2: remove fee check from verifyOrderTrades
This commit is contained in:
parent
423fe521b6
commit
b4e403d632
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user