@icgio/icg-exchanges-wrapper 1.14.93 → 1.14.94

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.
@@ -104,7 +104,7 @@ module.exports = class Orders {
104
104
  this.no_arb_exchanges = settings.no_arb_exchanges || []
105
105
  this.buy_sell_limits_threshold = 0.95
106
106
  this.p_filled_threshold = 0
107
- this.f_filled_threshold = 0.99
107
+ this.f_filled_threshold = 0.999
108
108
  this.previous_orders_canceled = false
109
109
  this.previous_orders_canceled_exchange_pair = {}
110
110
  this.account_init = false
@@ -489,6 +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
+ trade.amount = round_amount(_.upperFirst(exchange.replace('_2', '')), pair, trade.amount)
492
493
  if (_.includes(['CANCELED', 'CANCELING'], order_info.status) && trade.amount > order_info.f_amount) {
493
494
  let type = trade.type,
494
495
  order_id = trade.order_id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.14.93",
3
+ "version": "1.14.94",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {