ccxt 4.5.45 → 4.5.47

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 (91) hide show
  1. package/README.md +5 -6
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -6
  4. package/dist/cjs/src/aftermath.js +1 -1
  5. package/dist/cjs/src/backpack.js +1 -1
  6. package/dist/cjs/src/base/Exchange.js +27 -0
  7. package/dist/cjs/src/binance.js +23 -17
  8. package/dist/cjs/src/bitfinex.js +6 -11
  9. package/dist/cjs/src/bitget.js +9 -4
  10. package/dist/cjs/src/bitmart.js +144 -21
  11. package/dist/cjs/src/bitmex.js +46 -0
  12. package/dist/cjs/src/bitstamp.js +14 -1
  13. package/dist/cjs/src/bittrade.js +1 -1
  14. package/dist/cjs/src/blofin.js +137 -29
  15. package/dist/cjs/src/bybit.js +58 -56
  16. package/dist/cjs/src/bydfi.js +102 -100
  17. package/dist/cjs/src/gate.js +37 -2
  18. package/dist/cjs/src/hollaex.js +1 -1
  19. package/dist/cjs/src/kraken.js +39 -29
  20. package/dist/cjs/src/kucoin.js +2161 -462
  21. package/dist/cjs/src/lighter.js +2 -2
  22. package/dist/cjs/src/okx.js +75 -58
  23. package/dist/cjs/src/paradex.js +2 -6
  24. package/dist/cjs/src/pro/bittrade.js +4 -0
  25. package/dist/cjs/src/pro/bydfi.js +19 -19
  26. package/dist/cjs/src/pro/gate.js +79 -54
  27. package/dist/cjs/src/pro/grvt.js +6 -4
  28. package/dist/cjs/src/pro/htx.js +4 -4
  29. package/dist/cjs/src/pro/lighter.js +1 -1
  30. package/dist/cjs/src/pro/okx.js +1 -1
  31. package/dist/cjs/src/whitebit.js +21 -2
  32. package/index.d.cts +2 -0
  33. package/js/ccxt.d.ts +2 -8
  34. package/js/ccxt.js +2 -6
  35. package/js/src/abstract/bitmart.d.ts +7 -0
  36. package/js/src/abstract/blofin.d.ts +28 -12
  37. package/js/src/abstract/bydfi.d.ts +29 -29
  38. package/js/src/abstract/kraken.d.ts +36 -29
  39. package/js/src/abstract/kucoin.d.ts +2 -0
  40. package/js/src/abstract/kucoinfutures.d.ts +2 -0
  41. package/js/src/aftermath.js +1 -1
  42. package/js/src/backpack.js +1 -1
  43. package/js/src/base/Exchange.d.ts +2 -0
  44. package/js/src/base/Exchange.js +27 -0
  45. package/js/src/binance.js +23 -17
  46. package/js/src/bitfinex.js +6 -11
  47. package/js/src/bitget.d.ts +1 -1
  48. package/js/src/bitget.js +9 -4
  49. package/js/src/bitmart.d.ts +18 -4
  50. package/js/src/bitmart.js +144 -21
  51. package/js/src/bitmex.d.ts +12 -0
  52. package/js/src/bitmex.js +46 -0
  53. package/js/src/bitstamp.js +14 -1
  54. package/js/src/bittrade.js +1 -1
  55. package/js/src/blofin.d.ts +2 -0
  56. package/js/src/blofin.js +137 -29
  57. package/js/src/bybit.d.ts +1 -0
  58. package/js/src/bybit.js +58 -56
  59. package/js/src/bydfi.d.ts +31 -31
  60. package/js/src/bydfi.js +102 -100
  61. package/js/src/gate.js +37 -2
  62. package/js/src/hollaex.js +1 -1
  63. package/js/src/kraken.js +39 -29
  64. package/js/src/kucoin.d.ts +249 -8
  65. package/js/src/kucoin.js +2161 -462
  66. package/js/src/lighter.js +2 -2
  67. package/js/src/okx.d.ts +1 -0
  68. package/js/src/okx.js +75 -58
  69. package/js/src/paradex.d.ts +0 -1
  70. package/js/src/paradex.js +2 -6
  71. package/js/src/pro/bittrade.js +4 -0
  72. package/js/src/pro/bydfi.d.ts +18 -18
  73. package/js/src/pro/bydfi.js +19 -19
  74. package/js/src/pro/gate.d.ts +2 -2
  75. package/js/src/pro/gate.js +79 -54
  76. package/js/src/pro/grvt.js +6 -4
  77. package/js/src/pro/htx.js +4 -4
  78. package/js/src/pro/lighter.js +1 -1
  79. package/js/src/pro/okx.js +1 -1
  80. package/js/src/whitebit.d.ts +1 -1
  81. package/js/src/whitebit.js +21 -2
  82. package/package.json +2 -2
  83. package/dist/cjs/src/abstract/coincatch.js +0 -11
  84. package/dist/cjs/src/coincatch.js +0 -5495
  85. package/dist/cjs/src/pro/coincatch.js +0 -1563
  86. package/js/src/abstract/coincatch.d.ts +0 -97
  87. package/js/src/abstract/coincatch.js +0 -5
  88. package/js/src/coincatch.d.ts +0 -788
  89. package/js/src/coincatch.js +0 -5488
  90. package/js/src/pro/coincatch.d.ts +0 -207
  91. package/js/src/pro/coincatch.js +0 -1556
@@ -32,10 +32,10 @@ class htx extends htx$1["default"] {
32
32
  'watchMyTrades': true,
33
33
  'watchBalance': true,
34
34
  'watchOHLCV': true,
35
- 'unwatchTicker': true,
36
- 'unwatchOHLCV': true,
37
- 'unwatchTrades': true,
38
- 'unwatchOrderBook': true,
35
+ 'unWatchTicker': true,
36
+ 'unWatchOHLCV': true,
37
+ 'unWatchTrades': true,
38
+ 'unWatchOrderBook': true,
39
39
  },
