ccxt 4.0.95 → 4.0.97

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/js/src/deribit.js CHANGED
@@ -1320,7 +1320,7 @@ export default class deribit extends Exchange {
1320
1320
  request['start_timestamp'] = since;
1321
1321
  }
1322
1322
  if (limit !== undefined) {
1323
- request['count'] = limit; // default 10
1323
+ request['count'] = Math.min(limit, 1000); // default 10
1324
1324
  }
1325
1325
  const response = await this[method](this.extend(request, params));
1326
1326
  //
@@ -1369,7 +1369,7 @@ export default class digifinex extends Exchange {
1369
1369
  request['symbol'] = market['id'];
1370
1370
  }
1371
1371
  if (limit !== undefined) {
1372
- request['limit'] = limit;
1372
+ request['limit'] = market['swap'] ? Math.min(limit, 100) : limit;
1373
1373
  }
1374
1374
  const response = await this[method](this.extend(request, params));
1375
1375
  //
package/js/src/hitbtc.js CHANGED
@@ -1110,7 +1110,7 @@ export default class hitbtc extends Exchange {
1110
1110
  request['symbols'] = market['id'];
1111
1111
  }
1112
1112
  if (limit !== undefined) {
1113
- request['limit'] = limit;
1113
+ request['limit'] = Math.min(limit, 1000);
1114
1114
  }
1115
1115
  if (since !== undefined) {
1116
1116
  request['from'] = since;
package/js/src/kucoin.js CHANGED
@@ -4144,7 +4144,7 @@ export default class kucoin extends Exchange {
4144
4144
  this.throwExactlyMatchedException(this.exceptions['exact'], message, feedback);
4145
4145
  this.throwExactlyMatchedException(this.exceptions['exact'], errorCode, feedback);
4146
4146
  this.throwBroadlyMatchedException(this.exceptions['broad'], body, feedback);
4147
- if (errorCode !== '200000') {
4147
+ if (errorCode !== '200000' && errorCode !== '200') {
4148
4148
  throw new ExchangeError(feedback);
4149
4149
  }
4150
4150
  return undefined;
package/js/src/latoken.js CHANGED
@@ -798,10 +798,10 @@ export default class latoken extends Exchange {
798
798
  'currency': market['baseId'],
799
799
  'quote': market['quoteId'],
800
800
  // 'from': since.toString (), // milliseconds
801
- // 'limit': limit, // default 100, max 1000
801
+ // 'limit': limit, // default 100, limit 100
802
802
  };
803
803
  if (limit !== undefined) {
804
- request['limit'] = limit; // default 100, max 1000
804
+ request['limit'] = Math.min(limit, 100); // default 100, limit 100
805
805
  }
806
806
  const response = await this.publicGetTradeHistoryCurrencyQuote(this.extend(request, params));
807
807
  //
package/js/src/probit.js CHANGED
@@ -776,7 +776,7 @@ export default class probit extends Exchange {
776
776
  request['start_time'] = this.iso8601(since);
777
777
  }
778
778
  if (limit !== undefined) {
779
- request['limit'] = limit;
779
+ request['limit'] = Math.min(limit, 10000);
780
780
  }
781
781
  const response = await this.publicGetTrade(this.extend(request, params));
782
782
  //
package/js/src/wazirx.js CHANGED
@@ -447,7 +447,7 @@ export default class wazirx extends Exchange {
447
447
  'symbol': market['id'],
448
448
  };
449
449
  if (limit !== undefined) {
450
- request['limit'] = limit; // Default 500; max 1000.
450
+ request['limit'] = Math.min(limit, 1000); // Default 500; max 1000.
451
451
  }
452
452
  const method = this.safeString(this.options, 'fetchTradesMethod', 'publicGetTrades');
453
453
  const response = await this[method](this.extend(request, params));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.0.95",
3
+ "version": "4.0.97",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 130+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.js",
6
6
  "type": "module",