@icgio/icg-exchanges-wrapper 1.9.120 → 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.
@@ -1181,14 +1181,15 @@ 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, ['kucoin', 'PRMXUSDT'])) {
1185
- _.set(this.rates, ['coinsbit', 'PRMXUSDT'], Object.assign(_.get(this.rates, ['kucoin', 'PRMXUSDT']), { update_time: new Date() }))
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) {
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.9.120",
3
+ "version": "1.9.122",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {