ccxt 4.1.63 → 4.1.65
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 +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/dist/cjs/src/hitbtc.js
CHANGED
|
@@ -642,7 +642,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
642
642
|
* @method
|
|
643
643
|
* @name hitbtc#fetchMarkets
|
|
644
644
|
* @description retrieves data on all markets for hitbtc
|
|
645
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
645
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
646
646
|
* @returns {object[]} an array of objects representing market data
|
|
647
647
|
*/
|
|
648
648
|
const response = await this.publicGetPublicSymbol(params);
|
|
@@ -785,7 +785,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
785
785
|
* @method
|
|
786
786
|
* @name hitbtc#fetchCurrencies
|
|
787
787
|
* @description fetches all available currencies on an exchange
|
|
788
|
-
* @param {object} [params] extra parameters specific to the
|
|
788
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
789
789
|
* @returns {object} an associative dictionary of currencies
|
|
790
790
|
*/
|
|
791
791
|
const response = await this.publicGetPublicCurrency(params);
|
|
@@ -906,7 +906,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
906
906
|
* @name hitbtc#createDepositAddress
|
|
907
907
|
* @description create a currency deposit address
|
|
908
908
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
909
|
-
* @param {object} [params] extra parameters specific to the
|
|
909
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
910
910
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
911
911
|
*/
|
|
912
912
|
await this.loadMarkets();
|
|
@@ -942,7 +942,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
942
942
|
* @name hitbtc#fetchDepositAddress
|
|
943
943
|
* @description fetch the deposit address for a currency associated with this account
|
|
944
944
|
* @param {string} code unified currency code
|
|
945
|
-
* @param {object} [params] extra parameters specific to the
|
|
945
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
946
946
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
947
947
|
*/
|
|
948
948
|
await this.loadMarkets();
|
|
@@ -995,7 +995,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
995
995
|
* @method
|
|
996
996
|
* @name hitbtc#fetchBalance
|
|
997
997
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
998
|
-
* @param {object} [params] extra parameters specific to the
|
|
998
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
999
999
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1000
1000
|
*/
|
|
1001
1001
|
const type = this.safeStringLower(params, 'type', 'spot');
|
|
@@ -1036,7 +1036,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1036
1036
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1037
1037
|
* @see https://api.hitbtc.com/#tickers
|
|
1038
1038
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1039
|
-
* @param {object} [params] extra parameters specific to the
|
|
1039
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1040
1040
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1041
1041
|
*/
|
|
1042
1042
|
await this.loadMarkets();
|
|
@@ -1064,10 +1064,10 @@ class hitbtc extends hitbtc$1 {
|
|
|
1064
1064
|
/**
|
|
1065
1065
|
* @method
|
|
1066
1066
|
* @name hitbtc#fetchTickers
|
|
1067
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1067
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1068
1068
|
* @see https://api.hitbtc.com/#tickers
|
|
1069
1069
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1070
|
-
* @param {object} [params] extra parameters specific to the
|
|
1070
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1071
1071
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1072
1072
|
*/
|
|
1073
1073
|
await this.loadMarkets();
|
|
@@ -1157,7 +1157,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1157
1157
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1158
1158
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1159
1159
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1160
|
-
* @param {object} [params] extra parameters specific to the
|
|
1160
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1161
1161
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1162
1162
|
*/
|
|
1163
1163
|
await this.loadMarkets();
|
|
@@ -1200,7 +1200,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1200
1200
|
* @param {string} symbol unified market symbol
|
|
1201
1201
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1202
1202
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1203
|
-
* @param {object} [params] extra parameters specific to the
|
|
1203
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1204
1204
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1205
1205
|
* @param {bool} [params.margin] true for fetching margin trades
|
|
1206
1206
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -1486,7 +1486,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1486
1486
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1487
1487
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1488
1488
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1489
|
-
* @param {object} [params] extra parameters specific to the
|
|
1489
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1490
1490
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1491
1491
|
*/
|
|
1492
1492
|
return await this.fetchTransactionsHelper('DEPOSIT,WITHDRAW', code, since, limit, params);
|
|
@@ -1499,7 +1499,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1499
1499
|
* @param {string} code unified currency code
|
|
1500
1500
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1501
1501
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1502
|
-
* @param {object} [params] extra parameters specific to the
|
|
1502
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1503
1503
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1504
1504
|
*/
|
|
1505
1505
|
return await this.fetchTransactionsHelper('DEPOSIT', code, since, limit, params);
|
|
@@ -1512,7 +1512,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1512
1512
|
* @param {string} code unified currency code
|
|
1513
1513
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1514
1514
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1515
|
-
* @param {object} [params] extra parameters specific to the
|
|
1515
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1516
1516
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1517
1517
|
*/
|
|
1518
1518
|
return await this.fetchTransactionsHelper('WITHDRAW', code, since, limit, params);
|
|
@@ -1525,7 +1525,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1525
1525
|
* @see https://api.hitbtc.com/#order-books
|
|
1526
1526
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
1527
1527
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
1528
|
-
* @param {object} [params] extra parameters specific to the
|
|
1528
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1529
1529
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
1530
1530
|
*/
|
|
1531
1531
|
await this.loadMarkets();
|
|
@@ -1557,7 +1557,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1557
1557
|
* @see https://api.hitbtc.com/#order-books
|
|
1558
1558
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1559
1559
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1560
|
-
* @param {object} [params] extra parameters specific to the
|
|
1560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1561
1561
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1562
1562
|
*/
|
|
1563
1563
|
await this.loadMarkets();
|
|
@@ -1597,7 +1597,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1597
1597
|
* @name hitbtc#fetchTradingFee
|
|
1598
1598
|
* @description fetch the trading fees for a market
|
|
1599
1599
|
* @param {string} symbol unified market symbol
|
|
1600
|
-
* @param {object} [params] extra parameters specific to the
|
|
1600
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1601
1601
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1602
1602
|
*/
|
|
1603
1603
|
await this.loadMarkets();
|
|
@@ -1623,7 +1623,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1623
1623
|
* @method
|
|
1624
1624
|
* @name hitbtc#fetchTradingFees
|
|
1625
1625
|
* @description fetch the trading fees for multiple markets
|
|
1626
|
-
* @param {object} [params] extra parameters specific to the
|
|
1626
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1627
1627
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1628
1628
|
*/
|
|
1629
1629
|
await this.loadMarkets();
|
|
@@ -1663,7 +1663,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1663
1663
|
* @param {string} timeframe the length of time each candle represents
|
|
1664
1664
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1665
1665
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1666
|
-
* @param {object} [params] extra parameters specific to the
|
|
1666
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1667
1667
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
1668
1668
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1669
1669
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -1771,7 +1771,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1771
1771
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1772
1772
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1773
1773
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1774
|
-
* @param {object} [params] extra parameters specific to the
|
|
1774
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1775
1775
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1776
1776
|
* @param {bool} [params.margin] true for fetching margin orders
|
|
1777
1777
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1810,7 +1810,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1810
1810
|
* @name hitbtc#fetchOrder
|
|
1811
1811
|
* @description fetches information on an order made by the user
|
|
1812
1812
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1813
|
-
* @param {object} [params] extra parameters specific to the
|
|
1813
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1814
1814
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1815
1815
|
* @param {bool} [params.margin] true for fetching a margin order
|
|
1816
1816
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1866,7 +1866,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1866
1866
|
* @param {string} symbol unified market symbol
|
|
1867
1867
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1868
1868
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1869
|
-
* @param {object} [params] extra parameters specific to the
|
|
1869
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1870
1870
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1871
1871
|
* @param {bool} [params.margin] true for fetching margin trades
|
|
1872
1872
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -1939,7 +1939,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1939
1939
|
* @param {string} symbol unified market symbol
|
|
1940
1940
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1941
1941
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1942
|
-
* @param {object} [params] extra parameters specific to the
|
|
1942
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1943
1943
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1944
1944
|
* @param {bool} [params.margin] true for fetching open margin orders
|
|
1945
1945
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1991,7 +1991,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
1991
1991
|
* @description fetch an open order by it's id
|
|
1992
1992
|
* @param {string} id order id
|
|
1993
1993
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1994
|
-
* @param {object} [params] extra parameters specific to the
|
|
1994
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1995
1995
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1996
1996
|
* @param {bool} [params.margin] true for fetching an open margin order
|
|
1997
1997
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2024,7 +2024,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2024
2024
|
* @name hitbtc#cancelAllOrders
|
|
2025
2025
|
* @description cancel all open orders
|
|
2026
2026
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2027
|
-
* @param {object} [params] extra parameters specific to the
|
|
2027
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2028
2028
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
2029
2029
|
* @param {bool} [params.margin] true for canceling margin orders
|
|
2030
2030
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2057,7 +2057,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2057
2057
|
* @description cancels an open order
|
|
2058
2058
|
* @param {string} id order id
|
|
2059
2059
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2060
|
-
* @param {object} [params] extra parameters specific to the
|
|
2060
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2061
2061
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
2062
2062
|
* @param {bool} [params.margin] true for canceling a margin order
|
|
2063
2063
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2127,7 +2127,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2127
2127
|
* @param {string} side 'buy' or 'sell'
|
|
2128
2128
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2129
2129
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2130
|
-
* @param {object} [params] extra parameters specific to the
|
|
2130
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2131
2131
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported for spot-margin, swap supports both, default is 'cross'
|
|
2132
2132
|
* @param {bool} [params.margin] true for creating a margin order
|
|
2133
2133
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
@@ -2365,7 +2365,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2365
2365
|
* @see https://api.hitbtc.com/#get-margin-position-parameters
|
|
2366
2366
|
* @see https://api.hitbtc.com/#get-futures-position-parameters
|
|
2367
2367
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2368
|
-
* @param {object} [params] extra parameters specific to the
|
|
2368
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2369
2369
|
* @returns {object} Struct of MarginMode
|
|
2370
2370
|
*/
|
|
2371
2371
|
await this.loadMarkets();
|
|
@@ -2444,7 +2444,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2444
2444
|
* @param {float} amount amount to transfer
|
|
2445
2445
|
* @param {string} fromAccount account to transfer from
|
|
2446
2446
|
* @param {string} toAccount account to transfer to
|
|
2447
|
-
* @param {object} [params] extra parameters specific to the
|
|
2447
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2448
2448
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2449
2449
|
*/
|
|
2450
2450
|
// account can be "spot", "wallet", or "derivatives"
|
|
@@ -2531,7 +2531,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2531
2531
|
* @param {float} amount the amount to withdraw
|
|
2532
2532
|
* @param {string} address the address to withdraw to
|
|
2533
2533
|
* @param {string} tag
|
|
2534
|
-
* @param {object} [params] extra parameters specific to the
|
|
2534
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2535
2535
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2536
2536
|
*/
|
|
2537
2537
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2575,7 +2575,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2575
2575
|
* @description fetches funding rates for multiple markets
|
|
2576
2576
|
* @see https://api.hitbtc.com/#futures-info
|
|
2577
2577
|
* @param {string[]} symbols unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
|
2578
|
-
* @param {object} [params] extra parameters specific to the
|
|
2578
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2579
2579
|
* @returns {object} an array of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2580
2580
|
*/
|
|
2581
2581
|
await this.loadMarkets();
|
|
@@ -2631,7 +2631,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2631
2631
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2632
2632
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2633
2633
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
2634
|
-
* @param {object} [params] extra parameters specific to the
|
|
2634
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2635
2635
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2636
2636
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
2637
2637
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
@@ -2709,7 +2709,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2709
2709
|
* @name hitbtc#fetchPositions
|
|
2710
2710
|
* @description fetch all open positions
|
|
2711
2711
|
* @param {string[]|undefined} symbols not used by hitbtc fetchPositions ()
|
|
2712
|
-
* @param {object} [params] extra parameters specific to the
|
|
2712
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2713
2713
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if this is set
|
|
2714
2714
|
* @param {bool} [params.margin] true for fetching spot-margin positions
|
|
2715
2715
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -2771,7 +2771,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2771
2771
|
* @name hitbtc#fetchPosition
|
|
2772
2772
|
* @description fetch data on a single open contract trade position
|
|
2773
2773
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
2774
|
-
* @param {object} [params] extra parameters specific to the
|
|
2774
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2775
2775
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if this is set
|
|
2776
2776
|
* @param {bool} [params.margin] true for fetching a spot-margin position
|
|
2777
2777
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -2982,7 +2982,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
2982
2982
|
* @description fetch the current funding rate
|
|
2983
2983
|
* @see https://api.hitbtc.com/#futures-info
|
|
2984
2984
|
* @param {string} symbol unified market symbol
|
|
2985
|
-
* @param {object} [params] extra parameters specific to the
|
|
2985
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2986
2986
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2987
2987
|
*/
|
|
2988
2988
|
await this.loadMarkets();
|
|
@@ -3121,7 +3121,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
3121
3121
|
* @description remove margin from a position
|
|
3122
3122
|
* @param {string} symbol unified market symbol
|
|
3123
3123
|
* @param {float} amount the amount of margin to remove
|
|
3124
|
-
* @param {object} [params] extra parameters specific to the
|
|
3124
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3125
3125
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if this is set
|
|
3126
3126
|
* @param {bool} [params.margin] true for reducing spot-margin
|
|
3127
3127
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
@@ -3138,7 +3138,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
3138
3138
|
* @description add margin
|
|
3139
3139
|
* @param {string} symbol unified market symbol
|
|
3140
3140
|
* @param {float} amount amount of margin to add
|
|
3141
|
-
* @param {object} [params] extra parameters specific to the
|
|
3141
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3142
3142
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if this is set
|
|
3143
3143
|
* @param {bool} [params.margin] true for adding spot-margin
|
|
3144
3144
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
@@ -3151,7 +3151,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
3151
3151
|
* @name hitbtc#fetchLeverage
|
|
3152
3152
|
* @description fetch the set leverage for a market
|
|
3153
3153
|
* @param {string} symbol unified market symbol
|
|
3154
|
-
* @param {object} [params] extra parameters specific to the
|
|
3154
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3155
3155
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if this is set
|
|
3156
3156
|
* @param {bool} [params.margin] true for fetching spot-margin leverage
|
|
3157
3157
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
@@ -3210,7 +3210,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
3210
3210
|
* @description set the level of leverage for a market
|
|
3211
3211
|
* @param {float} leverage the rate of leverage
|
|
3212
3212
|
* @param {string} symbol unified market symbol
|
|
3213
|
-
* @param {object} [params] extra parameters specific to the
|
|
3213
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3214
3214
|
* @returns {object} response from the exchange
|
|
3215
3215
|
*/
|
|
3216
3216
|
if (symbol === undefined) {
|
|
@@ -3244,7 +3244,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
3244
3244
|
* @description fetch deposit and withdraw fees
|
|
3245
3245
|
* @see https://api.hitbtc.com/#currencies
|
|
3246
3246
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
3247
|
-
* @param {object} [params] extra parameters specific to the
|
|
3247
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3248
3248
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3249
3249
|
*/
|
|
3250
3250
|
await this.loadMarkets();
|
|
@@ -3330,7 +3330,7 @@ class hitbtc extends hitbtc$1 {
|
|
|
3330
3330
|
* @ignore
|
|
3331
3331
|
* @method
|
|
3332
3332
|
* @description marginMode specified by params["marginMode"], this.options["marginMode"], this.options["defaultMarginMode"], params["margin"] = true or this.options["defaultType"] = 'margin'
|
|
3333
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3333
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3334
3334
|
* @returns {array} the marginMode in lowercase
|
|
3335
3335
|
*/
|
|
3336
3336
|
const defaultType = this.safeString(this.options, 'defaultType');
|
package/dist/cjs/src/hollaex.js
CHANGED
|
@@ -209,7 +209,7 @@ class hollaex extends hollaex$1 {
|
|
|
209
209
|
* @method
|
|
210
210
|
* @name hollaex#fetchMarkets
|
|
211
211
|
* @description retrieves data on all markets for hollaex
|
|
212
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
212
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
213
213
|
* @returns {object[]} an array of objects representing market data
|
|
214
214
|
*/
|
|
215
215
|
const response = await this.publicGetConstants(params);
|
|
@@ -325,7 +325,7 @@ class hollaex extends hollaex$1 {
|
|
|
325
325
|
* @name hollaex#fetchCurrencies
|
|
326
326
|
* @description fetches all available currencies on an exchange
|
|
327
327
|
* @see https://apidocs.hollaex.com/#constants
|
|
328
|
-
* @param {object} [params] extra parameters specific to the
|
|
328
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
329
329
|
* @returns {object} an associative dictionary of currencies
|
|
330
330
|
*/
|
|
331
331
|
const response = await this.publicGetConstants(params);
|
|
@@ -413,7 +413,7 @@ class hollaex extends hollaex$1 {
|
|
|
413
413
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
414
414
|
* @param {string[]|undefined} symbols not used by hollaex fetchOrderBooks ()
|
|
415
415
|
* @param {int} [limit] not used by hollaex fetchOrderBooks ()
|
|
416
|
-
* @param {object} [params] extra parameters specific to the
|
|
416
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
417
417
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
418
418
|
*/
|
|
419
419
|
await this.loadMarkets();
|
|
@@ -436,7 +436,7 @@ class hollaex extends hollaex$1 {
|
|
|
436
436
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
437
437
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
438
438
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
439
|
-
* @param {object} [params] extra parameters specific to the
|
|
439
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
440
440
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
441
441
|
*/
|
|
442
442
|
await this.loadMarkets();
|
|
@@ -474,7 +474,7 @@ class hollaex extends hollaex$1 {
|
|
|
474
474
|
* @name hollaex#fetchTicker
|
|
475
475
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
476
476
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
477
|
-
* @param {object} [params] extra parameters specific to the
|
|
477
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
478
478
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
479
479
|
*/
|
|
480
480
|
await this.loadMarkets();
|
|
@@ -500,9 +500,9 @@ class hollaex extends hollaex$1 {
|
|
|
500
500
|
/**
|
|
501
501
|
* @method
|
|
502
502
|
* @name hollaex#fetchTickers
|
|
503
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
503
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
504
504
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
505
|
-
* @param {object} [params] extra parameters specific to the
|
|
505
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
506
506
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
507
507
|
*/
|
|
508
508
|
await this.loadMarkets();
|
|
@@ -601,7 +601,7 @@ class hollaex extends hollaex$1 {
|
|
|
601
601
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
602
602
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
603
603
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
604
|
-
* @param {object} [params] extra parameters specific to the
|
|
604
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
605
605
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
606
606
|
*/
|
|
607
607
|
await this.loadMarkets();
|
|
@@ -686,7 +686,7 @@ class hollaex extends hollaex$1 {
|
|
|
686
686
|
* @method
|
|
687
687
|
* @name hollaex#fetchTradingFees
|
|
688
688
|
* @description fetch the trading fees for multiple markets
|
|
689
|
-
* @param {object} [params] extra parameters specific to the
|
|
689
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
690
690
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
691
691
|
*/
|
|
692
692
|
await this.loadMarkets();
|
|
@@ -749,7 +749,7 @@ class hollaex extends hollaex$1 {
|
|
|
749
749
|
* @param {string} timeframe the length of time each candle represents
|
|
750
750
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
751
751
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
752
|
-
* @param {object} [params] extra parameters specific to the
|
|
752
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
753
753
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
754
754
|
*/
|
|
755
755
|
await this.loadMarkets();
|
|
@@ -839,7 +839,7 @@ class hollaex extends hollaex$1 {
|
|
|
839
839
|
* @method
|
|
840
840
|
* @name hollaex#fetchBalance
|
|
841
841
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
842
|
-
* @param {object} [params] extra parameters specific to the
|
|
842
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
843
843
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
844
844
|
*/
|
|
845
845
|
await this.loadMarkets();
|
|
@@ -865,7 +865,7 @@ class hollaex extends hollaex$1 {
|
|
|
865
865
|
* @description fetch an open order by it's id
|
|
866
866
|
* @param {string} id order id
|
|
867
867
|
* @param {string} symbol not used by hollaex fetchOpenOrder ()
|
|
868
|
-
* @param {object} [params] extra parameters specific to the
|
|
868
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
869
869
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
870
870
|
*/
|
|
871
871
|
await this.loadMarkets();
|
|
@@ -907,7 +907,7 @@ class hollaex extends hollaex$1 {
|
|
|
907
907
|
* @param {string} symbol unified market symbol
|
|
908
908
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
909
909
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
910
|
-
* @param {object} [params] extra parameters specific to the
|
|
910
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
911
911
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
912
912
|
*/
|
|
913
913
|
const request = {
|
|
@@ -923,7 +923,7 @@ class hollaex extends hollaex$1 {
|
|
|
923
923
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
924
924
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
925
925
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
926
|
-
* @param {object} [params] extra parameters specific to the
|
|
926
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
927
927
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
928
928
|
*/
|
|
929
929
|
const request = {
|
|
@@ -937,7 +937,7 @@ class hollaex extends hollaex$1 {
|
|
|
937
937
|
* @name hollaex#fetchOrder
|
|
938
938
|
* @description fetches information on an order made by the user
|
|
939
939
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
940
|
-
* @param {object} [params] extra parameters specific to the
|
|
940
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
941
941
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
942
942
|
*/
|
|
943
943
|
await this.loadMarkets();
|
|
@@ -981,7 +981,7 @@ class hollaex extends hollaex$1 {
|
|
|
981
981
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
982
982
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
983
983
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
984
|
-
* @param {object} [params] extra parameters specific to the
|
|
984
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
985
985
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
986
986
|
*/
|
|
987
987
|
await this.loadMarkets();
|
|
@@ -1127,7 +1127,7 @@ class hollaex extends hollaex$1 {
|
|
|
1127
1127
|
* @param {string} side 'buy' or 'sell'
|
|
1128
1128
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1129
1129
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1130
|
-
* @param {object} [params] extra parameters specific to the
|
|
1130
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1131
1131
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
1132
1132
|
* @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
|
|
1133
1133
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1192,7 +1192,7 @@ class hollaex extends hollaex$1 {
|
|
|
1192
1192
|
* @description cancels an open order
|
|
1193
1193
|
* @param {string} id order id
|
|
1194
1194
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1195
|
-
* @param {object} [params] extra parameters specific to the
|
|
1195
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
1196
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1197
1197
|
*/
|
|
1198
1198
|
await this.loadMarkets();
|
|
@@ -1221,7 +1221,7 @@ class hollaex extends hollaex$1 {
|
|
|
1221
1221
|
* @name hollaex#cancelAllOrders
|
|
1222
1222
|
* @description cancel all open orders in a market
|
|
1223
1223
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1224
|
-
* @param {object} [params] extra parameters specific to the
|
|
1224
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1225
1225
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1226
1226
|
*/
|
|
1227
1227
|
if (symbol === undefined) {
|
|
@@ -1258,7 +1258,7 @@ class hollaex extends hollaex$1 {
|
|
|
1258
1258
|
* @param {string} symbol unified market symbol
|
|
1259
1259
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1260
1260
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1261
|
-
* @param {object} [params] extra parameters specific to the
|
|
1261
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1262
1262
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1263
1263
|
*/
|
|
1264
1264
|
await this.loadMarkets();
|
|
@@ -1337,7 +1337,7 @@ class hollaex extends hollaex$1 {
|
|
|
1337
1337
|
* @name hollaex#fetchDepositAddresses
|
|
1338
1338
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1339
1339
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1340
|
-
* @param {object} [params] extra parameters specific to the
|
|
1340
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1341
1341
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1342
1342
|
*/
|
|
1343
1343
|
await this.loadMarkets();
|
|
@@ -1401,7 +1401,7 @@ class hollaex extends hollaex$1 {
|
|
|
1401
1401
|
* @param {string} code unified currency code
|
|
1402
1402
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1403
1403
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1404
|
-
* @param {object} [params] extra parameters specific to the
|
|
1404
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1405
1405
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1406
1406
|
*/
|
|
1407
1407
|
await this.loadMarkets();
|
|
@@ -1459,7 +1459,7 @@ class hollaex extends hollaex$1 {
|
|
|
1459
1459
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
1460
1460
|
* @param {string} id withdrawal id
|
|
1461
1461
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
1462
|
-
* @param {object} [params] extra parameters specific to the
|
|
1462
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1463
1463
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1464
1464
|
*/
|
|
1465
1465
|
await this.loadMarkets();
|
|
@@ -1507,7 +1507,7 @@ class hollaex extends hollaex$1 {
|
|
|
1507
1507
|
* @param {string} code unified currency code
|
|
1508
1508
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1509
1509
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1510
|
-
* @param {object} [params] extra parameters specific to the
|
|
1510
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1511
1511
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1512
1512
|
*/
|
|
1513
1513
|
await this.loadMarkets();
|
|
@@ -1668,7 +1668,7 @@ class hollaex extends hollaex$1 {
|
|
|
1668
1668
|
* @param {float} amount the amount to withdraw
|
|
1669
1669
|
* @param {string} address the address to withdraw to
|
|
1670
1670
|
* @param {string} tag
|
|
1671
|
-
* @param {object} [params] extra parameters specific to the
|
|
1671
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1672
1672
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1673
1673
|
*/
|
|
1674
1674
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1776,7 +1776,7 @@ class hollaex extends hollaex$1 {
|
|
|
1776
1776
|
* @description fetch deposit and withdraw fees
|
|
1777
1777
|
* @see https://apidocs.hollaex.com/#constants
|
|
1778
1778
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1779
|
-
* @param {object} [params] extra parameters specific to the
|
|
1779
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1780
1780
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1781
1781
|
*/
|
|
1782
1782
|
const response = await this.publicGetConstants(params);
|