ccxt 4.1.64 → 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 +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- 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 +1 -0
- 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 +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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 +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- 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/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 +1 -0
- 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 +28 -28
- package/js/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- 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/htx.js
CHANGED
|
@@ -1436,7 +1436,7 @@ class htx extends htx$1 {
|
|
|
1436
1436
|
* @method
|
|
1437
1437
|
* @name huobi#fetchTime
|
|
1438
1438
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1439
|
-
* @param {object} [params] extra parameters specific to the
|
|
1439
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1440
1440
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1441
1441
|
*/
|
|
1442
1442
|
const options = this.safeValue(this.options, 'fetchTime', {});
|
|
@@ -1483,7 +1483,7 @@ class htx extends htx$1 {
|
|
|
1483
1483
|
* @name huobi#fetchTradingFee
|
|
1484
1484
|
* @description fetch the trading fees for a market
|
|
1485
1485
|
* @param {string} symbol unified market symbol
|
|
1486
|
-
* @param {object} [params] extra parameters specific to the
|
|
1486
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1487
1487
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1488
1488
|
*/
|
|
1489
1489
|
await this.loadMarkets();
|
|
@@ -1583,7 +1583,7 @@ class htx extends htx$1 {
|
|
|
1583
1583
|
* @method
|
|
1584
1584
|
* @name huobi#fetchMarkets
|
|
1585
1585
|
* @description retrieves data on all markets for huobi
|
|
1586
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
1586
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1587
1587
|
* @returns {object[]} an array of objects representing market data
|
|
1588
1588
|
*/
|
|
1589
1589
|
const options = this.safeValue(this.options, 'fetchMarkets', {});
|
|
@@ -2023,7 +2023,7 @@ class htx extends htx$1 {
|
|
|
2023
2023
|
* @name huobi#fetchTicker
|
|
2024
2024
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
2025
2025
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2026
|
-
* @param {object} [params] extra parameters specific to the
|
|
2026
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2027
2027
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2028
2028
|
*/
|
|
2029
2029
|
await this.loadMarkets();
|
|
@@ -2100,13 +2100,13 @@ class htx extends htx$1 {
|
|
|
2100
2100
|
/**
|
|
2101
2101
|
* @method
|
|
2102
2102
|
* @name huobi#fetchTickers
|
|
2103
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
2103
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2104
2104
|
* @see https://huobiapi.github.io/docs/spot/v1/en/#get-latest-tickers-for-all-pairs
|
|
2105
2105
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-a-batch-of-market-data-overview
|
|
2106
2106
|
* @see https://huobiapi.github.io/docs/dm/v1/en/#get-a-batch-of-market-data-overview
|
|
2107
2107
|
* @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-a-batch-of-market-data-overview-v2
|
|
2108
2108
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2109
|
-
* @param {object} [params] extra parameters specific to the
|
|
2109
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2110
2110
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2111
2111
|
*/
|
|
2112
2112
|
await this.loadMarkets();
|
|
@@ -2260,7 +2260,7 @@ class htx extends htx$1 {
|
|
|
2260
2260
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
2261
2261
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2262
2262
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2263
|
-
* @param {object} [params] extra parameters specific to the
|
|
2263
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2264
2264
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
2265
2265
|
*/
|
|
2266
2266
|
await this.loadMarkets();
|
|
@@ -2488,7 +2488,7 @@ class htx extends htx$1 {
|
|
|
2488
2488
|
* @param {string} symbol unified market symbol
|
|
2489
2489
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2490
2490
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2491
|
-
* @param {object} [params] extra parameters specific to the
|
|
2491
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2492
2492
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2493
2493
|
*/
|
|
2494
2494
|
let market = undefined;
|
|
@@ -2521,7 +2521,7 @@ class htx extends htx$1 {
|
|
|
2521
2521
|
* @param {string} symbol unified market symbol
|
|
2522
2522
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2523
2523
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2524
|
-
* @param {object} [params] extra parameters specific to the
|
|
2524
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2525
2525
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2526
2526
|
* @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)
|
|
2527
2527
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -2696,7 +2696,7 @@ class htx extends htx$1 {
|
|
|
2696
2696
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2697
2697
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2698
2698
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2699
|
-
* @param {object} [params] extra parameters specific to the
|
|
2699
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2700
2700
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2701
2701
|
*/
|
|
2702
2702
|
await this.loadMarkets();
|
|
@@ -2801,7 +2801,7 @@ class htx extends htx$1 {
|
|
|
2801
2801
|
* @param {string} timeframe the length of time each candle represents
|
|
2802
2802
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
2803
2803
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
2804
|
-
* @param {object} [params] extra parameters specific to the
|
|
2804
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2805
2805
|
* @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)
|
|
2806
2806
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
2807
2807
|
*/
|
|
@@ -2943,7 +2943,7 @@ class htx extends htx$1 {
|
|
|
2943
2943
|
* @method
|
|
2944
2944
|
* @name huobi#fetchAccounts
|
|
2945
2945
|
* @description fetch all the accounts associated with a profile
|
|
2946
|
-
* @param {object} [params] extra parameters specific to the
|
|
2946
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2947
2947
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
2948
2948
|
*/
|
|
2949
2949
|
await this.loadMarkets();
|
|
@@ -3016,7 +3016,7 @@ class htx extends htx$1 {
|
|
|
3016
3016
|
* @method
|
|
3017
3017
|
* @name huobi#fetchCurrencies
|
|
3018
3018
|
* @description fetches all available currencies on an exchange
|
|
3019
|
-
* @param {object} [params] extra parameters specific to the
|
|
3019
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3020
3020
|
* @returns {object} an associative dictionary of currencies
|
|
3021
3021
|
*/
|
|
3022
3022
|
const response = await this.spotPublicGetV2ReferenceCurrencies(params);
|
|
@@ -3186,7 +3186,7 @@ class htx extends htx$1 {
|
|
|
3186
3186
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-query-user-s-account-information
|
|
3187
3187
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-query-user-39-s-account-information
|
|
3188
3188
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
3189
|
-
* @param {object} [params] extra parameters specific to the
|
|
3189
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3190
3190
|
* @param {bool} [params.unified] provide this parameter if you have a recent account with unified cross+isolated margin account
|
|
3191
3191
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
3192
3192
|
*/
|
|
@@ -3514,7 +3514,7 @@ class htx extends htx$1 {
|
|
|
3514
3514
|
* @name huobi#fetchOrder
|
|
3515
3515
|
* @description fetches information on an order made by the user
|
|
3516
3516
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3517
|
-
* @param {object} [params] extra parameters specific to the
|
|
3517
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3518
3518
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
3519
3519
|
*/
|
|
3520
3520
|
await this.loadMarkets();
|
|
@@ -4072,7 +4072,7 @@ class htx extends htx$1 {
|
|
|
4072
4072
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4073
4073
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4074
4074
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4075
|
-
* @param {object} [params] extra parameters specific to the
|
|
4075
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4076
4076
|
* @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
|
|
4077
4077
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
|
|
4078
4078
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
@@ -4110,7 +4110,7 @@ class htx extends htx$1 {
|
|
|
4110
4110
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4111
4111
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4112
4112
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
4113
|
-
* @param {object} [params] extra parameters specific to the
|
|
4113
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4114
4114
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
4115
4115
|
* @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)
|
|
4116
4116
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -4145,7 +4145,7 @@ class htx extends htx$1 {
|
|
|
4145
4145
|
* @param {string} symbol unified market symbol
|
|
4146
4146
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
4147
4147
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
4148
|
-
* @param {object} [params] extra parameters specific to the
|
|
4148
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4149
4149
|
* @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
|
|
4150
4150
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
|
|
4151
4151
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -4849,7 +4849,7 @@ class htx extends htx$1 {
|
|
|
4849
4849
|
* @param {string} side 'buy' or 'sell'
|
|
4850
4850
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
4851
4851
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
4852
|
-
* @param {object} [params] extra parameters specific to the
|
|
4852
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4853
4853
|
* @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
|
|
4854
4854
|
* @returns {object} request to be sent to the exchange
|
|
4855
4855
|
*/
|
|
@@ -4966,7 +4966,7 @@ class htx extends htx$1 {
|
|
|
4966
4966
|
* @param {string} side 'buy' or 'sell'
|
|
4967
4967
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
4968
4968
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
4969
|
-
* @param {object} [params] extra parameters specific to the
|
|
4969
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4970
4970
|
* @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
|
|
4971
4971
|
* @returns {object} request to be sent to the exchange
|
|
4972
4972
|
*/
|
|
@@ -5065,7 +5065,7 @@ class htx extends htx$1 {
|
|
|
5065
5065
|
* @param {string} side 'buy' or 'sell'
|
|
5066
5066
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
5067
5067
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
5068
|
-
* @param {object} [params] extra parameters specific to the
|
|
5068
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5069
5069
|
* @param {float} [params.stopPrice] the price a trigger order is triggered at
|
|
5070
5070
|
* @param {string} [params.triggerType] *contract trigger orders only* ge: greater than or equal to, le: less than or equal to
|
|
5071
5071
|
* @param {float} [params.stopLossPrice] *contract only* the price a stop-loss order is triggered at
|
|
@@ -5222,7 +5222,7 @@ class htx extends htx$1 {
|
|
|
5222
5222
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-a-batch-of-orders
|
|
5223
5223
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-a-batch-of-orders
|
|
5224
5224
|
* @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
5225
|
-
* @param {object} [params] extra parameters specific to the
|
|
5225
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5226
5226
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
5227
5227
|
*/
|
|
5228
5228
|
await this.loadMarkets();
|
|
@@ -5354,7 +5354,7 @@ class htx extends htx$1 {
|
|
|
5354
5354
|
* @description cancels an open order
|
|
5355
5355
|
* @param {string} id order id
|
|
5356
5356
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5357
|
-
* @param {object} [params] extra parameters specific to the
|
|
5357
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5358
5358
|
* @param {bool} [params.stop] *contract only* if the order is a stop trigger order or not
|
|
5359
5359
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the order is a stop-loss or take-profit order
|
|
5360
5360
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -5498,7 +5498,7 @@ class htx extends htx$1 {
|
|
|
5498
5498
|
* @description cancel multiple orders
|
|
5499
5499
|
* @param {string[]} ids order ids
|
|
5500
5500
|
* @param {string} symbol unified market symbol, default is undefined
|
|
5501
|
-
* @param {object} [params] extra parameters specific to the
|
|
5501
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5502
5502
|
* @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
|
|
5503
5503
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
|
|
5504
5504
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -5679,7 +5679,7 @@ class htx extends htx$1 {
|
|
|
5679
5679
|
* @name huobi#cancelAllOrders
|
|
5680
5680
|
* @description cancel all open orders
|
|
5681
5681
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
5682
|
-
* @param {object} [params] extra parameters specific to the
|
|
5682
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5683
5683
|
* @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
|
|
5684
5684
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
|
|
5685
5685
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -5835,7 +5835,7 @@ class htx extends htx$1 {
|
|
|
5835
5835
|
* @name huobi#fetchDepositAddressesByNetwork
|
|
5836
5836
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
5837
5837
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
5838
|
-
* @param {object} [params] extra parameters specific to the
|
|
5838
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5839
5839
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
|
|
5840
5840
|
*/
|
|
5841
5841
|
await this.loadMarkets();
|
|
@@ -5867,7 +5867,7 @@ class htx extends htx$1 {
|
|
|
5867
5867
|
* @name huobi#fetchDepositAddress
|
|
5868
5868
|
* @description fetch the deposit address for a currency associated with this account
|
|
5869
5869
|
* @param {string} code unified currency code
|
|
5870
|
-
* @param {object} [params] extra parameters specific to the
|
|
5870
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5871
5871
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
5872
5872
|
*/
|
|
5873
5873
|
await this.loadMarkets();
|
|
@@ -5919,7 +5919,7 @@ class htx extends htx$1 {
|
|
|
5919
5919
|
* @param {string} code unified currency code
|
|
5920
5920
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
5921
5921
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
5922
|
-
* @param {object} [params] extra parameters specific to the
|
|
5922
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5923
5923
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
5924
5924
|
*/
|
|
5925
5925
|
if (limit === undefined || limit > 100) {
|
|
@@ -5978,7 +5978,7 @@ class htx extends htx$1 {
|
|
|
5978
5978
|
* @param {string} code unified currency code
|
|
5979
5979
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
5980
5980
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
5981
|
-
* @param {object} [params] extra parameters specific to the
|
|
5981
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5982
5982
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
5983
5983
|
*/
|
|
5984
5984
|
if (limit === undefined || limit > 100) {
|
|
@@ -6154,7 +6154,7 @@ class htx extends htx$1 {
|
|
|
6154
6154
|
* @param {float} amount the amount to withdraw
|
|
6155
6155
|
* @param {string} address the address to withdraw to
|
|
6156
6156
|
* @param {string} tag
|
|
6157
|
-
* @param {object} [params] extra parameters specific to the
|
|
6157
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6158
6158
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
6159
6159
|
*/
|
|
6160
6160
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -6244,7 +6244,7 @@ class htx extends htx$1 {
|
|
|
6244
6244
|
* @param {float} amount amount to transfer
|
|
6245
6245
|
* @param {string} fromAccount account to transfer from 'spot', 'future', 'swap'
|
|
6246
6246
|
* @param {string} toAccount account to transfer to 'spot', 'future', 'swap'
|
|
6247
|
-
* @param {object} [params] extra parameters specific to the
|
|
6247
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6248
6248
|
* @param {string} [params.symbol] used for isolated margin transfer
|
|
6249
6249
|
* @param {string} [params.subType] 'linear' or 'inverse', only used when transfering to/from swap accounts
|
|
6250
6250
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
@@ -6330,7 +6330,7 @@ class htx extends htx$1 {
|
|
|
6330
6330
|
* @method
|
|
6331
6331
|
* @name htx#fetchIsolatedBorrowRates
|
|
6332
6332
|
* @description fetch the borrow interest rates of all currencies
|
|
6333
|
-
* @param {object} [params] extra parameters specific to the
|
|
6333
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6334
6334
|
* @returns {object} a list of [isolated borrow rate structures]{@link https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure}
|
|
6335
6335
|
*/
|
|
6336
6336
|
await this.loadMarkets();
|
|
@@ -6424,7 +6424,7 @@ class htx extends htx$1 {
|
|
|
6424
6424
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
6425
6425
|
* @param {int} [since] not used by huobi, but filtered internally by ccxt
|
|
6426
6426
|
* @param {int} [limit] not used by huobi, but filtered internally by ccxt
|
|
6427
|
-
* @param {object} [params] extra parameters specific to the
|
|
6427
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6428
6428
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
6429
6429
|
*/
|
|
6430
6430
|
if (symbol === undefined) {
|
|
@@ -6541,7 +6541,7 @@ class htx extends htx$1 {
|
|
|
6541
6541
|
* @name huobi#fetchFundingRate
|
|
6542
6542
|
* @description fetch the current funding rate
|
|
6543
6543
|
* @param {string} symbol unified market symbol
|
|
6544
|
-
* @param {object} [params] extra parameters specific to the
|
|
6544
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6545
6545
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
6546
6546
|
*/
|
|
6547
6547
|
await this.loadMarkets();
|
|
@@ -6584,7 +6584,7 @@ class htx extends htx$1 {
|
|
|
6584
6584
|
* @name huobi#fetchFundingRates
|
|
6585
6585
|
* @description fetch the funding rate for multiple markets
|
|
6586
6586
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
6587
|
-
* @param {object} [params] extra parameters specific to the
|
|
6587
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6588
6588
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
6589
6589
|
*/
|
|
6590
6590
|
await this.loadMarkets();
|
|
@@ -6633,7 +6633,7 @@ class htx extends htx$1 {
|
|
|
6633
6633
|
* @param {string} symbol unified market symbol when fetch interest in isolated markets
|
|
6634
6634
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
6635
6635
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
6636
|
-
* @param {object} [params] extra parameters specific to the
|
|
6636
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6637
6637
|
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
|
|
6638
6638
|
*/
|
|
6639
6639
|
await this.loadMarkets();
|
|
@@ -6920,7 +6920,7 @@ class htx extends htx$1 {
|
|
|
6920
6920
|
* @param {string} symbol unified market symbol
|
|
6921
6921
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
6922
6922
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
6923
|
-
* @param {object} [params] extra parameters specific to the
|
|
6923
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6924
6924
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
6925
6925
|
*/
|
|
6926
6926
|
await this.loadMarkets();
|
|
@@ -7008,7 +7008,7 @@ class htx extends htx$1 {
|
|
|
7008
7008
|
* @description set the level of leverage for a market
|
|
7009
7009
|
* @param {float} leverage the rate of leverage
|
|
7010
7010
|
* @param {string} symbol unified market symbol
|
|
7011
|
-
* @param {object} [params] extra parameters specific to the
|
|
7011
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7012
7012
|
* @returns {object} response from the exchange
|
|
7013
7013
|
*/
|
|
7014
7014
|
if (symbol === undefined) {
|
|
@@ -7198,7 +7198,7 @@ class htx extends htx$1 {
|
|
|
7198
7198
|
* @name huobi#fetchPositions
|
|
7199
7199
|
* @description fetch all open positions
|
|
7200
7200
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7201
|
-
* @param {object} [params] extra parameters specific to the
|
|
7201
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7202
7202
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
7203
7203
|
*/
|
|
7204
7204
|
await this.loadMarkets();
|
|
@@ -7327,7 +7327,7 @@ class htx extends htx$1 {
|
|
|
7327
7327
|
* @name huobi#fetchPosition
|
|
7328
7328
|
* @description fetch data on a single open contract trade position
|
|
7329
7329
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
7330
|
-
* @param {object} [params] extra parameters specific to the
|
|
7330
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7331
7331
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
7332
7332
|
*/
|
|
7333
7333
|
await this.loadMarkets();
|
|
@@ -7645,7 +7645,7 @@ class htx extends htx$1 {
|
|
|
7645
7645
|
* @param {string} code unified currency code, default is undefined
|
|
7646
7646
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
7647
7647
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
7648
|
-
* @param {object} [params] extra parameters specific to the
|
|
7648
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7649
7649
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
7650
7650
|
* @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)
|
|
7651
7651
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -7721,7 +7721,7 @@ class htx extends htx$1 {
|
|
|
7721
7721
|
* @name huobi#fetchLeverageTiers
|
|
7722
7722
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
7723
7723
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7724
|
-
* @param {object} [params] extra parameters specific to the
|
|
7724
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7725
7725
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
7726
7726
|
*/
|
|
7727
7727
|
await this.loadMarkets();
|
|
@@ -7764,7 +7764,7 @@ class htx extends htx$1 {
|
|
|
7764
7764
|
* @name huobi#fetchMarketLeverageTiers
|
|
7765
7765
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
|
7766
7766
|
* @param {string} symbol unified market symbol
|
|
7767
|
-
* @param {object} [params] extra parameters specific to the
|
|
7767
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7768
7768
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
7769
7769
|
*/
|
|
7770
7770
|
await this.loadMarkets();
|
|
@@ -8142,7 +8142,7 @@ class htx extends htx$1 {
|
|
|
8142
8142
|
* @param {string} symbol unified market symbol, required for isolated margin
|
|
8143
8143
|
* @param {string} code unified currency code of the currency to borrow
|
|
8144
8144
|
* @param {float} amount the amount to borrow
|
|
8145
|
-
* @param {object} [params] extra parameters specific to the
|
|
8145
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8146
8146
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
8147
8147
|
*/
|
|
8148
8148
|
await this.loadMarkets();
|
|
@@ -8176,7 +8176,7 @@ class htx extends htx$1 {
|
|
|
8176
8176
|
* @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-cross
|
|
8177
8177
|
* @param {string} code unified currency code of the currency to borrow
|
|
8178
8178
|
* @param {float} amount the amount to borrow
|
|
8179
|
-
* @param {object} [params] extra parameters specific to the
|
|
8179
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8180
8180
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
8181
8181
|
*/
|
|
8182
8182
|
await this.loadMarkets();
|
|
@@ -8208,7 +8208,7 @@ class htx extends htx$1 {
|
|
|
8208
8208
|
* @param {string} code unified currency code of the currency to repay
|
|
8209
8209
|
* @param {float} amount the amount to repay
|
|
8210
8210
|
* @param {string} symbol unified market symbol
|
|
8211
|
-
* @param {object} [params] extra parameters specific to the
|
|
8211
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8212
8212
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
8213
8213
|
*/
|
|
8214
8214
|
await this.loadMarkets();
|
|
@@ -8247,7 +8247,7 @@ class htx extends htx$1 {
|
|
|
8247
8247
|
* @see https://huobiapi.github.io/docs/spot/v1/en/#repay-margin-loan-cross-isolated
|
|
8248
8248
|
* @param {string} code unified currency code of the currency to repay
|
|
8249
8249
|
* @param {float} amount the amount to repay
|
|
8250
|
-
* @param {object} [params] extra parameters specific to the
|
|
8250
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8251
8251
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
8252
8252
|
*/
|
|
8253
8253
|
await this.loadMarkets();
|
|
@@ -8420,7 +8420,7 @@ class htx extends htx$1 {
|
|
|
8420
8420
|
* @description fetch deposit and withdraw fees
|
|
8421
8421
|
* @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-supported-currencies-v2
|
|
8422
8422
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
8423
|
-
* @param {object} [params] extra parameters specific to the
|
|
8423
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8424
8424
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
8425
8425
|
*/
|
|
8426
8426
|
await this.loadMarkets();
|
package/dist/cjs/src/huobijp.js
CHANGED
|
@@ -331,7 +331,7 @@ class huobijp extends huobijp$1 {
|
|
|
331
331
|
* @method
|
|
332
332
|
* @name huobijp#fetchTime
|
|
333
333
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
334
|
-
* @param {object} [params] extra parameters specific to the
|
|
334
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
335
335
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
336
336
|
*/
|
|
337
337
|
const response = await this.publicGetCommonTimestamp(params);
|
|
@@ -409,7 +409,7 @@ class huobijp extends huobijp$1 {
|
|
|
409
409
|
* @method
|
|
410
410
|
* @name huobijp#fetchMarkets
|
|
411
411
|
* @description retrieves data on all markets for huobijp
|
|
412
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
412
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
413
413
|
* @returns {object[]} an array of objects representing market data
|
|
414
414
|
*/
|
|
415
415
|
const method = this.options['fetchMarketsMethod'];
|
|
@@ -613,7 +613,7 @@ class huobijp extends huobijp$1 {
|
|
|
613
613
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
614
614
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
615
615
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
616
|
-
* @param {object} [params] extra parameters specific to the
|
|
616
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
617
617
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
618
618
|
*/
|
|
619
619
|
await this.loadMarkets();
|
|
@@ -662,7 +662,7 @@ class huobijp extends huobijp$1 {
|
|
|
662
662
|
* @name huobijp#fetchTicker
|
|
663
663
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
664
664
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
665
|
-
* @param {object} [params] extra parameters specific to the
|
|
665
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
666
666
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
667
667
|
*/
|
|
668
668
|
await this.loadMarkets();
|
|
@@ -701,9 +701,9 @@ class huobijp extends huobijp$1 {
|
|
|
701
701
|
/**
|
|
702
702
|
* @method
|
|
703
703
|
* @name huobijp#fetchTickers
|
|
704
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
704
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
705
705
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
706
|
-
* @param {object} [params] extra parameters specific to the
|
|
706
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
707
707
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
708
708
|
*/
|
|
709
709
|
await this.loadMarkets();
|
|
@@ -814,7 +814,7 @@ class huobijp extends huobijp$1 {
|
|
|
814
814
|
* @param {string} symbol unified market symbol
|
|
815
815
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
816
816
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
817
|
-
* @param {object} [params] extra parameters specific to the
|
|
817
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
818
818
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
819
819
|
*/
|
|
820
820
|
await this.loadMarkets();
|
|
@@ -832,7 +832,7 @@ class huobijp extends huobijp$1 {
|
|
|
832
832
|
* @param {string} symbol unified market symbol
|
|
833
833
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
834
834
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
835
|
-
* @param {object} [params] extra parameters specific to the
|
|
835
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
836
836
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
837
837
|
*/
|
|
838
838
|
await this.loadMarkets();
|
|
@@ -860,7 +860,7 @@ class huobijp extends huobijp$1 {
|
|
|
860
860
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
861
861
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
862
862
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
863
|
-
* @param {object} [params] extra parameters specific to the
|
|
863
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
864
864
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
865
865
|
*/
|
|
866
866
|
await this.loadMarkets();
|
|
@@ -939,7 +939,7 @@ class huobijp extends huobijp$1 {
|
|
|
939
939
|
* @param {string} timeframe the length of time each candle represents
|
|
940
940
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
941
941
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
942
|
-
* @param {object} [params] extra parameters specific to the
|
|
942
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
943
943
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
944
944
|
*/
|
|
945
945
|
await this.loadMarkets();
|
|
@@ -972,7 +972,7 @@ class huobijp extends huobijp$1 {
|
|
|
972
972
|
* @method
|
|
973
973
|
* @name huobijp#fetchAccounts
|
|
974
974
|
* @description fetch all the accounts associated with a profile
|
|
975
|
-
* @param {object} [params] extra parameters specific to the
|
|
975
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
976
976
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
977
977
|
*/
|
|
978
978
|
await this.loadMarkets();
|
|
@@ -984,7 +984,7 @@ class huobijp extends huobijp$1 {
|
|
|
984
984
|
* @method
|
|
985
985
|
* @name huobijp#fetchCurrencies
|
|
986
986
|
* @description fetches all available currencies on an exchange
|
|
987
|
-
* @param {object} [params] extra parameters specific to the
|
|
987
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
988
988
|
* @returns {object} an associative dictionary of currencies
|
|
989
989
|
*/
|
|
990
990
|
const request = {
|
|
@@ -1106,7 +1106,7 @@ class huobijp extends huobijp$1 {
|
|
|
1106
1106
|
* @method
|
|
1107
1107
|
* @name huobijp#fetchBalance
|
|
1108
1108
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1109
|
-
* @param {object} [params] extra parameters specific to the
|
|
1109
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1110
1110
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1111
1111
|
*/
|
|
1112
1112
|
await this.loadMarkets();
|
|
@@ -1155,7 +1155,7 @@ class huobijp extends huobijp$1 {
|
|
|
1155
1155
|
* @name huobijp#fetchOrder
|
|
1156
1156
|
* @description fetches information on an order made by the user
|
|
1157
1157
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1158
|
-
* @param {object} [params] extra parameters specific to the
|
|
1158
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1159
1159
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1160
1160
|
*/
|
|
1161
1161
|
await this.loadMarkets();
|
|
@@ -1174,7 +1174,7 @@ class huobijp extends huobijp$1 {
|
|
|
1174
1174
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1175
1175
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1176
1176
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1177
|
-
* @param {object} [params] extra parameters specific to the
|
|
1177
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1178
1178
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1179
1179
|
*/
|
|
1180
1180
|
return await this.fetchOrdersByStates('pre-submitted,submitted,partial-filled,filled,partial-canceled,canceled', symbol, since, limit, params);
|
|
@@ -1187,7 +1187,7 @@ class huobijp extends huobijp$1 {
|
|
|
1187
1187
|
* @param {string} symbol unified market symbol
|
|
1188
1188
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1189
1189
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1190
|
-
* @param {object} [params] extra parameters specific to the
|
|
1190
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1191
1191
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1192
1192
|
*/
|
|
1193
1193
|
const method = this.safeString(this.options, 'fetchOpenOrdersMethod', 'fetch_open_orders_v1');
|
|
@@ -1207,7 +1207,7 @@ class huobijp extends huobijp$1 {
|
|
|
1207
1207
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1208
1208
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1209
1209
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1210
|
-
* @param {object} [params] extra parameters specific to the
|
|
1210
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1211
1211
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1212
1212
|
*/
|
|
1213
1213
|
return await this.fetchOrdersByStates('filled,partial-canceled,canceled', symbol, since, limit, params);
|
|
@@ -1368,7 +1368,7 @@ class huobijp extends huobijp$1 {
|
|
|
1368
1368
|
* @param {string} side 'buy' or 'sell'
|
|
1369
1369
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1370
1370
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1371
|
-
* @param {object} [params] extra parameters specific to the
|
|
1371
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1372
1372
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1373
1373
|
*/
|
|
1374
1374
|
await this.loadMarkets();
|
|
@@ -1449,7 +1449,7 @@ class huobijp extends huobijp$1 {
|
|
|
1449
1449
|
* @description cancels an open order
|
|
1450
1450
|
* @param {string} id order id
|
|
1451
1451
|
* @param {string} symbol not used by huobijp cancelOrder ()
|
|
1452
|
-
* @param {object} [params] extra parameters specific to the
|
|
1452
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1453
1453
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1454
1454
|
*/
|
|
1455
1455
|
const response = await this.privatePostOrderOrdersIdSubmitcancel({ 'id': id });
|
|
@@ -1471,7 +1471,7 @@ class huobijp extends huobijp$1 {
|
|
|
1471
1471
|
* @description cancel multiple orders
|
|
1472
1472
|
* @param {string[]} ids order ids
|
|
1473
1473
|
* @param {string} symbol not used by huobijp cancelOrders ()
|
|
1474
|
-
* @param {object} [params] extra parameters specific to the
|
|
1474
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1475
1475
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1476
1476
|
*/
|
|
1477
1477
|
await this.loadMarkets();
|
|
@@ -1525,7 +1525,7 @@ class huobijp extends huobijp$1 {
|
|
|
1525
1525
|
* @name huobijp#cancelAllOrders
|
|
1526
1526
|
* @description cancel all open orders
|
|
1527
1527
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not 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 list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
await this.loadMarkets();
|
|
@@ -1602,7 +1602,7 @@ class huobijp extends huobijp$1 {
|
|
|
1602
1602
|
* @param {string} code unified currency code
|
|
1603
1603
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1604
1604
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1605
|
-
* @param {object} [params] extra parameters specific to the
|
|
1605
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1606
1606
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1607
1607
|
*/
|
|
1608
1608
|
if (limit === undefined || limit > 100) {
|
|
@@ -1635,7 +1635,7 @@ class huobijp extends huobijp$1 {
|
|
|
1635
1635
|
* @param {string} code unified currency code
|
|
1636
1636
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1637
1637
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1638
|
-
* @param {object} [params] extra parameters specific to the
|
|
1638
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1639
1639
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1640
1640
|
*/
|
|
1641
1641
|
if (limit === undefined || limit > 100) {
|
|
@@ -1772,7 +1772,7 @@ class huobijp extends huobijp$1 {
|
|
|
1772
1772
|
* @param {float} amount the amount to withdraw
|
|
1773
1773
|
* @param {string} address the address to withdraw to
|
|
1774
1774
|
* @param {string} tag
|
|
1775
|
-
* @param {object} [params] extra parameters specific to the
|
|
1775
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1776
1776
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1777
1777
|
*/
|
|
1778
1778
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|