ccxt 4.5.9 → 4.5.11

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 (79) hide show
  1. package/README.md +5 -6
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +1 -6
  4. package/dist/cjs/src/base/Exchange.js +14 -2
  5. package/dist/cjs/src/bingx.js +1 -1
  6. package/dist/cjs/src/bitfinex.js +4 -2
  7. package/dist/cjs/src/bitget.js +5 -2
  8. package/dist/cjs/src/btcmarkets.js +4 -2
  9. package/dist/cjs/src/coinbase.js +1 -0
  10. package/dist/cjs/src/deribit.js +21 -19
  11. package/dist/cjs/src/kraken.js +4 -0
  12. package/dist/cjs/src/kucoin.js +1 -1
  13. package/dist/cjs/src/latoken.js +1 -0
  14. package/dist/cjs/src/mexc.js +1 -0
  15. package/dist/cjs/src/onetrading.js +2 -1
  16. package/dist/cjs/src/phemex.js +1 -0
  17. package/dist/cjs/src/pro/bitget.js +1 -0
  18. package/dist/cjs/src/pro/htx.js +22 -3
  19. package/dist/cjs/src/pro/kraken.js +282 -458
  20. package/dist/cjs/src/pro/mexc.js +15 -10
  21. package/dist/cjs/src/probit.js +1 -1
  22. package/js/ccxt.d.ts +2 -8
  23. package/js/ccxt.js +2 -6
  24. package/js/src/abstract/coinbase.d.ts +1 -0
  25. package/js/src/abstract/coinbaseadvanced.d.ts +1 -0
  26. package/js/src/abstract/phemex.d.ts +1 -0
  27. package/js/src/base/Exchange.d.ts +5 -2
  28. package/js/src/base/Exchange.js +14 -2
  29. package/js/src/bingx.js +1 -1
  30. package/js/src/bitfinex.d.ts +1 -1
  31. package/js/src/bitfinex.js +4 -2
  32. package/js/src/bitget.d.ts +1 -1
  33. package/js/src/bitget.js +5 -2
  34. package/js/src/bithumb.d.ts +1 -1
  35. package/js/src/bitmex.d.ts +1 -1
  36. package/js/src/bitopro.d.ts +1 -1
  37. package/js/src/bitso.d.ts +1 -1
  38. package/js/src/bittrade.d.ts +1 -1
  39. package/js/src/blofin.d.ts +1 -1
  40. package/js/src/btcmarkets.d.ts +1 -1
  41. package/js/src/btcmarkets.js +4 -2
  42. package/js/src/bybit.d.ts +1 -1
  43. package/js/src/coinbase.d.ts +1 -1
  44. package/js/src/coinbase.js +1 -0
  45. package/js/src/coinex.d.ts +1 -1
  46. package/js/src/cryptocom.d.ts +1 -1
  47. package/js/src/deribit.js +21 -19
  48. package/js/src/digifinex.d.ts +1 -1
  49. package/js/src/hibachi.d.ts +1 -1
  50. package/js/src/htx.d.ts +1 -1
  51. package/js/src/hyperliquid.d.ts +1 -1
  52. package/js/src/kraken.d.ts +1 -1
  53. package/js/src/kraken.js +4 -0
  54. package/js/src/kucoin.js +1 -1
  55. package/js/src/kucoinfutures.d.ts +1 -1
  56. package/js/src/latoken.js +1 -0
  57. package/js/src/mexc.d.ts +1 -1
  58. package/js/src/mexc.js +1 -0
  59. package/js/src/oceanex.d.ts +1 -1
  60. package/js/src/okx.d.ts +1 -1
  61. package/js/src/onetrading.d.ts +1 -1
  62. package/js/src/onetrading.js +2 -1
  63. package/js/src/phemex.js +1 -0
  64. package/js/src/pro/bitget.d.ts +1 -0
  65. package/js/src/pro/bitget.js +1 -0
  66. package/js/src/pro/bitvavo.d.ts +2 -2
  67. package/js/src/pro/htx.js +22 -3
  68. package/js/src/pro/kraken.d.ts +7 -8
  69. package/js/src/pro/kraken.js +282 -458
  70. package/js/src/pro/mexc.js +15 -10
  71. package/js/src/probit.js +1 -1
  72. package/js/src/timex.d.ts +1 -1
  73. package/package.json +1 -1
  74. package/js/src/abstract/okcoin.d.ts +0 -77
  75. package/js/src/abstract/okcoin.js +0 -11
  76. package/js/src/okcoin.d.ts +0 -346
  77. package/js/src/okcoin.js +0 -3214
  78. package/js/src/pro/okcoin.d.ts +0 -91
  79. package/js/src/pro/okcoin.js +0 -763
@@ -998,14 +998,16 @@ class mexc extends mexc$1["default"] {
998
998
  // swap
999
999
  // {
1000
1000
  // "symbol": "BTC_USDT",
1001
- // "data": {
1002
- // "p": 27307.3,
1003
- // "v": 5,
1004
- // "T": 2,
1005
- // "O": 3,
1006
- // "M": 1,
1007
- // "t": 1680055941870
1008
- // },
1001
+ // "data": [
1002
+ // {
1003
+ // "p": 114350.4,
1004
+ // "v": 4,
1005
+ // "T": 2,
1006
+ // "O": 3,
1007
+ // "M": 2,
1008
+ // "t": 1760368563597
1009
+ // }
1010
+ // ],
1009
1011
  // "channel": "push.deal",
1010
1012
  // "ts": 1680055941870
1011
1013
  // }
@@ -1020,8 +1022,11 @@ class mexc extends mexc$1["default"] {
1020
1022
  stored = new Cache.ArrayCache(limit);
1021
1023
  this.trades[symbol] = stored;
1022
1024
  }
1023
- const d = this.safeDictN(message, ['d', 'data', 'publicAggreDeals']);
1024
- const trades = this.safeList2(d, 'deals', 'dealsList', [d]);
1025
+ const d = this.safeDictN(message, ['d', 'publicAggreDeals']);
1026
+ let trades = this.safeList2(d, 'deals', 'dealsList', [d]);
1027
+ if (d === undefined) {
1028
+ trades = this.safeList(message, 'data', []);
1029
+ }
1025
1030
  for (let j = 0; j < trades.length; j++) {
1026
1031
  let parsedTrade = undefined;
1027
1032
  if (market['spot']) {
@@ -858,7 +858,7 @@ class probit extends probit$1["default"] {
858
858
  // "data":[
859
859
  // {
860
860
  // "id":"ETH-BTC:3331886",
861
- // "price":"0.022981",
861
+ // "price":"0.022982",
862
862
  // "quantity":"12.337",
863
863
  // "time":"2020-04-12T20:55:42.371Z",
864
864
  // "side":"sell",
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 } 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.8";
7
+ declare const version = "4.5.10";
8
8
  import alpaca from './src/alpaca.js';
9
9
  import apex from './src/apex.js';
10
10
  import ascendex from './src/ascendex.js';
@@ -88,7 +88,6 @@ import myokx from './src/myokx.js';
88
88
  import ndax from './src/ndax.js';
89
89
  import novadax from './src/novadax.js';
90
90
  import oceanex from './src/oceanex.js';
91
- import okcoin from './src/okcoin.js';
92
91
  import okx from './src/okx.js';
93
92
  import okxus from './src/okxus.js';
94
93
  import onetrading from './src/onetrading.js';
@@ -168,7 +167,6 @@ import mexcPro from './src/pro/mexc.js';
168
167
  import modetradePro from './src/pro/modetrade.js';
169
168
  import myokxPro from './src/pro/myokx.js';
170
169
  import ndaxPro from './src/pro/ndax.js';
171
- import okcoinPro from './src/pro/okcoin.js';
172
170
  import okxPro from './src/pro/okx.js';
173
171
  import okxusPro from './src/pro/okxus.js';
174
172
  import onetradingPro from './src/pro/onetrading.js';
@@ -268,7 +266,6 @@ declare const exchanges: {
268
266
  ndax: typeof ndax;
269
267
  novadax: typeof novadax;
270
268
  oceanex: typeof oceanex;
271
- okcoin: typeof okcoin;
272
269
  okx: typeof okx;
273
270
  okxus: typeof okxus;
274
271
  onetrading: typeof onetrading;
@@ -350,7 +347,6 @@ declare const pro: {
350
347
  modetrade: typeof modetradePro;
351
348
  myokx: typeof myokxPro;
352
349
  ndax: typeof ndaxPro;
353
- okcoin: typeof okcoinPro;
354
350
  okx: typeof okxPro;
355
351
  okxus: typeof okxusPro;
356
352
  onetrading: typeof onetradingPro;
@@ -430,7 +426,6 @@ declare const ccxt: {
430
426
  modetrade: typeof modetradePro;
431
427
  myokx: typeof myokxPro;
432
428
  ndax: typeof ndaxPro;
433
- okcoin: typeof okcoinPro;
434
429
  okx: typeof okxPro;
435
430
  okxus: typeof okxusPro;
436
431
  onetrading: typeof onetradingPro;
@@ -531,7 +526,6 @@ declare const ccxt: {
531
526
  ndax: typeof ndax;
532
527
  novadax: typeof novadax;
533
528
  oceanex: typeof oceanex;
534
- okcoin: typeof okcoin;
535
529
  okx: typeof okx;
536
530
  okxus: typeof okxus;
537
531
  onetrading: typeof onetrading;
@@ -555,5 +549,5 @@ declare const ccxt: {
555
549
  zaif: typeof zaif;
556
550
  zonda: typeof zonda;
557
551
  } & typeof functions & typeof errors;
558
- 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, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, ascendex, 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, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okcoin, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
552
+ 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, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, ascendex, 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, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
559
553
  export default ccxt;
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, 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';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.5.8';
41
+ const version = '4.5.10';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import alpaca from './src/alpaca.js';
@@ -124,7 +124,6 @@ import myokx from './src/myokx.js';
124
124
  import ndax from './src/ndax.js';
125
125
  import novadax from './src/novadax.js';
126
126
  import oceanex from './src/oceanex.js';
127
- import okcoin from './src/okcoin.js';
128
127
  import okx from './src/okx.js';
129
128
  import okxus from './src/okxus.js';
130
129
  import onetrading from './src/onetrading.js';
@@ -205,7 +204,6 @@ import mexcPro from './src/pro/mexc.js';
205
204
  import modetradePro from './src/pro/modetrade.js';
206
205
  import myokxPro from './src/pro/myokx.js';
207
206
  import ndaxPro from './src/pro/ndax.js';
208
- import okcoinPro from './src/pro/okcoin.js';
209
207
  import okxPro from './src/pro/okx.js';
210
208
  import okxusPro from './src/pro/okxus.js';
211
209
  import onetradingPro from './src/pro/onetrading.js';
@@ -305,7 +303,6 @@ const exchanges = {
305
303
  'ndax': ndax,
306
304
  'novadax': novadax,
307
305
  'oceanex': oceanex,
308
- 'okcoin': okcoin,
309
306
  'okx': okx,
310
307
  'okxus': okxus,
311
308
  'onetrading': onetrading,
@@ -387,7 +384,6 @@ const pro = {
387
384
  'modetrade': modetradePro,
388
385
  'myokx': myokxPro,
389
386
  'ndax': ndaxPro,
390
- 'okcoin': okcoinPro,
391
387
  'okx': okxPro,
392
388
  'okxus': okxusPro,
393
389
  'onetrading': onetradingPro,
@@ -416,6 +412,6 @@ pro.exchanges = Object.keys(pro);
416
412
  pro['Exchange'] = Exchange; // now the same for rest and ts
417
413
  //-----------------------------------------------------------------------------
418
414
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
419
- 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, alpaca, apex, ascendex, 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, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okcoin, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
415
+ 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, alpaca, apex, ascendex, 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, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
420
416
  export default ccxt;
421
417
  //-----------------------------------------------------------------------------
@@ -76,6 +76,7 @@ interface Exchange {
76
76
  v3PrivateGetBrokerageIntxPositionsPortfolioUuidSymbol(params?: {}): Promise<implicitReturnType>;
77
77
  v3PrivateGetBrokeragePaymentMethods(params?: {}): Promise<implicitReturnType>;
78
78
  v3PrivateGetBrokeragePaymentMethodsPaymentMethodId(params?: {}): Promise<implicitReturnType>;
79
+ v3PrivateGetBrokerageKeyPermissions(params?: {}): Promise<implicitReturnType>;
79
80
  v3PrivatePostBrokerageOrders(params?: {}): Promise<implicitReturnType>;
80
81
  v3PrivatePostBrokerageOrdersBatchCancel(params?: {}): Promise<implicitReturnType>;
81
82
  v3PrivatePostBrokerageOrdersEdit(params?: {}): Promise<implicitReturnType>;
@@ -76,6 +76,7 @@ interface coinbase {
76
76
  v3PrivateGetBrokerageIntxPositionsPortfolioUuidSymbol(params?: {}): Promise<implicitReturnType>;
77
77
  v3PrivateGetBrokeragePaymentMethods(params?: {}): Promise<implicitReturnType>;
78
78
  v3PrivateGetBrokeragePaymentMethodsPaymentMethodId(params?: {}): Promise<implicitReturnType>;
79
+ v3PrivateGetBrokerageKeyPermissions(params?: {}): Promise<implicitReturnType>;
79
80
  v3PrivatePostBrokerageOrders(params?: {}): Promise<implicitReturnType>;
80
81
  v3PrivatePostBrokerageOrdersBatchCancel(params?: {}): Promise<implicitReturnType>;
81
82
  v3PrivatePostBrokerageOrdersEdit(params?: {}): Promise<implicitReturnType>;
@@ -39,6 +39,7 @@ interface Exchange {
39
39
  privateGetAccountsAccountPositions(params?: {}): Promise<implicitReturnType>;
40
40
  privateGetGAccountsAccountPositions(params?: {}): Promise<implicitReturnType>;
41
41
  privateGetGAccountsPositions(params?: {}): Promise<implicitReturnType>;
42
+ privateGetGAccountsRiskUnit(params?: {}): Promise<implicitReturnType>;
42
43
  privateGetApiDataFuturesFundingFees(params?: {}): Promise<implicitReturnType>;
43
44
  privateGetApiDataGFuturesFundingFees(params?: {}): Promise<implicitReturnType>;
44
45
  privateGetApiDataFuturesOrders(params?: {}): Promise<implicitReturnType>;
@@ -355,7 +355,7 @@ export default class Exchange {
355
355
  */
356
356
  loadMarkets(reload?: boolean, params?: object): Promise<Dictionary<Market>>;
357
357
  fetchCurrencies(params?: {}): Promise<Currencies>;
358
- fetchCurrenciesWs(params?: {}): Promise<unknown>;
358
+ fetchCurrenciesWs(params?: {}): Promise<Currencies>;
359
359
  fetchMarkets(params?: {}): Promise<Market[]>;
360
360
  fetchMarketsWs(params?: {}): Promise<Market[]>;
361
361
  checkRequiredDependencies(): void;
@@ -467,6 +467,8 @@ export default class Exchange {
467
467
  unWatchOrderBookForSymbols(symbols: string[], params?: {}): Promise<any>;
468
468
  unWatchPositions(symbols?: Strings, params?: {}): Promise<any>;
469
469
  unWatchTicker(symbol: string, params?: {}): Promise<any>;
470
+ unWatchMarkPrice(symbol: string, params?: {}): Promise<any>;
471
+ unWatchMarkPrices(symbols?: Strings, params?: {}): Promise<any>;
470
472
  fetchDepositAddresses(codes?: Strings, params?: {}): Promise<DepositAddress[]>;
471
473
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
472
474
  fetchOrderBookWs(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
@@ -767,12 +769,13 @@ export default class Exchange {
767
769
  createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
768
770
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
769
771
  cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>;
772
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
770
773
  cancelOrdersWs(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
771
774
  cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
772
775
  cancelAllOrdersAfter(timeout: Int, params?: {}): Promise<{}>;
773
776
  cancelOrdersForSymbols(orders: CancellationRequest[], params?: {}): Promise<Order[]>;
774
777
  cancelAllOrdersWs(symbol?: Str, params?: {}): Promise<Order[]>;
775
- cancelUnifiedOrder(order: any, params?: {}): Promise<{}>;
778
+ cancelUnifiedOrder(order: Order, params?: {}): Promise<{}>;
776
779
  fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
777
780
  fetchOrdersWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
778
781
  fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
@@ -2248,6 +2248,12 @@ export default class Exchange {
2248
2248
  async unWatchTicker(symbol, params = {}) {
2249
2249
  throw new NotSupported(this.id + ' unWatchTicker() is not supported yet');
2250
2250
  }
2251
+ async unWatchMarkPrice(symbol, params = {}) {
2252
+ throw new NotSupported(this.id + ' unWatchMarkPrice() is not supported yet');
2253
+ }
2254
+ async unWatchMarkPrices(symbols = undefined, params = {}) {
2255
+ throw new NotSupported(this.id + ' unWatchMarkPrices() is not supported yet');
2256
+ }
2251
2257
  async fetchDepositAddresses(codes = undefined, params = {}) {
2252
2258
  throw new NotSupported(this.id + ' fetchDepositAddresses() is not supported yet');
2253
2259
  }
@@ -2663,6 +2669,9 @@ export default class Exchange {
2663
2669
  if (this.features === undefined) {
2664
2670
  return defaultValue;
2665
2671
  }
2672
+ if (marketType === undefined) {
2673
+ return defaultValue; // marketType is required
2674
+ }
2666
2675
  // if marketType (e.g. 'option') does not exist in features
2667
2676
  if (!(marketType in this.features)) {
2668
2677
  return defaultValue; // unsupported marketType, check "exchange.features" for details
@@ -2689,7 +2698,7 @@ export default class Exchange {
2689
2698
  }
2690
2699
  // if user wanted only marketType and didn't provide methodName, eg: featureIsSupported('spot')
2691
2700
  if (methodName === undefined) {
2692
- return methodsContainer;
2701
+ return (defaultValue !== undefined) ? defaultValue : methodsContainer;
2693
2702
  }
2694
2703
  if (!(methodName in methodsContainer)) {
2695
2704
  return defaultValue; // unsupported method, check "exchange.features" for details');
@@ -2700,7 +2709,7 @@ export default class Exchange {
2700
2709
  }
2701
2710
  // if user wanted only method and didn't provide `paramName`, eg: featureIsSupported('swap', 'linear', 'createOrder')
2702
2711
  if (paramName === undefined) {
2703
- return methodDict;
2712
+ return (defaultValue !== undefined) ? defaultValue : methodDict;
2704
2713
  }
2705
2714
  const splited = paramName.split('.'); // can be only parent key (`stopLoss`) or with child (`stopLoss.triggerPrice`)
2706
2715
  const parentKey = splited[0];
@@ -5690,6 +5699,9 @@ export default class Exchange {
5690
5699
  async cancelOrderWs(id, symbol = undefined, params = {}) {
5691
5700
  throw new NotSupported(this.id + ' cancelOrderWs() is not supported yet');
5692
5701
  }
5702
+ async cancelOrders(ids, symbol = undefined, params = {}) {
5703
+ throw new NotSupported(this.id + ' cancelOrders() is not supported yet');
5704
+ }
5693
5705
  async cancelOrdersWs(ids, symbol = undefined, params = {}) {
5694
5706
  throw new NotSupported(this.id + ' cancelOrdersWs() is not supported yet');
5695
5707
  }
package/js/src/bingx.js CHANGED
@@ -5892,7 +5892,7 @@ export default class bingx extends Exchange {
5892
5892
  this.checkAddress(address);
5893
5893
  await this.loadMarkets();
5894
5894
  const currency = this.currency(code);
5895
- const walletType = this.safeInteger(params, 'walletType', 1);
5895
+ const walletType = this.safeInteger(params, 'walletType', 15);
5896
5896
  const request = {
5897
5897
  'coin': currency['id'],
5898
5898
  'address': address,
@@ -201,7 +201,7 @@ export default class bitfinex extends Exchange {
201
201
  * @param {object} [params] extra parameters specific to the exchange API endpoint
202
202
  * @returns {object} an array of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
203
203
  */
204
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
204
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
205
205
  /**
206
206
  * @method
207
207
  * @name bitfinex#fetchOpenOrder
@@ -1984,11 +1984,13 @@ export default class bitfinex extends Exchange {
1984
1984
  */
1985
1985
  async cancelOrders(ids, symbol = undefined, params = {}) {
1986
1986
  await this.loadMarkets();
1987
+ const numericIds = [];
1987
1988
  for (let i = 0; i < ids.length; i++) {
1988
- ids[i] = this.parseToNumeric(ids[i]);
1989
+ // numericIds[i] = this.parseToNumeric (ids[i]);
1990
+ numericIds.push(this.parseToNumeric(ids[i]));
1989
1991
  }
1990
1992
  const request = {
1991
- 'id': ids,
1993
+ 'id': numericIds,
1992
1994
  };
1993
1995
  let market = undefined;
1994
1996
  if (symbol !== undefined) {
@@ -423,7 +423,7 @@ export default class bitget extends Exchange {
423
423
  * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
424
424
  * @returns {object} an array of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
425
425
  */
426
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
426
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
427
427
  /**
428
428
  * @method
429
429
  * @name bitget#cancelAllOrders
package/js/src/bitget.js CHANGED
@@ -7981,7 +7981,10 @@ export default class bitget extends Exchange {
7981
7981
  let market = undefined;
7982
7982
  if (symbols !== undefined) {
7983
7983
  const first = this.safeString(symbols, 0);
7984
- market = this.market(first);
7984
+ // symbols can be undefined or []
7985
+ if (first !== undefined) {
7986
+ market = this.market(first);
7987
+ }
7985
7988
  }
7986
7989
  let productType = undefined;
7987
7990
  [productType, params] = this.handleProductTypeAndParams(market, params);
@@ -7996,7 +7999,7 @@ export default class bitget extends Exchange {
7996
7999
  }
7997
8000
  else if (method === 'privateMixGetV2MixPositionAllPosition') {
7998
8001
  let marginCoin = this.safeString(params, 'marginCoin', 'USDT');
7999
- if (symbols !== undefined) {
8002
+ if (market !== undefined) {
8000
8003
  marginCoin = market['settleId'];
8001
8004
  }
8002
8005
  else if (productType === 'USDT-FUTURES') {
@@ -138,7 +138,7 @@ export default class bithumb extends Exchange {
138
138
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
139
139
  */
140
140
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
141
- cancelUnifiedOrder(order: any, params?: {}): Promise<Order>;
141
+ cancelUnifiedOrder(order: Order, params?: {}): Promise<Order>;
142
142
  /**
143
143
  * @method
144
144
  * @name bithumb#withdraw
@@ -233,7 +233,7 @@ export default class bitmex extends Exchange {
233
233
  * @param {object} [params] extra parameters specific to the exchange API endpoint
234
234
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
235
235
  */
236
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
236
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
237
237
  /**
238
238
  * @method
239
239
  * @name bitmex#cancelAllOrders
@@ -143,7 +143,7 @@ export default class bitopro extends Exchange {
143
143
  * @param {object} [params] extra parameters specific to the exchange API endpoint
144
144
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
145
145
  */
146
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
146
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
147
147
  /**
148
148
  * @method
149
149
  * @name bitopro#cancelAllOrders
package/js/src/bitso.d.ts CHANGED
@@ -142,7 +142,7 @@ export default class bitso extends Exchange {
142
142
  * @param {object} [params] extra parameters specific to the exchange API endpoint
143
143
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
144
144
  */
145
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
145
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
146
146
  /**
147
147
  * @method
148
148
  * @name bitso#cancelAllOrders
@@ -234,7 +234,7 @@ export default class bittrade extends Exchange {
234
234
  * @param {object} [params] extra parameters specific to the exchange API endpoint
235
235
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
236
236
  */
237
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any[]>;
237
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
238
238
  parseCancelOrders(orders: any): any[];
239
239
  /**
240
240
  * @method
@@ -276,7 +276,7 @@ export default class blofin extends Exchange {
276
276
  * @param {boolean} [params.trigger] whether the order is a stop/trigger order
277
277
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
278
278
  */
279
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
279
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
280
280
  /**
281
281
  * @method
282
282
  * @name blofin#transfer
@@ -150,7 +150,7 @@ export default class btcmarkets extends Exchange {
150
150
  * @param {object} [params] extra parameters specific to the exchange API endpoint
151
151
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
152
152
  */
153
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
153
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
154
154
  /**
155
155
  * @method
156
156
  * @name btcmarkets#cancelOrder
@@ -1013,11 +1013,13 @@ export default class btcmarkets extends Exchange {
1013
1013
  */
1014
1014
  async cancelOrders(ids, symbol = undefined, params = {}) {
1015
1015
  await this.loadMarkets();
1016
+ const numericIds = [];
1016
1017
  for (let i = 0; i < ids.length; i++) {
1017
- ids[i] = parseInt(ids[i]);
1018
+ // numericIds[i] = parseInt (ids[i]);
1019
+ numericIds.push(parseInt(ids[i]));
1018
1020
  }
1019
1021
  const request = {
1020
- 'ids': ids,
1022
+ 'ids': numericIds,
1021
1023
  };
1022
1024
  const response = await this.privateDeleteBatchordersIds(this.extend(request, params));
1023
1025
  //
package/js/src/bybit.d.ts CHANGED
@@ -322,7 +322,7 @@ export default class bybit extends Exchange {
322
322
  * @param {string[]} [params.clientOrderIds] client order ids
323
323
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
324
324
  */
325
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
325
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
326
326
  /**
327
327
  * @method
328
328
  * @name bybit#cancelAllOrdersAfter
@@ -279,7 +279,7 @@ export default class coinbase extends Exchange {
279
279
  * @param {object} [params] extra parameters specific to the exchange API endpoint
280
280
  * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
281
281
  */
282
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
282
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
283
283
  /**
284
284
  * @method
285
285
  * @name coinbase#editOrder
@@ -281,6 +281,7 @@ export default class coinbase extends Exchange {
281
281
  'brokerage/intx/positions/{portfolio_uuid}/{symbol}': 1,
282
282
  'brokerage/payment_methods': 1,
283
283
  'brokerage/payment_methods/{payment_method_id}': 1,
284
+ 'brokerage/key_permissions': 1,
284
285
  },
285
286
  'post': {
286
287
  'brokerage/orders': 1,
@@ -207,7 +207,7 @@ export default class coinex extends Exchange {
207
207
  * @param {boolean} [params.trigger] set to true for canceling stop orders
208
208
  * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
209
209
  */
210
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any[]>;
210
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
211
211
  /**
212
212
  * @method
213
213
  * @name coinex#editOrder
@@ -200,7 +200,7 @@ export default class cryptocom extends Exchange {
200
200
  * @param {object} [params] extra parameters specific to the exchange API endpoint
201
201
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
202
202
  */
203
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
203
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
204
204
  /**
205
205
  * @method
206
206
  * @name cryptocom#cancelOrdersForSymbols
package/js/src/deribit.js CHANGED
@@ -617,24 +617,26 @@ export default class deribit extends Exchange {
617
617
  const response = await this.publicGetGetCurrencies(params);
618
618
  //
619
619
  // {
620
- // "jsonrpc": "2.0",
621
- // "result": [
622
- // {
623
- // "withdrawal_priorities": [],
624
- // "withdrawal_fee": 0.01457324,
625
- // "min_withdrawal_fee": 0.000001,
626
- // "min_confirmations": 1,
627
- // "fee_precision": 8,
628
- // "currency_long": "Solana",
629
- // "currency": "SOL",
630
- // "coin_type": "SOL"
631
- // },
632
- // ...
633
- // ],
634
- // "usIn": 1688652701456124,
635
- // "usOut": 1688652701456390,
636
- // "usDiff": 266,
637
- // "testnet": true
620
+ // "jsonrpc": "2.0",
621
+ // "result": [
622
+ // {
623
+ // "currency": "XRP",
624
+ // "network_fee": "1.5e-5",
625
+ // "min_withdrawal_fee": "0.0001",
626
+ // "apr": "0.0",
627
+ // "withdrawal_fee": "0.0001",
628
+ // "network_currency": "XRP",
629
+ // "coin_type": "XRP",
630
+ // "withdrawal_priorities": [],
631
+ // "min_confirmations": "1",
632
+ // "currency_long": "XRP",
633
+ // "in_cross_collateral_pool": false
634
+ // },
635
+ // ],
636
+ // "usIn": "1760110326693923",
637
+ // "usOut": "1760110326944891",
638
+ // "usDiff": "250968",
639
+ // "testnet": false
638
640
  // }
639
641
  //
640
642
  const data = this.safeList(response, 'result', []);
@@ -653,7 +655,7 @@ export default class deribit extends Exchange {
653
655
  'withdraw': undefined,
654
656
  'type': 'crypto',
655
657
  'fee': this.safeNumber(currency, 'withdrawal_fee'),
656
- 'precision': this.parseNumber(this.parsePrecision(this.safeString(currency, 'fee_precision'))),
658
+ 'precision': undefined,
657
659
  'limits': {
658
660
  'amount': {
659
661
  'min': undefined,
@@ -188,7 +188,7 @@ export default class digifinex extends Exchange {
188
188
  * @param {object} [params] extra parameters specific to the exchange API endpoint
189
189
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
190
190
  */
191
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any[]>;
191
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
192
192
  parseOrderStatus(status: Str): string;
193
193
  parseOrder(order: Dict, market?: Market): Order;
194
194
  /**
@@ -150,7 +150,7 @@ export default class hibachi extends Exchange {
150
150
  * @param {object} [params] extra parameters specific to the exchange API endpoint
151
151
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
152
152
  */
153
- cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<any[]>;
153
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
154
154
  /**
155
155
  * @method
156
156
  * @name hibachi#cancelAllOrders
package/js/src/htx.d.ts CHANGED
@@ -495,7 +495,7 @@ export default class htx extends Exchange {
495
495
  * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
496
496
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
497
497
  */
498
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any[]>;
498
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
499
499
  parseCancelOrders(orders: any): any[];
500
500
  /**
501
501
  * @method
@@ -245,7 +245,7 @@ export default class hyperliquid extends Exchange {
245
245
  * @param {string} [params.subAccountAddress] sub account user address
246
246
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
247
247
  */
248
- cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<any[]>;
248
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
249
249
  cancelOrdersRequest(ids: string[], symbol?: Str, params?: {}): Dict;
250
250
  /**
251
251
  * @method
@@ -298,7 +298,7 @@ export default class kraken extends Exchange {
298
298
  * @param {object} [params] extra parameters specific to the exchange API endpoint
299
299
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
300
300
  */
301
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
301
+ cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
302
302
  /**
303
303
  * @method
304
304
  * @name kraken#cancelAllOrders
package/js/src/kraken.js CHANGED
@@ -1729,6 +1729,10 @@ export default class kraken extends Exchange {
1729
1729
  const statuses = {
1730
1730
  'pending': 'open',
1731
1731
  'open': 'open',
1732
+ 'pending_new': 'open',
1733
+ 'new': 'open',
1734
+ 'partially_filled': 'open',
1735
+ 'filled': 'closed',
1732
1736
  'closed': 'closed',
1733
1737
  'canceled': 'canceled',
1734
1738
  'expired': 'expired',