ccxt 4.3.87 → 4.3.88

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.
Files changed (56) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/base/Exchange.js +2 -2
  5. package/dist/cjs/src/kucoin.js +2 -0
  6. package/dist/cjs/src/pro/bitfinex.js +1 -0
  7. package/dist/cjs/src/pro/bitfinex2.js +1 -0
  8. package/dist/cjs/src/pro/bitopro.js +1 -0
  9. package/dist/cjs/src/pro/bitstamp.js +1 -0
  10. package/dist/cjs/src/pro/blockchaincom.js +1 -0
  11. package/dist/cjs/src/pro/cex.js +1 -0
  12. package/dist/cjs/src/pro/coincheck.js +1 -0
  13. package/dist/cjs/src/pro/coinone.js +1 -0
  14. package/dist/cjs/src/pro/hashkey.js +1 -0
  15. package/dist/cjs/src/pro/hitbtc.js +1 -0
  16. package/dist/cjs/src/pro/hollaex.js +1 -0
  17. package/dist/cjs/src/pro/htx.js +1 -0
  18. package/dist/cjs/src/pro/huobijp.js +1 -0
  19. package/dist/cjs/src/pro/hyperliquid.js +7 -0
  20. package/dist/cjs/src/pro/independentreserve.js +1 -0
  21. package/dist/cjs/src/pro/lbank.js +1 -0
  22. package/dist/cjs/src/pro/luno.js +1 -0
  23. package/dist/cjs/src/pro/ndax.js +5 -0
  24. package/dist/cjs/src/pro/okcoin.js +7 -0
  25. package/dist/cjs/src/pro/onetrading.js +1 -0
  26. package/dist/cjs/src/pro/paradex.js +1 -0
  27. package/js/ccxt.d.ts +1 -1
  28. package/js/ccxt.js +1 -1
  29. package/js/src/abstract/kucoin.d.ts +1 -0
  30. package/js/src/abstract/kucoinfutures.d.ts +1 -0
  31. package/js/src/base/Exchange.d.ts +1 -1
  32. package/js/src/base/Exchange.js +2 -2
  33. package/js/src/coinex.d.ts +1 -1
  34. package/js/src/kucoin.js +2 -0
  35. package/js/src/pro/bitfinex.js +1 -0
  36. package/js/src/pro/bitfinex2.js +1 -0
  37. package/js/src/pro/bitopro.js +1 -0
  38. package/js/src/pro/bitstamp.js +1 -0
  39. package/js/src/pro/blockchaincom.js +1 -0
  40. package/js/src/pro/cex.js +1 -0
  41. package/js/src/pro/coincheck.js +1 -0
  42. package/js/src/pro/coinone.js +1 -0
  43. package/js/src/pro/hashkey.js +1 -0
  44. package/js/src/pro/hitbtc.js +1 -0
  45. package/js/src/pro/hollaex.js +1 -0
  46. package/js/src/pro/htx.js +1 -0
  47. package/js/src/pro/huobijp.js +1 -0
  48. package/js/src/pro/hyperliquid.js +7 -0
  49. package/js/src/pro/independentreserve.js +1 -0
  50. package/js/src/pro/lbank.js +1 -0
  51. package/js/src/pro/luno.js +1 -0
  52. package/js/src/pro/ndax.js +5 -0
  53. package/js/src/pro/okcoin.js +7 -0
  54. package/js/src/pro/onetrading.js +1 -0
  55. package/js/src/pro/paradex.js +1 -0
  56. package/package.json +1 -1
package/dist/cjs/ccxt.js CHANGED
@@ -196,7 +196,7 @@ var xt$1 = require('./src/pro/xt.js');
196
196
 
197
197
  //-----------------------------------------------------------------------------
198
198
  // this is updated by vss.js when building
199
- const version = '4.3.87';
199
+ const version = '4.3.88';
200
200
  Exchange["default"].ccxtVersion = version;
