ccxt 4.1.53 → 4.1.54

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 (118) hide show
  1. package/README.md +8 -7
  2. package/dist/ccxt.browser.js +2164 -620
  3. package/dist/ccxt.browser.min.js +10 -10
  4. package/dist/cjs/ccxt.js +4 -1
  5. package/dist/cjs/src/abstract/p2b.js +9 -0
  6. package/dist/cjs/src/base/Exchange.js +10 -6
  7. package/dist/cjs/src/bitget.js +670 -405
  8. package/dist/cjs/src/p2b.js +1246 -0
  9. package/js/ccxt.d.ts +5 -2
  10. package/js/ccxt.js +4 -2
  11. package/js/src/abstract/bitget.d.ts +495 -254
  12. package/js/src/abstract/p2b.d.ts +25 -0
  13. package/js/src/abstract/p2b.js +11 -0
  14. package/js/src/ace.d.ts +3 -3
  15. package/js/src/alpaca.d.ts +1 -1
  16. package/js/src/ascendex.d.ts +6 -6
  17. package/js/src/base/Exchange.d.ts +5 -5
  18. package/js/src/base/Exchange.js +10 -6
  19. package/js/src/base/types.d.ts +11 -8
  20. package/js/src/bigone.d.ts +3 -3
  21. package/js/src/binance.d.ts +11 -11
  22. package/js/src/bingx.d.ts +6 -6
  23. package/js/src/bitbank.d.ts +1 -1
  24. package/js/src/bitbns.d.ts +2 -2
  25. package/js/src/bitfinex.d.ts +4 -4
  26. package/js/src/bitfinex2.d.ts +4 -4
  27. package/js/src/bitflyer.d.ts +2 -2
  28. package/js/src/bitget.d.ts +5 -5
  29. package/js/src/bitget.js +670 -405
  30. package/js/src/bithumb.d.ts +2 -2
  31. package/js/src/bitmart.d.ts +3 -3
  32. package/js/src/bitmex.d.ts +6 -6
  33. package/js/src/bitopro.d.ts +4 -4
  34. package/js/src/bitpanda.d.ts +3 -3
  35. package/js/src/bitrue.d.ts +5 -5
  36. package/js/src/bitso.d.ts +3 -3
  37. package/js/src/bitstamp.d.ts +3 -3
  38. package/js/src/bittrex.d.ts +5 -5
  39. package/js/src/bitvavo.d.ts +3 -3
  40. package/js/src/blockchaincom.d.ts +2 -2
  41. package/js/src/btcalpha.d.ts +3 -3
  42. package/js/src/btcmarkets.d.ts +1 -1
  43. package/js/src/btcturk.d.ts +3 -3
  44. package/js/src/bybit.d.ts +6 -6
  45. package/js/src/cex.d.ts +2 -2
  46. package/js/src/coinbase.d.ts +5 -5
  47. package/js/src/coinbasepro.d.ts +2 -2
  48. package/js/src/coinex.d.ts +7 -7
  49. package/js/src/coinlist.d.ts +3 -3
  50. package/js/src/coinone.d.ts +2 -2
  51. package/js/src/coinsph.d.ts +2 -2
  52. package/js/src/coinspot.d.ts +2 -2
  53. package/js/src/cryptocom.d.ts +4 -4
  54. package/js/src/currencycom.d.ts +3 -3
  55. package/js/src/delta.d.ts +5 -5
  56. package/js/src/deribit.d.ts +4 -4
  57. package/js/src/digifinex.d.ts +6 -6
  58. package/js/src/exmo.d.ts +4 -4
  59. package/js/src/gate.d.ts +6 -6
  60. package/js/src/gemini.d.ts +2 -2
  61. package/js/src/hitbtc.d.ts +6 -6
  62. package/js/src/hollaex.d.ts +5 -5
  63. package/js/src/htx.d.ts +8 -8
  64. package/js/src/huobijp.d.ts +3 -3
  65. package/js/src/idex.d.ts +2 -2
  66. package/js/src/indodax.d.ts +2 -2
  67. package/js/src/kraken.d.ts +3 -3
  68. package/js/src/krakenfutures.d.ts +6 -6
  69. package/js/src/kucoin.d.ts +3 -3
  70. package/js/src/kucoinfutures.d.ts +2 -2
  71. package/js/src/kuna.d.ts +2 -2
  72. package/js/src/latoken.d.ts +2 -2
  73. package/js/src/lbank.d.ts +3 -3
  74. package/js/src/luno.d.ts +2 -2
  75. package/js/src/lykke.d.ts +2 -2
  76. package/js/src/mexc.d.ts +6 -6
  77. package/js/src/ndax.d.ts +1 -1
  78. package/js/src/novadax.d.ts +3 -3
  79. package/js/src/oceanex.d.ts +4 -4
  80. package/js/src/okcoin.d.ts +3 -3
  81. package/js/src/okx.d.ts +6 -6
  82. package/js/src/p2b.d.ts +34 -0
  83. package/js/src/p2b.js +1246 -0
  84. package/js/src/phemex.d.ts +4 -4
  85. package/js/src/poloniex.d.ts +5 -5
  86. package/js/src/poloniexfutures.d.ts +4 -4
  87. package/js/src/pro/binance.d.ts +4 -4
  88. package/js/src/pro/bitget.d.ts +3 -3
  89. package/js/src/pro/bitpanda.d.ts +3 -3
  90. package/js/src/pro/bybit.d.ts +4 -4
  91. package/js/src/pro/cex.d.ts +2 -2
  92. package/js/src/pro/coinbasepro.d.ts +4 -4
  93. package/js/src/pro/coinex.d.ts +2 -2
  94. package/js/src/pro/cryptocom.d.ts +3 -3
  95. package/js/src/pro/gate.d.ts +4 -4
  96. package/js/src/pro/hitbtc.d.ts +2 -2
  97. package/js/src/pro/htx.d.ts +2 -2
  98. package/js/src/pro/kraken.d.ts +1 -1
  99. package/js/src/pro/krakenfutures.d.ts +3 -3
  100. package/js/src/pro/kucoin.d.ts +2 -2
  101. package/js/src/pro/okx.d.ts +4 -4
  102. package/js/src/pro/poloniex.d.ts +2 -2
  103. package/js/src/pro/wazirx.d.ts +2 -2
  104. package/js/src/pro/woo.d.ts +2 -2
  105. package/js/src/probit.d.ts +4 -4
  106. package/js/src/tidex.d.ts +3 -3
  107. package/js/src/timex.d.ts +3 -3
  108. package/js/src/tokocrypto.d.ts +3 -3
  109. package/js/src/upbit.d.ts +4 -4
  110. package/js/src/wavesexchange.d.ts +4 -4
  111. package/js/src/wazirx.d.ts +3 -3
  112. package/js/src/whitebit.d.ts +5 -5
  113. package/js/src/woo.d.ts +4 -4
  114. package/js/src/yobit.d.ts +3 -3
  115. package/js/src/zaif.d.ts +1 -1
  116. package/js/src/zonda.d.ts +3 -3
  117. package/package.json +1 -1
  118. package/skip-tests.json +7 -0
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 { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
7
- declare const version = "4.1.52";
7
+ declare const version = "4.1.53";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
@@ -92,6 +92,7 @@ import okcoin from './src/okcoin.js';
92
92
  import okex from './src/okex.js';
93
93
  import okex5 from './src/okex5.js';
94
94
  import okx from './src/okx.js';
95
+ import p2b from './src/p2b.js';
95
96
  import paymium from './src/paymium.js';
96
97
  import phemex from './src/phemex.js';
97
98
  import poloniex from './src/poloniex.js';
@@ -257,6 +258,7 @@ declare const exchanges: {
257
258
  okex: typeof okex;
258
259
  okex5: typeof okex5;
259
260
  okx: typeof okx;
261
+ p2b: typeof p2b;
260
262
  paymium: typeof paymium;
261
263
  phemex: typeof phemex;
262
264
  poloniex: typeof poloniex;
@@ -493,6 +495,7 @@ declare const ccxt: {
493
495
  okex: typeof okex;
494
496
  okex5: typeof okex5;
495
497
  okx: typeof okx;
498
+ p2b: typeof p2b;
496
499
  paymium: typeof paymium;
497
500
  phemex: typeof phemex;
498
501
  poloniex: typeof poloniex;
@@ -510,5 +513,5 @@ declare const ccxt: {
510
513
  zaif: typeof zaif;
511
514
  zonda: typeof zonda;
512
515
  } & typeof functions & typeof errors;
513
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
516
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, p2b, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
514
517
  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, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.1.53';
41
+ const version = '4.1.54';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -128,6 +128,7 @@ import okcoin from './src/okcoin.js';
128
128
  import okex from './src/okex.js';
129
129
  import okex5 from './src/okex5.js';
130
130
  import okx from './src/okx.js';
131
+ import p2b from './src/p2b.js';
131
132
  import paymium from './src/paymium.js';
132
133
  import phemex from './src/phemex.js';
133
134
  import poloniex from './src/poloniex.js';
@@ -294,6 +295,7 @@ const exchanges = {
294
295
  'okex': okex,
295
296
  'okex5': okex5,
296
297
  'okx': okx,
298
+ 'p2b': p2b,
297
299
  'paymium': paymium,
298
300
  'phemex': phemex,
299
301
  'poloniex': poloniex,
@@ -386,6 +388,6 @@ pro.exchanges = Object.keys(pro);
386
388
  pro['Exchange'] = Exchange; // now the same for rest and ts
387
389
  //-----------------------------------------------------------------------------
388
390
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
389
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
391
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, p2b, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
390
392
  export default ccxt;
391
393
  //-----------------------------------------------------------------------------