@icgio/icg-exchanges-wrapper 1.14.114 → 1.14.116

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.
@@ -107,7 +107,7 @@ module.exports = class Orders {
107
107
  this.f_filled_threshold = 0.999
108
108
  this.previous_orders_canceled = false
109
109
  this.previous_orders_canceled_exchange_pair = {}
110
- this.check_balance_amount_init = false
110
+ this.account_init = false
111
111
  this.cmc_curs = settings.cmc_curs || []
112
112
  this.accounting_benchmark = settings.accounting_benchmark
113
113
  this.balance_benchmark = settings.balance_benchmark || {}
@@ -778,8 +778,8 @@ module.exports = class Orders {
778
778
  })
779
779
  }
780
780
  }
781
- if (!this.check_balance_amount_init && _.keys(this.balances).length === _.keys(this.exchange_pairs).length) {
782
- this.check_balance_amount_init = true
781
+ if (!this.account_init && _.keys(this.balances).length === _.keys(this.exchange_pairs).length) {
782
+ this.account_init = true
783
783
  this.init_account(this.balances, this.accounting_benchmark || this.balance_benchmark) // use accounting_benchmark if it exists
784
784
  }
785
785
  } else if (_.get(this.balances, [exchange, 'update_time']) < new Date().getTime() - this.interval_dict[exchange].balances) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.14.114",
3
+ "version": "1.14.116",
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.67",
21
- "@icgio/icg-exchanges-data": "^1.10.57",
21
+ "@icgio/icg-exchanges-data": "^1.10.58",
22
22
  "@icgio/icg-utils": "^1.9.20",
23
23
  "influx": "^5.10.0",
24
24
  "lodash": "^4.17.20",