ccxt 4.0.96 → 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/dist/cjs/ccxt.js CHANGED
@@ -180,7 +180,7 @@ var woo$1 = require('./src/pro/woo.js');
180
180
 
181
181
  //-----------------------------------------------------------------------------
182
182
  // this is updated by vss.js when building
183
- const version = '4.0.96';
183
+ const version = '4.0.97';
184
184
  Exchange["default"].ccxtVersion = version;
185
185
  const exchanges = {
186
186
  'ace': ace,
@@ -1274,7 +1274,7 @@ class bitfinex2 extends bitfinex2$1 {
1274
1274
  sort = '1';
1275
1275
  }
1276
1276
  if (limit !== undefined) {
1277
- request['limit'] = limit; // default 120, max 5000
1277
+ request['limit'] = Math.min(limit, 10000); // default 120, max 10000
1278
1278
  }
1279
1279
  request['sort'] = sort;
1280
1280
  const response = await this.publicGetTradesSymbolHist(this.extend(request, params));
@@ -1722,7 +1722,7 @@ class bitmex extends bitmex$1 {
1722
1722
  request['reverse'] = true;
1723
1723
  }
1724
1724
  if (limit !== undefined) {
1725
- request['count'] = limit;
1725
+ request['count'] = Math.min(limit, 1000); // api maximum 1000
1726
1726
  }
1727
1727
  const response = await this.publicGetTrade(this.extend(request, params));
1728
1728
  //
@@ -631,7 +631,7 @@ class bitvavo extends bitvavo$1 {
631
631
  // 'tradeIdTo': '57b1159b-6bf5-4cde-9e2c-6bd6a5678baf',
632
632
  };
633
633
  if (limit !== undefined) {
634
- request['limit'] = limit;
634
+ request['limit'] = Math.min(limit, 1000);
635
635
  }
636
636
  if (since !== undefined) {
637
637
  request['start'] = since;