@icgio/icg-exchanges-wrapper 1.9.134 → 1.9.136

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.
@@ -412,6 +412,7 @@ module.exports = class Orders {
412
412
  t_amount: trade.amount,
413
413
  f_percentage: 1,
414
414
  close_time: trade.close_time || new Date(),
415
+ fees: trade.fees,
415
416
  },
416
417
  order_info.order_type + ' canceled-order-filled'
417
418
  )
@@ -429,6 +430,7 @@ module.exports = class Orders {
429
430
  f_amount: trade.amount,
430
431
  t_amount: trade.amount,
431
432
  f_percentage: 1,
433
+ fees: trade.fees,
432
434
  },
433
435
  order_info.order_type + ' filled-order-filled-more'
434
436
  )
@@ -450,6 +452,7 @@ module.exports = class Orders {
450
452
  f_amount: trade.amount,
451
453
  f_percentage: trade.amount / order_info.t_amount,
452
454
  close_time: trade.close_time || new Date(),
455
+ fees: trade.fees,
453
456
  },
454
457
  order_info.order_type + ' order-f-filled-1'
455
458
  )
@@ -472,6 +475,7 @@ module.exports = class Orders {
472
475
  amount: order_info.t_amount - trade.amount,
473
476
  f_amount: trade.amount,
474
477
  f_percentage: trade.amount / order_info.t_amount,
478
+ fees: trade.fees,
475
479
  },
476
480
  order_info.order_type + ' order-p-filled-1'
477
481
  )
@@ -643,8 +647,8 @@ module.exports = class Orders {
643
647
  this.info_log('UPDATE %s: %s %s %s %s %j', note, exchange, pair, type, order_id, dict)
644
648
  // start: log every f-filled trade for future analysis
645
649
  if (dict.status === 'F-FILLED') {
646
- let { price, amount, close_time } = _.get(this.order_info, [exchange, pair, type, order_id])
647
- console.log(`f_filled_orders_info:${exchange},${pair},${type},${order_id},${price},${amount},${close_time},${note}`)
650
+ let { price, amount, f_amount, t_amount, fees, close_time } = _.get(this.order_info, [exchange, pair, type, order_id])
651
+ console.log(`f_filled_orders_info:${exchange},${pair},${type},${order_id},${price},${amount},${f_amount},${t_amount},${fees},${close_time},${note}`)
648
652
  }
649
653
  // end: log every f-filled trade for future analysis
650
654
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.9.134",
3
+ "version": "1.9.136",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  "homepage": "https://github.com/icgio/icg-exchanges-wrapper#readme",
19
19
  "dependencies": {
20
20
  "@icgio/icg-exchanges": "^1.27.96",
21
- "@icgio/icg-exchanges-data": "^1.6.51",
21
+ "@icgio/icg-exchanges-data": "^1.6.52",
22
22
  "@icgio/icg-utils": "^1.7.21",
23
23
  "influx": "^5.7.0",
24
24
  "lodash": "^4.17.20",