ccxt 4.3.18 → 4.3.19

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 (168) hide show
  1. package/README.md +7 -5
  2. package/dist/cjs/ccxt.js +6 -1
  3. package/dist/cjs/src/abstract/woofipro.js +9 -0
  4. package/dist/cjs/src/ascendex.js +3 -4
  5. package/dist/cjs/src/base/Exchange.js +42 -2
  6. package/dist/cjs/src/base/functions/crypto.js +10 -3
  7. package/dist/cjs/src/base/functions/encode.js +6 -3
  8. package/dist/cjs/src/base/functions/number.js +8 -5
  9. package/dist/cjs/src/base/functions/rsa.js +5 -5
  10. package/dist/cjs/src/bigone.js +1 -1
  11. package/dist/cjs/src/bitfinex.js +25 -1
  12. package/dist/cjs/src/bitfinex2.js +59 -51
  13. package/dist/cjs/src/bitget.js +1 -5
  14. package/dist/cjs/src/bitmart.js +3 -3
  15. package/dist/cjs/src/bitstamp.js +1 -3
  16. package/dist/cjs/src/bybit.js +1 -0
  17. package/dist/cjs/src/coinex.js +321 -537
  18. package/dist/cjs/src/coinlist.js +1 -2
  19. package/dist/cjs/src/deribit.js +1 -1
  20. package/dist/cjs/src/hollaex.js +3 -3
  21. package/dist/cjs/src/indodax.js +1 -1
  22. package/dist/cjs/src/latoken.js +1 -1
  23. package/dist/cjs/src/mexc.js +1 -1
  24. package/dist/cjs/src/novadax.js +0 -1
  25. package/dist/cjs/src/okx.js +17 -0
  26. package/dist/cjs/src/poloniex.js +1 -2
  27. package/dist/cjs/src/pro/bitget.js +136 -192
  28. package/dist/cjs/src/pro/coinbaseinternational.js +9 -1
  29. package/dist/cjs/src/pro/okx.js +85 -0
  30. package/dist/cjs/src/pro/woofipro.js +1263 -0
  31. package/dist/cjs/src/wavesexchange.js +2 -2
  32. package/dist/cjs/src/woo.js +17 -3
  33. package/dist/cjs/src/woofipro.js +2698 -0
  34. package/js/ccxt.d.ts +8 -2
  35. package/js/ccxt.js +6 -2
  36. package/js/src/abstract/bybit.d.ts +1 -0
  37. package/js/src/abstract/okx.d.ts +1 -0
  38. package/js/src/abstract/woofipro.d.ts +122 -0
  39. package/js/src/abstract/woofipro.js +11 -0
  40. package/js/src/ace.d.ts +2 -2
  41. package/js/src/ascendex.d.ts +5 -15
  42. package/js/src/ascendex.js +3 -4
  43. package/js/src/base/Exchange.d.ts +26 -17
  44. package/js/src/base/Exchange.js +42 -2
  45. package/js/src/base/functions/crypto.d.ts +1 -1
  46. package/js/src/base/functions/crypto.js +10 -3
  47. package/js/src/base/functions/encode.d.ts +1 -1
  48. package/js/src/base/functions/encode.js +6 -3
  49. package/js/src/base/functions/number.d.ts +1 -1
  50. package/js/src/base/functions/number.js +8 -5
  51. package/js/src/base/functions/rsa.js +6 -6
  52. package/js/src/base/types.d.ts +4 -0
  53. package/js/src/bigone.d.ts +4 -14
  54. package/js/src/bigone.js +1 -1
  55. package/js/src/binance.d.ts +13 -71
  56. package/js/src/binancecoinm.d.ts +2 -22
  57. package/js/src/binanceusdm.d.ts +2 -22
  58. package/js/src/bingx.d.ts +4 -14
  59. package/js/src/bit2c.d.ts +2 -2
  60. package/js/src/bitbank.d.ts +2 -2
  61. package/js/src/bitbns.d.ts +2 -2
  62. package/js/src/bitfinex.d.ts +6 -16
  63. package/js/src/bitfinex.js +25 -1
  64. package/js/src/bitfinex2.d.ts +6 -16
  65. package/js/src/bitfinex2.js +59 -51
  66. package/js/src/bitflyer.d.ts +2 -2
  67. package/js/src/bitget.d.ts +7 -17
  68. package/js/src/bitget.js +1 -5
  69. package/js/src/bithumb.d.ts +3 -3
  70. package/js/src/bitmart.d.ts +5 -14
  71. package/js/src/bitmart.js +3 -3
  72. package/js/src/bitmex.d.ts +4 -4
  73. package/js/src/bitopro.d.ts +2 -2
  74. package/js/src/bitrue.d.ts +5 -5
  75. package/js/src/bitso.d.ts +2 -2
  76. package/js/src/bitstamp.d.ts +3 -3
  77. package/js/src/bitstamp.js +1 -3
  78. package/js/src/bitteam.d.ts +2 -2
  79. package/js/src/bitvavo.d.ts +5 -5
  80. package/js/src/bl3p.d.ts +2 -2
  81. package/js/src/blockchaincom.d.ts +2 -2
  82. package/js/src/blofin.d.ts +4 -14
  83. package/js/src/btcalpha.d.ts +2 -2
  84. package/js/src/btcbox.d.ts +2 -2
  85. package/js/src/btcmarkets.d.ts +2 -2
  86. package/js/src/btcturk.d.ts +2 -2
  87. package/js/src/bybit.d.ts +8 -56
  88. package/js/src/bybit.js +1 -0
  89. package/js/src/cex.d.ts +2 -2
  90. package/js/src/coinbase.d.ts +4 -4
  91. package/js/src/coinbasepro.d.ts +3 -3
  92. package/js/src/coincheck.d.ts +2 -2
  93. package/js/src/coinex.d.ts +6 -16
  94. package/js/src/coinex.js +321 -537
  95. package/js/src/coinlist.d.ts +5 -15
  96. package/js/src/coinlist.js +1 -2
  97. package/js/src/coinmate.d.ts +2 -2
  98. package/js/src/coinmetro.d.ts +3 -3
  99. package/js/src/coinone.d.ts +2 -2
  100. package/js/src/coinsph.d.ts +2 -2
  101. package/js/src/coinspot.d.ts +2 -2
  102. package/js/src/cryptocom.d.ts +2 -2
  103. package/js/src/currencycom.d.ts +3 -3
  104. package/js/src/delta.d.ts +5 -43
  105. package/js/src/deribit.d.ts +7 -55
  106. package/js/src/deribit.js +1 -1
  107. package/js/src/digifinex.d.ts +5 -15
  108. package/js/src/exmo.d.ts +2 -2
  109. package/js/src/gate.d.ts +6 -54
  110. package/js/src/gemini.d.ts +2 -2
  111. package/js/src/hitbtc.d.ts +4 -14
  112. package/js/src/hollaex.d.ts +3 -3
  113. package/js/src/hollaex.js +3 -3
  114. package/js/src/htx.d.ts +4 -14
  115. package/js/src/huobijp.d.ts +4 -4
  116. package/js/src/hyperliquid.d.ts +1 -1
  117. package/js/src/idex.d.ts +3 -3
  118. package/js/src/independentreserve.d.ts +2 -2
  119. package/js/src/indodax.d.ts +2 -2
  120. package/js/src/indodax.js +1 -1
  121. package/js/src/kraken.d.ts +4 -14
  122. package/js/src/krakenfutures.d.ts +4 -14
  123. package/js/src/kucoin.d.ts +5 -15
  124. package/js/src/kucoinfutures.d.ts +4 -14
  125. package/js/src/kuna.d.ts +2 -2
  126. package/js/src/latoken.d.ts +5 -15
  127. package/js/src/latoken.js +1 -1
  128. package/js/src/lbank.d.ts +2 -2
  129. package/js/src/luno.d.ts +2 -2
  130. package/js/src/lykke.d.ts +2 -2
  131. package/js/src/mercado.d.ts +2 -2
  132. package/js/src/mexc.d.ts +8 -28
  133. package/js/src/mexc.js +1 -1
  134. package/js/src/ndax.d.ts +2 -2
  135. package/js/src/novadax.d.ts +4 -15
  136. package/js/src/novadax.js +0 -1
  137. package/js/src/okcoin.d.ts +4 -14
  138. package/js/src/okx.d.ts +10 -68
  139. package/js/src/okx.js +17 -0
  140. package/js/src/onetrading.d.ts +2 -2
  141. package/js/src/paymium.d.ts +4 -14
  142. package/js/src/phemex.d.ts +5 -15
  143. package/js/src/poloniex.d.ts +3 -13
  144. package/js/src/poloniex.js +1 -2
  145. package/js/src/poloniexfutures.d.ts +2 -2
  146. package/js/src/pro/bitget.js +137 -193
  147. package/js/src/pro/coinbaseinternational.d.ts +3 -3
  148. package/js/src/pro/coinbaseinternational.js +9 -1
  149. package/js/src/pro/okx.d.ts +4 -1
  150. package/js/src/pro/okx.js +85 -0
  151. package/js/src/pro/woofipro.d.ts +47 -0
  152. package/js/src/pro/woofipro.js +1264 -0
  153. package/js/src/probit.d.ts +3 -3
  154. package/js/src/timex.d.ts +2 -2
  155. package/js/src/tokocrypto.d.ts +3 -3
  156. package/js/src/upbit.d.ts +2 -2
  157. package/js/src/wavesexchange.d.ts +3 -3
  158. package/js/src/wavesexchange.js +2 -2
  159. package/js/src/wazirx.d.ts +2 -2
  160. package/js/src/whitebit.d.ts +3 -13
  161. package/js/src/woo.d.ts +7 -17
  162. package/js/src/woo.js +17 -3
  163. package/js/src/woofipro.d.ts +131 -0
  164. package/js/src/woofipro.js +2699 -0
  165. package/js/src/yobit.d.ts +2 -2
  166. package/js/src/zaif.d.ts +2 -2
  167. package/js/src/zonda.d.ts +4 -14
  168. package/package.json +1 -1
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 { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, Leverage, Leverages, Option, OptionChain, Conversion } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
7
- declare const version = "4.3.17";
7
+ declare const version = "4.3.18";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
@@ -105,6 +105,7 @@ import wavesexchange from './src/wavesexchange.js';
105
105
  import wazirx from './src/wazirx.js';
