@icgio/icg-exchanges-wrapper 1.9.120 → 1.9.121
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 +2 -1
- package/package.json +1 -1
package/middleware/orders.js
CHANGED
|
@@ -79,7 +79,7 @@ module.exports = class Orders {
|
|
|
79
79
|
this.cmc_curs = settings.cmc_curs || []
|
|
80
80
|
this.balance_benchmark = settings.balance_benchmark || {}
|
|
81
81
|
this.min_reserve_balance = settings.min_reserve_balance || {}
|
|
82
|
-
for (let exchange in exchange_pairs) {
|
|
82
|
+
for (let exchange in _.assign(exchange_pairs, exchange_pairs_rates_only)) {
|
|
83
83
|
let api_key_temp = cd[exchange]['api_keys'] || cd[exchange]['api_key'],
|
|
84
84
|
secret_key_temp = cd[exchange]['secret_keys'] || cd[exchange]['secret_key'],
|
|
85
85
|
LIMITS
|
|
@@ -1189,6 +1189,7 @@ module.exports = class Orders {
|
|
|
1189
1189
|
res.body.asks = res.body.asks.slice(0, RATES_LENGTH_MAX)
|
|
1190
1190
|
res.body.bids = res.body.bids.slice(0, RATES_LENGTH_MAX)
|
|
1191
1191
|
_.set(this.rates, [exchange, pair], Object.assign(res.body, { update_time: new Date() }))
|
|
1192
|
+
console.log(exchange, pair)
|
|
1192
1193
|
process_rates()
|
|
1193
1194
|
} else if (_.get(this.rates, [exchange, pair, 'update_time']) < new Date().getTime() - this.interval_dict[exchange].rates) {
|
|
1194
1195
|
this.info_log('%s %s rates expired: %j', exchange, pair, res)
|