Browse Source

util.CloseAllOrders

- fix
Alexey Kim 16 hours ago
parent
commit
4d09214a73
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/order.go

+ 1 - 1
util/order.go

@@ -104,7 +104,7 @@ func CloseAllOrders(m sentio.Market, s sentio.Strategy) error {
 	}
 
 	for i := range orders {
-		if _, err = m.CloseOrder(orders[i].GetId()); err != nil {
+		if _, err = m.CloseOrder(orders[i]); err != nil {
 			return err
 		}
 	}