ccxt 4.3.89 → 4.3.91

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.
Files changed (69) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/alpaca.js +2 -2
  5. package/dist/cjs/src/ascendex.js +95 -97
  6. package/dist/cjs/src/binance.js +1 -1
  7. package/dist/cjs/src/bingx.js +31 -17
  8. package/dist/cjs/src/bitfinex2.js +21 -22
  9. package/dist/cjs/src/bitget.js +2 -2
  10. package/dist/cjs/src/bitmart.js +6 -9
  11. package/dist/cjs/src/coinbaseinternational.js +2 -1
  12. package/dist/cjs/src/coinex.js +1 -17
  13. package/dist/cjs/src/hitbtc.js +2 -0
  14. package/dist/cjs/src/htx.js +49 -49
  15. package/dist/cjs/src/huobijp.js +0 -9
  16. package/dist/cjs/src/kucoin.js +59 -21
  17. package/dist/cjs/src/kucoinfutures.js +26 -2
  18. package/dist/cjs/src/latoken.js +1 -0
  19. package/dist/cjs/src/okx.js +1 -8
  20. package/dist/cjs/src/pro/binance.js +323 -0
  21. package/dist/cjs/src/pro/bingx.js +263 -91
  22. package/dist/cjs/src/pro/bithumb.js +5 -1
  23. package/dist/cjs/src/pro/bybit.js +1 -1
  24. package/dist/cjs/src/pro/coinex.js +994 -679
  25. package/dist/cjs/src/pro/lbank.js +2 -3
  26. package/dist/cjs/src/pro/okx.js +159 -3
  27. package/dist/cjs/src/whitebit.js +5 -3
  28. package/dist/cjs/src/woo.js +1 -1
  29. package/js/ccxt.d.ts +1 -1
  30. package/js/ccxt.js +1 -1
  31. package/js/src/abstract/kucoin.d.ts +1 -0
  32. package/js/src/abstract/kucoinfutures.d.ts +1 -0
  33. package/js/src/alpaca.js +2 -2
  34. package/js/src/ascendex.js +95 -97
  35. package/js/src/binance.js +1 -1
  36. package/js/src/bingx.js +31 -17
  37. package/js/src/bitfinex2.d.ts +0 -1
  38. package/js/src/bitfinex2.js +21 -22
  39. package/js/src/bitget.js +2 -2
  40. package/js/src/bitmart.d.ts +0 -1
  41. package/js/src/bitmart.js +6 -9
  42. package/js/src/coinbaseinternational.js +2 -1
  43. package/js/src/coinex.d.ts +0 -2
  44. package/js/src/coinex.js +1 -17
  45. package/js/src/hitbtc.js +2 -0
  46. package/js/src/htx.js +49 -49
  47. package/js/src/huobijp.d.ts +0 -1
  48. package/js/src/huobijp.js +0 -9
  49. package/js/src/kucoin.d.ts +3 -1
  50. package/js/src/kucoin.js +59 -21
  51. package/js/src/kucoinfutures.d.ts +1 -0
  52. package/js/src/kucoinfutures.js +26 -2
  53. package/js/src/latoken.js +1 -0
  54. package/js/src/okx.d.ts +0 -1
  55. package/js/src/okx.js +1 -8
  56. package/js/src/pro/binance.d.ts +9 -1
  57. package/js/src/pro/binance.js +327 -1
  58. package/js/src/pro/bingx.d.ts +2 -2
  59. package/js/src/pro/bingx.js +263 -91
  60. package/js/src/pro/bithumb.js +5 -1
  61. package/js/src/pro/bybit.js +1 -1
  62. package/js/src/pro/coinex.d.ts +12 -6
  63. package/js/src/pro/coinex.js +996 -681
  64. package/js/src/pro/lbank.js +2 -3
  65. package/js/src/pro/okx.d.ts +7 -0
  66. package/js/src/pro/okx.js +162 -4
  67. package/js/src/whitebit.js +5 -3
  68. package/js/src/woo.js +1 -1
  69. package/package.json +1 -1
