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/js/src/hitbtc.js
CHANGED
|
@@ -645,7 +645,7 @@ export default class hitbtc extends Exchange {
|
|
|
645
645
|
* @method
|
|
646
646
|
* @name hitbtc#fetchMarkets
|
|
647
647
|
* @description retrieves data on all markets for hitbtc
|
|
648
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
648
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
649
649
|
* @returns {object[]} an array of objects representing market data
|
|
650
650
|
*/
|
|
651
651
|
const response = await this.publicGetPublicSymbol(params);
|
|
@@ -788,7 +788,7 @@ export default class hitbtc extends Exchange {
|
|
|
788
788
|
* @method
|
|
789
789
|
* @name hitbtc#fetchCurrencies
|
|
790
790
|
* @description fetches all available currencies on an exchange
|
|
791
|
-
* @param {object} [params] extra parameters specific to the
|
|
791
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
792
792
|
* @returns {object} an associative dictionary of currencies
|
|
793
793
|
*/
|
|
794
794
|
const response = await this.publicGetPublicCurrency(params);
|
|
@@ -909,7 +909,7 @@ export default class hitbtc extends Exchange {
|
|
|
909
909
|
* @name hitbtc#createDepositAddress
|
|
910
910
|
* @description create a currency deposit address
|
|
911
911
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
912
|
-
* @param {object} [params] extra parameters specific to the
|
|
912
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
913
913
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
914
914
|
*/
|
|
915
915
|
await this.loadMarkets();
|
|
@@ -945,7 +945,7 @@ export default class hitbtc extends Exchange {
|
|
|
945
945
|
* @name hitbtc#fetchDepositAddress
|
|
946
946
|
* @description fetch the deposit address for a currency associated with this account
|
|
947
947
|
* @param {string} code unified currency code
|
|
948
|
-
* @param {object} [params] extra parameters specific to the
|
|
948
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
949
949
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
950
950
|
*/
|
|
951
951
|
await this.loadMarkets();
|
|
@@ -998,7 +998,7 @@ export default class hitbtc extends Exchange {
|
|
|
998
998
|
* @method
|
|
999
999
|
* @name hitbtc#fetchBalance
|
|
1000
1000
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1001
|
-
* @param {object} [params] extra parameters specific to the
|
|
1001
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1002
1002
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1003
1003
|
*/
|
|
1004
1004
|
const type = this.safeStringLower(params, 'type', 'spot');
|
|
@@ -1039,7 +1039,7 @@ export default class hitbtc extends Exchange {
|
|
|
1039
1039
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1040
1040
|
* @see https://api.hitbtc.com/#tickers
|
|
1041
1041
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1042
|
-
* @param {object} [params] extra parameters specific to the
|
|
1042
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1043
1043
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1044
1044
|
*/
|
|
1045
1045
|
await this.loadMarkets();
|
|
@@ -1067,10 +1067,10 @@ export default class hitbtc extends Exchange {
|
|
|
1067
1067
|
/**
|
|
1068
1068
|
* @method
|
|
1069
1069
|
* @name hitbtc#fetchTickers
|
|
1070
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1070
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1071
1071
|
* @see https://api.hitbtc.com/#tickers
|
|
1072
1072
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1073
|
-
* @param {object} [params] extra parameters specific to the
|
|
1073
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1074
1074
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1075
1075
|
*/
|
|
1076
1076
|
await this.loadMarkets();
|
|
@@ -1160,7 +1160,7 @@ export default class hitbtc extends Exchange {
|
|
|
1160
1160
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1161
1161
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1162
1162
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1163
|
-
* @param {object} [params] extra parameters specific to the
|
|
1163
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1164
1164
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1165
1165
|
*/
|
|
1166
1166
|
await this.loadMarkets();
|
|
@@ -1203,7 +1203,7 @@ export default class hitbtc extends Exchange {
|
|
|
1203
1203
|
* @param {string} symbol unified market symbol
|
|
1204
1204
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1205
1205
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1206
|
-
* @param {object} [params] extra parameters specific to the
|
|
1206
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1207
1207
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1208
1208
|
* @param {bool} [params.margin] true for fetching margin trades
|
|
1209
1209
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -1489,7 +1489,7 @@ export default class hitbtc extends Exchange {
|
|
|
1489
1489
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1490
1490
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1491
1491
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1492
|
-
* @param {object} [params] extra parameters specific to the
|
|
1492
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1493
1493
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1494
1494
|
*/
|
|
1495
1495
|
return await this.fetchTransactionsHelper('DEPOSIT,WITHDRAW', code, since, limit, params);
|
|
@@ -1502,7 +1502,7 @@ export default class hitbtc extends Exchange {
|
|
|
1502
1502
|
* @param {string} code unified currency code
|
|
1503
1503
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1504
1504
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1505
|
-
* @param {object} [params] extra parameters specific to the
|
|
1505
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1506
1506
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1507
1507
|
*/
|
|
1508
1508
|
return await this.fetchTransactionsHelper('DEPOSIT', code, since, limit, params);
|
|
@@ -1515,7 +1515,7 @@ export default class hitbtc extends Exchange {
|
|
|
1515
1515
|
* @param {string} code unified currency code
|
|
1516
1516
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1517
1517
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1518
|
-
* @param {object} [params] extra parameters specific to the
|
|
1518
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1519
1519
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1520
1520
|
*/
|
|
1521
1521
|
return await this.fetchTransactionsHelper('WITHDRAW', code, since, limit, params);
|
|
@@ -1528,7 +1528,7 @@ export default class hitbtc extends Exchange {
|
|
|
1528
1528
|
* @see https://api.hitbtc.com/#order-books
|
|
1529
1529
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
1530
1530
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
1531
|
-
* @param {object} [params] extra parameters specific to the
|
|
1531
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1532
1532
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
1533
1533
|
*/
|
|
1534
1534
|
await this.loadMarkets();
|
|
@@ -1560,7 +1560,7 @@ export default class hitbtc extends Exchange {
|
|
|
1560
1560
|
* @see https://api.hitbtc.com/#order-books
|
|
1561
1561
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1562
1562
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1563
|
-
* @param {object} [params] extra parameters specific to the
|
|
1563
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1564
1564
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1565
1565
|
*/
|
|
1566
1566
|
await this.loadMarkets();
|
|
@@ -1600,7 +1600,7 @@ export default class hitbtc extends Exchange {
|
|
|
1600
1600
|
* @name hitbtc#fetchTradingFee
|
|
1601
1601
|
* @description fetch the trading fees for a market
|
|
1602
1602
|
* @param {string} symbol unified market symbol
|
|
1603
|
-
* @param {object} [params] extra parameters specific to the
|
|
1603
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1604
1604
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1605
1605
|
*/
|
|
1606
1606
|
await this.loadMarkets();
|
|
@@ -1626,7 +1626,7 @@ export default class hitbtc extends Exchange {
|
|
|
1626
1626
|
* @method
|
|
1627
1627
|
* @name hitbtc#fetchTradingFees
|
|
1628
1628
|
* @description fetch the trading fees for multiple markets
|
|
1629
|
-
* @param {object} [params] extra parameters specific to the
|
|
1629
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1630
1630
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1631
1631
|
*/
|
|
1632
1632
|
await this.loadMarkets();
|
|
@@ -1666,7 +1666,7 @@ export default class hitbtc extends Exchange {
|
|
|
1666
1666
|
* @param {string} timeframe the length of time each candle represents
|
|
1667
1667
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1668
1668
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1669
|
-
* @param {object} [params] extra parameters specific to the
|
|
1669
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1670
1670
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
1671
1671
|
* @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)
|
|
1672
1672
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
@@ -1774,7 +1774,7 @@ export default class hitbtc extends Exchange {
|
|
|
1774
1774
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1775
1775
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1776
1776
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1777
|
-
* @param {object} [params] extra parameters specific to the
|
|
1777
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1778
1778
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1779
1779
|
* @param {bool} [params.margin] true for fetching margin orders
|
|
1780
1780
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1813,7 +1813,7 @@ export default class hitbtc extends Exchange {
|
|
|
1813
1813
|
* @name hitbtc#fetchOrder
|
|
1814
1814
|
* @description fetches information on an order made by the user
|
|
1815
1815
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1816
|
-
* @param {object} [params] extra parameters specific to the
|
|
1816
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1817
1817
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1818
1818
|
* @param {bool} [params.margin] true for fetching a margin order
|
|
1819
1819
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1869,7 +1869,7 @@ export default class hitbtc extends Exchange {
|
|
|
1869
1869
|
* @param {string} symbol unified market symbol
|
|
1870
1870
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1871
1871
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1872
|
-
* @param {object} [params] extra parameters specific to the
|
|
1872
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1873
1873
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1874
1874
|
* @param {bool} [params.margin] true for fetching margin trades
|
|
1875
1875
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -1942,7 +1942,7 @@ export default class hitbtc extends Exchange {
|
|
|
1942
1942
|
* @param {string} symbol unified market symbol
|
|
1943
1943
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1944
1944
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1945
|
-
* @param {object} [params] extra parameters specific to the
|
|
1945
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1946
1946
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1947
1947
|
* @param {bool} [params.margin] true for fetching open margin orders
|
|
1948
1948
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1994,7 +1994,7 @@ export default class hitbtc extends Exchange {
|
|
|
1994
1994
|
* @description fetch an open order by it's id
|
|
1995
1995
|
* @param {string} id order id
|
|
1996
1996
|
* @param {string} symbol unified market symbol, default is undefined
|
|
1997
|
-
* @param {object} [params] extra parameters specific to the
|
|
1997
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1998
1998
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
1999
1999
|
* @param {bool} [params.margin] true for fetching an open margin order
|
|
2000
2000
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2027,7 +2027,7 @@ export default class hitbtc extends Exchange {
|
|
|
2027
2027
|
* @name hitbtc#cancelAllOrders
|
|
2028
2028
|
* @description cancel all open orders
|
|
2029
2029
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2030
|
-
* @param {object} [params] extra parameters specific to the
|
|
2030
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2031
2031
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
2032
2032
|
* @param {bool} [params.margin] true for canceling margin orders
|
|
2033
2033
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2060,7 +2060,7 @@ export default class hitbtc extends Exchange {
|
|
|
2060
2060
|
* @description cancels an open order
|
|
2061
2061
|
* @param {string} id order id
|
|
2062
2062
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2063
|
-
* @param {object} [params] extra parameters specific to the
|
|
2063
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2064
2064
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
|
|
2065
2065
|
* @param {bool} [params.margin] true for canceling a margin order
|
|
2066
2066
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2130,7 +2130,7 @@ export default class hitbtc extends Exchange {
|
|
|
2130
2130
|
* @param {string} side 'buy' or 'sell'
|
|
2131
2131
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
2132
2132
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
2133
|
-
* @param {object} [params] extra parameters specific to the
|
|
2133
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2134
2134
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported for spot-margin, swap supports both, default is 'cross'
|
|
2135
2135
|
* @param {bool} [params.margin] true for creating a margin order
|
|
2136
2136
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
@@ -2368,7 +2368,7 @@ export default class hitbtc extends Exchange {
|
|
|
2368
2368
|
* @see https://api.hitbtc.com/#get-margin-position-parameters
|
|
2369
2369
|
* @see https://api.hitbtc.com/#get-futures-position-parameters
|
|
2370
2370
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2371
|
-
* @param {object} [params] extra parameters specific to the
|
|
2371
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2372
2372
|
* @returns {object} Struct of MarginMode
|
|
2373
2373
|
*/
|
|
2374
2374
|
await this.loadMarkets();
|
|
@@ -2447,7 +2447,7 @@ export default class hitbtc extends Exchange {
|
|
|
2447
2447
|
* @param {float} amount amount to transfer
|
|
2448
2448
|
* @param {string} fromAccount account to transfer from
|
|
2449
2449
|
* @param {string} toAccount account to transfer to
|
|
2450
|
-
* @param {object} [params] extra parameters specific to the
|
|
2450
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2451
2451
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2452
2452
|
*/
|
|
2453
2453
|
// account can be "spot", "wallet", or "derivatives"
|
|
@@ -2534,7 +2534,7 @@ export default class hitbtc extends Exchange {
|
|
|
2534
2534
|
* @param {float} amount the amount to withdraw
|
|
2535
2535
|
* @param {string} address the address to withdraw to
|
|
2536
2536
|
* @param {string} tag
|
|
2537
|
-
* @param {object} [params] extra parameters specific to the
|
|
2537
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2538
2538
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2539
2539
|
*/
|
|
2540
2540
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2578,7 +2578,7 @@ export default class hitbtc extends Exchange {
|
|
|
2578
2578
|
* @description fetches funding rates for multiple markets
|
|
2579
2579
|
* @see https://api.hitbtc.com/#futures-info
|
|
2580
2580
|
* @param {string[]} symbols unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
|
2581
|
-
* @param {object} [params] extra parameters specific to the
|
|
2581
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2582
2582
|
* @returns {object} an array of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2583
2583
|
*/
|
|
2584
2584
|
await this.loadMarkets();
|
|
@@ -2634,7 +2634,7 @@ export default class hitbtc extends Exchange {
|
|
|
2634
2634
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
2635
2635
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
2636
2636
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
2637
|
-
* @param {object} [params] extra parameters specific to the
|
|
2637
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2638
2638
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
2639
2639
|
* @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)
|
|
2640
2640
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
@@ -2712,7 +2712,7 @@ export default class hitbtc extends Exchange {
|
|
|
2712
2712
|
* @name hitbtc#fetchPositions
|
|
2713
2713
|
* @description fetch all open positions
|
|
2714
2714
|
* @param {string[]|undefined} symbols not used by hitbtc fetchPositions ()
|
|
2715
|
-
* @param {object} [params] extra parameters specific to the
|
|
2715
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2716
2716
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if this is set
|
|
2717
2717
|
* @param {bool} [params.margin] true for fetching spot-margin positions
|
|
2718
2718
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -2774,7 +2774,7 @@ export default class hitbtc extends Exchange {
|
|
|
2774
2774
|
* @name hitbtc#fetchPosition
|
|
2775
2775
|
* @description fetch data on a single open contract trade position
|
|
2776
2776
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
2777
|
-
* @param {object} [params] extra parameters specific to the
|
|
2777
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2778
2778
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if this is set
|
|
2779
2779
|
* @param {bool} [params.margin] true for fetching a spot-margin position
|
|
2780
2780
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -2985,7 +2985,7 @@ export default class hitbtc extends Exchange {
|
|
|
2985
2985
|
* @description fetch the current funding rate
|
|
2986
2986
|
* @see https://api.hitbtc.com/#futures-info
|
|
2987
2987
|
* @param {string} symbol unified market symbol
|
|
2988
|
-
* @param {object} [params] extra parameters specific to the
|
|
2988
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2989
2989
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
2990
2990
|
*/
|
|
2991
2991
|
await this.loadMarkets();
|
|
@@ -3124,7 +3124,7 @@ export default class hitbtc extends Exchange {
|
|
|
3124
3124
|
* @description remove margin from a position
|
|
3125
3125
|
* @param {string} symbol unified market symbol
|
|
3126
3126
|
* @param {float} amount the amount of margin to remove
|
|
3127
|
-
* @param {object} [params] extra parameters specific to the
|
|
3127
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3128
3128
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if this is set
|
|
3129
3129
|
* @param {bool} [params.margin] true for reducing spot-margin
|
|
3130
3130
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
@@ -3141,7 +3141,7 @@ export default class hitbtc extends Exchange {
|
|
|
3141
3141
|
* @description add margin
|
|
3142
3142
|
* @param {string} symbol unified market symbol
|
|
3143
3143
|
* @param {float} amount amount of margin to add
|
|
3144
|
-
* @param {object} [params] extra parameters specific to the
|
|
3144
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3145
3145
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if this is set
|
|
3146
3146
|
* @param {bool} [params.margin] true for adding spot-margin
|
|
3147
3147
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
@@ -3154,7 +3154,7 @@ export default class hitbtc extends Exchange {
|
|
|
3154
3154
|
* @name hitbtc#fetchLeverage
|
|
3155
3155
|
* @description fetch the set leverage for a market
|
|
3156
3156
|
* @param {string} symbol unified market symbol
|
|
3157
|
-
* @param {object} [params] extra parameters specific to the
|
|
3157
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3158
3158
|
* @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if this is set
|
|
3159
3159
|
* @param {bool} [params.margin] true for fetching spot-margin leverage
|
|
3160
3160
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
@@ -3213,7 +3213,7 @@ export default class hitbtc extends Exchange {
|
|
|
3213
3213
|
* @description set the level of leverage for a market
|
|
3214
3214
|
* @param {float} leverage the rate of leverage
|
|
3215
3215
|
* @param {string} symbol unified market symbol
|
|
3216
|
-
* @param {object} [params] extra parameters specific to the
|
|
3216
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3217
3217
|
* @returns {object} response from the exchange
|
|
3218
3218
|
*/
|
|
3219
3219
|
if (symbol === undefined) {
|
|
@@ -3247,7 +3247,7 @@ export default class hitbtc extends Exchange {
|
|
|
3247
3247
|
* @description fetch deposit and withdraw fees
|
|
3248
3248
|
* @see https://api.hitbtc.com/#currencies
|
|
3249
3249
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
3250
|
-
* @param {object} [params] extra parameters specific to the
|
|
3250
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3251
3251
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3252
3252
|
*/
|
|
3253
3253
|
await this.loadMarkets();
|
|
@@ -3333,7 +3333,7 @@ export default class hitbtc extends Exchange {
|
|
|
3333
3333
|
* @ignore
|
|
3334
3334
|
* @method
|
|
3335
3335
|
* @description marginMode specified by params["marginMode"], this.options["marginMode"], this.options["defaultMarginMode"], params["margin"] = true or this.options["defaultType"] = 'margin'
|
|
3336
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3336
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3337
3337
|
* @returns {array} the marginMode in lowercase
|
|
3338
3338
|
*/
|
|
3339
3339
|
const defaultType = this.safeString(this.options, 'defaultType');
|
package/js/src/hollaex.js
CHANGED
|
@@ -212,7 +212,7 @@ export default class hollaex extends Exchange {
|
|
|
212
212
|
* @method
|
|
213
213
|
* @name hollaex#fetchMarkets
|
|
214
214
|
* @description retrieves data on all markets for hollaex
|
|
215
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
215
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
216
216
|
* @returns {object[]} an array of objects representing market data
|
|
217
217
|
*/
|
|
218
218
|
const response = await this.publicGetConstants(params);
|
|
@@ -328,7 +328,7 @@ export default class hollaex extends Exchange {
|
|
|
328
328
|
* @name hollaex#fetchCurrencies
|
|
329
329
|
* @description fetches all available currencies on an exchange
|
|
330
330
|
* @see https://apidocs.hollaex.com/#constants
|
|
331
|
-
* @param {object} [params] extra parameters specific to the
|
|
331
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
332
332
|
* @returns {object} an associative dictionary of currencies
|
|
333
333
|
*/
|
|
334
334
|
const response = await this.publicGetConstants(params);
|
|
@@ -416,7 +416,7 @@ export default class hollaex extends Exchange {
|
|
|
416
416
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
417
417
|
* @param {string[]|undefined} symbols not used by hollaex fetchOrderBooks ()
|
|
418
418
|
* @param {int} [limit] not used by hollaex fetchOrderBooks ()
|
|
419
|
-
* @param {object} [params] extra parameters specific to the
|
|
419
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
420
420
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
421
421
|
*/
|
|
422
422
|
await this.loadMarkets();
|
|
@@ -439,7 +439,7 @@ export default class hollaex extends Exchange {
|
|
|
439
439
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
440
440
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
441
441
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
442
|
-
* @param {object} [params] extra parameters specific to the
|
|
442
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
443
443
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
444
444
|
*/
|
|
445
445
|
await this.loadMarkets();
|
|
@@ -477,7 +477,7 @@ export default class hollaex extends Exchange {
|
|
|
477
477
|
* @name hollaex#fetchTicker
|
|
478
478
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
479
479
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
480
|
-
* @param {object} [params] extra parameters specific to the
|
|
480
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
481
481
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
482
482
|
*/
|
|
483
483
|
await this.loadMarkets();
|
|
@@ -503,9 +503,9 @@ export default class hollaex extends Exchange {
|
|
|
503
503
|
/**
|
|
504
504
|
* @method
|
|
505
505
|
* @name hollaex#fetchTickers
|
|
506
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
506
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
507
507
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
508
|
-
* @param {object} [params] extra parameters specific to the
|
|
508
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
509
509
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
510
510
|
*/
|
|
511
511
|
await this.loadMarkets();
|
|
@@ -604,7 +604,7 @@ export default class hollaex extends Exchange {
|
|
|
604
604
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
605
605
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
606
606
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
607
|
-
* @param {object} [params] extra parameters specific to the
|
|
607
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
608
608
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
609
609
|
*/
|
|
610
610
|
await this.loadMarkets();
|
|
@@ -689,7 +689,7 @@ export default class hollaex extends Exchange {
|
|
|
689
689
|
* @method
|
|
690
690
|
* @name hollaex#fetchTradingFees
|
|
691
691
|
* @description fetch the trading fees for multiple markets
|
|
692
|
-
* @param {object} [params] extra parameters specific to the
|
|
692
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
693
693
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
694
694
|
*/
|
|
695
695
|
await this.loadMarkets();
|
|
@@ -752,7 +752,7 @@ export default class hollaex extends Exchange {
|
|
|
752
752
|
* @param {string} timeframe the length of time each candle represents
|
|
753
753
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
754
754
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
755
|
-
* @param {object} [params] extra parameters specific to the
|
|
755
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
756
756
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
757
757
|
*/
|
|
758
758
|
await this.loadMarkets();
|
|
@@ -842,7 +842,7 @@ export default class hollaex extends Exchange {
|
|
|
842
842
|
* @method
|
|
843
843
|
* @name hollaex#fetchBalance
|
|
844
844
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
845
|
-
* @param {object} [params] extra parameters specific to the
|
|
845
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
846
846
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
847
847
|
*/
|
|
848
848
|
await this.loadMarkets();
|
|
@@ -868,7 +868,7 @@ export default class hollaex extends Exchange {
|
|
|
868
868
|
* @description fetch an open order by it's id
|
|
869
869
|
* @param {string} id order id
|
|
870
870
|
* @param {string} symbol not used by hollaex fetchOpenOrder ()
|
|
871
|
-
* @param {object} [params] extra parameters specific to the
|
|
871
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
872
872
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
873
873
|
*/
|
|
874
874
|
await this.loadMarkets();
|
|
@@ -910,7 +910,7 @@ export default class hollaex extends Exchange {
|
|
|
910
910
|
* @param {string} symbol unified market symbol
|
|
911
911
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
912
912
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
913
|
-
* @param {object} [params] extra parameters specific to the
|
|
913
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
914
914
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
915
915
|
*/
|
|
916
916
|
const request = {
|
|
@@ -926,7 +926,7 @@ export default class hollaex extends Exchange {
|
|
|
926
926
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
927
927
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
928
928
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
929
|
-
* @param {object} [params] extra parameters specific to the
|
|
929
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
930
930
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
931
931
|
*/
|
|
932
932
|
const request = {
|
|
@@ -940,7 +940,7 @@ export default class hollaex extends Exchange {
|
|
|
940
940
|
* @name hollaex#fetchOrder
|
|
941
941
|
* @description fetches information on an order made by the user
|
|
942
942
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
943
|
-
* @param {object} [params] extra parameters specific to the
|
|
943
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
944
944
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
945
945
|
*/
|
|
946
946
|
await this.loadMarkets();
|
|
@@ -984,7 +984,7 @@ export default class hollaex extends Exchange {
|
|
|
984
984
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
985
985
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
986
986
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
987
|
-
* @param {object} [params] extra parameters specific to the
|
|
987
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
988
988
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
989
989
|
*/
|
|
990
990
|
await this.loadMarkets();
|
|
@@ -1130,7 +1130,7 @@ export default class hollaex extends Exchange {
|
|
|
1130
1130
|
* @param {string} side 'buy' or 'sell'
|
|
1131
1131
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1132
1132
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1133
|
-
* @param {object} [params] extra parameters specific to the
|
|
1133
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1134
1134
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
1135
1135
|
* @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
|
|
1136
1136
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1195,7 +1195,7 @@ export default class hollaex extends Exchange {
|
|
|
1195
1195
|
* @description cancels an open order
|
|
1196
1196
|
* @param {string} id order id
|
|
1197
1197
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1198
|
-
* @param {object} [params] extra parameters specific to the
|
|
1198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1199
1199
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1200
1200
|
*/
|
|
1201
1201
|
await this.loadMarkets();
|
|
@@ -1224,7 +1224,7 @@ export default class hollaex extends Exchange {
|
|
|
1224
1224
|
* @name hollaex#cancelAllOrders
|
|
1225
1225
|
* @description cancel all open orders in a market
|
|
1226
1226
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
1227
|
-
* @param {object} [params] extra parameters specific to the
|
|
1227
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1228
1228
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1229
1229
|
*/
|
|
1230
1230
|
if (symbol === undefined) {
|
|
@@ -1261,7 +1261,7 @@ export default class hollaex extends Exchange {
|
|
|
1261
1261
|
* @param {string} symbol unified market symbol
|
|
1262
1262
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1263
1263
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1264
|
-
* @param {object} [params] extra parameters specific to the
|
|
1264
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1265
1265
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1266
1266
|
*/
|
|
1267
1267
|
await this.loadMarkets();
|
|
@@ -1340,7 +1340,7 @@ export default class hollaex extends Exchange {
|
|
|
1340
1340
|
* @name hollaex#fetchDepositAddresses
|
|
1341
1341
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1342
1342
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1343
|
-
* @param {object} [params] extra parameters specific to the
|
|
1343
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1344
1344
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1345
1345
|
*/
|
|
1346
1346
|
await this.loadMarkets();
|
|
@@ -1404,7 +1404,7 @@ export default class hollaex extends Exchange {
|
|
|
1404
1404
|
* @param {string} code unified currency code
|
|
1405
1405
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1406
1406
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1407
|
-
* @param {object} [params] extra parameters specific to the
|
|
1407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1408
1408
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1409
1409
|
*/
|
|
1410
1410
|
await this.loadMarkets();
|
|
@@ -1462,7 +1462,7 @@ export default class hollaex extends Exchange {
|
|
|
1462
1462
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
1463
1463
|
* @param {string} id withdrawal id
|
|
1464
1464
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
1465
|
-
* @param {object} [params] extra parameters specific to the
|
|
1465
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1466
1466
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1467
1467
|
*/
|
|
1468
1468
|
await this.loadMarkets();
|
|
@@ -1510,7 +1510,7 @@ export default class hollaex extends Exchange {
|
|
|
1510
1510
|
* @param {string} code unified currency code
|
|
1511
1511
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1512
1512
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1513
|
-
* @param {object} [params] extra parameters specific to the
|
|
1513
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1514
1514
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1515
1515
|
*/
|
|
1516
1516
|
await this.loadMarkets();
|
|
@@ -1671,7 +1671,7 @@ export default class hollaex extends Exchange {
|
|
|
1671
1671
|
* @param {float} amount the amount to withdraw
|
|
1672
1672
|
* @param {string} address the address to withdraw to
|
|
1673
1673
|
* @param {string} tag
|
|
1674
|
-
* @param {object} [params] extra parameters specific to the
|
|
1674
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1675
1675
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1676
1676
|
*/
|
|
1677
1677
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1779,7 +1779,7 @@ export default class hollaex extends Exchange {
|
|
|
1779
1779
|
* @description fetch deposit and withdraw fees
|
|
1780
1780
|
* @see https://apidocs.hollaex.com/#constants
|
|
1781
1781
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1782
|
-
* @param {object} [params] extra parameters specific to the
|
|
1782
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1783
1783
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1784
1784
|
*/
|
|
1785
1785
|
const response = await this.publicGetConstants(params);
|