mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 19:13:52 +00:00
xmaker: check dust quantity
This commit is contained in:
parent
76a627a504
commit
d940cde945
|
@ -1027,7 +1027,7 @@ func (s *Strategy) tryArbitrage(ctx context.Context, quote *Quote, makerBalances
|
|||
return false, nil
|
||||
}
|
||||
|
||||
if qty.IsZero() {
|
||||
if qty.IsZero() || s.makerMarket.IsDustQuantity(qty, sumPv.Price) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
@ -1057,7 +1057,7 @@ func (s *Strategy) tryArbitrage(ctx context.Context, quote *Quote, makerBalances
|
|||
return false, nil
|
||||
}
|
||||
|
||||
if qty.IsZero() {
|
||||
if qty.IsZero() || s.makerMarket.IsDustQuantity(qty, sumPv.Price) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user