40
40
  'urls': {
41
41
  'api': {
@@ -820,7 +820,7 @@ class lighter extends lighter$1["default"] {
820
820
  const error = this.safeDict(message, 'error');
821
821
  try {
822
822
  if (error !== undefined) {
823
- const code = this.safeString(message, 'code');
823
+ const code = this.safeString(error, 'code');
824
824
  if (code !== undefined) {
825
825
  const feedback = this.id + ' ' + this.json(message);
826
826
  this.throwExactlyMatchedException(this.exceptions['exact'], code, feedback);
@@ -2377,7 +2377,7 @@ class okx extends okx$1["default"] {
2377
2377
  if (errorCode !== undefined) {
2378
2378
  this.throwExactlyMatchedException(this.exceptions['exact'], errorCode, feedback);
2379
2379
  }
2380
- messageString = this.safeValue(message, 'sMsg');
2380
+ messageString = this.safeValue(d, 'sMsg');
2381
2381
  if (messageString !== undefined) {
2382
2382
  this.throwBroadlyMatchedException(this.exceptions['broad'], messageString, feedback);
2383
2383
  }
@@ -427,6 +427,7 @@ class whitebit extends whitebit$1["default"] {
427
427
  '422': errors.OrderNotFound, // {"response":null,"status":422,"errors":{"orderId":["Finished order id 1295772653 not found on your account"]},"notification":null,"warning":"Finished order id 1295772653 not found on your account","_token":null}
428
428
  },
429
429
  'broad': {
430
+ 'limit must be less than or equal to': errors.BadRequest,
430
431
  'This action is unauthorized': errors.PermissionDenied,
431
432
  'Given amount is less than min amount': errors.InvalidOrder,
432
433
  'Min amount step': errors.InvalidOrder,
@@ -4020,7 +4021,7 @@ class whitebit extends whitebit$1["default"] {
4020
4021
  * @see https://docs.whitebit.com/api-reference/market-data/funding-history
4021
4022
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
4022
4023
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
4023
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch (default 100, max 1000)
4024
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch (default 100, max 100)
4024
4025
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4025
4026
  * @param {int} [params.until] timestamp in ms of the latest funding rate
4026
4027
  * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
@@ -4029,7 +4030,7 @@ class whitebit extends whitebit$1["default"] {
4029
4030
  if (symbol === undefined) {
4030
4031
  throw new errors.ArgumentsRequired(this.id + ' fetchFundingRateHistory() requires a symbol argument');
4031
4032
  }
4032
- const maxLimit = 1000;
4033
+ const maxLimit = 100;
4033
4034
  let paginate = false;
4034
4035
  [paginate, params] = this.handleOptionAndParams(params, 'fetchFundingRateHistory', 'paginate');
4035
4036
  if (paginate) {
@@ -4148,6 +4149,24 @@ class whitebit extends whitebit$1["default"] {
4148
4149
  this.throwBroadlyMatchedException(this.exceptions['broad'], body, feedback);
4149
4150
  throw new errors.ExchangeError(feedback);
4150
4151
  }
4152
+ // {"success":false,"message":{"limit":["limit must be less than or equal to 100"]},"result":null}
4153
+ const success = this.safeBool(response, 'success', true);
4154
+ if (!success) {
4155
+ const errMsg = this.safeDict(response, 'message', {});
4156
+ const errKeys = Object.keys(errMsg);
4157
+ const errKeysLength = errKeys.length;
4158
+ let errorInfo = body;
4159
+ if (errKeysLength > 0) {
4160
+ const errorKey = errKeys[0];
4161
+ const errorMessageArray = this.safeList(errMsg, errorKey, []);
4162
+ const errorMessageLength = errorMessageArray.length;
4163
+ errorInfo = (errorMessageLength > 0) ? errorMessageArray[0] : body;
4164
+ }
4165
+ const feedback = this.id + ' ' + body;
4166
+ this.throwExactlyMatchedException(this.exceptions['exact'], errorInfo, feedback);
4167
+ this.throwBroadlyMatchedException(this.exceptions['broad'], body, feedback);
4168
+ throw new errors.ExchangeError(feedback);
4169
+ }
4151
4170
  }
4152
4171
  return undefined;
4153
4172
  }
package/index.d.cts ADDED
@@ -0,0 +1,2 @@
1
+ import * as ccxt from "./js/ccxt.js";
2
+ export = ccxt;
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, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs, ADL } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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.5.44";
7
+ declare const version = "4.5.46";
8
8
  import aftermath from './src/aftermath.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import apex from './src/apex.js';
@@ -48,7 +48,6 @@ import coinbase from './src/coinbase.js';
48
48
  import coinbaseadvanced from './src/coinbaseadvanced.js';
49
49
  import coinbaseexchange from './src/coinbaseexchange.js';
50
50
  import coinbaseinternational from './src/coinbaseinternational.js';
51
- import coincatch from './src/coincatch.js';
52
51
  import coincheck from './src/coincheck.js';
53
52
  import coinex from './src/coinex.js';
54
53
  import coinmate from './src/coinmate.js';
@@ -148,7 +147,6 @@ import coinbasePro from './src/pro/coinbase.js';
148
147
  import coinbaseadvancedPro from './src/pro/coinbaseadvanced.js';
149
148
  import coinbaseexchangePro from './src/pro/coinbaseexchange.js';
150
149
  import coinbaseinternationalPro from './src/pro/coinbaseinternational.js';
151
- import coincatchPro from './src/pro/coincatch.js';
152
150
  import coincheckPro from './src/pro/coincheck.js';
153
151
  import coinexPro from './src/pro/coinex.js';
154
152
  import coinonePro from './src/pro/coinone.js';
@@ -238,7 +236,6 @@ declare const exchanges: {
238
236
  coinbaseadvanced: typeof coinbaseadvanced;
239
237
  coinbaseexchange: typeof coinbaseexchange;
240
238
  coinbaseinternational: typeof coinbaseinternational;
241
- coincatch: typeof coincatch;
242
239
  coincheck: typeof coincheck;
243
240
  coinex: typeof coinex;
244
241
  coinmate: typeof coinmate;
@@ -340,7 +337,6 @@ declare const pro: {
340
337
  coinbaseadvanced: typeof coinbaseadvancedPro;
341
338
  coinbaseexchange: typeof coinbaseexchangePro;
342
339
  coinbaseinternational: typeof coinbaseinternationalPro;
343
- coincatch: typeof coincatchPro;
344
340
  coincheck: typeof coincheckPro;
345
341
  coinex: typeof coinexPro;
346
342
  coinone: typeof coinonePro;
@@ -426,7 +422,6 @@ declare const ccxt: {
426
422
  coinbaseadvanced: typeof coinbaseadvancedPro;
427
423
  coinbaseexchange: typeof coinbaseexchangePro;
428
424
  coinbaseinternational: typeof coinbaseinternationalPro;
429
- coincatch: typeof coincatchPro;
430
425
  coincheck: typeof coincheckPro;
431
426
  coinex: typeof coinexPro;
432
427
  coinone: typeof coinonePro;
@@ -517,7 +512,6 @@ declare const ccxt: {
517
512
  coinbaseadvanced: typeof coinbaseadvanced;
518
513
  coinbaseexchange: typeof coinbaseexchange;
519
514
  coinbaseinternational: typeof coinbaseinternational;
520
- coincatch: typeof coincatch;
521
515
  coincheck: typeof coincheck;
522
516
  coinex: typeof coinex;
523
517
  coinmate: typeof coinmate;
@@ -585,5 +579,5 @@ declare const ccxt: {
585
579
  zebpay: typeof zebpay;
586
580
  zonda: typeof zonda;
587
581
  } & typeof functions & typeof errors;
588
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, ADL, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, aftermath, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, grvt, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, lighter, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
582
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, ADL, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, aftermath, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, grvt, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, lighter, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
589
583
  export default ccxt;
package/js/ccxt.js CHANGED
@@ -32,7 +32,7 @@ import * as errors from './src/base/errors.js';
32
32
  import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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';
33
33
  //-----------------------------------------------------------------------------
34
34
  // this is updated by vss.js when building
35
- const version = '4.5.44';
35
+ const version = '4.5.46';
36
36
  Exchange.ccxtVersion = version;
37
37
  //-----------------------------------------------------------------------------
38
38
  import aftermath from './src/aftermath.js';
@@ -78,7 +78,6 @@ import coinbase from './src/coinbase.js';
78
78
  import coinbaseadvanced from './src/coinbaseadvanced.js';
79
79
  import coinbaseexchange from './src/coinbaseexchange.js';
80
80
  import coinbaseinternational from './src/coinbaseinternational.js';
81
- import coincatch from './src/coincatch.js';
82
81
  import coincheck from './src/coincheck.js';
83
82
  import coinex from './src/coinex.js';
84
83
  import coinmate from './src/coinmate.js';
@@ -179,7 +178,6 @@ import coinbasePro from './src/pro/coinbase.js';
179
178
  import coinbaseadvancedPro from './src/pro/coinbaseadvanced.js';
180
179
  import coinbaseexchangePro from './src/pro/coinbaseexchange.js';
181
180
  import coinbaseinternationalPro from './src/pro/coinbaseinternational.js';
182
- import coincatchPro from './src/pro/coincatch.js';
183
181
  import coincheckPro from './src/pro/coincheck.js';
184
182
  import coinexPro from './src/pro/coinex.js';
185
183
  import coinonePro from './src/pro/coinone.js';
@@ -269,7 +267,6 @@ const exchanges = {
269
267
  'coinbaseadvanced': coinbaseadvanced,
270
268
  'coinbaseexchange': coinbaseexchange,
271
269
  'coinbaseinternational': coinbaseinternational,
272
- 'coincatch': coincatch,
273
270
  'coincheck': coincheck,
274
271
  'coinex': coinex,
275
272
  'coinmate': coinmate,
@@ -371,7 +368,6 @@ const pro = {
371
368
  'coinbaseadvanced': coinbaseadvancedPro,
372
369
  'coinbaseexchange': coinbaseexchangePro,
373
370
  'coinbaseinternational': coinbaseinternationalPro,
374
- 'coincatch': coincatchPro,
375
371
  'coincheck': coincheckPro,
376
372
  'coinex': coinexPro,
377
373
  'coinone': coinonePro,
@@ -430,6 +426,6 @@ pro.exchanges = Object.keys(pro);
430
426
  pro['Exchange'] = Exchange; // now the same for rest and ts
431
427
  //-----------------------------------------------------------------------------
432
428
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
433
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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, aftermath, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, grvt, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, lighter, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
429
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, 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, aftermath, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, grvt, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, lighter, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
434
430
  export default ccxt;
435
431
  //-----------------------------------------------------------------------------
@@ -91,6 +91,13 @@ interface Exchange {
91
91
  privatePostSpotV4CancelOrders(params?: {}): Promise<implicitReturnType>;
92
92
  privatePostSpotV4CancelAll(params?: {}): Promise<implicitReturnType>;
93
93
  privatePostSpotV4BatchOrders(params?: {}): Promise<implicitReturnType>;
94
+ privatePostSpotV4AlgoSubmitOrder(params?: {}): Promise<implicitReturnType>;
95
+ privatePostSpotV4AlgoCancelOrder(params?: {}): Promise<implicitReturnType>;
96
+ privatePostSpotV4AlgoCancelAll(params?: {}): Promise<implicitReturnType>;
97
+ privatePostSpotV4QueryAlgoOrder(params?: {}): Promise<implicitReturnType>;
98
+ privatePostSpotV4QueryAlgoClientOrder(params?: {}): Promise<implicitReturnType>;
99
+ privatePostSpotV4QueryAlgoOpenOrders(params?: {}): Promise<implicitReturnType>;
100
+ privatePostSpotV4QueryAlgoHistoryOrders(params?: {}): Promise<implicitReturnType>;
94
101
  privatePostSpotV3CancelOrder(params?: {}): Promise<implicitReturnType>;
95
102
  privatePostSpotV2BatchOrders(params?: {}): Promise<implicitReturnType>;
96
103
  privatePostSpotV2SubmitOrder(params?: {}): Promise<implicitReturnType>;
@@ -5,31 +5,44 @@ interface Exchange {
5
5
  publicGetMarketTickers(params?: {}): Promise<implicitReturnType>;
6
6
  publicGetMarketBooks(params?: {}): Promise<implicitReturnType>;
7
7
  publicGetMarketTrades(params?: {}): Promise<implicitReturnType>;
8
- publicGetMarketCandles(params?: {}): Promise<implicitReturnType>;
9
8
  publicGetMarketMarkPrice(params?: {}): Promise<implicitReturnType>;
10
9
  publicGetMarketFundingRate(params?: {}): Promise<implicitReturnType>;
11
10
  publicGetMarketFundingRateHistory(params?: {}): Promise<implicitReturnType>;
11
+ publicGetMarketCandles(params?: {}): Promise<implicitReturnType>;
12
+ publicGetMarketIndexCandles(params?: {}): Promise<implicitReturnType>;
13
+ publicGetMarketMarkPriceCandles(params?: {}): Promise<implicitReturnType>;
14
+ publicGetMarketPositionTiers(params?: {}): Promise<implicitReturnType>;
12
15
  privateGetAssetBalances(params?: {}): Promise<implicitReturnType>;
13
- privateGetTradeOrdersPending(params?: {}): Promise<implicitReturnType>;
14
- privateGetTradeFillsHistory(params?: {}): Promise<implicitReturnType>;
15
- privateGetAssetDepositHistory(params?: {}): Promise<implicitReturnType>;
16
- privateGetAssetWithdrawalHistory(params?: {}): Promise<implicitReturnType>;
17
16
  privateGetAssetBills(params?: {}): Promise<implicitReturnType>;
17
+ privateGetAssetWithdrawalHistory(params?: {}): Promise<implicitReturnType>;
18
+ privateGetAssetDepositHistory(params?: {}): Promise<implicitReturnType>;
19
+ privateGetAccountConfig(params?: {}): Promise<implicitReturnType>;
20
+ privateGetAssetCurrencies(params?: {}): Promise<implicitReturnType>;
18
21
  privateGetAccountBalance(params?: {}): Promise<implicitReturnType>;
19
22
  privateGetAccountPositions(params?: {}): Promise<implicitReturnType>;
20
- privateGetAccountLeverageInfo(params?: {}): Promise<implicitReturnType>;
23
+ privateGetAccountPositionsHistory(params?: {}): Promise<implicitReturnType>;
21
24
  privateGetAccountMarginMode(params?: {}): Promise<implicitReturnType>;
22
25
  privateGetAccountPositionMode(params?: {}): Promise<implicitReturnType>;
26
+ privateGetAccountLeverageInfo(params?: {}): Promise<implicitReturnType>;
23
27
  privateGetAccountBatchLeverageInfo(params?: {}): Promise<implicitReturnType>;
28
+ privateGetTradeOrdersPending(params?: {}): Promise<implicitReturnType>;
29
+ privateGetTradeOrderDetail(params?: {}): Promise<implicitReturnType>;
24
30
  privateGetTradeOrdersTpslPending(params?: {}): Promise<implicitReturnType>;
31
+ privateGetTradeOrderTpslDetail(params?: {}): Promise<implicitReturnType>;
25
32
  privateGetTradeOrdersAlgoPending(params?: {}): Promise<implicitReturnType>;
26
33
  privateGetTradeOrdersHistory(params?: {}): Promise<implicitReturnType>;
27
34
  privateGetTradeOrdersTpslHistory(params?: {}): Promise<implicitReturnType>;
28
35
  privateGetTradeOrdersAlgoHistory(params?: {}): Promise<implicitReturnType>;
36
+ privateGetTradeFillsHistory(params?: {}): Promise<implicitReturnType>;
29
37
  privateGetTradeOrderPriceRange(params?: {}): Promise<implicitReturnType>;
30
- privateGetUserQueryApikey(params?: {}): Promise<implicitReturnType>;
31
38
  privateGetAffiliateBasic(params?: {}): Promise<implicitReturnType>;
39
+ privateGetAffiliateReferralCode(params?: {}): Promise<implicitReturnType>;
40
+ privateGetAffiliateInvitees(params?: {}): Promise<implicitReturnType>;
41
+ privateGetAffiliateSubInvitees(params?: {}): Promise<implicitReturnType>;
42
+ privateGetAffiliateSubAffiliates(params?: {}): Promise<implicitReturnType>;
43
+ privateGetAffiliateInviteesDailyInfo(params?: {}): Promise<implicitReturnType>;
32
44
  privateGetCopytradingInstruments(params?: {}): Promise<implicitReturnType>;
45
+ privateGetCopytradingConfig(params?: {}): Promise<implicitReturnType>;
33
46
  privateGetCopytradingAccountBalance(params?: {}): Promise<implicitReturnType>;
34
47
  privateGetCopytradingAccountPositionsByOrder(params?: {}): Promise<implicitReturnType>;
35
48
  privateGetCopytradingAccountPositionsDetailsByOrder(params?: {}): Promise<implicitReturnType>;
@@ -41,19 +54,22 @@ interface Exchange {
41
54
  privateGetCopytradingTradePositionHistoryByOrder(params?: {}): Promise<implicitReturnType>;
42
55
  privateGetCopytradingTradeOrdersHistory(params?: {}): Promise<implicitReturnType>;
43
56
  privateGetCopytradingTradePendingTpslByOrder(params?: {}): Promise<implicitReturnType>;
57
+ privateGetUserQueryApikey(params?: {}): Promise<implicitReturnType>;
58
+ privateGetSpotTradeFillsHistory(params?: {}): Promise<implicitReturnType>;
59
+ privatePostAssetTransfer(params?: {}): Promise<implicitReturnType>;
60
+ privatePostAssetDemoApplyMoney(params?: {}): Promise<implicitReturnType>;
44
61
  privatePostAccountSetMarginMode(params?: {}): Promise<implicitReturnType>;
45
62
  privatePostAccountSetPositionMode(params?: {}): Promise<implicitReturnType>;
46
- privatePostTradeOrder(params?: {}): Promise<implicitReturnType>;
47
- privatePostTradeOrderAlgo(params?: {}): Promise<implicitReturnType>;
48
- privatePostTradeCancelOrder(params?: {}): Promise<implicitReturnType>;
49
- privatePostTradeCancelAlgo(params?: {}): Promise<implicitReturnType>;
50
63
  privatePostAccountSetLeverage(params?: {}): Promise<implicitReturnType>;
64
+ privatePostTradeOrder(params?: {}): Promise<implicitReturnType>;
51
65
  privatePostTradeBatchOrders(params?: {}): Promise<implicitReturnType>;
52
66
  privatePostTradeOrderTpsl(params?: {}): Promise<implicitReturnType>;
67
+ privatePostTradeOrderAlgo(params?: {}): Promise<implicitReturnType>;
68
+ privatePostTradeCancelOrder(params?: {}): Promise<implicitReturnType>;
53
69
  privatePostTradeCancelBatchOrders(params?: {}): Promise<implicitReturnType>;
54
70
  privatePostTradeCancelTpsl(params?: {}): Promise<implicitReturnType>;
71
+ privatePostTradeCancelAlgo(params?: {}): Promise<implicitReturnType>;
55
72
  privatePostTradeClosePosition(params?: {}): Promise<implicitReturnType>;
56
- privatePostAssetTransfer(params?: {}): Promise<implicitReturnType>;
57
73
  privatePostCopytradingAccountSetPositionMode(params?: {}): Promise<implicitReturnType>;
58
74
  privatePostCopytradingAccountSetLeverage(params?: {}): Promise<implicitReturnType>;
59
75
  privatePostCopytradingTradePlaceOrder(params?: {}): Promise<implicitReturnType>;
@@ -2,30 +2,30 @@ import { implicitReturnType } from '../base/types.js';
2
2
  import { Exchange as _Exchange } from '../base/Exchange.js';
3
3
  interface Exchange {
4
4
  publicGetV1PublicApiLimits(params?: {}): Promise<implicitReturnType>;
5
- publicGetV1SwapMarketExchangeInfo(params?: {}): Promise<implicitReturnType>;
6
- publicGetV1SwapMarketDepth(params?: {}): Promise<implicitReturnType>;
7
- publicGetV1SwapMarketTrades(params?: {}): Promise<implicitReturnType>;
8
- publicGetV1SwapMarketKlines(params?: {}): Promise<implicitReturnType>;
9
- publicGetV1SwapMarketTicker24hr(params?: {}): Promise<implicitReturnType>;
10
- publicGetV1SwapMarketTickerPrice(params?: {}): Promise<implicitReturnType>;
11
- publicGetV1SwapMarketMarkPrice(params?: {}): Promise<implicitReturnType>;
12
- publicGetV1SwapMarketFundingRate(params?: {}): Promise<implicitReturnType>;
13
- publicGetV1SwapMarketFundingRateHistory(params?: {}): Promise<implicitReturnType>;
14
- publicGetV1SwapMarketRiskLimit(params?: {}): Promise<implicitReturnType>;
5
+ publicGetV1FapiMarketExchangeInfo(params?: {}): Promise<implicitReturnType>;
6
+ publicGetV1FapiMarketDepth(params?: {}): Promise<implicitReturnType>;
7
+ publicGetV1FapiMarketTrades(params?: {}): Promise<implicitReturnType>;
8
+ publicGetV1FapiMarketKlines(params?: {}): Promise<implicitReturnType>;
9
+ publicGetV1FapiMarketTicker24hr(params?: {}): Promise<implicitReturnType>;
10
+ publicGetV1FapiMarketTickerPrice(params?: {}): Promise<implicitReturnType>;
11
+ publicGetV1FapiMarketMarkPrice(params?: {}): Promise<implicitReturnType>;
12
+ publicGetV1FapiMarketFundingRate(params?: {}): Promise<implicitReturnType>;
13
+ publicGetV1FapiMarketFundingRateHistory(params?: {}): Promise<implicitReturnType>;
14
+ publicGetV1FapiMarketRiskLimit(params?: {}): Promise<implicitReturnType>;
15
15
  privateGetV1AccountAssets(params?: {}): Promise<implicitReturnType>;
16
16
  privateGetV1AccountTransferRecords(params?: {}): Promise<implicitReturnType>;
17
17
  privateGetV1SpotDepositRecords(params?: {}): Promise<implicitReturnType>;
18
18
  privateGetV1SpotWithdrawRecords(params?: {}): Promise<implicitReturnType>;
19
- privateGetV1SwapTradeOpenOrder(params?: {}): Promise<implicitReturnType>;
20
- privateGetV1SwapTradePlanOrder(params?: {}): Promise<implicitReturnType>;
21
- privateGetV1SwapTradeLeverage(params?: {}): Promise<implicitReturnType>;
22
- privateGetV1SwapTradeHistoryOrder(params?: {}): Promise<implicitReturnType>;
23
- privateGetV1SwapTradeHistoryTrade(params?: {}): Promise<implicitReturnType>;
24
- privateGetV1SwapTradePositionHistory(params?: {}): Promise<implicitReturnType>;
25
- privateGetV1SwapTradePositions(params?: {}): Promise<implicitReturnType>;
26
- privateGetV1SwapAccountBalance(params?: {}): Promise<implicitReturnType>;
27
- privateGetV1SwapUserDataAssetsMargin(params?: {}): Promise<implicitReturnType>;
28
- privateGetV1SwapUserDataPositionSideDual(params?: {}): Promise<implicitReturnType>;
19
+ privateGetV1FapiTradeOpenOrder(params?: {}): Promise<implicitReturnType>;
20
+ privateGetV1FapiTradePlanOrder(params?: {}): Promise<implicitReturnType>;
21
+ privateGetV1FapiTradeLeverage(params?: {}): Promise<implicitReturnType>;
22
+ privateGetV1FapiTradeHistoryOrder(params?: {}): Promise<implicitReturnType>;
23
+ privateGetV1FapiTradeHistoryTrade(params?: {}): Promise<implicitReturnType>;
24
+ privateGetV1FapiTradePositionHistory(params?: {}): Promise<implicitReturnType>;
25
+ privateGetV1FapiTradePositions(params?: {}): Promise<implicitReturnType>;
26
+ privateGetV1FapiAccountBalance(params?: {}): Promise<implicitReturnType>;
27
+ privateGetV1FapiUserDataAssetsMargin(params?: {}): Promise<implicitReturnType>;
28
+ privateGetV1FapiUserDataPositionSideDual(params?: {}): Promise<implicitReturnType>;
29
29
  privateGetV1AgentTeams(params?: {}): Promise<implicitReturnType>;
30
30
  privateGetV1AgentAgentLinks(params?: {}): Promise<implicitReturnType>;
31
31
  privateGetV1AgentRegularOverview(params?: {}): Promise<implicitReturnType>;
@@ -36,15 +36,15 @@ interface Exchange {
36
36
  privateGetV1AgentAffiliateCommission(params?: {}): Promise<implicitReturnType>;
37
37
  privateGetV1AgentInternalWithdrawalStatus(params?: {}): Promise<implicitReturnType>;
38
38
  privatePostV1AccountTransfer(params?: {}): Promise<implicitReturnType>;
39
- privatePostV1SwapTradePlaceOrder(params?: {}): Promise<implicitReturnType>;
40
- privatePostV1SwapTradeBatchPlaceOrder(params?: {}): Promise<implicitReturnType>;
41
- privatePostV1SwapTradeEditOrder(params?: {}): Promise<implicitReturnType>;
42
- privatePostV1SwapTradeBatchEditOrder(params?: {}): Promise<implicitReturnType>;
43
- privatePostV1SwapTradeCancelAllOrder(params?: {}): Promise<implicitReturnType>;
44
- privatePostV1SwapTradeLeverage(params?: {}): Promise<implicitReturnType>;
45
- privatePostV1SwapTradeBatchLeverageMargin(params?: {}): Promise<implicitReturnType>;
46
- privatePostV1SwapUserDataMarginType(params?: {}): Promise<implicitReturnType>;
47
- privatePostV1SwapUserDataPositionSideDual(params?: {}): Promise<implicitReturnType>;
39
+ privatePostV1FapiTradePlaceOrder(params?: {}): Promise<implicitReturnType>;
40
+ privatePostV1FapiTradeBatchPlaceOrder(params?: {}): Promise<implicitReturnType>;
41
+ privatePostV1FapiTradeEditOrder(params?: {}): Promise<implicitReturnType>;
42
+ privatePostV1FapiTradeBatchEditOrder(params?: {}): Promise<implicitReturnType>;
43
+ privatePostV1FapiTradeCancelAllOrder(params?: {}): Promise<implicitReturnType>;
44
+ privatePostV1FapiTradeLeverage(params?: {}): Promise<implicitReturnType>;
45
+ privatePostV1FapiTradeBatchLeverageMargin(params?: {}): Promise<implicitReturnType>;
46
+ privatePostV1FapiUserDataMarginType(params?: {}): Promise<implicitReturnType>;
47
+ privatePostV1FapiUserDataPositionSideDual(params?: {}): Promise<implicitReturnType>;
48
48
  privatePostV1AgentInternalWithdrawal(params?: {}): Promise<implicitReturnType>;
49
49
  }
50
50
  declare abstract class Exchange extends _Exchange {
@@ -3,49 +3,56 @@ import { Exchange as _Exchange } from '../base/Exchange.js';
3
3
  interface Exchange {
4
4
  zendeskGet360000292886(params?: {}): Promise<implicitReturnType>;
5
5
  zendeskGet201893608(params?: {}): Promise<implicitReturnType>;
6
+ publicGetTime(params?: {}): Promise<implicitReturnType>;
7
+ publicGetSystemStatus(params?: {}): Promise<implicitReturnType>;
6
8
  publicGetAssets(params?: {}): Promise<implicitReturnType>;
7
9
  publicGetAssetPairs(params?: {}): Promise<implicitReturnType>;
8
- publicGetDepth(params?: {}): Promise<implicitReturnType>;
9
- publicGetOHLC(params?: {}): Promise<implicitReturnType>;
10
- publicGetSpread(params?: {}): Promise<implicitReturnType>;
11
- publicGetSystemStatus(params?: {}): Promise<implicitReturnType>;
12
10
  publicGetTicker(params?: {}): Promise<implicitReturnType>;
13
- publicGetTime(params?: {}): Promise<implicitReturnType>;
11
+ publicGetOHLC(params?: {}): Promise<implicitReturnType>;
12
+ publicGetDepth(params?: {}): Promise<implicitReturnType>;
13
+ publicGetLevel3(params?: {}): Promise<implicitReturnType>;
14
+ publicGetGroupedBook(params?: {}): Promise<implicitReturnType>;
14
15
  publicGetTrades(params?: {}): Promise<implicitReturnType>;
15
- privatePostAddOrder(params?: {}): Promise<implicitReturnType>;
16
- privatePostAddOrderBatch(params?: {}): Promise<implicitReturnType>;
16
+ publicGetSpread(params?: {}): Promise<implicitReturnType>;
17
+ publicGetPreTrade(params?: {}): Promise<implicitReturnType>;
18
+ publicGetPostTrade(params?: {}): Promise<implicitReturnType>;
19
+ privatePostBalance(params?: {}): Promise<implicitReturnType>;
20
+ privatePostBalanceEx(params?: {}): Promise<implicitReturnType>;
21
+ privatePostCreditLines(params?: {}): Promise<implicitReturnType>;
22
+ privatePostTradeBalance(params?: {}): Promise<implicitReturnType>;
23
+ privatePostOpenOrders(params?: {}): Promise<implicitReturnType>;
24
+ privatePostClosedOrders(params?: {}): Promise<implicitReturnType>;
25
+ privatePostQueryOrders(params?: {}): Promise<implicitReturnType>;
26
+ privatePostOrderAmends(params?: {}): Promise<implicitReturnType>;
27
+ privatePostTradesHistory(params?: {}): Promise<implicitReturnType>;
28
+ privatePostQueryTrades(params?: {}): Promise<implicitReturnType>;
29
+ privatePostOpenPositions(params?: {}): Promise<implicitReturnType>;
30
+ privatePostLedgers(params?: {}): Promise<implicitReturnType>;
31
+ privatePostQueryLedgers(params?: {}): Promise<implicitReturnType>;
32
+ privatePostTradeVolume(params?: {}): Promise<implicitReturnType>;
17
33
  privatePostAddExport(params?: {}): Promise<implicitReturnType>;
34
+ privatePostExportStatus(params?: {}): Promise<implicitReturnType>;
35
+ privatePostRetrieveExport(params?: {}): Promise<implicitReturnType>;
36
+ privatePostRemoveExport(params?: {}): Promise<implicitReturnType>;
37
+ privatePostGetApiKeyInfo(params?: {}): Promise<implicitReturnType>;
38
+ privatePostAddOrder(params?: {}): Promise<implicitReturnType>;
18
39
  privatePostAmendOrder(params?: {}): Promise<implicitReturnType>;
19
- privatePostBalance(params?: {}): Promise<implicitReturnType>;
40
+ privatePostCancelOrder(params?: {}): Promise<implicitReturnType>;
20
41
  privatePostCancelAll(params?: {}): Promise<implicitReturnType>;
21
42
  privatePostCancelAllOrdersAfter(params?: {}): Promise<implicitReturnType>;
22
- privatePostCancelOrder(params?: {}): Promise<implicitReturnType>;
43
+ privatePostGetWebSocketsToken(params?: {}): Promise<implicitReturnType>;
44
+ privatePostAddOrderBatch(params?: {}): Promise<implicitReturnType>;
23
45
  privatePostCancelOrderBatch(params?: {}): Promise<implicitReturnType>;
24
- privatePostClosedOrders(params?: {}): Promise<implicitReturnType>;
25
- privatePostDepositAddresses(params?: {}): Promise<implicitReturnType>;
46
+ privatePostEditOrder(params?: {}): Promise<implicitReturnType>;
26
47
  privatePostDepositMethods(params?: {}): Promise<implicitReturnType>;
48
+ privatePostDepositAddresses(params?: {}): Promise<implicitReturnType>;
27
49
  privatePostDepositStatus(params?: {}): Promise<implicitReturnType>;
28
- privatePostEditOrder(params?: {}): Promise<implicitReturnType>;
29
- privatePostExportStatus(params?: {}): Promise<implicitReturnType>;
30
- privatePostGetWebSocketsToken(params?: {}): Promise<implicitReturnType>;
31
- privatePostLedgers(params?: {}): Promise<implicitReturnType>;
32
- privatePostOpenOrders(params?: {}): Promise<implicitReturnType>;
33
- privatePostOpenPositions(params?: {}): Promise<implicitReturnType>;
34
- privatePostQueryLedgers(params?: {}): Promise<implicitReturnType>;
35
- privatePostQueryOrders(params?: {}): Promise<implicitReturnType>;
36
- privatePostQueryTrades(params?: {}): Promise<implicitReturnType>;
37
- privatePostRetrieveExport(params?: {}): Promise<implicitReturnType>;
38
- privatePostRemoveExport(params?: {}): Promise<implicitReturnType>;
39
- privatePostBalanceEx(params?: {}): Promise<implicitReturnType>;
40
- privatePostTradeBalance(params?: {}): Promise<implicitReturnType>;
41
- privatePostTradesHistory(params?: {}): Promise<implicitReturnType>;
42
- privatePostTradeVolume(params?: {}): Promise<implicitReturnType>;
43
- privatePostWithdraw(params?: {}): Promise<implicitReturnType>;
44
- privatePostWithdrawCancel(params?: {}): Promise<implicitReturnType>;
45
- privatePostWithdrawInfo(params?: {}): Promise<implicitReturnType>;
46
50
  privatePostWithdrawMethods(params?: {}): Promise<implicitReturnType>;
47
51
  privatePostWithdrawAddresses(params?: {}): Promise<implicitReturnType>;
52
+ privatePostWithdrawInfo(params?: {}): Promise<implicitReturnType>;
53
+ privatePostWithdraw(params?: {}): Promise<implicitReturnType>;
48
54
  privatePostWithdrawStatus(params?: {}): Promise<implicitReturnType>;
55
+ privatePostWithdrawCancel(params?: {}): Promise<implicitReturnType>;
49
56
  privatePostWalletTransfer(params?: {}): Promise<implicitReturnType>;
50
57
  privatePostCreateSubaccount(params?: {}): Promise<implicitReturnType>;
51
58
  privatePostAccountTransfer(params?: {}): Promise<implicitReturnType>;
@@ -25,6 +25,7 @@ interface Exchange {
25
25
  publicGetConvertCurrencies(params?: {}): Promise<implicitReturnType>;
26
26
  publicPostBulletPublic(params?: {}): Promise<implicitReturnType>;
27
27
  privateGetUserInfo(params?: {}): Promise<implicitReturnType>;
28
+ privateGetUserApiKey(params?: {}): Promise<implicitReturnType>;
28
29
  privateGetAccounts(params?: {}): Promise<implicitReturnType>;
29
30
  privateGetAccountsAccountId(params?: {}): Promise<implicitReturnType>;
30
31
  privateGetAccountsLedgers(params?: {}): Promise<implicitReturnType>;
@@ -329,6 +330,7 @@ interface Exchange {
329
330
  utaPrivateGetAccountModeOrderExecution(params?: {}): Promise<implicitReturnType>;
330
331
  utaPrivateGetAccountModePositionOpenList(params?: {}): Promise<implicitReturnType>;
331
332
  utaPrivateGetAccountModePositionHistory(params?: {}): Promise<implicitReturnType>;
333
+ utaPrivateGetPositionHistory(params?: {}): Promise<implicitReturnType>;
332
334
  utaPrivateGetAccountModePositionTiers(params?: {}): Promise<implicitReturnType>;
333
335
  utaPrivateGetSubAccountBalance(params?: {}): Promise<implicitReturnType>;
334
336
  utaPrivateGetUserFeeRate(params?: {}): Promise<implicitReturnType>;
@@ -25,6 +25,7 @@ interface kucoin {
25
25
  publicGetConvertCurrencies(params?: {}): Promise<implicitReturnType>;
26
26
  publicPostBulletPublic(params?: {}): Promise<implicitReturnType>;
27
27
  privateGetUserInfo(params?: {}): Promise<implicitReturnType>;
28
+ privateGetUserApiKey(params?: {}): Promise<implicitReturnType>;
28
29
  privateGetAccounts(params?: {}): Promise<implicitReturnType>;
29
30
  privateGetAccountsAccountId(params?: {}): Promise<implicitReturnType>;
30
31
  privateGetAccountsLedgers(params?: {}): Promise<implicitReturnType>;
@@ -329,6 +330,7 @@ interface kucoin {
329
330
  utaPrivateGetAccountModeOrderExecution(params?: {}): Promise<implicitReturnType>;
330
331
  utaPrivateGetAccountModePositionOpenList(params?: {}): Promise<implicitReturnType>;
331
332
  utaPrivateGetAccountModePositionHistory(params?: {}): Promise<implicitReturnType>;
333
+ utaPrivateGetPositionHistory(params?: {}): Promise<implicitReturnType>;
332
334
  utaPrivateGetAccountModePositionTiers(params?: {}): Promise<implicitReturnType>;
333
335
  utaPrivateGetSubAccountBalance(params?: {}): Promise<implicitReturnType>;
334
336
  utaPrivateGetUserFeeRate(params?: {}): Promise<implicitReturnType>;
@@ -650,7 +650,7 @@ export default class aftermath extends Exchange {
650
650
  //
651
651
  // [
652
652
  // {
653
- // "id": "0x21c5e3d2f5bcfd4351a62cd70874878b7923b56d79d04225ed96370a7ac844c4",
653
+ // "id": "0x22c5e3d2f5bcfd4351a62cd70874878b7923b56d79d04225ed96370a7ac844c4",
654
654
  // "type": "primary",
655
655
  // "code": "USDC",
656
656
  // "accountNumber": 14822
@@ -464,7 +464,7 @@ export default class backpack extends Exchange {
464
464
  'INSUFFICIENT_SUPPLY': InsufficientFunds,
465
465
  'INVALID_ASSET': BadRequest,
466
466
  'INVALID_MARKET': BadSymbol,
467
- 'INVALID_PRICE': BadRequest,
467
+ 'INVALID_PRICE': InvalidOrder,
468
468
  'INVALID_POSITION_ID': BadRequest,
469
469
  'INVALID_QUANTITY': BadRequest,
470
470
  'INVALID_RANGE': BadRequest,
@@ -622,6 +622,7 @@ export default class Exchange {
622
622
  parseFeeNumeric(fee: any): any;
623
623
  findNearestCeiling(arr: number[], providedValue: number): number;
624
624
  invertFlatStringDictionary(dict: any): {};
625
+ stringToBase16(str: any): string;
625
626
  reduceFeesByCurrency(fees: any): any[];
626
627
  safeTicker(ticker: Dict, market?: Market): Ticker;
627
628
  fetchBorrowRate(code: string, amount: number, params?: {}): Promise<{}>;
@@ -695,6 +696,7 @@ export default class Exchange {
695
696
  getListFromObjectValues(objects: any, key: IndexType): any[];
696
697
  getSymbolsForMarketType(marketType?: Str, subType?: Str, symbolWithActiveStatus?: boolean, symbolWithUnknownStatus?: boolean): any[];
697
698
  filterByArray(objects: any, key: IndexType, values?: any, indexed?: boolean): any;
699
+ filterOutByArray(objects: any, key: IndexType, values?: any, indexed?: boolean): any;
698
700
  fetch2(path: any, api?: any, method?: string, params?: {}, headers?: any, body?: any, config?: {}): Promise<any>;
699
701
  request(path: any, api?: any, method?: string, params?: {}, headers?: any, body?: any, config?: {}): Promise<any>;
700
702
  loadAccounts(reload?: boolean, params?: {}): Promise<Account[]>;
@@ -4056,6 +4056,9 @@ export default class Exchange {
4056
4056
  }
4057
4057
  return reversed;
4058
4058
  }
4059
+ stringToBase16(str) {
4060
+ return '0x' + this.binaryToBase16(this.base64ToBinary(this.stringToBase64(str)));
4061
+ }
4059
4062
  reduceFeesByCurrency(fees) {
4060
4063
  //
4061
4064
  // this function takes a list of fee structures having the following format
@@ -5003,6 +5006,30 @@ export default class Exchange {
5003
5006
  }
5004
5007
  return results;
5005
5008
  }
5009
+ filterOutByArray(objects, key, values = undefined, indexed = true) {
5010
+ objects = this.toArray(objects);
5011
+ // return all of them if no values were passed
5012
+ if (values === undefined || !values) {
5013
+ // return indexed ? this.indexBy (objects, key) : objects;
5014
+ if (indexed) {
5015
+ return this.indexBy(objects, key);
5016
+ }
5017
+ else {
5018
+ return objects;
5019
+ }
5020
+ }
5021
+ const results = [];
5022
+ for (let i = 0; i < objects.length; i++) {
5023
+ if (!this.inArray(objects[i][key], values)) {
5024
+ results.push(objects[i]);
5025
+ }
5026
+ }
5027
+ // return indexed ? this.indexBy (results, key) : results;
5028
+ if (indexed) {
5029
+ return this.indexBy(results, key);
5030
+ }
5031
+ return results;
5032
+ }
5006
5033
  async fetch2(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined, config = {}) {
5007
5034
  if (this.enableRateLimit) {
5008
5035
  const cost = this.calculateRateLimiterCost(api, method, path, params, config);