@icgio/icg-exchanges-wrapper 1.9.104 → 1.9.105

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.
@@ -1003,15 +1003,14 @@ module.exports = class Orders {
1003
1003
  if (_.get(this.rates, [exchange, pair, 'asks'], []).length > 0 && _.get(this.rates, [exchange, pair, 'bids'], []).length > 0) {
1004
1004
  let rates = JSON.parse(JSON.stringify(this.rates[exchange][pair]))
1005
1005
 
1006
- let major_rates_only_exchanges_length = this.major_exchanges[pair].length + this.rates_only_exchanges[pair].length
1007
1006
  if (this.major_exchanges[pair] && _.includes(this.major_exchanges[pair], exchange)) {
1008
1007
  orderbook_major_temp[exchange] = rates
1009
- if (_.keys(orderbook_major_temp).length === major_rates_only_exchanges_length) {
1008
+ if (_.keys(orderbook_major_temp).length === this.major_exchanges[pair].length + this.rates_only_exchanges[pair].length) {
1010
1009
  orderbook_major = orderbook_major_temp
1011
1010
  }
1012
1011
  } else if (this.rates_only_exchanges[pair] && _.includes(this.rates_only_exchanges[pair], exchange)) {
1013
1012
  orderbook_major_temp[exchange] = rates
1014
- if (_.keys(orderbook_major_temp).length === major_rates_only_exchanges_length) {
1013
+ if (_.keys(orderbook_major_temp).length === this.major_exchanges[pair].length + this.rates_only_exchanges[pair].length) {
1015
1014
  orderbook_major = orderbook_major_temp
1016
1015
  }
1017
1016
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.9.104",
3
+ "version": "1.9.105",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {