@icgio/icg-exchanges-wrapper 1.9.121 → 1.9.122
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 +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
|
|
82
|
+
for (let exchange in exchange_pairs) {
|
|
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
|
|
@@ -1181,8 +1181,8 @@ module.exports = class Orders {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
let rates_handler = (exchange, pair, res) => {
|
|
1183
1183
|
if (exchange === 'coinsbit' && pair === 'PRMXUSDT') {
|
|
1184
|
-
if (_.get(this.rates, ['
|
|
1185
|
-
_.set(this.rates, ['coinsbit', 'PRMXUSDT'], Object.assign(_.get(this.rates, ['
|
|
1184
|
+
if (_.get(this.rates, ['bitmart', 'PRMXUSDT'])) {
|
|
1185
|
+
_.set(this.rates, ['coinsbit', 'PRMXUSDT'], Object.assign(_.get(this.rates, ['bitmart', 'PRMXUSDT']), { update_time: new Date() }))
|
|
1186
1186
|
process_rates()
|
|
1187
1187
|
}
|
|
1188
1188
|
} else if (res.success) {
|