@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.
@@ -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
- orders.map((order) => {
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
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.14.167",
3
+ "version": "1.14.168",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {