ccxt 4.4.94 → 4.4.96

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 (125) hide show
  1. package/README.md +7 -7
  2. package/dist/ccxt.browser.min.js +7 -7
  3. package/dist/cjs/ccxt.js +4 -1
  4. package/dist/cjs/src/abstract/foxbit.js +9 -0
  5. package/dist/cjs/src/apex.js +2 -2
  6. package/dist/cjs/src/ascendex.js +3 -3
  7. package/dist/cjs/src/base/Exchange.js +8 -4
  8. package/dist/cjs/src/base/ws/Future.js +2 -2
  9. package/dist/cjs/src/bingx.js +148 -94
  10. package/dist/cjs/src/bitget.js +32 -144
  11. package/dist/cjs/src/bitmart.js +2 -2
  12. package/dist/cjs/src/bitrue.js +15 -8
  13. package/dist/cjs/src/bitstamp.js +1 -0
  14. package/dist/cjs/src/blofin.js +7 -1
  15. package/dist/cjs/src/bybit.js +17 -6
  16. package/dist/cjs/src/coinbase.js +36 -0
  17. package/dist/cjs/src/coinbaseexchange.js +4 -2
  18. package/dist/cjs/src/coinmate.js +34 -0
  19. package/dist/cjs/src/coinone.js +34 -0
  20. package/dist/cjs/src/coinsph.js +29 -0
  21. package/dist/cjs/src/coinspot.js +36 -1
  22. package/dist/cjs/src/cryptocom.js +2 -1
  23. package/dist/cjs/src/cryptomus.js +41 -1
  24. package/dist/cjs/src/defx.js +1 -1
  25. package/dist/cjs/src/derive.js +1 -1
  26. package/dist/cjs/src/ellipx.js +40 -0
  27. package/dist/cjs/src/foxbit.js +2016 -0
  28. package/dist/cjs/src/gate.js +1 -1
  29. package/dist/cjs/src/hyperliquid.js +3 -2
  30. package/dist/cjs/src/kucoin.js +1 -1
  31. package/dist/cjs/src/kucoinfutures.js +3 -2
  32. package/dist/cjs/src/mexc.js +28 -13
  33. package/dist/cjs/src/modetrade.js +3 -3
  34. package/dist/cjs/src/okcoin.js +1 -1
  35. package/dist/cjs/src/okx.js +12 -3
  36. package/dist/cjs/src/onetrading.js +1 -1
  37. package/dist/cjs/src/oxfun.js +2 -1
  38. package/dist/cjs/src/paradex.js +2 -2
  39. package/dist/cjs/src/pro/hyperliquid.js +6 -6
  40. package/dist/cjs/src/pro/kraken.js +18 -18
  41. package/dist/cjs/src/pro/mexc.js +10 -10
  42. package/dist/cjs/src/vertex.js +3 -2
  43. package/dist/cjs/src/woo.js +1281 -894
  44. package/dist/cjs/src/woofipro.js +2 -2
  45. package/js/ccxt.d.ts +5 -2
  46. package/js/ccxt.js +4 -2
  47. package/js/src/abstract/bingx.d.ts +3 -0
  48. package/js/src/abstract/foxbit.d.ts +29 -0
  49. package/js/src/abstract/foxbit.js +11 -0
  50. package/js/src/abstract/woo.d.ts +58 -3
  51. package/js/src/apex.d.ts +2 -2
  52. package/js/src/apex.js +2 -2
  53. package/js/src/ascendex.d.ts +1 -1
  54. package/js/src/ascendex.js +3 -3
  55. package/js/src/base/Exchange.d.ts +7 -6
  56. package/js/src/base/Exchange.js +8 -4
  57. package/js/src/base/ws/Future.js +2 -2
  58. package/js/src/bingx.d.ts +6 -6
  59. package/js/src/bingx.js +148 -94
  60. package/js/src/bitget.js +32 -144
  61. package/js/src/bitmart.d.ts +2 -2
  62. package/js/src/bitmart.js +2 -2
  63. package/js/src/bitrue.js +15 -8
  64. package/js/src/bitstamp.js +2 -1
  65. package/js/src/bittrade.d.ts +1 -1
  66. package/js/src/blofin.d.ts +2 -1
  67. package/js/src/blofin.js +7 -1
  68. package/js/src/bybit.d.ts +1 -1
  69. package/js/src/bybit.js +17 -6
  70. package/js/src/coinbase.js +36 -0
  71. package/js/src/coinbaseexchange.d.ts +2 -2
  72. package/js/src/coinbaseexchange.js +4 -2
  73. package/js/src/coinbaseinternational.d.ts +2 -2
  74. package/js/src/coinmate.js +34 -0
  75. package/js/src/coinone.js +34 -0
  76. package/js/src/coinsph.js +29 -0
  77. package/js/src/coinspot.d.ts +1 -1
  78. package/js/src/coinspot.js +36 -1
  79. package/js/src/cryptocom.d.ts +1 -1
  80. package/js/src/cryptocom.js +2 -1
  81. package/js/src/cryptomus.d.ts +1 -1
  82. package/js/src/cryptomus.js +41 -1
  83. package/js/src/defx.d.ts +2 -2
  84. package/js/src/defx.js +1 -1
  85. package/js/src/derive.d.ts +2 -2
  86. package/js/src/derive.js +1 -1
  87. package/js/src/digifinex.d.ts +1 -1
  88. package/js/src/ellipx.js +40 -0
  89. package/js/src/foxbit.d.ts +352 -0
  90. package/js/src/foxbit.js +2016 -0
  91. package/js/src/gate.js +1 -1
  92. package/js/src/htx.d.ts +2 -2
  93. package/js/src/hyperliquid.d.ts +2 -2
  94. package/js/src/hyperliquid.js +3 -2
  95. package/js/src/krakenfutures.d.ts +1 -1
  96. package/js/src/kucoin.d.ts +1 -1
  97. package/js/src/kucoin.js +1 -1
  98. package/js/src/kucoinfutures.d.ts +3 -3
  99. package/js/src/kucoinfutures.js +3 -2
  100. package/js/src/mexc.d.ts +1 -1
  101. package/js/src/mexc.js +28 -13
  102. package/js/src/modetrade.d.ts +2 -4
  103. package/js/src/modetrade.js +3 -3
  104. package/js/src/ndax.d.ts +1 -1
  105. package/js/src/okcoin.d.ts +1 -1
  106. package/js/src/okcoin.js +1 -1
  107. package/js/src/okx.d.ts +1 -1
  108. package/js/src/okx.js +12 -3
  109. package/js/src/onetrading.d.ts +1 -1
  110. package/js/src/onetrading.js +1 -1
  111. package/js/src/oxfun.d.ts +1 -1
  112. package/js/src/oxfun.js +2 -1
  113. package/js/src/paradex.d.ts +1 -1
  114. package/js/src/paradex.js +2 -2
  115. package/js/src/pro/hyperliquid.js +6 -6
  116. package/js/src/pro/kraken.js +18 -18
  117. package/js/src/pro/mexc.js +10 -10
  118. package/js/src/timex.d.ts +1 -1
  119. package/js/src/vertex.d.ts +2 -2
  120. package/js/src/vertex.js +3 -2
  121. package/js/src/woo.d.ts +80 -50
  122. package/js/src/woo.js +1281 -894
  123. package/js/src/woofipro.d.ts +2 -4
  124. package/js/src/woofipro.js +2 -2
  125. package/package.json +7 -7
@@ -1818,9 +1818,9 @@ class woofipro extends woofipro$1 {
1818
1818
  // }
1819
1819
  //
1820
1820
  return [
1821
- {
1821
+ this.safeOrder({
1822
1822
  'info': response,
1823
- },
1823
+ }),
1824
1824
  ];
1825
1825
  }
1826
1826
  /**
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, 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.4.93";
7
+ declare const version = "4.4.95";
8
8
  import alpaca from './src/alpaca.js';
9
9
  import apex from './src/apex.js';
10
10
  import ascendex from './src/ascendex.js';
@@ -61,6 +61,7 @@ import digifinex from './src/digifinex.js';
61
61
  import ellipx from './src/ellipx.js';
62
62
  import exmo from './src/exmo.js';
63
63
  import fmfwio from './src/fmfwio.js';
64
+ import foxbit from './src/foxbit.js';
64
65
  import gate from './src/gate.js';
65
66
  import gateio from './src/gateio.js';
66
67
  import gemini from './src/gemini.js';
@@ -240,6 +241,7 @@ declare const exchanges: {
240
241
  ellipx: typeof ellipx;
241
242
  exmo: typeof exmo;
242
243
  fmfwio: typeof fmfwio;
244
+ foxbit: typeof foxbit;
243
245
  gate: typeof gate;
244
246
  gateio: typeof gateio;
245
247
  gemini: typeof gemini;
@@ -502,6 +504,7 @@ declare const ccxt: {
502
504
  ellipx: typeof ellipx;
503
505
  exmo: typeof exmo;
504
506
  fmfwio: typeof fmfwio;
507
+ foxbit: typeof foxbit;
505
508
  gate: typeof gate;
506
509
  gateio: typeof gateio;
507
510
  gemini: typeof gemini;
@@ -552,5 +555,5 @@ declare const ccxt: {
552
555
  zaif: typeof zaif;
553
556
  zonda: typeof zonda;
554
557
  } & typeof functions & typeof errors;
555
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, 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, 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, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, 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, tradeogre, upbit, vertex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
558
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, 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, 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, ellipx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, 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, tradeogre, upbit, vertex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
556
559
  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, 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.4.93';
41
+ const version = '4.4.95';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import alpaca from './src/alpaca.js';
@@ -97,6 +97,7 @@ import digifinex from './src/digifinex.js';
97
97
  import ellipx from './src/ellipx.js';
98
98
  import exmo from './src/exmo.js';
99
99
  import fmfwio from './src/fmfwio.js';
100
+ import foxbit from './src/foxbit.js';
100
101
  import gate from './src/gate.js';
101
102
  import gateio from './src/gateio.js';
102
103
  import gemini from './src/gemini.js';
@@ -277,6 +278,7 @@ const exchanges = {
277
278
  'ellipx': ellipx,
278
279
  'exmo': exmo,
279
280
  'fmfwio': fmfwio,
281
+ 'foxbit': foxbit,
280
282
  'gate': gate,
281
283
  'gateio': gateio,
282
284
  'gemini': gemini,
@@ -414,6 +416,6 @@ pro.exchanges = Object.keys(pro);
414
416
  pro['Exchange'] = Exchange; // now the same for rest and ts
415
417
  //-----------------------------------------------------------------------------
416
418
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
417
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, alpaca, apex, ascendex, 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, ellipx, exmo, fmfwio, gate, gateio, gemini, hashkey, 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, tradeogre, upbit, vertex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
419
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, alpaca, apex, ascendex, 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, ellipx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, 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, tradeogre, upbit, vertex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
418
420
  export default ccxt;
419
421
  //-----------------------------------------------------------------------------
@@ -152,9 +152,12 @@ interface Exchange {
152
152
  copyTradingV1PrivatePostSwapTraceSetTPSL(params?: {}): Promise<implicitReturnType>;
153
153
  copyTradingV1PrivatePostSpotTraderSellOrder(params?: {}): Promise<implicitReturnType>;
154
154
  apiV3PrivateGetAssetTransfer(params?: {}): Promise<implicitReturnType>;
155
+ apiV3PrivateGetAssetTransferRecord(params?: {}): Promise<implicitReturnType>;
155
156
  apiV3PrivateGetCapitalDepositHisrec(params?: {}): Promise<implicitReturnType>;
156
157
  apiV3PrivateGetCapitalWithdrawHistory(params?: {}): Promise<implicitReturnType>;
157
158
  apiV3PrivatePostPostAssetTransfer(params?: {}): Promise<implicitReturnType>;
159
+ apiAssetV1PrivatePostTransfer(params?: {}): Promise<implicitReturnType>;
160
+ apiAssetV1PublicGetTransferSupportCoins(params?: {}): Promise<implicitReturnType>;
158
161
  }
159
162
  declare abstract class Exchange extends _Exchange {
160
163
  }
@@ -0,0 +1,29 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ v3PublicGetCurrencies(params?: {}): Promise<implicitReturnType>;
5
+ v3PublicGetMarkets(params?: {}): Promise<implicitReturnType>;
6
+ v3PublicGetMarketsTicker24hr(params?: {}): Promise<implicitReturnType>;
7
+ v3PublicGetMarketsMarketOrderbook(params?: {}): Promise<implicitReturnType>;
8
+ v3PublicGetMarketsMarketCandlesticks(params?: {}): Promise<implicitReturnType>;
9
+ v3PublicGetMarketsMarketTradesHistory(params?: {}): Promise<implicitReturnType>;
10
+ v3PublicGetMarketsMarketTicker24hr(params?: {}): Promise<implicitReturnType>;
11
+ v3PrivateGetAccounts(params?: {}): Promise<implicitReturnType>;
12
+ v3PrivateGetAccountsSymbolTransactions(params?: {}): Promise<implicitReturnType>;
13
+ v3PrivateGetOrders(params?: {}): Promise<implicitReturnType>;
14
+ v3PrivateGetOrdersByOrderIdId(params?: {}): Promise<implicitReturnType>;
15
+ v3PrivateGetTrades(params?: {}): Promise<implicitReturnType>;
16
+ v3PrivateGetDepositsAddress(params?: {}): Promise<implicitReturnType>;
17
+ v3PrivateGetDeposits(params?: {}): Promise<implicitReturnType>;
18
+ v3PrivateGetWithdrawals(params?: {}): Promise<implicitReturnType>;
19
+ v3PrivateGetMeFeesTrading(params?: {}): Promise<implicitReturnType>;
20
+ v3PrivatePostOrders(params?: {}): Promise<implicitReturnType>;
21
+ v3PrivatePostOrdersBatch(params?: {}): Promise<implicitReturnType>;
22
+ v3PrivatePostOrdersCancelReplace(params?: {}): Promise<implicitReturnType>;
23
+ v3PrivatePostWithdrawals(params?: {}): Promise<implicitReturnType>;
24
+ v3PrivatePutOrdersCancel(params?: {}): Promise<implicitReturnType>;
25
+ statusPublicGetStatus(params?: {}): Promise<implicitReturnType>;
26
+ }
27
+ declare abstract class Exchange extends _Exchange {
28
+ }
29
+ export default Exchange;
@@ -0,0 +1,11 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
7
+ // -------------------------------------------------------------------------------
8
+ import { Exchange as _Exchange } from '../base/Exchange.js';
9
+ class Exchange extends _Exchange {
10
+ }
11
+ export default Exchange;
@@ -59,26 +59,81 @@ interface Exchange {
59
59
  v1PrivateDeleteOrders(params?: {}): Promise<implicitReturnType>;
60
60
  v1PrivateDeleteAssetWithdraw(params?: {}): Promise<implicitReturnType>;
61
61
  v2PrivateGetClientHolding(params?: {}): Promise<implicitReturnType>;
62
+ v3PublicGetSystemInfo(params?: {}): Promise<implicitReturnType>;
63
+ v3PublicGetInstruments(params?: {}): Promise<implicitReturnType>;
64
+ v3PublicGetToken(params?: {}): Promise<implicitReturnType>;
65
+ v3PublicGetTokenNetwork(params?: {}): Promise<implicitReturnType>;
66
+ v3PublicGetTokenInfo(params?: {}): Promise<implicitReturnType>;
67
+ v3PublicGetMarketTrades(params?: {}): Promise<implicitReturnType>;
68
+ v3PublicGetMarketTradesHistory(params?: {}): Promise<implicitReturnType>;
69
+ v3PublicGetOrderbook(params?: {}): Promise<implicitReturnType>;
70
+ v3PublicGetKline(params?: {}): Promise<implicitReturnType>;
71
+ v3PublicGetKlineHistory(params?: {}): Promise<implicitReturnType>;
72
+ v3PublicGetFutures(params?: {}): Promise<implicitReturnType>;
73
+ v3PublicGetFundingRate(params?: {}): Promise<implicitReturnType>;
74
+ v3PublicGetFundingRateHistory(params?: {}): Promise<implicitReturnType>;
62
75
  v3PublicGetInsuranceFund(params?: {}): Promise<implicitReturnType>;
76
+ v3PrivateGetTradeOrder(params?: {}): Promise<implicitReturnType>;
77
+ v3PrivateGetTradeOrders(params?: {}): Promise<implicitReturnType>;
78
+ v3PrivateGetTradeAlgoOrder(params?: {}): Promise<implicitReturnType>;
79
+ v3PrivateGetTradeAlgoOrders(params?: {}): Promise<implicitReturnType>;
80
+ v3PrivateGetTradeTransaction(params?: {}): Promise<implicitReturnType>;
81
+ v3PrivateGetTradeTransactionHistory(params?: {}): Promise<implicitReturnType>;
82
+ v3PrivateGetTradeTradingFee(params?: {}): Promise<implicitReturnType>;
83
+ v3PrivateGetAccountInfo(params?: {}): Promise<implicitReturnType>;
84
+ v3PrivateGetAccountTokenConfig(params?: {}): Promise<implicitReturnType>;
85
+ v3PrivateGetAccountSymbolConfig(params?: {}): Promise<implicitReturnType>;
86
+ v3PrivateGetAccountSubAccountsAll(params?: {}): Promise<implicitReturnType>;
87
+ v3PrivateGetAccountReferralSummary(params?: {}): Promise<implicitReturnType>;
88
+ v3PrivateGetAccountReferralRewardHistory(params?: {}): Promise<implicitReturnType>;
89
+ v3PrivateGetAccountCredentials(params?: {}): Promise<implicitReturnType>;
90
+ v3PrivateGetAssetBalances(params?: {}): Promise<implicitReturnType>;
91
+ v3PrivateGetAssetTokenHistory(params?: {}): Promise<implicitReturnType>;
92
+ v3PrivateGetAssetTransferHistory(params?: {}): Promise<implicitReturnType>;
93
+ v3PrivateGetAssetWalletHistory(params?: {}): Promise<implicitReturnType>;
94
+ v3PrivateGetAssetWalletDeposit(params?: {}): Promise<implicitReturnType>;
95
+ v3PrivateGetAssetStakingYieldHistory(params?: {}): Promise<implicitReturnType>;
96
+ v3PrivateGetFuturesPositions(params?: {}): Promise<implicitReturnType>;
97
+ v3PrivateGetFuturesLeverage(params?: {}): Promise<implicitReturnType>;
98
+ v3PrivateGetFuturesDefaultMarginMode(params?: {}): Promise<implicitReturnType>;
99
+ v3PrivateGetFuturesFundingFeeHistory(params?: {}): Promise<implicitReturnType>;
100
+ v3PrivateGetSpotMarginInterestRate(params?: {}): Promise<implicitReturnType>;
101
+ v3PrivateGetSpotMarginInterestHistory(params?: {}): Promise<implicitReturnType>;
102
+ v3PrivateGetSpotMarginMaxMargin(params?: {}): Promise<implicitReturnType>;
63
103
  v3PrivateGetAlgoOrderOid(params?: {}): Promise<implicitReturnType>;
64
104
  v3PrivateGetAlgoOrders(params?: {}): Promise<implicitReturnType>;
65
105
  v3PrivateGetBalances(params?: {}): Promise<implicitReturnType>;
66
- v3PrivateGetAccountinfo(params?: {}): Promise<implicitReturnType>;
67
106
  v3PrivateGetPositions(params?: {}): Promise<implicitReturnType>;
68
107
  v3PrivateGetBuypower(params?: {}): Promise<implicitReturnType>;
69
- v3PrivateGetReferrals(params?: {}): Promise<implicitReturnType>;
70
- v3PrivateGetReferralRewards(params?: {}): Promise<implicitReturnType>;
71
108
  v3PrivateGetConvertExchangeInfo(params?: {}): Promise<implicitReturnType>;
72
109
  v3PrivateGetConvertAssetInfo(params?: {}): Promise<implicitReturnType>;
73
110
  v3PrivateGetConvertRfq(params?: {}): Promise<implicitReturnType>;
74
111
  v3PrivateGetConvertTrade(params?: {}): Promise<implicitReturnType>;
75
112
  v3PrivateGetConvertTrades(params?: {}): Promise<implicitReturnType>;
113
+ v3PrivatePostTradeOrder(params?: {}): Promise<implicitReturnType>;
114
+ v3PrivatePostTradeAlgoOrder(params?: {}): Promise<implicitReturnType>;
115
+ v3PrivatePostTradeCancelAllAfter(params?: {}): Promise<implicitReturnType>;
116
+ v3PrivatePostAccountTradingMode(params?: {}): Promise<implicitReturnType>;
117
+ v3PrivatePostAccountListenKey(params?: {}): Promise<implicitReturnType>;
118
+ v3PrivatePostAssetTransfer(params?: {}): Promise<implicitReturnType>;
119
+ v3PrivatePostAssetWalletWithdraw(params?: {}): Promise<implicitReturnType>;
120
+ v3PrivatePostSpotMarginLeverage(params?: {}): Promise<implicitReturnType>;
121
+ v3PrivatePostSpotMarginInterestRepay(params?: {}): Promise<implicitReturnType>;
76
122
  v3PrivatePostAlgoOrder(params?: {}): Promise<implicitReturnType>;
77
123
  v3PrivatePostConvertRft(params?: {}): Promise<implicitReturnType>;
124
+ v3PrivatePutTradeOrder(params?: {}): Promise<implicitReturnType>;
125
+ v3PrivatePutTradeAlgoOrder(params?: {}): Promise<implicitReturnType>;
126
+ v3PrivatePutFuturesLeverage(params?: {}): Promise<implicitReturnType>;
127
+ v3PrivatePutFuturesPositionMode(params?: {}): Promise<implicitReturnType>;
78
128
  v3PrivatePutOrderOid(params?: {}): Promise<implicitReturnType>;
79
129
  v3PrivatePutOrderClientClientOrderId(params?: {}): Promise<implicitReturnType>;
80
130
  v3PrivatePutAlgoOrderOid(params?: {}): Promise<implicitReturnType>;
81
131
  v3PrivatePutAlgoOrderClientClientOrderId(params?: {}): Promise<implicitReturnType>;
132
+ v3PrivateDeleteTradeOrder(params?: {}): Promise<implicitReturnType>;
133
+ v3PrivateDeleteTradeOrders(params?: {}): Promise<implicitReturnType>;
134
+ v3PrivateDeleteTradeAlgoOrder(params?: {}): Promise<implicitReturnType>;
135
+ v3PrivateDeleteTradeAlgoOrders(params?: {}): Promise<implicitReturnType>;
136
+ v3PrivateDeleteTradeAllOrders(params?: {}): Promise<implicitReturnType>;
82
137
  v3PrivateDeleteAlgoOrderOrderId(params?: {}): Promise<implicitReturnType>;
83
138
  v3PrivateDeleteAlgoOrdersPending(params?: {}): Promise<implicitReturnType>;
84
139
  v3PrivateDeleteAlgoOrdersPendingSymbol(params?: {}): Promise<implicitReturnType>;
package/js/src/apex.d.ts CHANGED
@@ -192,7 +192,7 @@ export default class apex extends Exchange {
192
192
  * @param {object} [params] extra parameters specific to the exchange API endpoint
193
193
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
194
194
  */
195
- cancelAllOrders(symbol?: Str, params?: {}): Promise<import("./base/types").Dictionary<any>>;
195
+ cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
196
196
  /**
197
197
  * @method
198
198
  * @name apex#cancelOrder
@@ -203,7 +203,7 @@ export default class apex extends Exchange {
203
203
  * @param {object} [params] extra parameters specific to the exchange API endpoint
204
204
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
205
205
  */
206
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<import("./base/types").Dictionary<any>>;
206
+ cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
207
207
  /**
208
208
  * @method
209
209
  * @name apex#fetchOrder
package/js/src/apex.js CHANGED
@@ -1541,7 +1541,7 @@ export default class apex extends Exchange {
1541
1541
  }
1542
1542
  const response = await this.privatePostV3DeleteOpenOrders(this.extend(request, params));
1543
1543
  const data = this.safeDict(response, 'data', {});
1544
- return data;
1544
+ return [this.parseOrder(data, market)];
1545
1545
  }
1546
1546
  /**
1547
1547
  * @method
@@ -1567,7 +1567,7 @@ export default class apex extends Exchange {
1567
1567
  response = await this.privatePostV3DeleteOrder(this.extend(request, params));
1568
1568
  }
1569
1569
  const data = this.safeDict(response, 'data', {});
1570
- return data;
1570
+ return this.safeOrder(data);
1571
1571
  }
1572
1572
  /**
1573
1573
  * @method
@@ -223,7 +223,7 @@ export default class ascendex extends Exchange {
223
223
  * @param {object} [params] extra parameters specific to the exchange API endpoint
224
224
  * @returns {object[]} a list with a single [order structure]{@link https://docs.ccxt.com/#/?id=order-structure} with the response assigned to the info property
225
225
  */
226
- cancelAllOrders(symbol?: Str, params?: {}): Promise<Order>;
226
+ cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
227
227
  parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
228
228
  /**
229
229
  * @method
@@ -2543,9 +2543,9 @@ export default class ascendex extends Exchange {
2543
2543
  // }
2544
2544
  // }
2545
2545
  //
2546
- return this.safeOrder({
2547
- 'info': response,
2548
- });
2546
+ return [this.safeOrder({
2547
+ 'info': response,
2548
+ })];
2549
2549
  }
2550
2550
  parseDepositAddress(depositAddress, currency = undefined) {
2551
2551
  //
@@ -51,6 +51,7 @@ export default class Exchange {
51
51
  ws_socks_proxy: string;
52
52
  userAgents: any;
53
53
  headers: any;
54
+ returnResponseHeaders: boolean;
54
55
  origin: string;
55
56
  MAX_VALUE: Num;
56
57
  agent: any;
@@ -504,7 +505,7 @@ export default class Exchange {
504
505
  setPositionMode(hedged: boolean, symbol?: Str, params?: {}): Promise<{}>;
505
506
  addMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
506
507
  reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
507
- setMargin(symbol: string, amount: number, params?: {}): Promise<{}>;
508
+ setMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
508
509
  fetchLongShortRatio(symbol: string, timeframe?: Str, params?: {}): Promise<LongShortRatio>;
509
510
  fetchLongShortRatioHistory(symbol?: Str, timeframe?: Str, since?: Int, limit?: Int, params?: {}): Promise<LongShortRatio[]>;
510
511
  fetchMarginAdjustmentHistory(symbol?: Str, type?: Str, since?: Num, limit?: Num, params?: {}): Promise<MarginModification[]>;
@@ -741,12 +742,12 @@ export default class Exchange {
741
742
  createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
742
743
  editOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
743
744
  createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
744
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<{}>;
745
+ cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
745
746
  cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<{}>;
746
747
  cancelOrdersWs(ids: string[], symbol?: Str, params?: {}): Promise<{}>;
747
- cancelAllOrders(symbol?: Str, params?: {}): Promise<{}>;
748
+ cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
748
749
  cancelAllOrdersAfter(timeout: Int, params?: {}): Promise<{}>;
749
- cancelOrdersForSymbols(orders: CancellationRequest[], params?: {}): Promise<{}>;
750
+ cancelOrdersForSymbols(orders: CancellationRequest[], params?: {}): Promise<Order[]>;
750
751
  cancelAllOrdersWs(symbol?: Str, params?: {}): Promise<{}>;
751
752
  cancelUnifiedOrder(order: any, params?: {}): Promise<{}>;
752
753
  fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
@@ -769,8 +770,8 @@ export default class Exchange {
769
770
  fetchOption(symbol: string, params?: {}): Promise<Option>;
770
771
  fetchConvertQuote(fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
771
772
  fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
772
- fetchDeposits(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
773
- fetchWithdrawals(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
773
+ fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
774
+ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
774
775
  fetchDepositsWs(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<{}>;
775
776
  fetchWithdrawalsWs(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<{}>;
776
777
  fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
@@ -50,6 +50,7 @@ export default class Exchange {
50
50
  'chrome100': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36',
51
51
  };
52
52
  this.headers = {};
53
+ this.returnResponseHeaders = false;
53
54
  this.origin = '*'; // CORS origin
54
55
  this.MAX_VALUE = Number.MAX_VALUE;
55
56
  //
@@ -708,6 +709,9 @@ export default class Exchange {
708
709
  if (!skipFurtherErrorHandling) {
709
710
  this.handleHttpStatusCode(response.status, response.statusText, url, method, responseBody);
710
711
  }
712
+ if (json && !Array.isArray(json) && this.returnResponseHeaders) {
713
+ json['responseHeaders'] = responseHeaders;
714
+ }
711
715
  return json || responseBody;
712
716
  });
713
717
  }
@@ -2358,7 +2362,7 @@ export default class Exchange {
2358
2362
  // keep this in mind:
2359
2363
  // in JS: 1 == 1.0 is true; 1 === 1.0 is true
2360
2364
  // in Python: 1 == 1.0 is true
2361
- // in PHP 1 == 1.0 is true, but 1 === 1.0 is false
2365
+ // in PHP 1 == 1.0 is true, but 1 === 1.0 is false.
2362
2366
  if (stringVersion.indexOf('.') >= 0) {
2363
2367
  return parseFloat(stringVersion);
2364
2368
  }
@@ -3462,7 +3466,7 @@ export default class Exchange {
3462
3466
  for (let i = 0; i < fees.length; i++) {
3463
3467
  const fee = fees[i];
3464
3468
  const code = this.safeString(fee, 'currency');
3465
- const feeCurrencyCode = code !== undefined ? code : i.toString();
3469
+ const feeCurrencyCode = (code !== undefined) ? code : i.toString();
3466
3470
  if (feeCurrencyCode !== undefined) {
3467
3471
  const rate = this.safeString(fee, 'rate');
3468
3472
  const cost = this.safeString(fee, 'cost');
@@ -5498,10 +5502,10 @@ export default class Exchange {
5498
5502
  */
5499
5503
  throw new NotSupported(this.id + ' fetchDepositsWithdrawals() is not supported yet');
5500
5504
  }
5501
- async fetchDeposits(symbol = undefined, since = undefined, limit = undefined, params = {}) {
5505
+ async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
5502
5506
  throw new NotSupported(this.id + ' fetchDeposits() is not supported yet');
5503
5507
  }
5504
- async fetchWithdrawals(symbol = undefined, since = undefined, limit = undefined, params = {}) {
5508
+ async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
5505
5509
  throw new NotSupported(this.id + ' fetchWithdrawals() is not supported yet');
5506
5510
  }
5507
5511
  async fetchDepositsWs(code = undefined, since = undefined, limit = undefined, params = {}) {
@@ -14,13 +14,13 @@ export function Future() {
14
14
  });
15
15
  p.resolve = function _resolve() {
16
16
  // eslint-disable-next-line prefer-rest-params
17
- setTimeout(() => {
17
+ queueMicrotask(() => {
18
18
  resolve.apply(this, arguments);
19
19
  });
20
20
  };
21
21
  p.reject = function _reject() {
22
22
  // eslint-disable-next-line prefer-rest-params
23
- setTimeout(() => {
23
+ queueMicrotask(() => {
24
24
  reject.apply(this, arguments);
25
25
  });
26
26
  };
package/js/src/bingx.d.ts CHANGED
@@ -475,11 +475,11 @@ export default class bingx extends Exchange {
475
475
  * @method
476
476
  * @name bingx#transfer
477
477
  * @description transfer currency internally between wallets on the same account
478
- * @see https://bingx-api.github.io/docs/#/en-us/common/account-api.html#Asset%20Transfer
478
+ * @see https://bingx-api.github.io/docs/#/en-us/common/account-api.html#Asset%20Transfer%20New
479
479
  * @param {string} code unified currency code
480
480
  * @param {float} amount amount to transfer
481
481
  * @param {string} fromAccount account to transfer from (spot, swap, futures, or funding)
482
- * @param {string} toAccount account to transfer to (spot, swap, futures, or funding)
482
+ * @param {string} toAccount account to transfer to (spot, swap (linear or inverse), future, or funding)
483
483
  * @param {object} [params] extra parameters specific to the exchange API endpoint
484
484
  * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
485
485
  */
@@ -488,13 +488,13 @@ export default class bingx extends Exchange {
488
488
  * @method
489
489
  * @name bingx#fetchTransfers
490
490
  * @description fetch a history of internal transfers made on an account
491
- * @see https://bingx-api.github.io/docs/#/spot/account-api.html#Query%20User%20Universal%20Transfer%20History%20(USER_DATA)
491
+ * @see https://bingx-api.github.io/docs/#/en-us/common/account-api.html#Asset%20transfer%20records%20new
492
492
  * @param {string} [code] unified currency code of the currency transferred
493
493
  * @param {int} [since] the earliest time in ms to fetch transfers for
494
494
  * @param {int} [limit] the maximum number of transfers structures to retrieve (default 10, max 100)
495
495
  * @param {object} [params] extra parameters specific to the exchange API endpoint
496
- * @param {string} params.fromAccount (mandatory) transfer from (spot, swap, futures, or funding)
497
- * @param {string} params.toAccount (mandatory) transfer to (spot, swap, futures, or funding)
496
+ * @param {string} params.fromAccount (mandatory) transfer from (spot, swap (linear or inverse), future, or funding)
497
+ * @param {string} params.toAccount (mandatory) transfer to (spot, swap(linear or inverse), future, or funding)
498
498
  * @param {boolean} [params.paginate] whether to paginate the results (default false)
499
499
  * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
500
500
  */
@@ -628,7 +628,7 @@ export default class bingx extends Exchange {
628
628
  * @param {object} [params] extra parameters specific to the exchange API endpoint
629
629
  * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
630
630
  */
631
- fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
631
+ fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<Dict>;
632
632
  /**
633
633
  * @method
634
634
  * @name bingx#withdraw