201
201
  const exchanges = {
202
202
  'ace': ace,
@@ -5999,7 +5999,7 @@ class Exchange {
5999
5999
  errors$1 = 0;
6000
6000
  result = this.arrayConcat(result, response);
6001
6001
  const last = this.safeValue(response, responseLength - 1);
6002
- paginationTimestamp = this.safeInteger(last, 'timestamp') - 1;
6002
+ paginationTimestamp = this.safeInteger(last, 'timestamp') + 1;
6003
6003
  if ((until !== undefined) && (paginationTimestamp >= until)) {
6004
6004
  break;
6005
6005
  }
@@ -6449,7 +6449,7 @@ class Exchange {
6449
6449
  */
6450
6450
  if (this.has['fetchPositionsHistory']) {
6451
6451
  const positions = await this.fetchPositionsHistory([symbol], since, limit, params);
6452
- return this.safeDict(positions, 0);
6452
+ return positions;
6453
6453
  }
6454
6454
  else {
6455
6455
  throw new errors.NotSupported(this.id + ' fetchPositionHistory () is not supported yet');
@@ -395,6 +395,7 @@ class kucoin extends kucoin$1 {
395
395
  'broker/nd/account': 2,
396
396
  'broker/nd/account/apikey': 2,
397
397
  'broker/nd/rebase/download': 3,
398
+ 'asset/ndbroker/deposit/list': 1,
398
399
  'broker/nd/transfer/detail': 1,
399
400
  'broker/nd/deposit/detail': 1,
400
401
  'broker/nd/withdraw/detail': 1,
@@ -686,6 +687,7 @@ class kucoin extends kucoin$1 {
686
687
  'purchase/orders': 'v3',
687
688
  'margin/symbols': 'v3',
688
689
  'affiliate/inviter/statistics': 'v2',
690
+ 'asset/ndbroker/deposit/list': 'v1',
689
691
  },
690
692
  'POST': {
691
693
  // account
@@ -17,6 +17,7 @@ class bitfinex extends bitfinex$1 {
17
17
  'watchTickers': false,
18
18
  'watchOrderBook': true,
19
19
  'watchTrades': true,
20
+ 'watchTradesForSymbols': false,
20
21
  'watchBalance': false,
21
22
  'watchOHLCV': false, // missing on the exchange side in v1
22
23
  },
@@ -17,6 +17,7 @@ class bitfinex2 extends bitfinex2$1 {
17
17
  'watchTickers': false,
18
18
  'watchOrderBook': true,
19
19
  'watchTrades': true,
20
+ 'watchTradesForSymbols': false,
20
21
  'watchMyTrades': true,
21
22
  'watchBalance': true,
22
23
  'watchOHLCV': true,
@@ -20,6 +20,7 @@ class bitopro extends bitopro$1 {
20
20
  'watchTicker': true,
21
21
  'watchTickers': false,
22
22
  'watchTrades': true,
23
+ 'watchTradesForSymbols': false,
23
24
  },
24
25
  'urls': {
25
26
  'ws': {
@@ -14,6 +14,7 @@ class bitstamp extends bitstamp$1 {
14
14
  'watchOrderBook': true,
15
15
  'watchOrders': true,
16
16
  'watchTrades': true,
17
+ 'watchTradesForSymbols': false,
17
18
  'watchOHLCV': false,
18
19
  'watchTicker': false,
19
20
  'watchTickers': false,
@@ -15,6 +15,7 @@ class blockchaincom extends blockchaincom$1 {
15
15
  'watchTicker': true,
16
16
  'watchTickers': false,
17
17
  'watchTrades': true,
18
+ 'watchTradesForSymbols': false,
18
19
  'watchMyTrades': false,
19
20
  'watchOrders': true,
20
21
  'watchOrderBook': true,
@@ -17,6 +17,7 @@ class cex extends cex$1 {
17
17
  'watchTicker': true,
18
18
  'watchTickers': true,
19
19
  'watchTrades': true,
20
+ 'watchTradesForSymbols': false,
20
21
  'watchMyTrades': true,
21
22
  'watchOrders': true,
22
23
  'watchOrderBook': true,
@@ -14,6 +14,7 @@ class coincheck extends coincheck$1 {
14
14
  'watchOrderBook': true,
15
15
  'watchOrders': false,
16
16
  'watchTrades': true,
17
+ 'watchTradesForSymbols': false,
17
18
  'watchOHLCV': false,
18
19
  'watchTicker': false,
19
20
  'watchTickers': false,
@@ -14,6 +14,7 @@ class coinone extends coinone$1 {
14
14
  'watchOrderBook': true,
15
15
  'watchOrders': false,
16
16
  'watchTrades': true,
17
+ 'watchTradesForSymbols': false,
17
18
  'watchOHLCV': false,
18
19
  'watchTicker': true,
19
20
  'watchTickers': false,
@@ -17,6 +17,7 @@ class hashkey extends hashkey$1 {
17
17
  'watchOrders': true,
18
18
  'watchTicker': true,
19
19
  'watchTrades': true,
20
+ 'watchTradesForSymbols': false,
20
21
  'watchPositions': false,
21
22
  },
22
23
  'urls': {
@@ -15,6 +15,7 @@ class hitbtc extends hitbtc$1 {
15
15
  'watchTicker': true,
16
16
  'watchTickers': true,
17
17
  'watchTrades': true,
18
+ 'watchTradesForSymbols': false,
18
19
  'watchOrderBook': true,
19
20
  'watchBalance': true,
20
21
  'watchOrders': true,
@@ -20,6 +20,7 @@ class hollaex extends hollaex$1 {
20
20
  'watchTicker': false,
21
21
  'watchTickers': false,
22
22
  'watchTrades': true,
23
+ 'watchTradesForSymbols': false,
23
24
  },
24
25
  'urls': {
25
26
  'api': {
@@ -26,6 +26,7 @@ class htx extends htx$1 {
26
26
  'watchTickers': false,
27
27
  'watchTicker': true,
28
28
  'watchTrades': true,
29
+ 'watchTradesForSymbols': false,
29
30
  'watchMyTrades': true,
30
31
  'watchBalance': true,
31
32
  'watchOHLCV': true,
@@ -15,6 +15,7 @@ class huobijp extends huobijp$1 {
15
15
  'watchTickers': false,
16
16
  'watchTicker': true,
17
17
  'watchTrades': true,
18
+ 'watchTradesForSymbols': false,
18
19
  'watchBalance': false,
19
20
  'watchOHLCV': true,
20
21
  },
@@ -22,6 +22,7 @@ class hyperliquid extends hyperliquid$1 {
22
22
  'watchTicker': false,
23
23
  'watchTickers': true,
24
24
  'watchTrades': true,
25
+ 'watchTradesForSymbols': false,
25
26
  'watchPosition': false,
26
27
  },
27
28
  'urls': {
@@ -137,6 +138,7 @@ class hyperliquid extends hyperliquid$1 {
137
138
  * @method
138
139
  * @name hyperliquid#watchOrderBook
139
140
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
141
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
140
142
  * @param {string} symbol unified symbol of the market to fetch the order book for
141
143
  * @param {int} [limit] the maximum amount of order book entries to return
142
144
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -210,6 +212,7 @@ class hyperliquid extends hyperliquid$1 {
210
212
  * @method
211
213
  * @name hyperliquid#watchTickers
212
214
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
215
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
213
216
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
214
217
  * @param {object} [params] extra parameters specific to the exchange API endpoint
215
218
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -236,6 +239,7 @@ class hyperliquid extends hyperliquid$1 {
236
239
  * @method
237
240
  * @name hyperliquid#watchMyTrades
238
241
  * @description watches information on multiple trades made by the user
242
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
239
243
  * @param {string} symbol unified market symbol of the market orders were made in
240
244
  * @param {int} [since] the earliest time in ms to fetch orders for
241
245
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -403,6 +407,7 @@ class hyperliquid extends hyperliquid$1 {
403
407
  * @method
404
408
  * @name hyperliquid#watchTrades
405
409
  * @description watches information on multiple trades made in a market
410
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
406
411
  * @param {string} symbol unified market symbol of the market trades were made in
407
412
  * @param {int} [since] the earliest time in ms to fetch trades for
408
413
  * @param {int} [limit] the maximum number of trade structures to retrieve
@@ -533,6 +538,7 @@ class hyperliquid extends hyperliquid$1 {
533
538
  * @method
534
539
  * @name hyperliquid#watchOHLCV
535
540
  * @description watches historical candlestick data containing the open, high, low, close price, and the volume of a market
541
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
536
542
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
537
543
  * @param {string} timeframe the length of time each candle represents
538
544
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -618,6 +624,7 @@ class hyperliquid extends hyperliquid$1 {
618
624
  * @method
619
625
  * @name hyperliquid#watchOrders
620
626
  * @description watches information on multiple orders made by the user
627
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
621
628
  * @param {string} symbol unified market symbol of the market orders were made in
622
629
  * @param {int} [since] the earliest time in ms to fetch orders for
623
630
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -15,6 +15,7 @@ class independentreserve extends independentreserve$1 {
15
15
  'watchTicker': false,
16
16
  'watchTickers': false,
17
17
  'watchTrades': true,
18
+ 'watchTradesForSymbols': false,
18
19
  'watchMyTrades': false,
19
20
  'watchOrders': false,
20
21
  'watchOrderBook': true,
@@ -18,6 +18,7 @@ class lbank extends lbank$1 {
18
18
  'watchTicker': true,
19
19
  'watchTickers': false,
20
20
  'watchTrades': true,
21
+ 'watchTradesForSymbols': false,
21
22
  'watchMyTrades': false,
22
23
  'watchOrders': true,
23
24
  'watchOrderBook': true,
@@ -13,6 +13,7 @@ class luno extends luno$1 {
13
13
  'watchTicker': false,
14
14
  'watchTickers': false,
15
15
  'watchTrades': true,
16
+ 'watchTradesForSymbols': false,
16
17
  'watchMyTrades': false,
17
18
  'watchOrders': undefined,
18
19
  'watchOrderBook': true,
@@ -12,6 +12,7 @@ class ndax extends ndax$1 {
12
12
  'ws': true,
13
13
  'watchOrderBook': true,
14
14
  'watchTrades': true,
15
+ 'watchTradesForSymbols': false,
15
16
  'watchTicker': true,
16
17
  'watchOHLCV': true,
17
18
  },
@@ -40,6 +41,7 @@ class ndax extends ndax$1 {
40
41
  * @method
41
42
  * @name ndax#watchTicker
42
43
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
44
+ * @see https://apidoc.ndax.io/#subscribelevel1
43
45
  * @param {string} symbol unified symbol of the market to fetch the ticker for
44
46
  * @param {object} [params] extra parameters specific to the exchange API endpoint
45
47
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -105,6 +107,7 @@ class ndax extends ndax$1 {
105
107
  * @method
106
108
  * @name ndax#watchTrades
107
109
  * @description get the list of most recent trades for a particular symbol
110
+ * @see https://apidoc.ndax.io/#subscribetrades
108
111
  * @param {string} symbol unified symbol of the market to fetch trades for
109
112
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
110
113
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -186,6 +189,7 @@ class ndax extends ndax$1 {
186
189
  * @method
187
190
  * @name ndax#watchOHLCV
188
191
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
192
+ * @see https://apidoc.ndax.io/#subscribeticker
189
193
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
190
194
  * @param {string} timeframe the length of time each candle represents
191
195
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -318,6 +322,7 @@ class ndax extends ndax$1 {
318
322
  * @method
319
323
  * @name ndax#watchOrderBook
320
324
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
325
+ * @see https://apidoc.ndax.io/#subscribelevel2
321
326
  * @param {string} symbol unified symbol of the market to fetch the order book for
322
327
  * @param {int} [limit] the maximum amount of order book entries to return
323
328
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -17,6 +17,7 @@ class okcoin extends okcoin$1 {
17
17
  'watchOrderBook': true,
18
18
  'watchOrders': true,
19
19
  'watchTrades': true,
20
+ 'watchTradesForSymbols': false,
20
21
  'watchBalance': true,
21
22
  'watchOHLCV': true,
22
23
  },
@@ -67,6 +68,7 @@ class okcoin extends okcoin$1 {
67
68
  * @method
68
69
  * @name okcoin#watchTrades
69
70
  * @description get the list of most recent trades for a particular symbol
71
+ * @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-trades-channel
70
72
  * @param {string} symbol unified symbol of the market to fetch trades for
71
73
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
72
74
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -86,6 +88,7 @@ class okcoin extends okcoin$1 {
86
88
  * @method
87
89
  * @name okcoin#watchOrders
88
90
  * @description watches information on multiple orders made by the user
91
+ * @see https://www.okcoin.com/docs-v5/en/#websocket-api-private-channel-order-channel
89
92
  * @param {string} symbol unified market symbol of the market orders were made in
90
93
  * @param {int} [since] the earliest time in ms to fetch orders for
91
94
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -172,6 +175,7 @@ class okcoin extends okcoin$1 {
172
175
  * @method
173
176
  * @name okcoin#watchTicker
174
177
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
178
+ * @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-tickers-channel
175
179
  * @param {string} symbol unified symbol of the market to fetch the ticker for
176
180
  * @param {object} [params] extra parameters specific to the exchange API endpoint
177
181
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -252,6 +256,7 @@ class okcoin extends okcoin$1 {
252
256
  * @method
253
257
  * @name okcoin#watchOHLCV
254
258
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
259
+ * @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-candlesticks-channel
255
260
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
256
261
  * @param {string} timeframe the length of time each candle represents
257
262
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -319,6 +324,7 @@ class okcoin extends okcoin$1 {
319
324
  * @method
320
325
  * @name okcoin#watchOrderBook
321
326
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
327
+ * @see https://www.okcoin.com/docs-v5/en/#websocket-api-public-channel-order-book-channel
322
328
  * @param {string} symbol unified symbol of the market to fetch the order book for
323
329
  * @param {int} [limit] the maximum amount of order book entries to return
324
330
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -482,6 +488,7 @@ class okcoin extends okcoin$1 {
482
488
  * @method
483
489
  * @name okcoin#watchBalance
484
490
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
491
+ * @see https://www.okcoin.com/docs-v5/en/#websocket-api-private-channel-account-channel
485
492
  * @param {object} [params] extra parameters specific to the exchange API endpoint
486
493
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
487
494
  */
@@ -16,6 +16,7 @@ class onetrading extends onetrading$1 {
16
16
  'watchTicker': true,
17
17
  'watchTickers': true,
18
18
  'watchTrades': false,
19
+ 'watchTradesForSymbols': false,
19
20
  'watchMyTrades': true,
20
21
  'watchOrders': true,
21
22
  'watchOrderBook': true,
@@ -15,6 +15,7 @@ class paradex extends paradex$1 {
15
15
  'watchOrderBook': true,
16
16
  'watchOrders': false,
17
17
  'watchTrades': true,
18
+ 'watchTradesForSymbols': false,
18
19
  'watchBalance': false,
19
20
  'watchOHLCV': false,
20
21
  },
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 type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
7
- declare const version = "4.3.86";
7
+ declare const version = "4.3.87";
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, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.3.87';
41
+ const version = '4.3.88';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -197,6 +197,7 @@ interface Exchange {
197
197
  brokerGetBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
198
198
  brokerGetBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
199
199
  brokerGetBrokerNdRebaseDownload(params?: {}): Promise<implicitReturnType>;
200
+ brokerGetAssetNdbrokerDepositList(params?: {}): Promise<implicitReturnType>;
200
201
  brokerGetBrokerNdTransferDetail(params?: {}): Promise<implicitReturnType>;
201
202
  brokerGetBrokerNdDepositDetail(params?: {}): Promise<implicitReturnType>;
202
203
  brokerGetBrokerNdWithdrawDetail(params?: {}): Promise<implicitReturnType>;
@@ -218,6 +218,7 @@ interface kucoin {
218
218
  brokerGetBrokerNdAccount(params?: {}): Promise<implicitReturnType>;
219
219
  brokerGetBrokerNdAccountApikey(params?: {}): Promise<implicitReturnType>;
220
220
  brokerGetBrokerNdRebaseDownload(params?: {}): Promise<implicitReturnType>;
221
+ brokerGetAssetNdbrokerDepositList(params?: {}): Promise<implicitReturnType>;
221
222
  brokerGetBrokerNdTransferDetail(params?: {}): Promise<implicitReturnType>;
222
223
  brokerGetBrokerNdDepositDetail(params?: {}): Promise<implicitReturnType>;
223
224
  brokerGetBrokerNdWithdrawDetail(params?: {}): Promise<implicitReturnType>;
@@ -1143,7 +1143,7 @@ export default class Exchange {
1143
1143
  convertExpireDate(date: string): string;
1144
1144
  convertExpireDateToMarketIdDate(date: string): string;
1145
1145
  convertMarketIdExpireDate(date: string): string;
1146
- fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position>;
1146
+ fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
1147
1147
  fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
1148
1148
  parseMarginModification(data: Dict, market?: Market): MarginModification;
1149
1149
  parseMarginModifications(response: object[], symbols?: Strings, symbolKey?: Str, marketType?: MarketType): MarginModification[];
@@ -5982,7 +5982,7 @@ export default class Exchange {
5982
5982
  errors = 0;
5983
5983
  result = this.arrayConcat(result, response);
5984
5984
  const last = this.safeValue(response, responseLength - 1);
5985
- paginationTimestamp = this.safeInteger(last, 'timestamp') - 1;
5985
+ paginationTimestamp = this.safeInteger(last, 'timestamp') + 1;
5986
5986
  if ((until !== undefined) && (paginationTimestamp >= until)) {
5987
5987
  break;
5988
5988
  }
@@ -6432,7 +6432,7 @@ export default class Exchange {
6432
6432
  */
6433
6433
  if (this.has['fetchPositionsHistory']) {
6434
6434
  const positions = await this.fetchPositionsHistory([symbol], since, limit, params);
6435
- return this.safeDict(positions, 0);
6435
+ return positions;
6436
6436
  }
6437
6437
  else {
6438
6438
  throw new NotSupported(this.id + ' fetchPositionHistory () is not supported yet');
@@ -157,7 +157,7 @@ export default class coinex extends Exchange {
157
157
  parseDepositWithdrawFee(fee: any, currency?: Currency): Dict;
158
158
  fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
159
159
  parseLeverage(leverage: Dict, market?: Market): Leverage;
160
- fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position>;
160
+ fetchPositionHistory(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
161
161
  handleMarginModeAndParams(methodName: any, params?: {}, defaultValue?: any): any[];
162
162
  nonce(): number;
163
163
  sign(path: any, api?: any[], method?: string, params?: {}, headers?: any, body?: any): {
package/js/src/kucoin.js CHANGED
@@ -398,6 +398,7 @@ export default class kucoin extends Exchange {
398
398
  'broker/nd/account': 2,
399
399
  'broker/nd/account/apikey': 2,
400
400
  'broker/nd/rebase/download': 3,
401
+ 'asset/ndbroker/deposit/list': 1,
401
402
  'broker/nd/transfer/detail': 1,
402
403
  'broker/nd/deposit/detail': 1,
403
404
  'broker/nd/withdraw/detail': 1,
@@ -689,6 +690,7 @@ export default class kucoin extends Exchange {
689
690
  'purchase/orders': 'v3',
690
691
  'margin/symbols': 'v3',
691
692
  'affiliate/inviter/statistics': 'v2',
693
+ 'asset/ndbroker/deposit/list': 'v1',
692
694
  },
693
695
  'POST': {
694
696
  // account
@@ -20,6 +20,7 @@ export default class bitfinex extends bitfinexRest {
20
20
  'watchTickers': false,
21
21
  'watchOrderBook': true,
22
22
  'watchTrades': true,
23
+ 'watchTradesForSymbols': false,
23
24
  'watchBalance': false,
24
25
  'watchOHLCV': false, // missing on the exchange side in v1
25
26
  },
@@ -20,6 +20,7 @@ export default class bitfinex2 extends bitfinex2Rest {
20
20
  'watchTickers': false,
21
21
  'watchOrderBook': true,
22
22
  'watchTrades': true,
23
+ 'watchTradesForSymbols': false,
23
24
  'watchMyTrades': true,
24
25
  'watchBalance': true,
25
26
  'watchOHLCV': true,
@@ -23,6 +23,7 @@ export default class bitopro extends bitoproRest {
23
23
  'watchTicker': true,
24
24
  'watchTickers': false,
25
25
  'watchTrades': true,
26
+ 'watchTradesForSymbols': false,
26
27
  },
27
28
  'urls': {
28
29
  'ws': {
@@ -17,6 +17,7 @@ export default class bitstamp extends bitstampRest {
17
17
  'watchOrderBook': true,
18
18
  'watchOrders': true,
19
19
  'watchTrades': true,
20
+ 'watchTradesForSymbols': false,
20
21
  'watchOHLCV': false,
21
22
  'watchTicker': false,
22
23
  'watchTickers': false,
@@ -18,6 +18,7 @@ export default class blockchaincom extends blockchaincomRest {
18
18
  'watchTicker': true,
19
19
  'watchTickers': false,
20
20
  'watchTrades': true,
21
+ 'watchTradesForSymbols': false,
21
22
  'watchMyTrades': false,
22
23
  'watchOrders': true,
23
24
  'watchOrderBook': true,
package/js/src/pro/cex.js CHANGED
@@ -20,6 +20,7 @@ export default class cex extends cexRest {
20
20
  'watchTicker': true,
21
21
  'watchTickers': true,
22
22
  'watchTrades': true,
23
+ 'watchTradesForSymbols': false,
23
24
  'watchMyTrades': true,
24
25
  'watchOrders': true,
25
26
  'watchOrderBook': true,
@@ -17,6 +17,7 @@ export default class coincheck extends coincheckRest {
17
17
  'watchOrderBook': true,
18
18
  'watchOrders': false,
19
19
  'watchTrades': true,
20
+ 'watchTradesForSymbols': false,
20
21
  'watchOHLCV': false,
21
22
  'watchTicker': false,
22
23
  'watchTickers': false,
@@ -17,6 +17,7 @@ export default class coinone extends coinoneRest {
17
17
  'watchOrderBook': true,
18
18
  'watchOrders': false,
19
19
  'watchTrades': true,
20
+ 'watchTradesForSymbols': false,
20
21
  'watchOHLCV': false,
21
22
  'watchTicker': true,
22
23
  'watchTickers': false,
@@ -20,6 +20,7 @@ export default class hashkey extends hashkeyRest {
20
20
  'watchOrders': true,
21
21
  'watchTicker': true,
22
22
  'watchTrades': true,
23
+ 'watchTradesForSymbols': false,
23
24
  'watchPositions': false,
24
25
  },
25
26
  'urls': {
@@ -18,6 +18,7 @@ export default class hitbtc extends hitbtcRest {
18
18
  'watchTicker': true,
19
19
  'watchTickers': true,
20
20
  'watchTrades': true,
21
+ 'watchTradesForSymbols': false,
21
22
  'watchOrderBook': true,
22
23
  'watchBalance': true,
23
24
  'watchOrders': true,
@@ -23,6 +23,7 @@ export default class hollaex extends hollaexRest {
23
23
  'watchTicker': false,
24
24
  'watchTickers': false,
25
25
  'watchTrades': true,
26
+ 'watchTradesForSymbols': false,
26
27
  },
27
28
  'urls': {
28
29
  'api': {
package/js/src/pro/htx.js CHANGED
@@ -29,6 +29,7 @@ export default class htx extends htxRest {
29
29
  'watchTickers': false,
30
30
  'watchTicker': true,
31
31
  'watchTrades': true,
32
+ 'watchTradesForSymbols': false,
32
33
  'watchMyTrades': true,
33
34
  'watchBalance': true,
34
35
  'watchOHLCV': true,
@@ -18,6 +18,7 @@ export default class huobijp extends huobijpRest {
18
18
  'watchTickers': false,
19
19
  'watchTicker': true,
20
20
  'watchTrades': true,
21
+ 'watchTradesForSymbols': false,
21
22
  'watchBalance': false,
22
23
  'watchOHLCV': true,
23
24
  },