mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
fix: call abs on base for IsDust method
This commit is contained in:
parent
d27fee57ad
commit
32095e2741
|
@ -145,7 +145,7 @@ func (p *Position) NewClosePositionOrder(percentage fixedpoint.Value) *SubmitOrd
|
|||
}
|
||||
|
||||
func (p *Position) IsDust(price fixedpoint.Value) bool {
|
||||
base := p.GetBase()
|
||||
base := p.GetBase().Abs()
|
||||
return p.Market.IsDustQuantity(base, price)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user