mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
check if restQuantity is less than 0
This commit is contained in:
parent
21f7fa7846
commit
896518f5c2
|
@ -158,7 +158,7 @@ func (e *TwapExecution) newBestPriceOrder() (orderForm types.SubmitOrder, err er
|
|||
|
||||
restQuantity := e.TargetQuantity - fixedpoint.Abs(base)
|
||||
|
||||
if restQuantity == 0 {
|
||||
if restQuantity <= 0 {
|
||||
if e.cancelContextIfTargetQuantityFilled() {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user