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/js/src/htx.js
CHANGED
|
@@ -1439,7 +1439,7 @@ export default class htx extends Exchange {
|
|
|
1439
1439
|
* @method
|
|
1440
1440
|
* @name huobi#fetchTime
|
|
1441
1441
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
1442
|
-
* @param {object} [params] extra parameters specific to the
|
|
1442
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1443
1443
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
1444
1444
|
*/
|
|
1445
1445
|
const options = this.safeValue(this.options, 'fetchTime', {});
|
|
@@ -1486,7 +1486,7 @@ export default class htx extends Exchange {
|
|
|
1486
1486
|
* @name huobi#fetchTradingFee
|
|
1487
1487
|
* @description fetch the trading fees for a market
|
|
1488
1488
|
* @param {string} symbol unified market symbol
|
|
1489
|
-
* @param {object} [params] extra parameters specific to the
|
|
1489
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1490
1490
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1491
1491
|
*/
|
|
1492
1492
|
await this.loadMarkets();
|
|
@@ -1586,7 +1586,7 @@ export default class htx extends Exchange {
|
|
|
1586
1586
|
* @method
|
|
1587
1587
|
* @name huobi#fetchMarkets
|
|
1588
1588
|
* @description retrieves data on all markets for huobi
|
|
1589
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
1589
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1590
1590
|
* @returns {object[]} an array of objects representing market data
|
|
1591
1591
|
*/
|
|
1592
1592
|
const options = this.safeValue(this.options, 'fetchMarkets', {});
|
|
@@ -2026,7 +2026,7 @@ export default class htx extends Exchange {
|
|
|
2026
2026
|
* @name huobi#fetchTicker
|
|
2027
2027
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
2028
2028
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
2029
|
-
* @param {object} [params] extra parameters specific to the
|
|
2029
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2030
2030
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2031
2031
|
*/
|
|
2032
2032
|
await this.loadMarkets();
|
|
@@ -2103,13 +2103,13 @@ export default class htx extends Exchange {
|
|
|
2103
2103
|
/**
|
|
2104
2104
|
* @method
|
|
2105
2105
|
* @name huobi#fetchTickers
|
|
2106
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
2106
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
2107
2107
|
* @see https://huobiapi.github.io/docs/spot/v1/en/#get-latest-tickers-for-all-pairs
|
|
2108
2108
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-a-batch-of-market-data-overview
|
|
2109
2109
|
* @see https://huobiapi.github.io/docs/dm/v1/en/#get-a-batch-of-market-data-overview
|
|
2110
2110
|
* @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-a-batch-of-market-data-overview-v2
|
|
2111
2111
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
2112
|
-
* @param {object} [params] extra parameters specific to the
|
|
2112
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2113
2113
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
2114
2114
|
*/
|
|
2115
2115
|
await this.loadMarkets();
|
|
@@ -2263,7 +2263,7 @@ export default class htx extends Exchange {
|
|
|
2263
2263
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
2264
2264
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
2265
2265
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
2266
|
-
* @param {object} [params] extra parameters specific to the
|
|
2266
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2267
2267
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
2268
2268
|
*/
|
|
2269
2269
|
await this.loadMarkets();
|
|
@@ -2491,7 +2491,7 @@ export default class htx extends Exchange {
|
|
|
2491
2491
|
* @param {string} symbol unified market symbol
|
|
2492
2492
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2493
2493
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2494
|
-
* @param {object} [params] extra parameters specific to the
|
|
2494
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2495
2495
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2496
2496
|
*/
|
|
2497
2497
|
let market = undefined;
|
|
@@ -2524,7 +2524,7 @@ export default class htx extends Exchange {
|
|
|
2524
2524
|
* @param {string} symbol unified market symbol
|
|
2525
2525
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2526
2526
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2527
|
-
* @param {object} [params] extra parameters specific to the
|
|
2527
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2528
2528
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
2529
2529
|
* @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)
|
|
2530
2530
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
@@ -2699,7 +2699,7 @@ export default class htx extends Exchange {
|
|
|
2699
2699
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
2700
2700
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
2701
2701
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
2702
|
-
* @param {object} [params] extra parameters specific to the
|
|
2702
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2703
2703
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
2704
2704
|
*/
|
|
2705
2705
|
await this.loadMarkets();
|
|
@@ -2804,7 +2804,7 @@ export default class htx extends Exchange {
|
|
|
2804
2804
|
* @param {string} timeframe the length of time each candle represents
|
|
2805
2805
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
2806
2806
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
2807
|
-
* @param {object} [params] extra parameters specific to the
|
|
2807
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2808
2808
|
* @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)
|
|
2809
2809
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
2810
2810
|
*/
|
|
@@ -2946,7 +2946,7 @@ export default class htx extends Exchange {
|
|
|
2946
2946
|
* @method
|
|
2947
2947
|
* @name huobi#fetchAccounts
|
|
2948
2948
|
* @description fetch all the accounts associated with a profile
|
|
2949
|
-
* @param {object} [params] extra parameters specific to the
|
|
2949
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2950
2950
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
2951
2951
|
*/
|
|
2952
2952
|
await this.loadMarkets();
|
|
@@ -3019,7 +3019,7 @@ export default class htx extends Exchange {
|
|
|
3019
3019
|
* @method
|
|
3020
3020
|
* @name huobi#fetchCurrencies
|
|
3021
3021
|
* @description fetches all available currencies on an exchange
|
|
3022
|
-
* @param {object} [params] extra parameters specific to the
|
|
3022
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3023
3023
|
* @returns {object} an associative dictionary of currencies
|
|
3024
3024
|
*/
|
|
3025
3025
|
const response = await this.spotPublicGetV2ReferenceCurrencies(params);
|
|
@@ -3189,7 +3189,7 @@ export default class htx extends Exchange {
|
|
|
3189
3189
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-query-user-s-account-information
|
|
3190
3190
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-query-user-39-s-account-information
|
|
3191
3191
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
3192
|
-
* @param {object} [params] extra parameters specific to the
|
|
3192
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3193
3193
|
* @param {bool} [params.unified] provide this parameter if you have a recent account with unified cross+isolated margin account
|
|
3194
3194
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
3195
3195
|
*/
|
|
@@ -3517,7 +3517,7 @@ export default class htx extends Exchange {
|
|
|
3517
3517
|
* @name huobi#fetchOrder
|
|
3518
3518
|
* @description fetches information on an order made by the user
|
|
3519
3519
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
3520
|
-
* @param {object} [params] extra parameters specific to the
|
|
3520
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3521
3521
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
3522
3522
|
*/
|
|
3523
3523
|
await this.loadMarkets();
|
|
@@ -4075,7 +4075,7 @@ export default class htx extends Exchange {
|
|
|
4075
4075
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4076
4076
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4077
4077
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
4078
|
-
* @param {object} [params] extra parameters specific to the
|
|
4078
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4079
4079
|
* @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
|
|
4080
4080
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
|
|
4081
4081
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
@@ -4113,7 +4113,7 @@ export default class htx extends Exchange {
|
|
|
4113
4113
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4114
4114
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4115
4115
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
4116
|
-
* @param {object} [params] extra parameters specific to the
|
|
4116
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4117
4117
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
4118
4118
|
* @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)
|
|
4119
4119
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -4148,7 +4148,7 @@ export default class htx extends Exchange {
|
|
|
4148
4148
|
* @param {string} symbol unified market symbol
|
|
4149
4149
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
4150
4150
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
4151
|
-
* @param {object} [params] extra parameters specific to the
|
|
4151
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4152
4152
|
* @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
|
|
4153
4153
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
|
|
4154
4154
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -4852,7 +4852,7 @@ export default class htx extends Exchange {
|
|
|
4852
4852
|
* @param {string} side 'buy' or 'sell'
|
|
4853
4853
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
4854
4854
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
4855
|
-
* @param {object} [params] extra parameters specific to the
|
|
4855
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4856
4856
|
* @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
|
|
4857
4857
|
* @returns {object} request to be sent to the exchange
|
|
4858
4858
|
*/
|
|
@@ -4969,7 +4969,7 @@ export default class htx extends Exchange {
|
|
|
4969
4969
|
* @param {string} side 'buy' or 'sell'
|
|
4970
4970
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
4971
4971
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
4972
|
-
* @param {object} [params] extra parameters specific to the
|
|
4972
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4973
4973
|
* @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
|
|
4974
4974
|
* @returns {object} request to be sent to the exchange
|
|
4975
4975
|
*/
|
|
@@ -5068,7 +5068,7 @@ export default class htx extends Exchange {
|
|
|
5068
5068
|
* @param {string} side 'buy' or 'sell'
|
|
5069
5069
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
5070
5070
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
5071
|
-
* @param {object} [params] extra parameters specific to the
|
|
5071
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5072
5072
|
* @param {float} [params.stopPrice] the price a trigger order is triggered at
|
|
5073
5073
|
* @param {string} [params.triggerType] *contract trigger orders only* ge: greater than or equal to, le: less than or equal to
|
|
5074
5074
|
* @param {float} [params.stopLossPrice] *contract only* the price a stop-loss order is triggered at
|
|
@@ -5225,7 +5225,7 @@ export default class htx extends Exchange {
|
|
|
5225
5225
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-a-batch-of-orders
|
|
5226
5226
|
* @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-a-batch-of-orders
|
|
5227
5227
|
* @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
|
|
5228
|
-
* @param {object} [params] extra parameters specific to the
|
|
5228
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5229
5229
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
5230
5230
|
*/
|
|
5231
5231
|
await this.loadMarkets();
|
|
@@ -5357,7 +5357,7 @@ export default class htx extends Exchange {
|
|
|
5357
5357
|
* @description cancels an open order
|
|
5358
5358
|
* @param {string} id order id
|
|
5359
5359
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
5360
|
-
* @param {object} [params] extra parameters specific to the
|
|
5360
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5361
5361
|
* @param {bool} [params.stop] *contract only* if the order is a stop trigger order or not
|
|
5362
5362
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the order is a stop-loss or take-profit order
|
|
5363
5363
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -5501,7 +5501,7 @@ export default class htx extends Exchange {
|
|
|
5501
5501
|
* @description cancel multiple orders
|
|
5502
5502
|
* @param {string[]} ids order ids
|
|
5503
5503
|
* @param {string} symbol unified market symbol, default is undefined
|
|
5504
|
-
* @param {object} [params] extra parameters specific to the
|
|
5504
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5505
5505
|
* @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
|
|
5506
5506
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
|
|
5507
5507
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -5682,7 +5682,7 @@ export default class htx extends Exchange {
|
|
|
5682
5682
|
* @name huobi#cancelAllOrders
|
|
5683
5683
|
* @description cancel all open orders
|
|
5684
5684
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
5685
|
-
* @param {object} [params] extra parameters specific to the
|
|
5685
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5686
5686
|
* @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
|
|
5687
5687
|
* @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
|
|
5688
5688
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -5838,7 +5838,7 @@ export default class htx extends Exchange {
|
|
|
5838
5838
|
* @name huobi#fetchDepositAddressesByNetwork
|
|
5839
5839
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
5840
5840
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
5841
|
-
* @param {object} [params] extra parameters specific to the
|
|
5841
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5842
5842
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
|
|
5843
5843
|
*/
|
|
5844
5844
|
await this.loadMarkets();
|
|
@@ -5870,7 +5870,7 @@ export default class htx extends Exchange {
|
|
|
5870
5870
|
* @name huobi#fetchDepositAddress
|
|
5871
5871
|
* @description fetch the deposit address for a currency associated with this account
|
|
5872
5872
|
* @param {string} code unified currency code
|
|
5873
|
-
* @param {object} [params] extra parameters specific to the
|
|
5873
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5874
5874
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
5875
5875
|
*/
|
|
5876
5876
|
await this.loadMarkets();
|
|
@@ -5922,7 +5922,7 @@ export default class htx extends Exchange {
|
|
|
5922
5922
|
* @param {string} code unified currency code
|
|
5923
5923
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
5924
5924
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
5925
|
-
* @param {object} [params] extra parameters specific to the
|
|
5925
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5926
5926
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
5927
5927
|
*/
|
|
5928
5928
|
if (limit === undefined || limit > 100) {
|
|
@@ -5981,7 +5981,7 @@ export default class htx extends Exchange {
|
|
|
5981
5981
|
* @param {string} code unified currency code
|
|
5982
5982
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
5983
5983
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
5984
|
-
* @param {object} [params] extra parameters specific to the
|
|
5984
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5985
5985
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
5986
5986
|
*/
|
|
5987
5987
|
if (limit === undefined || limit > 100) {
|
|
@@ -6157,7 +6157,7 @@ export default class htx extends Exchange {
|
|
|
6157
6157
|
* @param {float} amount the amount to withdraw
|
|
6158
6158
|
* @param {string} address the address to withdraw to
|
|
6159
6159
|
* @param {string} tag
|
|
6160
|
-
* @param {object} [params] extra parameters specific to the
|
|
6160
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6161
6161
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
6162
6162
|
*/
|
|
6163
6163
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -6247,7 +6247,7 @@ export default class htx extends Exchange {
|
|
|
6247
6247
|
* @param {float} amount amount to transfer
|
|
6248
6248
|
* @param {string} fromAccount account to transfer from 'spot', 'future', 'swap'
|
|
6249
6249
|
* @param {string} toAccount account to transfer to 'spot', 'future', 'swap'
|
|
6250
|
-
* @param {object} [params] extra parameters specific to the
|
|
6250
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6251
6251
|
* @param {string} [params.symbol] used for isolated margin transfer
|
|
6252
6252
|
* @param {string} [params.subType] 'linear' or 'inverse', only used when transfering to/from swap accounts
|
|
6253
6253
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
@@ -6333,7 +6333,7 @@ export default class htx extends Exchange {
|
|
|
6333
6333
|
* @method
|
|
6334
6334
|
* @name htx#fetchIsolatedBorrowRates
|
|
6335
6335
|
* @description fetch the borrow interest rates of all currencies
|
|
6336
|
-
* @param {object} [params] extra parameters specific to the
|
|
6336
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6337
6337
|
* @returns {object} a list of [isolated borrow rate structures]{@link https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure}
|
|
6338
6338
|
*/
|
|
6339
6339
|
await this.loadMarkets();
|
|
@@ -6427,7 +6427,7 @@ export default class htx extends Exchange {
|
|
|
6427
6427
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
6428
6428
|
* @param {int} [since] not used by huobi, but filtered internally by ccxt
|
|
6429
6429
|
* @param {int} [limit] not used by huobi, but filtered internally by ccxt
|
|
6430
|
-
* @param {object} [params] extra parameters specific to the
|
|
6430
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6431
6431
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
6432
6432
|
*/
|
|
6433
6433
|
if (symbol === undefined) {
|
|
@@ -6544,7 +6544,7 @@ export default class htx extends Exchange {
|
|
|
6544
6544
|
* @name huobi#fetchFundingRate
|
|
6545
6545
|
* @description fetch the current funding rate
|
|
6546
6546
|
* @param {string} symbol unified market symbol
|
|
6547
|
-
* @param {object} [params] extra parameters specific to the
|
|
6547
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6548
6548
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
6549
6549
|
*/
|
|
6550
6550
|
await this.loadMarkets();
|
|
@@ -6587,7 +6587,7 @@ export default class htx extends Exchange {
|
|
|
6587
6587
|
* @name huobi#fetchFundingRates
|
|
6588
6588
|
* @description fetch the funding rate for multiple markets
|
|
6589
6589
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
6590
|
-
* @param {object} [params] extra parameters specific to the
|
|
6590
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6591
6591
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
6592
6592
|
*/
|
|
6593
6593
|
await this.loadMarkets();
|
|
@@ -6636,7 +6636,7 @@ export default class htx extends Exchange {
|
|
|
6636
6636
|
* @param {string} symbol unified market symbol when fetch interest in isolated markets
|
|
6637
6637
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
6638
6638
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
6639
|
-
* @param {object} [params] extra parameters specific to the
|
|
6639
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6640
6640
|
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
|
|
6641
6641
|
*/
|
|
6642
6642
|
await this.loadMarkets();
|
|
@@ -6923,7 +6923,7 @@ export default class htx extends Exchange {
|
|
|
6923
6923
|
* @param {string} symbol unified market symbol
|
|
6924
6924
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
6925
6925
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
6926
|
-
* @param {object} [params] extra parameters specific to the
|
|
6926
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6927
6927
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
6928
6928
|
*/
|
|
6929
6929
|
await this.loadMarkets();
|
|
@@ -7011,7 +7011,7 @@ export default class htx extends Exchange {
|
|
|
7011
7011
|
* @description set the level of leverage for a market
|
|
7012
7012
|
* @param {float} leverage the rate of leverage
|
|
7013
7013
|
* @param {string} symbol unified market symbol
|
|
7014
|
-
* @param {object} [params] extra parameters specific to the
|
|
7014
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7015
7015
|
* @returns {object} response from the exchange
|
|
7016
7016
|
*/
|
|
7017
7017
|
if (symbol === undefined) {
|
|
@@ -7201,7 +7201,7 @@ export default class htx extends Exchange {
|
|
|
7201
7201
|
* @name huobi#fetchPositions
|
|
7202
7202
|
* @description fetch all open positions
|
|
7203
7203
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7204
|
-
* @param {object} [params] extra parameters specific to the
|
|
7204
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7205
7205
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
7206
7206
|
*/
|
|
7207
7207
|
await this.loadMarkets();
|
|
@@ -7330,7 +7330,7 @@ export default class htx extends Exchange {
|
|
|
7330
7330
|
* @name huobi#fetchPosition
|
|
7331
7331
|
* @description fetch data on a single open contract trade position
|
|
7332
7332
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
7333
|
-
* @param {object} [params] extra parameters specific to the
|
|
7333
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7334
7334
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
7335
7335
|
*/
|
|
7336
7336
|
await this.loadMarkets();
|
|
@@ -7648,7 +7648,7 @@ export default class htx extends Exchange {
|
|
|
7648
7648
|
* @param {string} code unified currency code, default is undefined
|
|
7649
7649
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
7650
7650
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
7651
|
-
* @param {object} [params] extra parameters specific to the
|
|
7651
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7652
7652
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
7653
7653
|
* @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)
|
|
7654
7654
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
@@ -7724,7 +7724,7 @@ export default class htx extends Exchange {
|
|
|
7724
7724
|
* @name huobi#fetchLeverageTiers
|
|
7725
7725
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
7726
7726
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7727
|
-
* @param {object} [params] extra parameters specific to the
|
|
7727
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7728
7728
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
7729
7729
|
*/
|
|
7730
7730
|
await this.loadMarkets();
|
|
@@ -7767,7 +7767,7 @@ export default class htx extends Exchange {
|
|
|
7767
7767
|
* @name huobi#fetchMarketLeverageTiers
|
|
7768
7768
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
|
7769
7769
|
* @param {string} symbol unified market symbol
|
|
7770
|
-
* @param {object} [params] extra parameters specific to the
|
|
7770
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7771
7771
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
7772
7772
|
*/
|
|
7773
7773
|
await this.loadMarkets();
|
|
@@ -8145,7 +8145,7 @@ export default class htx extends Exchange {
|
|
|
8145
8145
|
* @param {string} symbol unified market symbol, required for isolated margin
|
|
8146
8146
|
* @param {string} code unified currency code of the currency to borrow
|
|
8147
8147
|
* @param {float} amount the amount to borrow
|
|
8148
|
-
* @param {object} [params] extra parameters specific to the
|
|
8148
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8149
8149
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
8150
8150
|
*/
|
|
8151
8151
|
await this.loadMarkets();
|
|
@@ -8179,7 +8179,7 @@ export default class htx extends Exchange {
|
|
|
8179
8179
|
* @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-cross
|
|
8180
8180
|
* @param {string} code unified currency code of the currency to borrow
|
|
8181
8181
|
* @param {float} amount the amount to borrow
|
|
8182
|
-
* @param {object} [params] extra parameters specific to the
|
|
8182
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8183
8183
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
8184
8184
|
*/
|
|
8185
8185
|
await this.loadMarkets();
|
|
@@ -8211,7 +8211,7 @@ export default class htx extends Exchange {
|
|
|
8211
8211
|
* @param {string} code unified currency code of the currency to repay
|
|
8212
8212
|
* @param {float} amount the amount to repay
|
|
8213
8213
|
* @param {string} symbol unified market symbol
|
|
8214
|
-
* @param {object} [params] extra parameters specific to the
|
|
8214
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8215
8215
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
8216
8216
|
*/
|
|
8217
8217
|
await this.loadMarkets();
|
|
@@ -8250,7 +8250,7 @@ export default class htx extends Exchange {
|
|
|
8250
8250
|
* @see https://huobiapi.github.io/docs/spot/v1/en/#repay-margin-loan-cross-isolated
|
|
8251
8251
|
* @param {string} code unified currency code of the currency to repay
|
|
8252
8252
|
* @param {float} amount the amount to repay
|
|
8253
|
-
* @param {object} [params] extra parameters specific to the
|
|
8253
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8254
8254
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
8255
8255
|
*/
|
|
8256
8256
|
await this.loadMarkets();
|
|
@@ -8423,7 +8423,7 @@ export default class htx extends Exchange {
|
|
|
8423
8423
|
* @description fetch deposit and withdraw fees
|
|
8424
8424
|
* @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-supported-currencies-v2
|
|
8425
8425
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
8426
|
-
* @param {object} [params] extra parameters specific to the
|
|
8426
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8427
8427
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
8428
8428
|
*/
|
|
8429
8429
|
await this.loadMarkets();
|
package/js/src/huobijp.js
CHANGED
|
@@ -334,7 +334,7 @@ export default class huobijp extends Exchange {
|
|
|
334
334
|
* @method
|
|
335
335
|
* @name huobijp#fetchTime
|
|
336
336
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
337
|
-
* @param {object} [params] extra parameters specific to the
|
|
337
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
338
338
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
339
339
|
*/
|
|
340
340
|
const response = await this.publicGetCommonTimestamp(params);
|
|
@@ -412,7 +412,7 @@ export default class huobijp extends Exchange {
|
|
|
412
412
|
* @method
|
|
413
413
|
* @name huobijp#fetchMarkets
|
|
414
414
|
* @description retrieves data on all markets for huobijp
|
|
415
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
415
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
416
416
|
* @returns {object[]} an array of objects representing market data
|
|
417
417
|
*/
|
|
418
418
|
const method = this.options['fetchMarketsMethod'];
|
|
@@ -616,7 +616,7 @@ export default class huobijp extends Exchange {
|
|
|
616
616
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
617
617
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
618
618
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
619
|
-
* @param {object} [params] extra parameters specific to the
|
|
619
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
620
620
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
621
621
|
*/
|
|
622
622
|
await this.loadMarkets();
|
|
@@ -665,7 +665,7 @@ export default class huobijp extends Exchange {
|
|
|
665
665
|
* @name huobijp#fetchTicker
|
|
666
666
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
667
667
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
668
|
-
* @param {object} [params] extra parameters specific to the
|
|
668
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
669
669
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
670
670
|
*/
|
|
671
671
|
await this.loadMarkets();
|
|
@@ -704,9 +704,9 @@ export default class huobijp extends Exchange {
|
|
|
704
704
|
/**
|
|
705
705
|
* @method
|
|
706
706
|
* @name huobijp#fetchTickers
|
|
707
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
707
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
708
708
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
709
|
-
* @param {object} [params] extra parameters specific to the
|
|
709
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
710
710
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
711
711
|
*/
|
|
712
712
|
await this.loadMarkets();
|
|
@@ -817,7 +817,7 @@ export default class huobijp extends Exchange {
|
|
|
817
817
|
* @param {string} symbol unified market symbol
|
|
818
818
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
819
819
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
820
|
-
* @param {object} [params] extra parameters specific to the
|
|
820
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
821
821
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
822
822
|
*/
|
|
823
823
|
await this.loadMarkets();
|
|
@@ -835,7 +835,7 @@ export default class huobijp extends Exchange {
|
|
|
835
835
|
* @param {string} symbol unified market symbol
|
|
836
836
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
837
837
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
838
|
-
* @param {object} [params] extra parameters specific to the
|
|
838
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
839
839
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
840
840
|
*/
|
|
841
841
|
await this.loadMarkets();
|
|
@@ -863,7 +863,7 @@ export default class huobijp extends Exchange {
|
|
|
863
863
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
864
864
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
865
865
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
866
|
-
* @param {object} [params] extra parameters specific to the
|
|
866
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
867
867
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
868
868
|
*/
|
|
869
869
|
await this.loadMarkets();
|
|
@@ -942,7 +942,7 @@ export default class huobijp extends Exchange {
|
|
|
942
942
|
* @param {string} timeframe the length of time each candle represents
|
|
943
943
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
944
944
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
945
|
-
* @param {object} [params] extra parameters specific to the
|
|
945
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
946
946
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
947
947
|
*/
|
|
948
948
|
await this.loadMarkets();
|
|
@@ -975,7 +975,7 @@ export default class huobijp extends Exchange {
|
|
|
975
975
|
* @method
|
|
976
976
|
* @name huobijp#fetchAccounts
|
|
977
977
|
* @description fetch all the accounts associated with a profile
|
|
978
|
-
* @param {object} [params] extra parameters specific to the
|
|
978
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
979
979
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
980
980
|
*/
|
|
981
981
|
await this.loadMarkets();
|
|
@@ -987,7 +987,7 @@ export default class huobijp extends Exchange {
|
|
|
987
987
|
* @method
|
|
988
988
|
* @name huobijp#fetchCurrencies
|
|
989
989
|
* @description fetches all available currencies on an exchange
|
|
990
|
-
* @param {object} [params] extra parameters specific to the
|
|
990
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
991
991
|
* @returns {object} an associative dictionary of currencies
|
|
992
992
|
*/
|
|
993
993
|
const request = {
|
|
@@ -1109,7 +1109,7 @@ export default class huobijp extends Exchange {
|
|
|
1109
1109
|
* @method
|
|
1110
1110
|
* @name huobijp#fetchBalance
|
|
1111
1111
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1112
|
-
* @param {object} [params] extra parameters specific to the
|
|
1112
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1113
1113
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1114
1114
|
*/
|
|
1115
1115
|
await this.loadMarkets();
|
|
@@ -1158,7 +1158,7 @@ export default class huobijp extends Exchange {
|
|
|
1158
1158
|
* @name huobijp#fetchOrder
|
|
1159
1159
|
* @description fetches information on an order made by the user
|
|
1160
1160
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1161
|
-
* @param {object} [params] extra parameters specific to the
|
|
1161
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1162
1162
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1163
1163
|
*/
|
|
1164
1164
|
await this.loadMarkets();
|
|
@@ -1177,7 +1177,7 @@ export default class huobijp extends Exchange {
|
|
|
1177
1177
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1178
1178
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1179
1179
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1180
|
-
* @param {object} [params] extra parameters specific to the
|
|
1180
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1181
1181
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1182
1182
|
*/
|
|
1183
1183
|
return await this.fetchOrdersByStates('pre-submitted,submitted,partial-filled,filled,partial-canceled,canceled', symbol, since, limit, params);
|
|
@@ -1190,7 +1190,7 @@ export default class huobijp extends Exchange {
|
|
|
1190
1190
|
* @param {string} symbol unified market symbol
|
|
1191
1191
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1192
1192
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1193
|
-
* @param {object} [params] extra parameters specific to the
|
|
1193
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1194
1194
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1195
1195
|
*/
|
|
1196
1196
|
const method = this.safeString(this.options, 'fetchOpenOrdersMethod', 'fetch_open_orders_v1');
|
|
@@ -1210,7 +1210,7 @@ export default class huobijp extends Exchange {
|
|
|
1210
1210
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1211
1211
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1212
1212
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1213
|
-
* @param {object} [params] extra parameters specific to the
|
|
1213
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1214
1214
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1215
1215
|
*/
|
|
1216
1216
|
return await this.fetchOrdersByStates('filled,partial-canceled,canceled', symbol, since, limit, params);
|
|
@@ -1371,7 +1371,7 @@ export default class huobijp extends Exchange {
|
|
|
1371
1371
|
* @param {string} side 'buy' or 'sell'
|
|
1372
1372
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1373
1373
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1374
|
-
* @param {object} [params] extra parameters specific to the
|
|
1374
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1375
1375
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1376
1376
|
*/
|
|
1377
1377
|
await this.loadMarkets();
|
|
@@ -1452,7 +1452,7 @@ export default class huobijp extends Exchange {
|
|
|
1452
1452
|
* @description cancels an open order
|
|
1453
1453
|
* @param {string} id order id
|
|
1454
1454
|
* @param {string} symbol not used by huobijp cancelOrder ()
|
|
1455
|
-
* @param {object} [params] extra parameters specific to the
|
|
1455
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1456
1456
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1457
1457
|
*/
|
|
1458
1458
|
const response = await this.privatePostOrderOrdersIdSubmitcancel({ 'id': id });
|
|
@@ -1474,7 +1474,7 @@ export default class huobijp extends Exchange {
|
|
|
1474
1474
|
* @description cancel multiple orders
|
|
1475
1475
|
* @param {string[]} ids order ids
|
|
1476
1476
|
* @param {string} symbol not used by huobijp cancelOrders ()
|
|
1477
|
-
* @param {object} [params] extra parameters specific to the
|
|
1477
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1478
1478
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1479
1479
|
*/
|
|
1480
1480
|
await this.loadMarkets();
|
|
@@ -1528,7 +1528,7 @@ export default class huobijp extends Exchange {
|
|
|
1528
1528
|
* @name huobijp#cancelAllOrders
|
|
1529
1529
|
* @description cancel all open orders
|
|
1530
1530
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not 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 list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1533
1533
|
*/
|
|
1534
1534
|
await this.loadMarkets();
|
|
@@ -1605,7 +1605,7 @@ export default class huobijp extends Exchange {
|
|
|
1605
1605
|
* @param {string} code unified currency code
|
|
1606
1606
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1607
1607
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1608
|
-
* @param {object} [params] extra parameters specific to the
|
|
1608
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1609
1609
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1610
1610
|
*/
|
|
1611
1611
|
if (limit === undefined || limit > 100) {
|
|
@@ -1638,7 +1638,7 @@ export default class huobijp extends Exchange {
|
|
|
1638
1638
|
* @param {string} code unified currency code
|
|
1639
1639
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1640
1640
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1641
|
-
* @param {object} [params] extra parameters specific to the
|
|
1641
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1642
1642
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1643
1643
|
*/
|
|
1644
1644
|
if (limit === undefined || limit > 100) {
|
|
@@ -1775,7 +1775,7 @@ export default class huobijp extends Exchange {
|
|
|
1775
1775
|
* @param {float} amount the amount to withdraw
|
|
1776
1776
|
* @param {string} address the address to withdraw to
|
|
1777
1777
|
* @param {string} tag
|
|
1778
|
-
* @param {object} [params] extra parameters specific to the
|
|
1778
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1779
1779
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1780
1780
|
*/
|
|
1781
1781
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|