@icgio/icg-exchanges-wrapper 1.14.84 → 1.14.86

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.
@@ -489,7 +489,7 @@ module.exports = class Orders {
489
489
  trades[exchange][pair].trades.map((trade) => {
490
490
  if (_.get(this.order_info, [exchange, pair, trade.type, trade.order_id])) {
491
491
  let order_info = this.order_info[exchange][pair][trade.type][trade.order_id]
492
- if ((order_info.status === 'CANCELED' || order_info.status === 'CANCELING') && trade.amount > order_info.f_amount) {
492
+ if (_.includes(['CANCELED', 'CANCELING'], order_info.status) && trade.amount > order_info.f_amount) {
493
493
  let type = trade.type,
494
494
  order_id = trade.order_id
495
495
  // this.info_log('TRADES: %s ORDER FILLED', order_info.status, trade, order_info)
@@ -574,6 +574,7 @@ module.exports = class Orders {
574
574
  order_info.order_type + ' order-p-filled-1'
575
575
  )
576
576
  } else if (_.includes(['F-FILLED', 'P-FILLED'], order_info.status)) {
577
+ } else if (_.includes(['CANCELED', 'CANCELING'], order_info.status) && trade.amount === order_info.f_amount) {
577
578
  } else {
578
579
  this.info_log('TRADES: UNKNOWN %j', trade)
579
580
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.14.84",
3
+ "version": "1.14.86",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "homepage": "https://github.com/icgio/icg-exchanges-wrapper#readme",
19
19
  "dependencies": {
20
- "@icgio/icg-exchanges": "^1.32.50",
21
- "@icgio/icg-exchanges-data": "^1.10.47",
20
+ "@icgio/icg-exchanges": "^1.32.51",
21
+ "@icgio/icg-exchanges-data": "^1.10.48",
22
22
  "@icgio/icg-utils": "^1.9.16",
23
23
  "influx": "^5.10.0",
24
24
  "lodash": "^4.17.20",