@icgio/icg-exchanges-wrapper 1.14.86 → 1.14.87

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.
@@ -499,7 +499,7 @@ module.exports = class Orders {
499
499
  type,
500
500
  order_id,
501
501
  {
502
- status: 'F-FILLED',
502
+ status: trade.amount / order_info.t_amount > this.f_filled_threshold ? 'F-FILLED' : 'P-FILLED',
503
503
  price: trade.price,
504
504
  amount: 0,
505
505
  f_amount: trade.amount,
@@ -511,7 +511,7 @@ module.exports = class Orders {
511
511
  order_info.order_type + ' canceled-order-filled(more)'
512
512
  )
513
513
  setTimeout(() => {
514
- this.delete_order_info(exchange, pair, type, order_id, order_info.order_type + ' canceled-order-filled(more)')
514
+ this.delete_order_info(exchange, pair, type, order_id, order_info.order_type + ' canceled-order-filled(-more)')
515
515
  }, this.delete_finished_orders_timeout)
516
516
  } else if (order_info.status === 'F-FILLED' && trade.amount > order_info.f_amount) {
517
517
  // this.info_log('TRADES: FILLED ORDER FILLED MORE', trade, order_info)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.14.86",
3
+ "version": "1.14.87",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {