@icgio/icg-exchanges-wrapper 1.9.104 → 1.9.106

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,7 +1003,7 @@ 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
1006
+ let major_rates_only_exchanges_length = this.major_exchanges[pair].length + _.get(this.rates_only_exchanges, [pair], []).length
1007
1007
  if (this.major_exchanges[pair] && _.includes(this.major_exchanges[pair], exchange)) {
1008
1008
  orderbook_major_temp[exchange] = rates
1009
1009
  if (_.keys(orderbook_major_temp).length === major_rates_only_exchanges_length) {
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.106",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {