@icgio/icg-exchanges-wrapper 1.15.15 → 1.15.16

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.
@@ -221,10 +221,10 @@ const get_exchanges_rates = function (Exchanges, exchange_pair_dict, cb, ws_enab
221
221
  Exchange.ws.market.pair_status[pair] === 'opened' &&
222
222
  Exchange.ws.market.asks_dict &&
223
223
  Exchange.ws.market.asks_dict[pair] &&
224
- Exchange.ws.market.asks_dict[pair].length() > 0 &&
224
+ (typeof Exchange.ws.market.asks_dict[pair].length === 'function' ? Exchange.ws.market.asks_dict[pair].length() : Exchange.ws.market.asks_dict[pair].length) > 0 &&
225
225
  Exchange.ws.market.bids_dict &&
226
226
  Exchange.ws.market.bids_dict[pair] &&
227
- Exchange.ws.market.bids_dict[pair].length() > 0
227
+ (typeof Exchange.ws.market.bids_dict[pair].length === 'function' ? Exchange.ws.market.bids_dict[pair].length() : Exchange.ws.market.bids_dict[pair].length) > 0
228
228
 
229
229
  if (pair_ready) {
230
230
  // Pair is ready, try to get rate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.15.15",
3
+ "version": "1.15.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {