mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
xmaker: fix minQuantity buffer
This commit is contained in:
parent
6008aaac5f
commit
70dec09f26
|
@ -506,7 +506,7 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) {
|
|||
return
|
||||
}
|
||||
|
||||
if quantity.Float64() <= s.sourceMarket.MinQuantity*1.0 {
|
||||
if quantity.Float64() <= s.sourceMarket.MinQuantity*1.02 {
|
||||
log.Warnf("the adjusted quantity %f is less than minimal quantity %f, skipping hedge", quantity.Float64(), s.sourceMarket.MinQuantity)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user