106
106
  import whitebit from './src/whitebit.js';
107
107
  import woo from './src/woo.js';
108
+ import woofipro from './src/woofipro.js';
108
109
  import yobit from './src/yobit.js';
109
110
  import zaif from './src/zaif.js';
110
111
  import zonda from './src/zonda.js';
@@ -172,6 +173,7 @@ import upbitPro from './src/pro/upbit.js';
172
173
  import wazirxPro from './src/pro/wazirx.js';
173
174
  import whitebitPro from './src/pro/whitebit.js';
174
175
  import wooPro from './src/pro/woo.js';
176
+ import woofiproPro from './src/pro/woofipro.js';
175
177
  declare const exchanges: {
176
178
  ace: typeof ace;
177
179
  alpaca: typeof alpaca;
@@ -273,6 +275,7 @@ declare const exchanges: {
273
275
  wazirx: typeof wazirx;
274
276
  whitebit: typeof whitebit;
275
277
  woo: typeof woo;
278
+ woofipro: typeof woofipro;
276
279
  yobit: typeof yobit;
277
280
  zaif: typeof zaif;
278
281
  zonda: typeof zonda;
@@ -342,6 +345,7 @@ declare const pro: {
342
345
  wazirx: typeof wazirxPro;
343
346
  whitebit: typeof whitebitPro;
344
347
  woo: typeof wooPro;
348
+ woofipro: typeof woofiproPro;
345
349
  };
346
350
  declare const ccxt: {
347
351
  version: string;
@@ -413,6 +417,7 @@ declare const ccxt: {
413
417
  wazirx: typeof wazirxPro;
414
418
  whitebit: typeof whitebitPro;
415
419
  woo: typeof wooPro;
420
+ woofipro: typeof woofiproPro;
416
421
  };
417
422
  } & {
418
423
  ace: typeof ace;
@@ -515,9 +520,10 @@ declare const ccxt: {
515
520
  wazirx: typeof wazirx;
516
521
  whitebit: typeof whitebit;
517
522
  woo: typeof woo;
523
+ woofipro: typeof woofipro;
518
524
  yobit: typeof yobit;
519
525
  zaif: typeof zaif;
520
526
  zonda: typeof zonda;
521
527
  } & typeof functions & typeof errors;
522
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, Leverage, Leverages, Option, OptionChain, Conversion, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
528
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, Leverage, Leverages, Option, OptionChain, Conversion, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, yobit, zaif, zonda, };
523
529
  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, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.3.18';
41
+ const version = '4.3.19';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -141,6 +141,7 @@ import wavesexchange from './src/wavesexchange.js';
141
141
  import wazirx from './src/wazirx.js';
142
142
  import whitebit from './src/whitebit.js';
143
143
  import woo from './src/woo.js';
144
+ import woofipro from './src/woofipro.js';
144
145
  import yobit from './src/yobit.js';
145
146
  import zaif from './src/zaif.js';
146
147
  import zonda from './src/zonda.js';
@@ -209,6 +210,7 @@ import upbitPro from './src/pro/upbit.js';
209
210
  import wazirxPro from './src/pro/wazirx.js';
210
211
  import whitebitPro from './src/pro/whitebit.js';
211
212
  import wooPro from './src/pro/woo.js';
213
+ import woofiproPro from './src/pro/woofipro.js';
212
214
  const exchanges = {
213
215
  'ace': ace,
214
216
  'alpaca': alpaca,
@@ -310,6 +312,7 @@ const exchanges = {
310
312
  'wazirx': wazirx,
311
313
  'whitebit': whitebit,
312
314
  'woo': woo,
315
+ 'woofipro': woofipro,
313
316
  'yobit': yobit,
314
317
  'zaif': zaif,
315
318
  'zonda': zonda,
@@ -379,6 +382,7 @@ const pro = {
379
382
  'wazirx': wazirxPro,
380
383
  'whitebit': whitebitPro,
381
384
  'woo': wooPro,
385
+ 'woofipro': woofiproPro,
382
386
  };
383
387
  for (const exchange in pro) {
384
388
  // const ccxtExchange = exchanges[exchange]
@@ -392,6 +396,6 @@ pro.exchanges = Object.keys(pro);
392
396
  pro['Exchange'] = Exchange; // now the same for rest and ts
393
397
  //-----------------------------------------------------------------------------
394
398
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
395
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
399
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, woofipro, yobit, zaif, zonda, };
396
400
  export default ccxt;
397
401
  //-----------------------------------------------------------------------------
@@ -149,6 +149,7 @@ interface Exchange {
149
149
  privateGetV5AssetCoinQueryInfo(params?: {}): Promise<implicitReturnType>;
150
150
  privateGetV5AssetWithdrawQueryRecord(params?: {}): Promise<implicitReturnType>;
151
151
  privateGetV5AssetWithdrawWithdrawableAmount(params?: {}): Promise<implicitReturnType>;
152
+ privateGetV5AssetWithdrawVaspList(params?: {}): Promise<implicitReturnType>;
152
153
  privateGetV5UserQuerySubMembers(params?: {}): Promise<implicitReturnType>;
153
154
  privateGetV5UserQueryApi(params?: {}): Promise<implicitReturnType>;
154
155
  privateGetV5UserSubApikeys(params?: {}): Promise<implicitReturnType>;
@@ -266,6 +266,7 @@ interface Exchange {
266
266
  privatePostTradingBotGridComputeMarginBalance(params?: {}): Promise<implicitReturnType>;
267
267
  privatePostTradingBotGridMarginBalance(params?: {}): Promise<implicitReturnType>;
268
268
  privatePostTradingBotGridMinInvestment(params?: {}): Promise<implicitReturnType>;
269
+ privatePostTradingBotGridAdjustInvestment(params?: {}): Promise<implicitReturnType>;
269
270
  privatePostTradingBotSignalCreateSignal(params?: {}): Promise<implicitReturnType>;
270
271
  privatePostTradingBotSignalOrderAlgo(params?: {}): Promise<implicitReturnType>;
271
272
  privatePostTradingBotSignalStopOrderAlgo(params?: {}): Promise<implicitReturnType>;
@@ -0,0 +1,122 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ v1PublicGetPublicVolumeStats(params?: {}): Promise<implicitReturnType>;
5
+ v1PublicGetPublicBrokerName(params?: {}): Promise<implicitReturnType>;
6
+ v1PublicGetPublicChainInfoBrokerId(params?: {}): Promise<implicitReturnType>;
7
+ v1PublicGetPublicSystemInfo(params?: {}): Promise<implicitReturnType>;
8
+ v1PublicGetPublicVaultBalance(params?: {}): Promise<implicitReturnType>;
9
+ v1PublicGetPublicInsurancefund(params?: {}): Promise<implicitReturnType>;
10
+ v1PublicGetPublicChainInfo(params?: {}): Promise<implicitReturnType>;
11
+ v1PublicGetFaucetUsdc(params?: {}): Promise<implicitReturnType>;
12
+ v1PublicGetPublicAccount(params?: {}): Promise<implicitReturnType>;
13
+ v1PublicGetGetAccount(params?: {}): Promise<implicitReturnType>;
14
+ v1PublicGetRegistrationNonce(params?: {}): Promise<implicitReturnType>;
15
+ v1PublicGetGetOrderlyKey(params?: {}): Promise<implicitReturnType>;
16
+ v1PublicGetPublicLiquidation(params?: {}): Promise<implicitReturnType>;
17
+ v1PublicGetPublicLiquidatedPositions(params?: {}): Promise<implicitReturnType>;
18
+ v1PublicGetPublicConfig(params?: {}): Promise<implicitReturnType>;
19
+ v1PublicGetPublicCampaignRanking(params?: {}): Promise<implicitReturnType>;
20
+ v1PublicGetPublicCampaignStats(params?: {}): Promise<implicitReturnType>;
21
+ v1PublicGetPublicCampaignUser(params?: {}): Promise<implicitReturnType>;
22
+ v1PublicGetPublicCampaignStatsDetails(params?: {}): Promise<implicitReturnType>;
23
+ v1PublicGetPublicCampaigns(params?: {}): Promise<implicitReturnType>;
24
+ v1PublicGetPublicPointsLeaderboard(params?: {}): Promise<implicitReturnType>;
25
+ v1PublicGetClientPoints(params?: {}): Promise<implicitReturnType>;
26
+ v1PublicGetPublicPointsEpoch(params?: {}): Promise<implicitReturnType>;
27
+ v1PublicGetPublicPointsEpochDates(params?: {}): Promise<implicitReturnType>;
28
+ v1PublicGetPublicReferralCheckRefCode(params?: {}): Promise<implicitReturnType>;
29
+ v1PublicGetPublicReferralVerifyRefCode(params?: {}): Promise<implicitReturnType>;
30
+ v1PublicGetReferralAdminInfo(params?: {}): Promise<implicitReturnType>;
31
+ v1PublicGetReferralInfo(params?: {}): Promise<implicitReturnType>;
32
+ v1PublicGetReferralRefereeInfo(params?: {}): Promise<implicitReturnType>;
33
+ v1PublicGetReferralRefereeRebateSummary(params?: {}): Promise<implicitReturnType>;
34
+ v1PublicGetReferralRefereeHistory(params?: {}): Promise<implicitReturnType>;
35
+ v1PublicGetReferralReferralHistory(params?: {}): Promise<implicitReturnType>;
36
+ v1PublicGetReferralRebateSummary(params?: {}): Promise<implicitReturnType>;
37
+ v1PublicGetClientDistributionHistory(params?: {}): Promise<implicitReturnType>;
38
+ v1PublicGetTvConfig(params?: {}): Promise<implicitReturnType>;
39
+ v1PublicGetTvHistory(params?: {}): Promise<implicitReturnType>;
40
+ v1PublicGetTvSymbolInfo(params?: {}): Promise<implicitReturnType>;
41
+ v1PublicGetPublicFundingRateHistory(params?: {}): Promise<implicitReturnType>;
42
+ v1PublicGetPublicFundingRateSymbol(params?: {}): Promise<implicitReturnType>;
43
+ v1PublicGetPublicFundingRates(params?: {}): Promise<implicitReturnType>;
44
+ v1PublicGetPublicInfo(params?: {}): Promise<implicitReturnType>;
45
+ v1PublicGetPublicInfoSymbol(params?: {}): Promise<implicitReturnType>;
46
+ v1PublicGetPublicMarketTrades(params?: {}): Promise<implicitReturnType>;
47
+ v1PublicGetPublicToken(params?: {}): Promise<implicitReturnType>;
48
+ v1PublicGetPublicFutures(params?: {}): Promise<implicitReturnType>;
49
+ v1PublicGetPublicFuturesSymbol(params?: {}): Promise<implicitReturnType>;
50
+ v1PublicPostRegisterAccount(params?: {}): Promise<implicitReturnType>;
51
+ v1PrivateGetClientKeyInfo(params?: {}): Promise<implicitReturnType>;
52
+ v1PrivateGetClientOrderlyKeyIpRestriction(params?: {}): Promise<implicitReturnType>;
53
+ v1PrivateGetOrderOid(params?: {}): Promise<implicitReturnType>;
54
+ v1PrivateGetClientOrderClientOrderId(params?: {}): Promise<implicitReturnType>;
55
+ v1PrivateGetAlgoOrderOid(params?: {}): Promise<implicitReturnType>;
56
+ v1PrivateGetAlgoClientOrderClientOrderId(params?: {}): Promise<implicitReturnType>;
57
+ v1PrivateGetOrders(params?: {}): Promise<implicitReturnType>;
58
+ v1PrivateGetAlgoOrders(params?: {}): Promise<implicitReturnType>;
59
+ v1PrivateGetTradeTid(params?: {}): Promise<implicitReturnType>;
60
+ v1PrivateGetTrades(params?: {}): Promise<implicitReturnType>;
61
+ v1PrivateGetOrderOidTrades(params?: {}): Promise<implicitReturnType>;
62
+ v1PrivateGetClientLiquidatorLiquidations(params?: {}): Promise<implicitReturnType>;
63
+ v1PrivateGetLiquidations(params?: {}): Promise<implicitReturnType>;
64
+ v1PrivateGetAssetHistory(params?: {}): Promise<implicitReturnType>;
65
+ v1PrivateGetClientHolding(params?: {}): Promise<implicitReturnType>;
66
+ v1PrivateGetWithdrawNonce(params?: {}): Promise<implicitReturnType>;
67
+ v1PrivateGetSettleNonce(params?: {}): Promise<implicitReturnType>;
68
+ v1PrivateGetPnlSettlementHistory(params?: {}): Promise<implicitReturnType>;
69
+ v1PrivateGetVolumeUserDaily(params?: {}): Promise<implicitReturnType>;
70
+ v1PrivateGetVolumeUserStats(params?: {}): Promise<implicitReturnType>;
71
+ v1PrivateGetClientStatistics(params?: {}): Promise<implicitReturnType>;
72
+ v1PrivateGetClientInfo(params?: {}): Promise<implicitReturnType>;
73
+ v1PrivateGetClientStatisticsDaily(params?: {}): Promise<implicitReturnType>;
74
+ v1PrivateGetPositions(params?: {}): Promise<implicitReturnType>;
75
+ v1PrivateGetPositionSymbol(params?: {}): Promise<implicitReturnType>;
76
+ v1PrivateGetFundingFeeHistory(params?: {}): Promise<implicitReturnType>;
77
+ v1PrivateGetNotificationInboxNotifications(params?: {}): Promise<implicitReturnType>;
78
+ v1PrivateGetNotificationInboxUnread(params?: {}): Promise<implicitReturnType>;
79
+ v1PrivateGetVolumeBrokerDaily(params?: {}): Promise<implicitReturnType>;
80
+ v1PrivateGetBrokerFeeRateDefault(params?: {}): Promise<implicitReturnType>;
81
+ v1PrivateGetBrokerUserInfo(params?: {}): Promise<implicitReturnType>;
82
+ v1PrivateGetOrderbookSymbol(params?: {}): Promise<implicitReturnType>;
83
+ v1PrivateGetKline(params?: {}): Promise<implicitReturnType>;
84
+ v1PrivatePostOrderlyKey(params?: {}): Promise<implicitReturnType>;
85
+ v1PrivatePostClientSetOrderlyKeyIpRestriction(params?: {}): Promise<implicitReturnType>;
86
+ v1PrivatePostClientResetOrderlyKeyIpRestriction(params?: {}): Promise<implicitReturnType>;
87
+ v1PrivatePostOrder(params?: {}): Promise<implicitReturnType>;
88
+ v1PrivatePostBatchOrder(params?: {}): Promise<implicitReturnType>;
89
+ v1PrivatePostAlgoOrder(params?: {}): Promise<implicitReturnType>;
90
+ v1PrivatePostLiquidation(params?: {}): Promise<implicitReturnType>;
91
+ v1PrivatePostClaimInsuranceFund(params?: {}): Promise<implicitReturnType>;
92
+ v1PrivatePostWithdrawRequest(params?: {}): Promise<implicitReturnType>;
93
+ v1PrivatePostSettlePnl(params?: {}): Promise<implicitReturnType>;
94
+ v1PrivatePostNotificationInboxMarkRead(params?: {}): Promise<implicitReturnType>;
95
+ v1PrivatePostNotificationInboxMarkReadAll(params?: {}): Promise<implicitReturnType>;
96
+ v1PrivatePostClientLeverage(params?: {}): Promise<implicitReturnType>;
97
+ v1PrivatePostClientMaintenanceConfig(params?: {}): Promise<implicitReturnType>;
98
+ v1PrivatePostDelegateSigner(params?: {}): Promise<implicitReturnType>;
99
+ v1PrivatePostDelegateOrderlyKey(params?: {}): Promise<implicitReturnType>;
100
+ v1PrivatePostDelegateSettlePnl(params?: {}): Promise<implicitReturnType>;
101
+ v1PrivatePostDelegateWithdrawRequest(params?: {}): Promise<implicitReturnType>;
102
+ v1PrivatePostBrokerFeeRateSet(params?: {}): Promise<implicitReturnType>;
103
+ v1PrivatePostBrokerFeeRateSetDefault(params?: {}): Promise<implicitReturnType>;
104
+ v1PrivatePostBrokerFeeRateDefault(params?: {}): Promise<implicitReturnType>;
105
+ v1PrivatePostReferralCreate(params?: {}): Promise<implicitReturnType>;
106
+ v1PrivatePostReferralUpdate(params?: {}): Promise<implicitReturnType>;
107
+ v1PrivatePostReferralBind(params?: {}): Promise<implicitReturnType>;
108
+ v1PrivatePostReferralEditSplit(params?: {}): Promise<implicitReturnType>;
109
+ v1PrivatePutOrder(params?: {}): Promise<implicitReturnType>;
110
+ v1PrivatePutAlgoOrder(params?: {}): Promise<implicitReturnType>;
111
+ v1PrivateDeleteOrder(params?: {}): Promise<implicitReturnType>;
112
+ v1PrivateDeleteAlgoOrder(params?: {}): Promise<implicitReturnType>;
113
+ v1PrivateDeleteClientOrder(params?: {}): Promise<implicitReturnType>;
114
+ v1PrivateDeleteAlgoClientOrder(params?: {}): Promise<implicitReturnType>;
115
+ v1PrivateDeleteAlgoOrders(params?: {}): Promise<implicitReturnType>;
116
+ v1PrivateDeleteOrders(params?: {}): Promise<implicitReturnType>;
117
+ v1PrivateDeleteBatchOrder(params?: {}): Promise<implicitReturnType>;
118
+ v1PrivateDeleteClientBatchOrder(params?: {}): Promise<implicitReturnType>;
119
+ }
120
+ declare abstract class Exchange extends _Exchange {
121
+ }
122
+ 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;
package/js/src/ace.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/ace.js';
2
- import type { Balances, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
2
+ import type { Balances, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
3
3
  /**
4
4
  * @class ace
5
5
  * @augments Exchange
@@ -8,7 +8,7 @@ export default class ace extends Exchange {
8
8
  describe(): any;
9
9
  fetchMarkets(params?: {}): Promise<Market[]>;
10
10
  parseMarket(market: any): Market;
11
- parseTicker(ticker: any, market?: Market): Ticker;
11
+ parseTicker(ticker: Dict, market?: Market): Ticker;
12
12
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
13
13
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
14
14
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/ascendex.js';
2
- import type { TransferEntry, FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings, Num, Currency, Market, Leverage, Leverages, Account, MarginModes, MarginMode, MarginModification, Currencies, TradingFees } from './base/types.js';
2
+ import type { TransferEntry, FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings, Num, Currency, Market, Leverage, Leverages, Account, MarginModes, MarginMode, MarginModification, Currencies, TradingFees, Dict } from './base/types.js';
3
3
  /**
4
4
  * @class ascendex
5
5
  * @augments Exchange
@@ -16,7 +16,7 @@ export default class ascendex extends Exchange {
16
16
  parseSwapBalance(response: any): Balances;
17
17
  fetchBalance(params?: {}): Promise<Balances>;
18
18
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
19
- parseTicker(ticker: any, market?: Market): Ticker;
19
+ parseTicker(ticker: Dict, market?: Market): Ticker;
20
20
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
21
21
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
22
22
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
@@ -92,18 +92,8 @@ export default class ascendex extends Exchange {
92
92
  };
93
93
  fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
94
94
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
95
- parseTransfer(transfer: any, currency?: Currency): {
96
- info: any;
97
- id: any;
98
- timestamp: any;
99
- datetime: any;
100
- currency: string;
101
- amount: any;
102
- fromAccount: any;
103
- toAccount: any;
104
- status: string;
105
- };
106
- parseTransferStatus(status: any): "ok" | "failed";
95
+ parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
96
+ parseTransferStatus(status: Str): Str;
107
97
  fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
108
98
  parseIncome(income: any, market?: Market): {
109
99
  info: any;
@@ -117,7 +107,7 @@ export default class ascendex extends Exchange {
117
107
  fetchMarginModes(symbols?: string[], params?: {}): Promise<MarginModes>;
118
108
  parseMarginMode(marginMode: any, market?: any): MarginMode;
119
109
  fetchLeverages(symbols?: string[], params?: {}): Promise<Leverages>;
120
- parseLeverage(leverage: any, market?: any): Leverage;
110
+ parseLeverage(leverage: Dict, market?: Market): Leverage;
121
111
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
122
112
  url: string;
123
113
  method: string;
@@ -3165,7 +3165,6 @@ export default class ascendex extends Exchange {
3165
3165
  const account = this.safeValue(this.accounts, 0, {});
3166
3166
  const accountGroup = this.safeString(account, 'id');
3167
3167
  const currency = this.currency(code);
3168
- amount = this.currencyToPrecision(code, amount);
3169
3168
  const accountsByType = this.safeValue(this.options, 'accountsByType', {});
3170
3169
  const fromId = this.safeString(accountsByType, fromAccount, fromAccount);
3171
3170
  const toId = this.safeString(accountsByType, toAccount, toAccount);
@@ -3174,7 +3173,7 @@ export default class ascendex extends Exchange {
3174
3173
  }
3175
3174
  const request = {
3176
3175
  'account-group': accountGroup,
3177
- 'amount': amount,
3176
+ 'amount': this.currencyToPrecision(code, amount),
3178
3177
  'asset': currency['id'],
3179
3178
  'fromAccount': fromId,
3180
3179
  'toAccount': toId,
@@ -3198,7 +3197,7 @@ export default class ascendex extends Exchange {
3198
3197
  //
3199
3198
  // { "code": "0" }
3200
3199
  //
3201
- const status = this.safeInteger(transfer, 'code');
3200
+ const status = this.safeString(transfer, 'code');
3202
3201
  const currencyCode = this.safeCurrencyCode(undefined, currency);
3203
3202
  return {
3204
3203
  'info': transfer,
@@ -3213,7 +3212,7 @@ export default class ascendex extends Exchange {
3213
3212
  };
3214
3213
  }
3215
3214
  parseTransferStatus(status) {
3216
- if (status === 0) {
3215
+ if (status === '0') {
3217
3216
  return 'ok';
3218
3217
  }
3219
3218
  return 'failed';
@@ -3,7 +3,7 @@ import { // eslint-disable-line object-curly-newline
3
3
  ExchangeError, AuthenticationError, DDoSProtection, RequestTimeout, ExchangeNotAvailable, RateLimitExceeded } from "./errors.js";
4
4
  import WsClient from './ws/WsClient.js';
5
5
  import { OrderBook as WsOrderBook, IndexedOrderBook, CountedOrderBook } from './ws/OrderBook.js';
6
- import type { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRate, DepositWithdrawFeeNetwork, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Option, OptionChain, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account, Strings, MarginModification, TradingFeeInterface, Currencies, TradingFees, Conversion, CancellationRequest, IsolatedBorrowRate, IsolatedBorrowRates, CrossBorrowRates, CrossBorrowRate } from './types.js';
6
+ import type { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRate, DepositWithdrawFeeNetwork, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Option, OptionChain, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account, Strings, MarginModification, TradingFeeInterface, Currencies, TradingFees, Conversion, CancellationRequest, IsolatedBorrowRate, IsolatedBorrowRates, CrossBorrowRates, CrossBorrowRate, Dict, TransferEntries, FundingRates } from './types.js';
7
7
  export type { Market, Trade, Fee, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, CrossBorrowRate, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Option, OptionChain, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account, Strings, Conversion } from './types.js';
8
8
  import { ArrayCache, ArrayCacheByTimestamp } from './ws/Cache.js';
9
9
  import { OrderBook as Ob } from './ws/OrderBook.js';
@@ -69,6 +69,7 @@ export default class Exchange {
69
69
  apiKey: string;
70
70
  secret: string;
71
71
  uid: string;
72
+ accountId: string;
72
73
  login: string;
73
74
  password: string;
74
75
  privateKey: string;
@@ -77,6 +78,7 @@ export default class Exchange {
77
78
  balance: {};
78
79
  orderbooks: Dictionary<Ob>;
79
80
  tickers: Dictionary<Ticker>;
81
+ fundingRates: Dictionary<FundingRate>;
80
82
  bidsasks: Dictionary<Ticker>;
81
83
  orders: ArrayCache;
82
84
  triggerOrders: ArrayCache;
@@ -119,6 +121,7 @@ export default class Exchange {
119
121
  apiKey: boolean;
120
122
  secret: boolean;
121
123
  uid: boolean;
124
+ accountId: boolean;
122
125
  login: boolean;
123
126
  password: boolean;
124
127
  twofa: boolean;
@@ -187,7 +190,7 @@ export default class Exchange {
187
190
  precisionFromString: typeof functions.precisionFromString;
188
191
  capitalize: (s: string) => string;
189
192
  now: () => number;
190
- decimalToPrecision: (x: any, roundingMode: any, numPrecisionDigits: any, countingMode?: number, paddingMode?: number) => any;
193
+ decimalToPrecision: (x: string, roundingMode: number, numPrecisionDigits: any, countingMode?: number, paddingMode?: number) => string;
191
194
  safeValue: (o: any, k: IndexType, $default?: any) => any;
192
195
  safeValue2: (o: any, k1: IndexType, k2: IndexType, $default?: any) => any;
193
196
  safeString: (o: any, k: IndexType, $default?: string) => string;
@@ -276,6 +279,7 @@ export default class Exchange {
276
279
  base64ToString: (string: string) => string;
277
280
  crc32: typeof functions.crc32;
278
281
  packb: typeof functions.packb;
282
+ urlencodeBase64: (payload: string | Uint8Array) => string;
279
283
  describe(): {
280
284
  id: any;
281
285
  name: any;
@@ -509,6 +513,7 @@ export default class Exchange {
509
513
  apiKey: boolean;
510
514
  secret: boolean;
511
515
  uid: boolean;
516
+ accountId: boolean;
512
517
  login: boolean;
513
518
  password: boolean;
514
519
  twofa: boolean;
@@ -700,11 +705,11 @@ export default class Exchange {
700
705
  fetchTradingLimits(symbols?: string[], params?: {}): Promise<{}>;
701
706
  parseMarket(market: any): Market;
702
707
  parseMarkets(markets: any): Market[];
703
- parseTicker(ticker: object, market?: Market): Ticker;
708
+ parseTicker(ticker: Dict, market?: Market): Ticker;
704
709
  parseDepositAddress(depositAddress: any, currency?: Currency): object;
705
710
  parseTrade(trade: object, market?: Market): Trade;
706
711
  parseTransaction(transaction: any, currency?: Currency): Transaction;
707
- parseTransfer(transfer: any, currency?: Currency): object;
712
+ parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
708
713
  parseAccount(account: any): Account;
709
714
  parseLedgerEntry(item: any, currency?: Currency): object;
710
715
  parseOrder(order: any, market?: Market): Order;
@@ -721,8 +726,8 @@ export default class Exchange {
721
726
  parseWsOrderTrade(trade: any, market?: Market): Trade;
722
727
  parseWsOHLCV(ohlcv: any, market?: Market): OHLCV;
723
728
  fetchFundingRates(symbols?: string[], params?: {}): Promise<{}>;
724
- watchFundingRate(symbol: string, params?: {}): Promise<{}>;
725
- watchFundingRates(symbols: string[], params?: {}): Promise<{}>;
729
+ watchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
730
+ watchFundingRates(symbols: string[], params?: {}): Promise<FundingRates>;
726
731
  watchFundingRatesForSymbols(symbols: string[], params?: {}): Promise<{}>;
727
732
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
728
733
  withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
@@ -744,6 +749,7 @@ export default class Exchange {
744
749
  parseToInt(number: any): number;
745
750
  parseToNumeric(number: any): number;
746
751
  isRoundNumber(value: number): boolean;
752
+ safeIntegerOmitZero(obj: object, key: IndexType, defaultValue?: Int): Int;
747
753
  afterConstruct(): void;
748
754
  createNetworksByIdObject(): void;
749
755
  getDefaultOptions(): {
@@ -832,7 +838,7 @@ export default class Exchange {
832
838
  parseAccounts(accounts: any[], params?: {}): Account[];
833
839
  parseTrades(trades: any[], market?: Market, since?: Int, limit?: Int, params?: {}): Trade[];
834
840
  parseTransactions(transactions: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}): Transaction[];
835
- parseTransfers(transfers: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}): any;
841
+ parseTransfers(transfers: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}): TransferEntries;
836
842
  parseLedger(data: any, currency?: Currency, since?: Int, limit?: Int, params?: {}): any;
837
843
  nonce(): number;
838
844
  setHeaders(headers: any): any;
@@ -865,7 +871,7 @@ export default class Exchange {
865
871
  fetchPositions(symbols?: string[], params?: {}): Promise<Position[]>;
866
872
  fetchPositionsWs(symbols?: string[], params?: {}): Promise<Position[]>;
867
873
  fetchPositionsRisk(symbols?: string[], params?: {}): Promise<Position[]>;
868
- fetchBidsAsks(symbols?: string[], params?: {}): Promise<Dictionary<Ticker>>;
874
+ fetchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
869
875
  fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<BorrowInterest[]>;
870
876
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
871
877
  fetchLedgerEntry(id: string, code?: Str, params?: {}): Promise<LedgerEntry>;
@@ -989,11 +995,11 @@ export default class Exchange {
989
995
  createMarketBuyOrderWs(symbol: string, amount: number, params?: {}): Promise<Order>;
990
996
  createMarketSellOrder(symbol: string, amount: number, params?: {}): Promise<Order>;
991
997
  createMarketSellOrderWs(symbol: string, amount: number, params?: {}): Promise<Order>;
992
- costToPrecision(symbol: string, cost: any): any;
998
+ costToPrecision(symbol: string, cost: any): string;
993
999
  priceToPrecision(symbol: string, price: any): string;
994
- amountToPrecision(symbol: string, amount: any): any;
995
- feeToPrecision(symbol: string, fee: any): any;
996
- currencyToPrecision(code: string, fee: any, networkCode?: any): any;
1000
+ amountToPrecision(symbol: string, amount: any): string;
1001
+ feeToPrecision(symbol: string, fee: any): string;
1002
+ currencyToPrecision(code: string, fee: any, networkCode?: any): string;
997
1003
  forceString(value: any): string;
998
1004
  isTickPrecision(): boolean;
999
1005
  isDecimalPrecision(): boolean;
@@ -1020,7 +1026,7 @@ export default class Exchange {
1020
1026
  filterByCurrencySinceLimit(array: any, code?: any, since?: Int, limit?: Int, tail?: boolean): any;
1021
1027
  filterBySymbolsSinceLimit(array: any, symbols?: string[], since?: Int, limit?: Int, tail?: boolean): any;
1022
1028
  parseLastPrices(pricesData: any, symbols?: string[], params?: {}): LastPrices;
1023
- parseTickers(tickers: any, symbols?: string[], params?: {}): Dictionary<Ticker>;
1029
+ parseTickers(tickers: any, symbols?: Strings, params?: {}): Tickers;
1024
1030
  parseDepositAddresses(addresses: any, codes?: string[], indexed?: boolean, params?: {}): Dictionary<any>;
1025
1031
  parseBorrowInterests(response: any, market?: Market): any[];
1026
1032
  parseIsolatedBorrowRates(info: any): IsolatedBorrowRates;
@@ -1028,6 +1034,7 @@ export default class Exchange {
1028
1034
  safeSymbol(marketId: Str, market?: Market, delimiter?: Str, marketType?: Str): string;
1029
1035
  parseFundingRate(contract: string, market?: Market): object;
1030
1036
  parseFundingRates(response: any, market?: Market): {};
1037
+ handleTriggerAndParams(params: any): any[];
1031
1038
  isTriggerOrder(params: any): any[];
1032
1039
  isPostOnly(isMarketOrder: boolean, exchangeSpecificParam: any, params?: {}): boolean;
1033
1040
  handlePostOnly(isMarketOrder: boolean, exchangeSpecificPostOnlyOption: boolean, params?: any): any[];
@@ -1070,15 +1077,15 @@ export default class Exchange {
1070
1077
  safeOpenInterest(interest: any, market?: Market): OpenInterest;
1071
1078
  parseLiquidation(liquidation: any, market?: Market): Liquidation;
1072
1079
  parseLiquidations(liquidations: any, market?: any, since?: Int, limit?: Int): Liquidation[];
1073
- parseGreeks(greeks: any, market?: Market): Greeks;
1074
- parseOption(chain: any, currency?: Currency, market?: Market): Option;
1080
+ parseGreeks(greeks: Dict, market?: Market): Greeks;
1081
+ parseOption(chain: Dict, currency?: Currency, market?: Market): Option;
1075
1082
  parseOptionChain(response: object[], currencyKey?: Str, symbolKey?: Str): OptionChain;
1076
1083
  parseMarginModes(response: object[], symbols?: string[], symbolKey?: Str, marketType?: MarketType): MarginModes;
1077
1084
  parseMarginMode(marginMode: any, market?: Market): MarginMode;
1078
1085
  parseLeverages(response: object[], symbols?: string[], symbolKey?: Str, marketType?: MarketType): Leverages;
1079
- parseLeverage(leverage: any, market?: Market): Leverage;
1086
+ parseLeverage(leverage: Dict, market?: Market): Leverage;
1080
1087
  parseConversions(conversions: any[], code?: Str, fromCurrencyKey?: Str, toCurrencyKey?: Str, since?: Int, limit?: Int, params?: {}): Conversion[];
1081
- parseConversion(conversion: any, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
1088
+ parseConversion(conversion: Dict, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
1082
1089
  convertExpireDate(date: string): string;
1083
1090
  convertExpireDateToMarketIdDate(date: string): string;
1084
1091
  convertMarketIdExpireDate(date: string): string;
@@ -1086,5 +1093,7 @@ export default class Exchange {
1086
1093
  fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
1087
1094
  parseMarginModification(data: any, market?: Market): MarginModification;
1088
1095
  parseMarginModifications(response: object[], symbols?: string[], symbolKey?: Str, marketType?: MarketType): MarginModification[];
1096
+ fetchTransfer(id: string, code?: Str, params?: {}): Promise<TransferEntry>;
1097
+ fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntries>;
1089
1098
  }
1090
1099
  export { Exchange, };