package/js/src/htx.js CHANGED
@@ -1460,7 +1460,7 @@ export default class htx extends Exchange {
1460
1460
  async fetchTime(params = {}) {
1461
1461
  /**
1462
1462
  * @method
1463
- * @name huobi#fetchTime
1463
+ * @name htx#fetchTime
1464
1464
  * @description fetches the current integer timestamp in milliseconds from the exchange server
1465
1465
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1466
1466
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
@@ -1510,7 +1510,7 @@ export default class htx extends Exchange {
1510
1510
  async fetchTradingFee(symbol, params = {}) {
1511
1511
  /**
1512
1512
  * @method
1513
- * @name huobi#fetchTradingFee
1513
+ * @name htx#fetchTradingFee
1514
1514
  * @description fetch the trading fees for a market
1515
1515
  * @param {string} symbol unified market symbol
1516
1516
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1611,7 +1611,7 @@ export default class htx extends Exchange {
1611
1611
  async fetchMarkets(params = {}) {
1612
1612
  /**
1613
1613
  * @method
1614
- * @name huobi#fetchMarkets
1614
+ * @name htx#fetchMarkets
1615
1615
  * @description retrieves data on all markets for huobi
1616
1616
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1617
1617
  * @returns {object[]} an array of objects representing market data
@@ -2079,7 +2079,7 @@ export default class htx extends Exchange {
2079
2079
  async fetchTicker(symbol, params = {}) {
2080
2080
  /**
2081
2081
  * @method
2082
- * @name huobi#fetchTicker
2082
+ * @name htx#fetchTicker
2083
2083
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
2084
2084
  * @param {string} symbol unified symbol of the market to fetch the ticker for
2085
2085
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -2160,7 +2160,7 @@ export default class htx extends Exchange {
2160
2160
  async fetchTickers(symbols = undefined, params = {}) {
2161
2161
  /**
2162
2162
  * @method
2163
- * @name huobi#fetchTickers
2163
+ * @name htx#fetchTickers
2164
2164
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
2165
2165
  * @see https://huobiapi.github.io/docs/spot/v1/en/#get-latest-tickers-for-all-pairs
2166
2166
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-a-batch-of-market-data-overview
@@ -2278,7 +2278,7 @@ export default class htx extends Exchange {
2278
2278
  async fetchLastPrices(symbols = undefined, params = {}) {
2279
2279
  /**
2280
2280
  * @method
2281
- * @name binance#fetchLastPrices
2281
+ * @name htx#fetchLastPrices
2282
2282
  * @description fetches the last price for multiple markets
2283
2283
  * @see https://www.htx.com/en-us/opend/newApiPages/?id=8cb81024-77b5-11ed-9966-0242ac110003 linear swap & linear future
2284
2284
  * @see https://www.htx.com/en-us/opend/newApiPages/?id=28c2e8fc-77ae-11ed-9966-0242ac110003 inverse future
@@ -2399,7 +2399,7 @@ export default class htx extends Exchange {
2399
2399
  async fetchOrderBook(symbol, limit = undefined, params = {}) {
2400
2400
  /**
2401
2401
  * @method
2402
- * @name huobi#fetchOrderBook
2402
+ * @name htx#fetchOrderBook
2403
2403
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
2404
2404
  * @param {string} symbol unified symbol of the market to fetch the order book for
2405
2405
  * @param {int} [limit] the maximum amount of order book entries to return
@@ -2628,7 +2628,7 @@ export default class htx extends Exchange {
2628
2628
  async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
2629
2629
  /**
2630
2630
  * @method
2631
- * @name huobi#fetchOrderTrades
2631
+ * @name htx#fetchOrderTrades
2632
2632
  * @description fetch all the trades made from a single order
2633
2633
  * @param {string} id order id
2634
2634
  * @param {string} symbol unified market symbol
@@ -2659,7 +2659,7 @@ export default class htx extends Exchange {
2659
2659
  async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
2660
2660
  /**
2661
2661
  * @method
2662
- * @name huobi#fetchMyTrades
2662
+ * @name htx#fetchMyTrades
2663
2663
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-match-results-via-multiple-fields-new
2664
2664
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-match-results-via-multiple-fields-new
2665
2665
  * @see https://huobiapi.github.io/docs/spot/v1/en/#search-match-results
@@ -2832,7 +2832,7 @@ export default class htx extends Exchange {
2832
2832
  async fetchTrades(symbol, since = undefined, limit = 1000, params = {}) {
2833
2833
  /**
2834
2834
  * @method
2835
- * @name huobi#fetchTrades
2835
+ * @name htx#fetchTrades
2836
2836
  * @see https://huobiapi.github.io/docs/spot/v1/en/#get-the-most-recent-trades
2837
2837
  * @see https://huobiapi.github.io/docs/dm/v1/en/#query-a-batch-of-trade-records-of-a-contract
2838
2838
  * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-a-batch-of-trade-records-of-a-contract
@@ -2938,7 +2938,7 @@ export default class htx extends Exchange {
2938
2938
  async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
2939
2939
  /**
2940
2940
  * @method
2941
- * @name huobi#fetchOHLCV
2941
+ * @name htx#fetchOHLCV
2942
2942
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
2943
2943
  * @see https://huobiapi.github.io/docs/spot/v1/en/#get-klines-candles
2944
2944
  * @see https://huobiapi.github.io/docs/dm/v1/en/#get-kline-data
@@ -3103,7 +3103,7 @@ export default class htx extends Exchange {
3103
3103
  async fetchAccounts(params = {}) {
3104
3104
  /**
3105
3105
  * @method
3106
- * @name huobi#fetchAccounts
3106
+ * @name htx#fetchAccounts
3107
3107
  * @description fetch all the accounts associated with a profile
3108
3108
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3109
3109
  * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
@@ -3176,7 +3176,7 @@ export default class htx extends Exchange {
3176
3176
  async fetchCurrencies(params = {}) {
3177
3177
  /**
3178
3178
  * @method
3179
- * @name huobi#fetchCurrencies
3179
+ * @name htx#fetchCurrencies
3180
3180
  * @description fetches all available currencies on an exchange
3181
3181
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3182
3182
  * @returns {object} an associative dictionary of currencies
@@ -3341,7 +3341,7 @@ export default class htx extends Exchange {
3341
3341
  async fetchBalance(params = {}) {
3342
3342
  /**
3343
3343
  * @method
3344
- * @name huobi#fetchBalance
3344
+ * @name htx#fetchBalance
3345
3345
  * @see https://huobiapi.github.io/docs/spot/v1/en/#get-account-balance-of-a-specific-account
3346
3346
  * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4b429-7773-11ed-9966-0242ac110003
3347
3347
  * @see https://www.htx.com/en-us/opend/newApiPages/?id=10000074-77b7-11ed-9966-0242ac110003
@@ -3677,7 +3677,7 @@ export default class htx extends Exchange {
3677
3677
  async fetchOrder(id, symbol = undefined, params = {}) {
3678
3678
  /**
3679
3679
  * @method
3680
- * @name huobi#fetchOrder
3680
+ * @name htx#fetchOrder
3681
3681
  * @description fetches information on an order made by the user
3682
3682
  * @param {string} symbol unified symbol of the market the order was made in
3683
3683
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -4239,7 +4239,7 @@ export default class htx extends Exchange {
4239
4239
  async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4240
4240
  /**
4241
4241
  * @method
4242
- * @name huobi#fetchOrders
4242
+ * @name htx#fetchOrders
4243
4243
  * @see https://huobiapi.github.io/docs/spot/v1/en/#search-past-orders
4244
4244
  * @see https://huobiapi.github.io/docs/spot/v1/en/#search-historical-orders-within-48-hours
4245
4245
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-orders-new
@@ -4278,7 +4278,7 @@ export default class htx extends Exchange {
4278
4278
  async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4279
4279
  /**
4280
4280
  * @method
4281
- * @name huobi#fetchClosedOrders
4281
+ * @name htx#fetchClosedOrders
4282
4282
  * @see https://huobiapi.github.io/docs/spot/v1/en/#search-past-orders
4283
4283
  * @see https://huobiapi.github.io/docs/spot/v1/en/#search-historical-orders-within-48-hours
4284
4284
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-orders-new
@@ -4316,7 +4316,7 @@ export default class htx extends Exchange {
4316
4316
  async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4317
4317
  /**
4318
4318
  * @method
4319
- * @name huobi#fetchOpenOrders
4319
+ * @name htx#fetchOpenOrders
4320
4320
  * @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-open-orders
4321
4321
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-current-unfilled-order-acquisition
4322
4322
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-current-unfilled-order-acquisition
@@ -5371,7 +5371,7 @@ export default class htx extends Exchange {
5371
5371
  async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
5372
5372
  /**
5373
5373
  * @method
5374
- * @name huobi#createOrder
5374
+ * @name htx#createOrder
5375
5375
  * @description create a trade order
5376
5376
  * @see https://huobiapi.github.io/docs/spot/v1/en/#place-a-new-order // spot, margin
5377
5377
  * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-an-order // coin-m swap
@@ -5696,7 +5696,7 @@ export default class htx extends Exchange {
5696
5696
  async cancelOrder(id, symbol = undefined, params = {}) {
5697
5697
  /**
5698
5698
  * @method
5699
- * @name huobi#cancelOrder
5699
+ * @name htx#cancelOrder
5700
5700
  * @description cancels an open order
5701
5701
  * @param {string} id order id
5702
5702
  * @param {string} symbol unified symbol of the market the order was made in
@@ -5854,7 +5854,7 @@ export default class htx extends Exchange {
5854
5854
  async cancelOrders(ids, symbol = undefined, params = {}) {
5855
5855
  /**
5856
5856
  * @method
5857
- * @name huobi#cancelOrders
5857
+ * @name htx#cancelOrders
5858
5858
  * @description cancel multiple orders
5859
5859
  * @param {string[]} ids order ids
5860
5860
  * @param {string} symbol unified market symbol, default is undefined
@@ -6095,7 +6095,7 @@ export default class htx extends Exchange {
6095
6095
  async cancelAllOrders(symbol = undefined, params = {}) {
6096
6096
  /**
6097
6097
  * @method
6098
- * @name huobi#cancelAllOrders
6098
+ * @name htx#cancelAllOrders
6099
6099
  * @description cancel all open orders
6100
6100
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
6101
6101
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -6243,7 +6243,7 @@ export default class htx extends Exchange {
6243
6243
  async cancelAllOrdersAfter(timeout, params = {}) {
6244
6244
  /**
6245
6245
  * @method
6246
- * @name huobi#cancelAllOrdersAfter
6246
+ * @name htx#cancelAllOrdersAfter
6247
6247
  * @description dead man's switch, cancel all orders after the given timeout
6248
6248
  * @see https://huobiapi.github.io/docs/spot/v1/en/#dead-man-s-switch
6249
6249
  * @param {number} timeout time in milliseconds, 0 represents cancel the timer
@@ -6297,7 +6297,7 @@ export default class htx extends Exchange {
6297
6297
  /**
6298
6298
  * @method
6299
6299
  * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec50029-7773-11ed-9966-0242ac110003
6300
- * @name huobi#fetchDepositAddressesByNetwork
6300
+ * @name htx#fetchDepositAddressesByNetwork
6301
6301
  * @description fetch a dictionary of addresses for a currency, indexed by network
6302
6302
  * @param {string} code unified currency code of the currency for the deposit address
6303
6303
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -6329,7 +6329,7 @@ export default class htx extends Exchange {
6329
6329
  async fetchDepositAddress(code, params = {}) {
6330
6330
  /**
6331
6331
  * @method
6332
- * @name huobi#fetchDepositAddress
6332
+ * @name htx#fetchDepositAddress
6333
6333
  * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec50029-7773-11ed-9966-0242ac110003
6334
6334
  * @description fetch the deposit address for a currency associated with this account
6335
6335
  * @param {string} code unified currency code
@@ -6380,7 +6380,7 @@ export default class htx extends Exchange {
6380
6380
  async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
6381
6381
  /**
6382
6382
  * @method
6383
- * @name huobi#fetchDeposits
6383
+ * @name htx#fetchDeposits
6384
6384
  * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4f050-7773-11ed-9966-0242ac110003
6385
6385
  * @description fetch all deposits made to an account
6386
6386
  * @param {string} code unified currency code
@@ -6440,7 +6440,7 @@ export default class htx extends Exchange {
6440
6440
  async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
6441
6441
  /**
6442
6442
  * @method
6443
- * @name huobi#fetchWithdrawals
6443
+ * @name htx#fetchWithdrawals
6444
6444
  * @description fetch all withdrawals made from an account
6445
6445
  * @param {string} code unified currency code
6446
6446
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
@@ -6615,7 +6615,7 @@ export default class htx extends Exchange {
6615
6615
  async withdraw(code, amount, address, tag = undefined, params = {}) {
6616
6616
  /**
6617
6617
  * @method
6618
- * @name huobi#withdraw
6618
+ * @name htx#withdraw
6619
6619
  * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4cc41-7773-11ed-9966-0242ac110003
6620
6620
  * @description make a withdrawal
6621
6621
  * @param {string} code unified currency code
@@ -6699,7 +6699,7 @@ export default class htx extends Exchange {
6699
6699
  async transfer(code, amount, fromAccount, toAccount, params = {}) {
6700
6700
  /**
6701
6701
  * @method
6702
- * @name huobi#transfer
6702
+ * @name htx#transfer
6703
6703
  * @description transfer currency internally between wallets on the same account
6704
6704
  * @see https://huobiapi.github.io/docs/dm/v1/en/#transfer-margin-between-spot-account-and-future-account
6705
6705
  * @see https://huobiapi.github.io/docs/spot/v1/en/#transfer-fund-between-spot-account-and-future-contract-account
@@ -6880,7 +6880,7 @@ export default class htx extends Exchange {
6880
6880
  async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
6881
6881
  /**
6882
6882
  * @method
6883
- * @name huobi#fetchFundingRateHistory
6883
+ * @name htx#fetchFundingRateHistory
6884
6884
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-historical-funding-rate
6885
6885
  * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-historical-funding-rate
6886
6886
  * @description fetches historical funding rate prices
@@ -7001,7 +7001,7 @@ export default class htx extends Exchange {
7001
7001
  async fetchFundingRate(symbol, params = {}) {
7002
7002
  /**
7003
7003
  * @method
7004
- * @name huobi#fetchFundingRate
7004
+ * @name htx#fetchFundingRate
7005
7005
  * @description fetch the current funding rate
7006
7006
  * @param {string} symbol unified market symbol
7007
7007
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -7043,7 +7043,7 @@ export default class htx extends Exchange {
7043
7043
  async fetchFundingRates(symbols = undefined, params = {}) {
7044
7044
  /**
7045
7045
  * @method
7046
- * @name huobi#fetchFundingRates
7046
+ * @name htx#fetchFundingRates
7047
7047
  * @description fetch the funding rate for multiple markets
7048
7048
  * @param {string[]|undefined} symbols list of unified market symbols
7049
7049
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -7094,7 +7094,7 @@ export default class htx extends Exchange {
7094
7094
  async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
7095
7095
  /**
7096
7096
  * @method
7097
- * @name huobi#fetchBorrowInterest
7097
+ * @name htx#fetchBorrowInterest
7098
7098
  * @description fetch the interest owed by the user for borrowing currency for margin trading
7099
7099
  * @param {string} code unified currency code
7100
7100
  * @param {string} symbol unified market symbol when fetch interest in isolated markets
@@ -7378,7 +7378,7 @@ export default class htx extends Exchange {
7378
7378
  async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
7379
7379
  /**
7380
7380
  * @method
7381
- * @name huobi#fetchFundingHistory
7381
+ * @name htx#fetchFundingHistory
7382
7382
  * @description fetch the history of funding payments paid and received on this account
7383
7383
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-account-financial-records-via-multiple-fields-new // linear swaps
7384
7384
  * @see https://huobiapi.github.io/docs/dm/v1/en/#query-financial-records-via-multiple-fields-new // coin-m futures
@@ -7469,7 +7469,7 @@ export default class htx extends Exchange {
7469
7469
  async setLeverage(leverage, symbol = undefined, params = {}) {
7470
7470
  /**
7471
7471
  * @method
7472
- * @name huobi#setLeverage
7472
+ * @name htx#setLeverage
7473
7473
  * @description set the level of leverage for a market
7474
7474
  * @param {float} leverage the rate of leverage
7475
7475
  * @param {string} symbol unified market symbol
@@ -7669,7 +7669,7 @@ export default class htx extends Exchange {
7669
7669
  async fetchPositions(symbols = undefined, params = {}) {
7670
7670
  /**
7671
7671
  * @method
7672
- * @name huobi#fetchPositions
7672
+ * @name htx#fetchPositions
7673
7673
  * @description fetch all open positions
7674
7674
  * @param {string[]|undefined} symbols list of unified market symbols
7675
7675
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -7813,7 +7813,7 @@ export default class htx extends Exchange {
7813
7813
  async fetchPosition(symbol, params = {}) {
7814
7814
  /**
7815
7815
  * @method
7816
- * @name huobi#fetchPosition
7816
+ * @name htx#fetchPosition
7817
7817
  * @description fetch data on a single open contract trade position
7818
7818
  * @param {string} symbol unified market symbol of the market the position is held in, default is undefined
7819
7819
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -8137,7 +8137,7 @@ export default class htx extends Exchange {
8137
8137
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
8138
8138
  /**
8139
8139
  * @method
8140
- * @name huobi#fetchLedger
8140
+ * @name htx#fetchLedger
8141
8141
  * @see https://huobiapi.github.io/docs/spot/v1/en/#get-account-history
8142
8142
  * @description fetch the history of changes, actions done by the user or operations that altered balance of the user
8143
8143
  * @param {string} code unified currency code, default is undefined
@@ -8216,7 +8216,7 @@ export default class htx extends Exchange {
8216
8216
  async fetchLeverageTiers(symbols = undefined, params = {}) {
8217
8217
  /**
8218
8218
  * @method
8219
- * @name huobi#fetchLeverageTiers
8219
+ * @name htx#fetchLeverageTiers
8220
8220
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
8221
8221
  * @param {string[]|undefined} symbols list of unified market symbols
8222
8222
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -8259,7 +8259,7 @@ export default class htx extends Exchange {
8259
8259
  async fetchMarketLeverageTiers(symbol, params = {}) {
8260
8260
  /**
8261
8261
  * @method
8262
- * @name huobi#fetchMarketLeverageTiers
8262
+ * @name htx#fetchMarketLeverageTiers
8263
8263
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
8264
8264
  * @param {string} symbol unified market symbol
8265
8265
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -8344,7 +8344,7 @@ export default class htx extends Exchange {
8344
8344
  async fetchOpenInterestHistory(symbol, timeframe = '1h', since = undefined, limit = undefined, params = {}) {
8345
8345
  /**
8346
8346
  * @method
8347
- * @name huobi#fetchOpenInterestHistory
8347
+ * @name htx#fetchOpenInterestHistory
8348
8348
  * @description Retrieves the open interest history of a currency
8349
8349
  * @see https://huobiapi.github.io/docs/dm/v1/en/#query-information-on-open-interest
8350
8350
  * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-information-on-open-interest
@@ -8463,7 +8463,7 @@ export default class htx extends Exchange {
8463
8463
  async fetchOpenInterest(symbol, params = {}) {
8464
8464
  /**
8465
8465
  * @method
8466
- * @name huobi#fetchOpenInterest
8466
+ * @name htx#fetchOpenInterest
8467
8467
  * @description Retrieves the open interest of a currency
8468
8468
  * @see https://huobiapi.github.io/docs/dm/v1/en/#get-contract-open-interest-information
8469
8469
  * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-swap-open-interest-information
@@ -8637,7 +8637,7 @@ export default class htx extends Exchange {
8637
8637
  async borrowIsolatedMargin(symbol, code, amount, params = {}) {
8638
8638
  /**
8639
8639
  * @method
8640
- * @name huobi#borrowIsolatedMargin
8640
+ * @name htx#borrowIsolatedMargin
8641
8641
  * @description create a loan to borrow margin
8642
8642
  * @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-isolated
8643
8643
  * @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-cross
@@ -8672,7 +8672,7 @@ export default class htx extends Exchange {
8672
8672
  async borrowCrossMargin(code, amount, params = {}) {
8673
8673
  /**
8674
8674
  * @method
8675
- * @name huobi#borrowCrossMargin
8675
+ * @name htx#borrowCrossMargin
8676
8676
  * @description create a loan to borrow margin
8677
8677
  * @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-isolated
8678
8678
  * @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-cross
@@ -8704,7 +8704,7 @@ export default class htx extends Exchange {
8704
8704
  async repayIsolatedMargin(symbol, code, amount, params = {}) {
8705
8705
  /**
8706
8706
  * @method
8707
- * @name huobi#repayIsolatedMargin
8707
+ * @name htx#repayIsolatedMargin
8708
8708
  * @description repay borrowed margin and interest
8709
8709
  * @see https://huobiapi.github.io/docs/spot/v1/en/#repay-margin-loan-cross-isolated
8710
8710
  * @param {string} code unified currency code of the currency to repay
@@ -8744,7 +8744,7 @@ export default class htx extends Exchange {
8744
8744
  async repayCrossMargin(code, amount, params = {}) {
8745
8745
  /**
8746
8746
  * @method
8747
- * @name huobi#repayCrossMargin
8747
+ * @name htx#repayCrossMargin
8748
8748
  * @description repay borrowed margin and interest
8749
8749
  * @see https://huobiapi.github.io/docs/spot/v1/en/#repay-margin-loan-cross-isolated
8750
8750
  * @param {string} code unified currency code of the currency to repay
@@ -8815,7 +8815,7 @@ export default class htx extends Exchange {
8815
8815
  async fetchSettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
8816
8816
  /**
8817
8817
  * @method
8818
- * @name huobi#fetchSettlementHistory
8818
+ * @name htx#fetchSettlementHistory
8819
8819
  * @description Fetches historical settlement records
8820
8820
  * @param {string} symbol unified symbol of the market to fetch the settlement history for
8821
8821
  * @param {int} [since] timestamp in ms, value range = current time - 90 days,default = current time - 90 days
@@ -8920,7 +8920,7 @@ export default class htx extends Exchange {
8920
8920
  async fetchDepositWithdrawFees(codes = undefined, params = {}) {
8921
8921
  /**
8922
8922
  * @method
8923
- * @name huobi#fetchDepositWithdrawFees
8923
+ * @name htx#fetchDepositWithdrawFees
8924
8924
  * @description fetch deposit and withdraw fees
8925
8925
  * @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-supported-currencies-v2
8926
8926
  * @param {string[]|undefined} codes list of unified currency codes
@@ -9130,7 +9130,7 @@ export default class htx extends Exchange {
9130
9130
  async fetchLiquidations(symbol, since = undefined, limit = undefined, params = {}) {
9131
9131
  /**
9132
9132
  * @method
9133
- * @name huobi#fetchLiquidations
9133
+ * @name htx#fetchLiquidations
9134
9134
  * @description retrieves the public liquidations of a trading pair
9135
9135
  * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-liquidation-orders-new
9136
9136
  * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-liquidation-orders-new
@@ -58,7 +58,6 @@ export default class huobijp extends Exchange {
58
58
  parseCancelOrders(orders: any): any[];
59
59
  cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
60
60
  currencyToPrecision(code: any, fee: any, networkCode?: any): string;
61
- safeNetwork(networkId: any): string;
62
61
  parseDepositAddress(depositAddress: any, currency?: Currency): {
63
62
  currency: string;
64
63
  address: string;
package/js/src/huobijp.js CHANGED
@@ -1651,15 +1651,6 @@ export default class huobijp extends Exchange {
1651
1651
  currencyToPrecision(code, fee, networkCode = undefined) {
1652
1652
  return this.decimalToPrecision(fee, 0, this.currencies[code]['precision'], this.precisionMode);
1653
1653
  }
1654
- safeNetwork(networkId) {
1655
- const lastCharacterIndex = networkId.length - 1;
1656
- const lastCharacter = networkId[lastCharacterIndex];
1657
- if (lastCharacter === '1') {
1658
- networkId = networkId.slice(0, lastCharacterIndex);
1659
- }
1660
- const networksById = {};
1661
- return this.safeString(networksById, networkId, networkId);
1662
- }
1663
1654
  parseDepositAddress(depositAddress, currency = undefined) {
1664
1655
  //
1665
1656
  // {
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/kucoin.js';
2
- import type { TransferEntry, Int, OrderSide, OrderType, Order, OHLCV, Trade, Balances, OrderRequest, Str, Transaction, Ticker, OrderBook, Tickers, Strings, Currency, Market, Num, Account, TradingFeeInterface, Currencies, Dict, int } from './base/types.js';
2
+ import type { TransferEntry, Int, OrderSide, OrderType, Order, OHLCV, Trade, Balances, OrderRequest, Str, Transaction, Ticker, OrderBook, Tickers, Strings, Currency, Market, Num, Account, Dict, TradingFeeInterface, Currencies, int } from './base/types.js';
3
3
  /**
4
4
  * @class kucoin
5
5
  * @augments Exchange
@@ -16,6 +16,8 @@ export default class kucoin extends Exchange {
16
16
  info: any;
17
17
  }>;
18
18
  fetchMarkets(params?: {}): Promise<Market[]>;
19
+ loadMigrationStatus(force?: boolean): Promise<void>;
20
+ handleHfAndParams(params?: {}): Promise<{}[]>;
19
21
  fetchCurrencies(params?: {}): Promise<Currencies>;
20
22
  fetchAccounts(params?: {}): Promise<Account[]>;
21
23
  fetchTransactionFee(code: string, params?: {}): Promise<{