@icgio/icg-exchanges-wrapper 1.14.92 → 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
@@ -118,7 +118,7 @@ module.exports = class Orders {
118
118
  limits
119
119
  if (_.includes(['hkbitex'], exchange)) {
120
120
  limits = HKBITEX_LIMITS
121
- } else if (_.includes(['binance', 'gate', 'gatev4'], exchange)) {
121
+ } else if (_.includes(['binance', 'gate', 'gate'], exchange)) {
122
122
  limits = MEDIUM_LIMITS
123
123
  } else if (_.includes(['bitfinex', 'coinsbit', 'kucoin', 'lbank', 'okx', 'phemex', 'xt'], exchange)) {
124
124
  limits = SMALL_LIMITS
@@ -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.92",
3
+ "version": "1.14.94",
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.51",
21
- "@icgio/icg-exchanges-data": "^1.10.49",
20
+ "@icgio/icg-exchanges": "^1.32.52",
21
+ "@icgio/icg-exchanges-data": "^1.10.50",
22
22
  "@icgio/icg-utils": "^1.9.16",
23
23
  "influx": "^5.10.0",
24
24
  "lodash": "^4.17.20",