mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
xalign:add one more dust check
This commit is contained in:
parent
599b18fc3c
commit
476378e742
|
@ -155,6 +155,11 @@ func (s *Strategy) selectSessionForCurrency(ctx context.Context, sessions map[st
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if market.IsDustQuantity(q, price) {
|
||||||
|
log.Infof("%s ignore dust quantity: %f", currency, q.Float64())
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
q = market.AdjustQuantityByMinNotional(q, price)
|
q = market.AdjustQuantityByMinNotional(q, price)
|
||||||
|
|
||||||
return session, &types.SubmitOrder{
|
return session, &types.SubmitOrder{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user