@icgio/icg-exchanges-wrapper 1.14.168 → 1.14.170

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.
@@ -92,6 +92,7 @@ module.exports = class Orders {
92
92
  this.check_init_order_opened = true
93
93
  this.check_init_order_opened_timeout = 5 * 1000
94
94
  this.cancel_previous_orders = settings.cancel_previous_orders || false
95
+ this.cancel_previous_orders_with_delay = settings.cancel_previous_orders_with_delay || false
95
96
  this.cancel_range_orders = settings.cancel_range_orders || false
96
97
  this.delete_connection_error_orders_timeout = 2 * 60 * 1000
97
98
  this.delete_finished_orders_timeout = 30 * 1000 // CANCELED or F-FILLED
@@ -873,7 +874,7 @@ module.exports = class Orders {
873
874
  this.Exchanges[exchange].cancel_order_by_order(order, (res) => {})
874
875
  })
875
876
  }, CANCEL_PREVIOUS_ORDERS_DELAY_MS)
876
- _.set(this.previous_orders_canceled_exchange_pair, [exchange, pair], true)
877
+ this.previous_orders_canceled = true
877
878
  }
878
879
  // cancel previous orders
879
880
  else if (this.cancel_previous_orders && !this.previous_orders_canceled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.14.168",
3
+ "version": "1.14.170",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {