ccxt 4.5.56 → 4.5.57
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.
- package/README.md +10 -9
- package/dist/ccxt.browser.min.js +10 -10
- package/dist/cjs/ccxt.js +6 -11
- package/dist/cjs/src/apex.js +1 -1
- package/dist/cjs/src/arkham.js +3 -3
- package/dist/cjs/src/ascendex.js +2 -2
- package/dist/cjs/src/aster.js +7 -4
- package/dist/cjs/src/backpack.js +4 -4
- package/dist/cjs/src/base/Exchange.js +69 -32
- package/dist/cjs/src/base/functions/io.js +25 -0
- package/dist/cjs/src/base/functions.js +1 -0
- package/dist/cjs/src/bigone.js +3 -3
- package/dist/cjs/src/binance.js +192 -194
- package/dist/cjs/src/bingx.js +3 -3
- package/dist/cjs/src/bitfinex.js +71 -58
- package/dist/cjs/src/bitget.js +2 -2
- package/dist/cjs/src/bitmart.js +13 -6
- package/dist/cjs/src/bitmex.js +1 -1
- package/dist/cjs/src/bitopro.js +1 -1
- package/dist/cjs/src/bitrue.js +2 -2
- package/dist/cjs/src/bitso.js +1 -1
- package/dist/cjs/src/bitstamp.js +2 -1
- package/dist/cjs/src/bitteam.js +1 -1
- package/dist/cjs/src/bittrade.js +0 -1
- package/dist/cjs/src/bitvavo.js +457 -34
- package/dist/cjs/src/blofin.js +26 -3
- package/dist/cjs/src/bullish.js +6 -5
- package/dist/cjs/src/bydfi.js +1 -1
- package/dist/cjs/src/cex.js +3 -3
- package/dist/cjs/src/coinbase.js +75 -65
- package/dist/cjs/src/coinbaseexchange.js +2 -2
- package/dist/cjs/src/coinbaseinternational.js +2 -1
- package/dist/cjs/src/coinex.js +74 -74
- package/dist/cjs/src/coinmetro.js +1 -1
- package/dist/cjs/src/coinsph.js +1 -1
- package/dist/cjs/src/cryptocom.js +46 -48
- package/dist/cjs/src/cryptomus.js +43 -39
- package/dist/cjs/src/deepcoin.js +3 -2
- package/dist/cjs/src/delta.js +51 -52
- package/dist/cjs/src/deribit.js +31 -33
- package/dist/cjs/src/derive.js +26 -28
- package/dist/cjs/src/digifinex.js +43 -44
- package/dist/cjs/src/exmo.js +92 -83
- package/dist/cjs/src/extended.js +3497 -0
- package/dist/cjs/src/foxbit.js +71 -75
- package/dist/cjs/src/gate.js +53 -53
- package/dist/cjs/src/gemini.js +41 -43
- package/dist/cjs/src/grvt.js +4 -4
- package/dist/cjs/src/hashkey.js +52 -54
- package/dist/cjs/src/hitbtc.js +3 -13
- package/dist/cjs/src/hollaex.js +51 -54
- package/dist/cjs/src/htx.js +75 -67
- package/dist/cjs/src/hyperliquid.js +41 -42
- package/dist/cjs/src/indodax.js +2 -2
- package/dist/cjs/src/kraken.js +57 -58
- package/dist/cjs/src/kucoin.js +3 -2
- package/dist/cjs/src/latoken.js +30 -32
- package/dist/cjs/src/lbank.js +56 -56
- package/dist/cjs/src/lighter.js +35 -37
- package/dist/cjs/src/luno.js +35 -43
- package/dist/cjs/src/mexc.js +48 -49
- package/dist/cjs/src/modetrade.js +50 -52
- package/dist/cjs/src/ndax.js +35 -37
- package/dist/cjs/src/okx.js +17 -2
- package/dist/cjs/src/onetrading.js +21 -23
- package/dist/cjs/src/phemex.js +43 -45
- package/dist/cjs/src/poloniex.js +17 -12
- package/dist/cjs/src/pro/alpaca.js +1 -1
- package/dist/cjs/src/pro/apex.js +1 -1
- package/dist/cjs/src/pro/arkham.js +1 -1
- package/dist/cjs/src/pro/backpack.js +1 -1
- package/dist/cjs/src/pro/binance.js +3 -3
- package/dist/cjs/src/pro/bitget.js +1 -1
- package/dist/cjs/src/pro/bithumb.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +1 -1
- package/dist/cjs/src/pro/blockchaincom.js +1 -1
- package/dist/cjs/src/pro/bybit.js +1 -1
- package/dist/cjs/src/pro/cex.js +1 -1
- package/dist/cjs/src/pro/coinex.js +1 -1
- package/dist/cjs/src/pro/coinone.js +1 -1
- package/dist/cjs/src/pro/cryptocom.js +3 -1
- package/dist/cjs/src/pro/dydx.js +1 -1
- package/dist/cjs/src/pro/exmo.js +1 -1
- package/dist/cjs/src/pro/extended.js +865 -0
- package/dist/cjs/src/pro/gate.js +1 -1
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kucoin.js +1 -1
- package/dist/cjs/src/pro/luno.js +3 -3
- package/dist/cjs/src/pro/onetrading.js +1 -1
- package/dist/cjs/src/pro/toobit.js +1 -1
- package/dist/cjs/src/pro/weex.js +1 -1
- package/dist/cjs/src/static_dependencies/starknet/utils/hash/classHash.js +7 -7
- package/dist/cjs/src/tokocrypto.js +1 -1
- package/dist/cjs/src/toobit.js +2 -2
- package/dist/cjs/src/upbit.js +3 -3
- package/dist/cjs/src/weex.js +57 -62
- package/dist/cjs/src/whitebit.js +61 -63
- package/dist/cjs/src/woo.js +65 -54
- package/dist/cjs/src/woofipro.js +53 -47
- package/dist/cjs/src/xt.js +1 -1
- package/dist/cjs/src/zebpay.js +70 -72
- package/js/ccxt.d.ts +8 -14
- package/js/ccxt.js +6 -10
- package/js/src/abstract/bitvavo.d.ts +15 -7
- package/js/src/abstract/extended.d.ts +58 -0
- package/js/src/apex.js +1 -1
- package/js/src/arkham.js +3 -3
- package/js/src/ascendex.js +2 -2
- package/js/src/aster.js +7 -4
- package/js/src/backpack.js +4 -4
- package/js/src/base/Exchange.d.ts +10 -6
- package/js/src/base/Exchange.js +69 -32
- package/js/src/base/functions/io.d.ts +7 -0
- package/js/src/base/functions/io.js +24 -0
- package/js/src/bigone.js +3 -3
- package/js/src/binance.d.ts +2 -0
- package/js/src/binance.js +196 -198
- package/js/src/bingx.js +3 -3
- package/js/src/bitfinex.d.ts +2 -0
- package/js/src/bitfinex.js +71 -58
- package/js/src/bitget.js +2 -2
- package/js/src/bitmart.js +13 -6
- package/js/src/bitmex.js +1 -1
- package/js/src/bitopro.js +1 -1
- package/js/src/bitrue.js +2 -2
- package/js/src/bitso.js +1 -1
- package/js/src/bitstamp.js +2 -1
- package/js/src/bitteam.js +1 -1
- package/js/src/bittrade.js +0 -1
- package/js/src/bitvavo.d.ts +114 -21
- package/js/src/bitvavo.js +457 -34
- package/js/src/blofin.d.ts +1 -0
- package/js/src/blofin.js +26 -3
- package/js/src/bullish.js +6 -5
- package/js/src/bydfi.js +1 -1
- package/js/src/cex.js +3 -3
- package/js/src/coinbase.d.ts +63 -56
- package/js/src/coinbase.js +75 -65
- package/js/src/coinbaseexchange.js +2 -2
- package/js/src/coinbaseinternational.js +2 -1
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +74 -74
- package/js/src/coinmetro.d.ts +1 -1
- package/js/src/coinmetro.js +1 -1
- package/js/src/coinsph.js +1 -1
- package/js/src/cryptocom.d.ts +1 -0
- package/js/src/cryptocom.js +46 -48
- package/js/src/cryptomus.d.ts +2 -1
- package/js/src/cryptomus.js +43 -39
- package/js/src/deepcoin.js +3 -2
- package/js/src/delta.d.ts +1 -0
- package/js/src/delta.js +51 -52
- package/js/src/deribit.d.ts +1 -0
- package/js/src/deribit.js +31 -33
- package/js/src/derive.d.ts +1 -0
- package/js/src/derive.js +26 -28
- package/js/src/digifinex.d.ts +1 -0
- package/js/src/digifinex.js +43 -44
- package/js/src/exmo.d.ts +1 -0
- package/js/src/exmo.js +92 -83
- package/js/src/extended.d.ts +554 -0
- package/js/src/extended.js +3490 -0
- package/js/src/foxbit.d.ts +1 -0
- package/js/src/foxbit.js +71 -75
- package/js/src/gate.d.ts +1 -0
- package/js/src/gate.js +53 -53
- package/js/src/gemini.d.ts +2 -1
- package/js/src/gemini.js +41 -43
- package/js/src/grvt.js +4 -4
- package/js/src/hashkey.d.ts +1 -0
- package/js/src/hashkey.js +52 -54
- package/js/src/hitbtc.d.ts +0 -1
- package/js/src/hitbtc.js +3 -13
- package/js/src/hollaex.d.ts +1 -0
- package/js/src/hollaex.js +51 -54
- package/js/src/htx.d.ts +1 -0
- package/js/src/htx.js +75 -67
- package/js/src/hyperliquid.d.ts +1 -0
- package/js/src/hyperliquid.js +41 -42
- package/js/src/indodax.js +2 -2
- package/js/src/kraken.d.ts +2 -1
- package/js/src/kraken.js +57 -58
- package/js/src/kucoin.js +3 -2
- package/js/src/latoken.d.ts +1 -0
- package/js/src/latoken.js +30 -32
- package/js/src/lbank.d.ts +1 -0
- package/js/src/lbank.js +56 -56
- package/js/src/lighter.d.ts +1 -0
- package/js/src/lighter.js +35 -37
- package/js/src/luno.d.ts +1 -0
- package/js/src/luno.js +35 -43
- package/js/src/mexc.d.ts +2 -1
- package/js/src/mexc.js +48 -49
- package/js/src/modetrade.d.ts +1 -0
- package/js/src/modetrade.js +50 -52
- package/js/src/ndax.d.ts +1 -0
- package/js/src/ndax.js +35 -37
- package/js/src/okx.js +17 -2
- package/js/src/onetrading.d.ts +2 -1
- package/js/src/onetrading.js +21 -23
- package/js/src/phemex.d.ts +1 -0
- package/js/src/phemex.js +43 -45
- package/js/src/poloniex.js +17 -12
- package/js/src/pro/alpaca.js +1 -1
- package/js/src/pro/apex.js +1 -1
- package/js/src/pro/arkham.js +1 -1
- package/js/src/pro/backpack.js +1 -1
- package/js/src/pro/binance.js +3 -3
- package/js/src/pro/bitget.js +1 -1
- package/js/src/pro/bithumb.js +1 -1
- package/js/src/pro/bitstamp.js +1 -1
- package/js/src/pro/blockchaincom.js +1 -1
- package/js/src/pro/bybit.js +1 -1
- package/js/src/pro/cex.js +1 -1
- package/js/src/pro/coinex.js +1 -1
- package/js/src/pro/coinone.js +1 -1
- package/js/src/pro/cryptocom.js +3 -1
- package/js/src/pro/dydx.js +1 -1
- package/js/src/pro/exmo.js +1 -1
- package/js/src/pro/extended.d.ts +126 -0
- package/js/src/pro/extended.js +858 -0
- package/js/src/pro/gate.js +1 -1
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kucoin.js +1 -1
- package/js/src/pro/luno.d.ts +1 -1
- package/js/src/pro/luno.js +3 -3
- package/js/src/pro/onetrading.js +1 -1
- package/js/src/pro/toobit.js +1 -1
- package/js/src/pro/weex.js +1 -1
- package/js/src/tokocrypto.js +1 -1
- package/js/src/toobit.js +2 -2
- package/js/src/upbit.js +3 -3
- package/js/src/weex.d.ts +1 -0
- package/js/src/weex.js +57 -62
- package/js/src/whitebit.d.ts +1 -0
- package/js/src/whitebit.js +61 -63
- package/js/src/woo.d.ts +1 -0
- package/js/src/woo.js +65 -54
- package/js/src/woofipro.d.ts +1 -0
- package/js/src/woofipro.js +53 -47
- package/js/src/xt.js +1 -1
- package/js/src/zebpay.d.ts +2 -1
- package/js/src/zebpay.js +70 -72
- package/package.json +7 -7
- package/dist/cjs/src/gateio.js +0 -18
- package/dist/cjs/src/oxfun.js +0 -2933
- package/dist/cjs/src/pro/gateio.js +0 -18
- package/dist/cjs/src/pro/oxfun.js +0 -1113
- package/js/src/abstract/gateio.d.ts +0 -346
- package/js/src/abstract/gateio.js +0 -5
- package/js/src/abstract/oxfun.d.ts +0 -37
- package/js/src/gateio.d.ts +0 -4
- package/js/src/gateio.js +0 -11
- package/js/src/oxfun.d.ts +0 -442
- package/js/src/oxfun.js +0 -2926
- package/js/src/pro/gateio.d.ts +0 -4
- package/js/src/pro/gateio.js +0 -11
- package/js/src/pro/oxfun.d.ts +0 -234
- package/js/src/pro/oxfun.js +0 -1106
- /package/dist/cjs/src/abstract/{oxfun.js → extended.js} +0 -0
- /package/js/src/abstract/{oxfun.js → extended.js} +0 -0
package/dist/cjs/src/woofipro.js
CHANGED
|
@@ -690,61 +690,67 @@ class woofipro extends woofipro$1["default"] {
|
|
|
690
690
|
const indexedChains = this.indexBy(chainRows, 'chain_id');
|
|
691
691
|
for (let i = 0; i < tokenRows.length; i++) {
|
|
692
692
|
const token = tokenRows[i];
|
|
693
|
-
const
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
},
|
|
715
|
-
},
|
|
716
|
-
'active': undefined,
|
|
717
|
-
'deposit': undefined,
|
|
718
|
-
'withdraw': undefined,
|
|
719
|
-
'fee': this.safeNumber(networkEntry, 'withdrawal_fee'),
|
|
720
|
-
'precision': this.parseNumber(this.parsePrecision(this.safeString(networkEntry, 'decimals'))),
|
|
721
|
-
'info': [networkEntry, networkRow],
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
result[code] = this.safeCurrencyStructure({
|
|
725
|
-
'id': currencyId,
|
|
726
|
-
'name': undefined,
|
|
727
|
-
'code': code,
|
|
728
|
-
'precision': undefined,
|
|
729
|
-
'active': undefined,
|
|
730
|
-
'fee': undefined,
|
|
731
|
-
'networks': resultingNetworks,
|
|
732
|
-
'deposit': undefined,
|
|
733
|
-
'withdraw': undefined,
|
|
693
|
+
const parsed = this.parseCurrency({ '_token': token, '_indexedChains': indexedChains });
|
|
694
|
+
result[parsed['code']] = parsed;
|
|
695
|
+
}
|
|
696
|
+
return result;
|
|
697
|
+
}
|
|
698
|
+
parseCurrency(rawCurrency) {
|
|
699
|
+
const token = this.safeDict(rawCurrency, '_token', {});
|
|
700
|
+
const currencyId = this.safeString(token, 'token');
|
|
701
|
+
const networks = this.safeList(token, 'chain_details');
|
|
702
|
+
const code = this.safeCurrencyCode(currencyId);
|
|
703
|
+
const indexedChains = this.safeDict(rawCurrency, '_indexedChains', {});
|
|
704
|
+
const resultingNetworks = {};
|
|
705
|
+
for (let j = 0; j < networks.length; j++) {
|
|
706
|
+
const networkEntry = networks[j];
|
|
707
|
+
const networkId = this.safeString(networkEntry, 'chain_id');
|
|
708
|
+
const networkRow = this.safeDict(indexedChains, networkId);
|
|
709
|
+
const networkName = this.safeString(networkRow, 'name');
|
|
710
|
+
const networkCode = this.networkIdToCode(networkName, code);
|
|
711
|
+
resultingNetworks[networkCode] = {
|
|
712
|
+
'id': networkId,
|
|
713
|
+
'network': networkCode,
|
|
734
714
|
'limits': {
|
|
735
|
-
'
|
|
715
|
+
'withdraw': {
|
|
736
716
|
'min': undefined,
|
|
737
717
|
'max': undefined,
|
|
738
718
|
},
|
|
739
|
-
'
|
|
740
|
-
'min':
|
|
719
|
+
'deposit': {
|
|
720
|
+
'min': undefined,
|
|
741
721
|
'max': undefined,
|
|
742
722
|
},
|
|
743
723
|
},
|
|
744
|
-
'
|
|
745
|
-
|
|
724
|
+
'active': undefined,
|
|
725
|
+
'deposit': undefined,
|
|
726
|
+
'withdraw': undefined,
|
|
727
|
+
'fee': this.safeNumber(networkEntry, 'withdrawal_fee'),
|
|
728
|
+
'precision': this.parseNumber(this.parsePrecision(this.safeString(networkEntry, 'decimals'))),
|
|
729
|
+
'info': { 'network': networkEntry, 'networkRow': networkRow },
|
|
730
|
+
};
|
|
746
731
|
}
|
|
747
|
-
return
|
|
732
|
+
return this.safeCurrencyStructure({
|
|
733
|
+
'id': currencyId,
|
|
734
|
+
'name': undefined,
|
|
735
|
+
'code': code,
|
|
736
|
+
'precision': undefined,
|
|
737
|
+
'active': undefined,
|
|
738
|
+
'fee': undefined,
|
|
739
|
+
'networks': resultingNetworks,
|
|
740
|
+
'deposit': undefined,
|
|
741
|
+
'withdraw': undefined,
|
|
742
|
+
'limits': {
|
|
743
|
+
'deposit': {
|
|
744
|
+
'min': undefined,
|
|
745
|
+
'max': undefined,
|
|
746
|
+
},
|
|
747
|
+
'withdraw': {
|
|
748
|
+
'min': this.safeNumber(token, 'minimum_withdraw_amount'),
|
|
749
|
+
'max': undefined,
|
|
750
|
+
},
|
|
751
|
+
},
|
|
752
|
+
'info': token,
|
|
753
|
+
});
|
|
748
754
|
}
|
|
749
755
|
parseTokenAndFeeTemp(item, feeTokenKey, feeAmountKey) {
|
|
750
756
|
const feeCost = this.safeString(item, feeAmountKey);
|
package/dist/cjs/src/xt.js
CHANGED
|
@@ -569,10 +569,10 @@ class xt extends xt$1["default"] {
|
|
|
569
569
|
'networks': {
|
|
570
570
|
'ERC20': 'Ethereum',
|
|
571
571
|
'TRC20': 'Tron',
|
|
572
|
+
'TRX': 'Tron',
|
|
572
573
|
'BEP20': 'BNB Smart Chain',
|
|
573
574
|
'BEP2': 'BNB-BEP2',
|
|
574
575
|
'ETH': 'Ethereum',
|
|
575
|
-
'TRON': 'Tron',
|
|
576
576
|
'BNB': 'BNB Smart Chain',
|
|
577
577
|
'AVAX': 'AVAX C-Chain',
|
|
578
578
|
'GAL': 'GAL(FT)',
|
package/dist/cjs/src/zebpay.js
CHANGED
|
@@ -368,89 +368,87 @@ class zebpay extends zebpay$1["default"] {
|
|
|
368
368
|
// }
|
|
369
369
|
//
|
|
370
370
|
const rows = this.safeList(response, 'data', []);
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
networks[networkCode] = {
|
|
406
|
-
'info': chain,
|
|
407
|
-
'id': networkId,
|
|
408
|
-
'network': networkCode,
|
|
409
|
-
'active': depositAllowed && withdrawAllowed,
|
|
410
|
-
'deposit': depositAllowed,
|
|
411
|
-
'withdraw': withdrawAllowed,
|
|
412
|
-
'fee': this.parseNumber(withdrawFeeString),
|
|
413
|
-
'precision': precision,
|
|
414
|
-
'limits': {
|
|
415
|
-
'withdraw': {
|
|
416
|
-
'min': this.parseNumber(minNetworkWithdrawString),
|
|
417
|
-
'max': undefined,
|
|
418
|
-
},
|
|
419
|
-
'deposit': {
|
|
420
|
-
'min': this.parseNumber(minNetworkDepositString),
|
|
421
|
-
'max': undefined,
|
|
422
|
-
},
|
|
423
|
-
},
|
|
424
|
-
};
|
|
371
|
+
return this.parseCurrencies(rows);
|
|
372
|
+
}
|
|
373
|
+
parseCurrency(rawCurrency) {
|
|
374
|
+
const currencyId = this.safeString(rawCurrency, 'currency');
|
|
375
|
+
const code = this.safeCurrencyCode(currencyId);
|
|
376
|
+
const name = this.safeString(rawCurrency, 'name');
|
|
377
|
+
const precision = this.parseNumber(this.parsePrecision(this.safeString(rawCurrency, 'precision')));
|
|
378
|
+
const chains = this.safeList(rawCurrency, 'chains', []);
|
|
379
|
+
const networks = {};
|
|
380
|
+
let minWithdrawFeeString = undefined;
|
|
381
|
+
let minWithdrawString = undefined;
|
|
382
|
+
let minDepositString = undefined;
|
|
383
|
+
let deposit = false;
|
|
384
|
+
let withdraw = false;
|
|
385
|
+
for (let j = 0; j < chains.length; j++) {
|
|
386
|
+
const chain = chains[j];
|
|
387
|
+
const networkId = this.safeString(chain, 'chainId');
|
|
388
|
+
const networkCode = this.networkIdToCode(networkId, code);
|
|
389
|
+
const depositAllowed = this.safeBool(chain, 'isDepositEnabled') === true;
|
|
390
|
+
deposit = (depositAllowed) ? depositAllowed : deposit;
|
|
391
|
+
const withdrawAllowed = this.safeBool(chain, 'isWithdrawEnabled') === true;
|
|
392
|
+
withdraw = (withdrawAllowed) ? withdrawAllowed : withdraw;
|
|
393
|
+
const withdrawFeeString = this.safeString(chain, 'withdrawalFee');
|
|
394
|
+
if (withdrawFeeString !== undefined) {
|
|
395
|
+
minWithdrawFeeString = (minWithdrawFeeString === undefined) ? withdrawFeeString : Precise["default"].stringMin(withdrawFeeString, minWithdrawFeeString);
|
|
396
|
+
}
|
|
397
|
+
const minNetworkWithdrawString = this.safeString(chain, 'withdrawalMinSize');
|
|
398
|
+
if (minNetworkWithdrawString !== undefined) {
|
|
399
|
+
minWithdrawString = (minWithdrawString === undefined) ? minNetworkWithdrawString : Precise["default"].stringMin(minNetworkWithdrawString, minWithdrawString);
|
|
400
|
+
}
|
|
401
|
+
const minNetworkDepositString = this.safeString(chain, 'depositMinSize');
|
|
402
|
+
if (minNetworkDepositString !== undefined) {
|
|
403
|
+
minDepositString = (minDepositString === undefined) ? minNetworkDepositString : Precise["default"].stringMin(minNetworkDepositString, minDepositString);
|
|
425
404
|
}
|
|
426
|
-
|
|
427
|
-
'info':
|
|
428
|
-
'
|
|
429
|
-
'
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
434
|
-
'fee': this.parseNumber(minWithdrawFeeString),
|
|
405
|
+
networks[networkCode] = {
|
|
406
|
+
'info': chain,
|
|
407
|
+
'id': networkId,
|
|
408
|
+
'network': networkCode,
|
|
409
|
+
'active': depositAllowed && withdrawAllowed,
|
|
410
|
+
'deposit': depositAllowed,
|
|
411
|
+
'withdraw': withdrawAllowed,
|
|
412
|
+
'fee': this.parseNumber(withdrawFeeString),
|
|
435
413
|
'precision': precision,
|
|
436
414
|
'limits': {
|
|
437
|
-
'amount': {
|
|
438
|
-
'min': undefined,
|
|
439
|
-
'max': undefined,
|
|
440
|
-
},
|
|
441
415
|
'withdraw': {
|
|
442
|
-
'min': this.parseNumber(
|
|
416
|
+
'min': this.parseNumber(minNetworkWithdrawString),
|
|
443
417
|
'max': undefined,
|
|
444
418
|
},
|
|
445
419
|
'deposit': {
|
|
446
|
-
'min': this.parseNumber(
|
|
420
|
+
'min': this.parseNumber(minNetworkDepositString),
|
|
447
421
|
'max': undefined,
|
|
448
422
|
},
|
|
449
423
|
},
|
|
450
|
-
|
|
451
|
-
});
|
|
424
|
+
};
|
|
452
425
|
}
|
|
453
|
-
return
|
|
426
|
+
return this.safeCurrencyStructure({
|
|
427
|
+
'info': rawCurrency,
|
|
428
|
+
'code': code,
|
|
429
|
+
'id': currencyId,
|
|
430
|
+
'name': name,
|
|
431
|
+
'active': deposit && withdraw,
|
|
432
|
+
'deposit': deposit,
|
|
433
|
+
'withdraw': withdraw,
|
|
434
|
+
'fee': this.parseNumber(minWithdrawFeeString),
|
|
435
|
+
'precision': precision,
|
|
436
|
+
'limits': {
|
|
437
|
+
'amount': {
|
|
438
|
+
'min': undefined,
|
|
439
|
+
'max': undefined,
|
|
440
|
+
},
|
|
441
|
+
'withdraw': {
|
|
442
|
+
'min': this.parseNumber(minWithdrawString),
|
|
443
|
+
'max': undefined,
|
|
444
|
+
},
|
|
445
|
+
'deposit': {
|
|
446
|
+
'min': this.parseNumber(minDepositString),
|
|
447
|
+
'max': undefined,
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
'networks': networks,
|
|
451
|
+
});
|
|
454
452
|
}
|
|
455
453
|
/**
|
|
456
454
|
* @method
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs, ADL } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.5.
|
|
7
|
+
declare const version = "4.5.56";
|
|
8
8
|
import aftermath from './src/aftermath.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import apex from './src/apex.js';
|
|
@@ -65,10 +65,10 @@ import derive from './src/derive.js';
|
|
|
65
65
|
import digifinex from './src/digifinex.js';
|
|
66
66
|
import dydx from './src/dydx.js';
|
|
67
67
|
import exmo from './src/exmo.js';
|
|
68
|
+
import extended from './src/extended.js';
|
|
68
69
|
import fmfwio from './src/fmfwio.js';
|
|
69
70
|
import foxbit from './src/foxbit.js';
|
|
70
71
|
import gate from './src/gate.js';
|
|
71
|
-
import gateio from './src/gateio.js';
|
|
72
72
|
import gemini from './src/gemini.js';
|
|
73
73
|
import grvt from './src/grvt.js';
|
|
74
74
|
import hashkey from './src/hashkey.js';
|
|
@@ -97,7 +97,6 @@ import novadax from './src/novadax.js';
|
|
|
97
97
|
import okx from './src/okx.js';
|
|
98
98
|
import okxus from './src/okxus.js';
|
|
99
99
|
import onetrading from './src/onetrading.js';
|
|
100
|
-
import oxfun from './src/oxfun.js';
|
|
101
100
|
import p2b from './src/p2b.js';
|
|
102
101
|
import pacifica from './src/pacifica.js';
|
|
103
102
|
import paradex from './src/paradex.js';
|
|
@@ -159,8 +158,8 @@ import deribitPro from './src/pro/deribit.js';
|
|
|
159
158
|
import derivePro from './src/pro/derive.js';
|
|
160
159
|
import dydxPro from './src/pro/dydx.js';
|
|
161
160
|
import exmoPro from './src/pro/exmo.js';
|
|
161
|
+
import extendedPro from './src/pro/extended.js';
|
|
162
162
|
import gatePro from './src/pro/gate.js';
|
|
163
|
-
import gateioPro from './src/pro/gateio.js';
|
|
164
163
|
import geminiPro from './src/pro/gemini.js';
|
|
165
164
|
import grvtPro from './src/pro/grvt.js';
|
|
166
165
|
import hashkeyPro from './src/pro/hashkey.js';
|
|
@@ -184,7 +183,6 @@ import ndaxPro from './src/pro/ndax.js';
|
|
|
184
183
|
import okxPro from './src/pro/okx.js';
|
|
185
184
|
import okxusPro from './src/pro/okxus.js';
|
|
186
185
|
import onetradingPro from './src/pro/onetrading.js';
|
|
187
|
-
import oxfunPro from './src/pro/oxfun.js';
|
|
188
186
|
import p2bPro from './src/pro/p2b.js';
|
|
189
187
|
import pacificaPro from './src/pro/pacifica.js';
|
|
190
188
|
import paradexPro from './src/pro/paradex.js';
|
|
@@ -258,10 +256,10 @@ declare const exchanges: {
|
|
|
258
256
|
digifinex: typeof digifinex;
|
|
259
257
|
dydx: typeof dydx;
|
|
260
258
|
exmo: typeof exmo;
|
|
259
|
+
extended: typeof extended;
|
|
261
260
|
fmfwio: typeof fmfwio;
|
|
262
261
|
foxbit: typeof foxbit;
|
|
263
262
|
gate: typeof gate;
|
|
264
|
-
gateio: typeof gateio;
|
|
265
263
|
gemini: typeof gemini;
|
|
266
264
|
grvt: typeof grvt;
|
|
267
265
|
hashkey: typeof hashkey;
|
|
@@ -290,7 +288,6 @@ declare const exchanges: {
|
|
|
290
288
|
okx: typeof okx;
|
|
291
289
|
okxus: typeof okxus;
|
|
292
290
|
onetrading: typeof onetrading;
|
|
293
|
-
oxfun: typeof oxfun;
|
|
294
291
|
p2b: typeof p2b;
|
|
295
292
|
pacifica: typeof pacifica;
|
|
296
293
|
paradex: typeof paradex;
|
|
@@ -354,8 +351,8 @@ declare const pro: {
|
|
|
354
351
|
derive: typeof derivePro;
|
|
355
352
|
dydx: typeof dydxPro;
|
|
356
353
|
exmo: typeof exmoPro;
|
|
354
|
+
extended: typeof extendedPro;
|
|
357
355
|
gate: typeof gatePro;
|
|
358
|
-
gateio: typeof gateioPro;
|
|
359
356
|
gemini: typeof geminiPro;
|
|
360
357
|
grvt: typeof grvtPro;
|
|
361
358
|
hashkey: typeof hashkeyPro;
|
|
@@ -379,7 +376,6 @@ declare const pro: {
|
|
|
379
376
|
okx: typeof okxPro;
|
|
380
377
|
okxus: typeof okxusPro;
|
|
381
378
|
onetrading: typeof onetradingPro;
|
|
382
|
-
oxfun: typeof oxfunPro;
|
|
383
379
|
p2b: typeof p2bPro;
|
|
384
380
|
pacifica: typeof pacificaPro;
|
|
385
381
|
paradex: typeof paradexPro;
|
|
@@ -442,8 +438,8 @@ declare const ccxt: {
|
|
|
442
438
|
derive: typeof derivePro;
|
|
443
439
|
dydx: typeof dydxPro;
|
|
444
440
|
exmo: typeof exmoPro;
|
|
441
|
+
extended: typeof extendedPro;
|
|
445
442
|
gate: typeof gatePro;
|
|
446
|
-
gateio: typeof gateioPro;
|
|
447
443
|
gemini: typeof geminiPro;
|
|
448
444
|
grvt: typeof grvtPro;
|
|
449
445
|
hashkey: typeof hashkeyPro;
|
|
@@ -467,7 +463,6 @@ declare const ccxt: {
|
|
|
467
463
|
okx: typeof okxPro;
|
|
468
464
|
okxus: typeof okxusPro;
|
|
469
465
|
onetrading: typeof onetradingPro;
|
|
470
|
-
oxfun: typeof oxfunPro;
|
|
471
466
|
p2b: typeof p2bPro;
|
|
472
467
|
pacifica: typeof pacificaPro;
|
|
473
468
|
paradex: typeof paradexPro;
|
|
@@ -542,10 +537,10 @@ declare const ccxt: {
|
|
|
542
537
|
digifinex: typeof digifinex;
|
|
543
538
|
dydx: typeof dydx;
|
|
544
539
|
exmo: typeof exmo;
|
|
540
|
+
extended: typeof extended;
|
|
545
541
|
fmfwio: typeof fmfwio;
|
|
546
542
|
foxbit: typeof foxbit;
|
|
547
543
|
gate: typeof gate;
|
|
548
|
-
gateio: typeof gateio;
|
|
549
544
|
gemini: typeof gemini;
|
|
550
545
|
grvt: typeof grvt;
|
|
551
546
|
hashkey: typeof hashkey;
|
|
@@ -574,7 +569,6 @@ declare const ccxt: {
|
|
|
574
569
|
okx: typeof okx;
|
|
575
570
|
okxus: typeof okxus;
|
|
576
571
|
onetrading: typeof onetrading;
|
|
577
|
-
oxfun: typeof oxfun;
|
|
578
572
|
p2b: typeof p2b;
|
|
579
573
|
pacifica: typeof pacifica;
|
|
580
574
|
paradex: typeof paradex;
|
|
@@ -594,5 +588,5 @@ declare const ccxt: {
|
|
|
594
588
|
zaif: typeof zaif;
|
|
595
589
|
zebpay: typeof zebpay;
|
|
596
590
|
} & typeof functions & typeof errors;
|
|
597
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, ADL, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, aftermath, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bybiteu, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate,
|
|
591
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, ADL, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, aftermath, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bybiteu, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, extended, fmfwio, foxbit, gate, gemini, grvt, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, lighter, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, p2b, pacifica, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, weex, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, };
|
|
598
592
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -32,7 +32,7 @@ import * as errors from './src/base/errors.js';
|
|
|
32
32
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
33
33
|
//-----------------------------------------------------------------------------
|
|
34
34
|
// this is updated by vss.js when building
|
|
35
|
-
const version = '4.5.
|
|
35
|
+
const version = '4.5.56';
|
|
36
36
|
Exchange.ccxtVersion = version;
|
|
37
37
|
//-----------------------------------------------------------------------------
|
|
38
38
|
import aftermath from './src/aftermath.js';
|
|
@@ -95,10 +95,10 @@ import derive from './src/derive.js';
|
|
|
95
95
|
import digifinex from './src/digifinex.js';
|
|
96
96
|
import dydx from './src/dydx.js';
|
|
97
97
|
import exmo from './src/exmo.js';
|
|
98
|
+
import extended from './src/extended.js';
|
|
98
99
|
import fmfwio from './src/fmfwio.js';
|
|
99
100
|
import foxbit from './src/foxbit.js';
|
|
100
101
|
import gate from './src/gate.js';
|
|
101
|
-
import gateio from './src/gateio.js';
|
|
102
102
|
import gemini from './src/gemini.js';
|
|
103
103
|
import grvt from './src/grvt.js';
|
|
104
104
|
import hashkey from './src/hashkey.js';
|
|
@@ -127,7 +127,6 @@ import novadax from './src/novadax.js';
|
|
|
127
127
|
import okx from './src/okx.js';
|
|
128
128
|
import okxus from './src/okxus.js';
|
|
129
129
|
import onetrading from './src/onetrading.js';
|
|
130
|
-
import oxfun from './src/oxfun.js';
|
|
131
130
|
import p2b from './src/p2b.js';
|
|
132
131
|
import pacifica from './src/pacifica.js';
|
|
133
132
|
import paradex from './src/paradex.js';
|
|
@@ -190,8 +189,8 @@ import deribitPro from './src/pro/deribit.js';
|
|
|
190
189
|
import derivePro from './src/pro/derive.js';
|
|
191
190
|
import dydxPro from './src/pro/dydx.js';
|
|
192
191
|
import exmoPro from './src/pro/exmo.js';
|
|
192
|
+
import extendedPro from './src/pro/extended.js';
|
|
193
193
|
import gatePro from './src/pro/gate.js';
|
|
194
|
-
import gateioPro from './src/pro/gateio.js';
|
|
195
194
|
import geminiPro from './src/pro/gemini.js';
|
|
196
195
|
import grvtPro from './src/pro/grvt.js';
|
|
197
196
|
import hashkeyPro from './src/pro/hashkey.js';
|
|
@@ -215,7 +214,6 @@ import ndaxPro from './src/pro/ndax.js';
|
|
|
215
214
|
import okxPro from './src/pro/okx.js';
|
|
216
215
|
import okxusPro from './src/pro/okxus.js';
|
|
217
216
|
import onetradingPro from './src/pro/onetrading.js';
|
|
218
|
-
import oxfunPro from './src/pro/oxfun.js';
|
|
219
217
|
import p2bPro from './src/pro/p2b.js';
|
|
220
218
|
import pacificaPro from './src/pro/pacifica.js';
|
|
221
219
|
import paradexPro from './src/pro/paradex.js';
|
|
@@ -289,10 +287,10 @@ const exchanges = {
|
|
|
289
287
|
'digifinex': digifinex,
|
|
290
288
|
'dydx': dydx,
|
|
291
289
|
'exmo': exmo,
|
|
290
|
+
'extended': extended,
|
|
292
291
|
'fmfwio': fmfwio,
|
|
293
292
|
'foxbit': foxbit,
|
|
294
293
|
'gate': gate,
|
|
295
|
-
'gateio': gateio,
|
|
296
294
|
'gemini': gemini,
|
|
297
295
|
'grvt': grvt,
|
|
298
296
|
'hashkey': hashkey,
|
|
@@ -321,7 +319,6 @@ const exchanges = {
|
|
|
321
319
|
'okx': okx,
|
|
322
320
|
'okxus': okxus,
|
|
323
321
|
'onetrading': onetrading,
|
|
324
|
-
'oxfun': oxfun,
|
|
325
322
|
'p2b': p2b,
|
|
326
323
|
'pacifica': pacifica,
|
|
327
324
|
'paradex': paradex,
|
|
@@ -385,8 +382,8 @@ const pro = {
|
|
|
385
382
|
'derive': derivePro,
|
|
386
383
|
'dydx': dydxPro,
|
|
387
384
|
'exmo': exmoPro,
|
|
385
|
+
'extended': extendedPro,
|
|
388
386
|
'gate': gatePro,
|
|
389
|
-
'gateio': gateioPro,
|
|
390
387
|
'gemini': geminiPro,
|
|
391
388
|
'grvt': grvtPro,
|
|
392
389
|
'hashkey': hashkeyPro,
|
|
@@ -410,7 +407,6 @@ const pro = {
|
|
|
410
407
|
'okx': okxPro,
|
|
411
408
|
'okxus': okxusPro,
|
|
412
409
|
'onetrading': onetradingPro,
|
|
413
|
-
'oxfun': oxfunPro,
|
|
414
410
|
'p2b': p2bPro,
|
|
415
411
|
'pacifica': pacificaPro,
|
|
416
412
|
'paradex': paradexPro,
|
|
@@ -436,6 +432,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
436
432
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
437
433
|
//-----------------------------------------------------------------------------
|
|
438
434
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
439
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, aftermath, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bybiteu, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate,
|
|
435
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, aftermath, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bybiteu, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, extended, fmfwio, foxbit, gate, gemini, grvt, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, lighter, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, p2b, pacifica, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, weex, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, };
|
|
440
436
|
export default ccxt;
|
|
441
437
|
//-----------------------------------------------------------------------------
|
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
import { implicitReturnType } from '../base/types.js';
|
|
2
2
|
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
3
|
interface Exchange {
|
|
4
|
-
publicGetTime(params?: {}): Promise<implicitReturnType>;
|
|
5
|
-
publicGetMarkets(params?: {}): Promise<implicitReturnType>;
|
|
6
|
-
publicGetAssets(params?: {}): Promise<implicitReturnType>;
|
|
7
4
|
publicGetMarketBook(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetReportMarketBook(params?: {}): Promise<implicitReturnType>;
|
|
8
6
|
publicGetMarketTrades(params?: {}): Promise<implicitReturnType>;
|
|
9
|
-
|
|
7
|
+
publicGetReportMarketTrades(params?: {}): Promise<implicitReturnType>;
|
|
10
8
|
publicGetTickerPrice(params?: {}): Promise<implicitReturnType>;
|
|
11
9
|
publicGetTickerBook(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetMarketCandles(params?: {}): Promise<implicitReturnType>;
|
|
12
11
|
publicGetTicker24h(params?: {}): Promise<implicitReturnType>;
|
|
13
|
-
|
|
12
|
+
publicGetTime(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicGetMarkets(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
publicGetAssets(params?: {}): Promise<implicitReturnType>;
|
|
14
15
|
privateGetOrder(params?: {}): Promise<implicitReturnType>;
|
|
15
|
-
privateGetOrders(params?: {}): Promise<implicitReturnType>;
|
|
16
16
|
privateGetOrdersOpen(params?: {}): Promise<implicitReturnType>;
|
|
17
17
|
privateGetTrades(params?: {}): Promise<implicitReturnType>;
|
|
18
|
-
|
|
18
|
+
privateGetOrders(params?: {}): Promise<implicitReturnType>;
|
|
19
19
|
privateGetDeposit(params?: {}): Promise<implicitReturnType>;
|
|
20
20
|
privateGetDepositHistory(params?: {}): Promise<implicitReturnType>;
|
|
21
21
|
privateGetWithdrawalHistory(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
privateGetAccount(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
privateGetBalance(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
privateGetStakingBalance(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
privateGetAccountFees(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
privateGetAccountHistory(params?: {}): Promise<implicitReturnType>;
|
|
22
27
|
privateGetSubaccounts(params?: {}): Promise<implicitReturnType>;
|
|
23
28
|
privateGetSubaccountsTransfers(params?: {}): Promise<implicitReturnType>;
|
|
24
29
|
privateGetSubaccountsTransfersTransferId(params?: {}): Promise<implicitReturnType>;
|
|
@@ -26,12 +31,15 @@ interface Exchange {
|
|
|
26
31
|
privateGetInstitutionalSubaccountsHistory(params?: {}): Promise<implicitReturnType>;
|
|
27
32
|
privateGetInstitutionalSubaccountsOrdersOpen(params?: {}): Promise<implicitReturnType>;
|
|
28
33
|
privatePostOrder(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
privatePostCancelOrdersAfter(params?: {}): Promise<implicitReturnType>;
|
|
29
35
|
privatePostWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
privatePostCryptoWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
30
37
|
privatePostSubaccounts(params?: {}): Promise<implicitReturnType>;
|
|
31
38
|
privatePostSubaccountsTransfers(params?: {}): Promise<implicitReturnType>;
|
|
32
39
|
privatePutOrder(params?: {}): Promise<implicitReturnType>;
|
|
33
40
|
privateDeleteOrder(params?: {}): Promise<implicitReturnType>;
|
|
34
41
|
privateDeleteOrders(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
privateDeleteAtomicOrders(params?: {}): Promise<implicitReturnType>;
|
|
35
43
|
privateDeleteInstitutionalSubaccountsOrder(params?: {}): Promise<implicitReturnType>;
|
|
36
44
|
privateDeleteInstitutionalSubaccountsOrders(params?: {}): Promise<implicitReturnType>;
|
|
37
45
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
v1PublicGetInfoMarkets(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
v1PublicGetInfoAssets(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
v1PublicGetInfoAssetsAssetPrice(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
v1PublicGetInfoMarketsMarketStats(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
v1PublicGetInfoMarketsMarketOrderbook(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
v1PublicGetInfoMarketsMarketTrades(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
v1PublicGetInfoCandlesMarketCandleType(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
v1PublicGetInfoMarketFunding(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
v1PublicGetInfoMarketOpenInterests(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
v1PublicGetInfoBuilderDashboard(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
v1PrivateGetUserAccounts(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
v1PrivateGetUserAccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
v1PrivateGetUserBalance(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
v1PrivateGetUserSpotBalances(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
v1PrivateGetUserAssetOperations(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
v1PrivateGetUserPositions(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
v1PrivateGetUserPositionsHistory(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
v1PrivateGetUserOrders(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
v1PrivateGetUserOrdersHistory(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
v1PrivateGetUserOrdersId(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
v1PrivateGetUserOrdersExternalExternalId(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
v1PrivateGetUserTrades(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
v1PrivateGetUserFundingHistory(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
v1PrivateGetUserRebatesStats(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
v1PrivateGetUserLeverage(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
v1PrivateGetUserFees(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
v1PrivateGetUserBridgeConfig(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
v1PrivateGetUserBridgeQuote(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
v1PrivateGetUserAffiliate(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
v1PrivateGetUserReferralsStatus(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
v1PrivateGetUserReferralsLinks(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
v1PrivateGetUserReferralsDashboard(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
v1PrivateGetUserRewardsEarned(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
v1PrivateGetUserRewardsLeaderboardStats(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
v1PrivateGetPortfolioChartsEquities(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
v1PrivateGetPortfolioChartsPnl(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
v1PrivateGetVaultPublicPerformance(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
v1PrivateGetVaultPublicSummary(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
v1PrivateGetBuilderTrades(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
v1PrivatePostUserOrder(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
v1PrivatePostUserOrderMassCancel(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
v1PrivatePostUserDeadmanswitch(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
v1PrivatePostUserBridgeQuote(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
v1PrivatePostUserWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
v1PrivatePostUserTransfer(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
v1PrivatePostUserReferralsUse(params?: {}): Promise<implicitReturnType>;
|
|
50
|
+
v1PrivatePostUserReferrals(params?: {}): Promise<implicitReturnType>;
|
|
51
|
+
v1PrivatePutUserReferrals(params?: {}): Promise<implicitReturnType>;
|
|
52
|
+
v1PrivatePatchUserLeverage(params?: {}): Promise<implicitReturnType>;
|
|
53
|
+
v1PrivateDeleteUserOrderId(params?: {}): Promise<implicitReturnType>;
|
|
54
|
+
v1PrivateDeleteUserOrder(params?: {}): Promise<implicitReturnType>;
|
|
55
|
+
}
|
|
56
|
+
declare abstract class Exchange extends _Exchange {
|
|
57
|
+
}
|
|
58
|
+
export default Exchange;
|