@icgio/icg-exchanges-wrapper 1.14.115 → 1.14.117
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.
- package/middleware/orders.js +3 -3
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -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.
|
|
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.
|
|
782
|
-
this.
|
|
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.
|
|
3
|
+
"version": "1.14.117",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/icgio/icg-exchanges-wrapper#readme",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@icgio/icg-exchanges": "^1.32.
|
|
20
|
+
"@icgio/icg-exchanges": "^1.32.68",
|
|
21
21
|
"@icgio/icg-exchanges-data": "^1.10.58",
|
|
22
22
|
"@icgio/icg-utils": "^1.9.20",
|
|
23
23
|
"influx": "^5.10.0",
|