ccxt 4.0.88 → 4.0.89

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.88';
183
+ const version = '4.0.89';
184
184
  Exchange["default"].ccxtVersion = version;
185
185
  const exchanges = {
186
186
  'ace': ace,
@@ -693,7 +693,7 @@ class bingx extends bingx$1 {
693
693
  'symbol': market['id'],
694
694
  };
695
695
  if (limit !== undefined) {
696
- request['limit'] = limit;
696
+ request['limit'] = Math.min(limit, 100); // avoid API exception "limit should less than 100"
697
697
  }
698
698
  let response = undefined;
699
699
  let marketType = undefined;
@@ -704,7 +704,7 @@ class bybit extends bybit$1 {
704
704
  if (this.newUpdates) {
705
705
  limit = trades.getLimit(symbol, limit);
706
706
  }
707
- return this.filterBySinceLimit(trades, since, limit, 'timestamp', true);
707
+ return this.filterBySymbolSinceLimit(trades, symbol, since, limit, true);
708
708
  }
709
709
  handleMyTrades(client, message) {
710
710
  //
package/js/ccxt.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
4
4
  import * as errors from './src/base/errors.js';
5
5
  import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending } from './src/base/errors.js';
7
- declare const version = "4.0.87";
7
+ declare const version = "4.0.88";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
package/js/ccxt.js CHANGED
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
38
38
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.0.88';
41
+ const version = '4.0.89';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
package/js/src/bingx.js CHANGED
@@ -696,7 +696,7 @@ export default class bingx extends Exchange {
696
696
  'symbol': market['id'],
697
697
  };
698
698
  if (limit !== undefined) {
699
- request['limit'] = limit;
699
+ request['limit'] = Math.min(limit, 100); // avoid API exception "limit should less than 100"
700
700
  }
701
701
  let response = undefined;
702
702
  let marketType = undefined;
@@ -707,7 +707,7 @@ export default class bybit extends bybitRest {
707
707
  if (this.newUpdates) {
708
708
  limit = trades.getLimit(symbol, limit);
709
709
  }
710
- return this.filterBySinceLimit(trades, since, limit, 'timestamp', true);
710
+ return this.filterBySymbolSinceLimit(trades, symbol, since, limit, true);
711
711
  }
712
712
  handleMyTrades(client, message) {
713
713
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.0.88",
3
+ "version": "4.0.89",
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",