@icgio/icg-exchanges-wrapper 1.14.213 → 1.14.214

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.
@@ -547,8 +547,8 @@ module.exports = class Orders {
547
547
  }, this.delete_finished_orders_timeout)
548
548
  } else if (
549
549
  _.includes(['N-FILLED', 'P-FILLED'], order_info.status) &&
550
- trade.amount > order_info.f_amount &&
551
- trade.amount / order_info.t_amount > this.p_filled_threshold
550
+ parseFloat(trade.amount) > parseFloat(order_info.f_amount) &&
551
+ parseFloat(trade.amount) / parseFloat(order_info.t_amount) > this.p_filled_threshold
552
552
  ) {
553
553
  // console.log('TRADES: %s %s ORDER P-FILLED', exchange, pair, trade)
554
554
  this.update_order_info(
@@ -662,8 +662,8 @@ module.exports = class Orders {
662
662
  }, this.delete_finished_orders_timeout)
663
663
  } else if (
664
664
  _.includes(['N-FILLED', 'P-FILLED'], order_info.status) &&
665
- order.f_amount > order_info.f_amount &&
666
- order.f_amount / order_info.t_amount > this.p_filled_threshold
665
+ parseFloat(order.f_amount) > parseFloat(order_info.f_amount) &&
666
+ parseFloat(order.f_amount) / parseFloat(order_info.t_amount) > this.p_filled_threshold
667
667
  ) {
668
668
  // console.log('ORDERS: %s %s ORDER P-FILLED', exchange, pair)
669
669
  this.update_order_info(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.14.213",
3
+ "version": "1.14.214",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {