@icgio/icg-exchanges-wrapper 1.14.72 → 1.14.74

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.
@@ -251,8 +251,8 @@ module.exports = class Orders {
251
251
  this.account?.update_non_initial_from_balances(balances)
252
252
  }
253
253
  limit_trade(exchange, pair, method, price, amount, id = uuid(), order_type = '', limiter_on = true, api_key_index) {
254
- price = round_price(_.upperFirst(exchange), pair, price)
255
- amount = round_amount(_.upperFirst(exchange), pair, amount)
254
+ price = round_price(_.upperFirst(exchange.replace('_2', '')), pair, price)
255
+ amount = round_amount(_.upperFirst(exchange.replace('_2', '')), pair, amount)
256
256
  this.info_log('%s %s %s %s %s %s at %s', limiter_on, order_type, exchange, pair, method, amount, price)
257
257
  this.update_order_info(
258
258
  exchange,
@@ -580,7 +580,7 @@ module.exports = class Orders {
580
580
  )
581
581
  } else if (_.includes(['F-FILLED', 'P-FILLED'], order_info.status)) {
582
582
  } else {
583
- this.info_log('TRADES: UNKNOWN %j', trade, this.order_info[exchange][pair])
583
+ this.info_log('TRADES: UNKNOWN %j', trade)
584
584
  }
585
585
  }
586
586
  })
@@ -695,8 +695,8 @@ module.exports = class Orders {
695
695
  }
696
696
  } else if (this.get_order_info_status_all(exchange, pair, 'both', 'INIT') && this.check_init_order_opened) {
697
697
  this.get_order_info_status_all(exchange, pair, 'both', 'INIT').map((init_order) => {
698
- let init_order_price = round_price(exchange, pair, init_order.price)
699
- let order_price = round_price(exchange, pair, order.price)
698
+ let init_order_price = round_price(exchange.replace('_2', ''), pair, init_order.price)
699
+ let order_price = round_price(exchange.replace('_2', ''), pair, order.price)
700
700
  let init_order_time = init_order.open_time.getTime()
701
701
  let order_time = order.open_time.getTime()
702
702
  if (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.14.72",
3
+ "version": "1.14.74",
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.32.47",
21
- "@icgio/icg-exchanges-data": "^1.10.38",
21
+ "@icgio/icg-exchanges-data": "^1.10.39",
22
22
  "@icgio/icg-utils": "^1.9.15",
23
23
  "influx": "^5.10.0",
24
24
  "lodash": "^4.17.20",