@icgio/icg-exchanges-wrapper 1.14.167 → 1.14.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/middleware/orders.js +2 -1
- package/package.json +1 -1
package/middleware/orders.js
CHANGED
|
@@ -866,8 +866,9 @@ module.exports = class Orders {
|
|
|
866
866
|
}
|
|
867
867
|
// cancel previous orders with delay
|
|
868
868
|
else if (this.cancel_previous_orders && this.cancel_previous_orders_with_delay) {
|
|
869
|
+
const previous_orders = _.cloneDeep(orders)
|
|
869
870
|
setTimeout(() => {
|
|
870
|
-
|
|
871
|
+
previous_orders.map((order) => {
|
|
871
872
|
console.log('cancel original order: %s %s %j', exchange, pair, order)
|
|
872
873
|
this.Exchanges[exchange].cancel_order_by_order(order, (res) => {})
|
|
873
874
|
})
|