ccxt 4.5.38 → 4.5.40

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 (117) hide show
  1. package/README.md +5 -7
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -6
  4. package/dist/cjs/src/base/Exchange.js +62 -5
  5. package/dist/cjs/src/binance.js +151 -2
  6. package/dist/cjs/src/bingx.js +137 -120
  7. package/dist/cjs/src/bitget.js +47 -1
  8. package/dist/cjs/src/bitmart.js +23 -8
  9. package/dist/cjs/src/bitmex.js +416 -0
  10. package/dist/cjs/src/bitstamp.js +264 -43
  11. package/dist/cjs/src/bitvavo.js +10 -0
  12. package/dist/cjs/src/blofin.js +85 -0
  13. package/dist/cjs/src/btcmarkets.js +1 -1
  14. package/dist/cjs/src/bybit.js +135 -0
  15. package/dist/cjs/src/coinspot.js +77 -7
  16. package/dist/cjs/src/delta.js +367 -0
  17. package/dist/cjs/src/htx.js +265 -2
  18. package/dist/cjs/src/hyperliquid.js +37 -8
  19. package/dist/cjs/src/krakenfutures.js +4 -0
  20. package/dist/cjs/src/kucoinfutures.js +121 -0
  21. package/dist/cjs/src/mexc.js +9 -1
  22. package/dist/cjs/src/phemex.js +359 -0
  23. package/dist/cjs/src/poloniex.js +5 -0
  24. package/dist/cjs/src/pro/binance.js +111 -26
  25. package/dist/cjs/src/pro/bingx.js +33 -33
  26. package/dist/cjs/src/pro/bitget.js +48 -90
  27. package/dist/cjs/src/pro/bitmart.js +68 -0
  28. package/dist/cjs/src/pro/blofin.js +52 -1
  29. package/dist/cjs/src/pro/bybit.js +2 -2
  30. package/dist/cjs/src/pro/coinbaseinternational.js +5 -2
  31. package/dist/cjs/src/pro/mexc.js +72 -0
  32. package/dist/cjs/src/pro/okx.js +8 -5
  33. package/dist/cjs/src/pro/paradex.js +137 -0
  34. package/dist/cjs/src/pro/woo.js +43 -0
  35. package/dist/cjs/src/tokocrypto.js +23 -0
  36. package/dist/cjs/src/toobit.js +20 -0
  37. package/dist/cjs/src/whitebit.js +11 -10
  38. package/dist/cjs/src/woo.js +103 -3
  39. package/js/ccxt.d.ts +3 -9
  40. package/js/ccxt.js +2 -6
  41. package/js/src/abstract/binance.d.ts +5 -0
  42. package/js/src/abstract/binancecoinm.d.ts +5 -0
  43. package/js/src/abstract/binanceus.d.ts +5 -0
  44. package/js/src/abstract/binanceusdm.d.ts +5 -0
  45. package/js/src/abstract/bitget.d.ts +47 -1
  46. package/js/src/abstract/bitstamp.d.ts +1 -1
  47. package/js/src/abstract/bitvavo.d.ts +10 -0
  48. package/js/src/abstract/coinspot.d.ts +45 -0
  49. package/js/src/base/Exchange.d.ts +11 -8
  50. package/js/src/base/Exchange.js +65 -5
  51. package/js/src/base/types.d.ts +9 -0
  52. package/js/src/binance.d.ts +26 -1
  53. package/js/src/binance.js +151 -2
  54. package/js/src/bingx.d.ts +113 -108
  55. package/js/src/bingx.js +137 -120
  56. package/js/src/bitget.js +47 -1
  57. package/js/src/bitmart.js +23 -8
  58. package/js/src/bitmex.d.ts +50 -1
  59. package/js/src/bitmex.js +416 -0
  60. package/js/src/bitstamp.d.ts +52 -1
  61. package/js/src/bitstamp.js +264 -43
  62. package/js/src/bitvavo.js +10 -0
  63. package/js/src/blofin.d.ts +12 -1
  64. package/js/src/blofin.js +85 -0
  65. package/js/src/btcmarkets.js +1 -1
  66. package/js/src/bybit.d.ts +12 -1
  67. package/js/src/bybit.js +135 -0
  68. package/js/src/coinspot.js +77 -7
  69. package/js/src/delta.d.ts +12 -1
  70. package/js/src/delta.js +367 -0
  71. package/js/src/htx.d.ts +15 -1
  72. package/js/src/htx.js +265 -2
  73. package/js/src/hyperliquid.js +37 -8
  74. package/js/src/krakenfutures.js +4 -0
  75. package/js/src/kucoinfutures.d.ts +12 -1
  76. package/js/src/kucoinfutures.js +121 -0
  77. package/js/src/mexc.js +9 -1
  78. package/js/src/phemex.d.ts +16 -1
  79. package/js/src/phemex.js +359 -0
  80. package/js/src/poloniex.js +5 -0
  81. package/js/src/pro/binance.d.ts +13 -0
  82. package/js/src/pro/binance.js +111 -26
  83. package/js/src/pro/bingx.d.ts +33 -33
  84. package/js/src/pro/bingx.js +33 -33
  85. package/js/src/pro/bitget.d.ts +6 -6
  86. package/js/src/pro/bitget.js +48 -90
  87. package/js/src/pro/bitmart.d.ts +22 -1
  88. package/js/src/pro/bitmart.js +69 -1
  89. package/js/src/pro/blofin.d.ts +12 -1
  90. package/js/src/pro/blofin.js +52 -1
  91. package/js/src/pro/bybit.d.ts +1 -1
  92. package/js/src/pro/bybit.js +2 -2
  93. package/js/src/pro/coinbaseinternational.d.ts +2 -2
  94. package/js/src/pro/coinbaseinternational.js +6 -3
  95. package/js/src/pro/mexc.d.ts +22 -1
  96. package/js/src/pro/mexc.js +72 -0
  97. package/js/src/pro/okx.d.ts +4 -4
  98. package/js/src/pro/okx.js +8 -5
  99. package/js/src/pro/paradex.d.ts +23 -1
  100. package/js/src/pro/paradex.js +137 -0
  101. package/js/src/pro/woo.d.ts +12 -1
  102. package/js/src/pro/woo.js +43 -0
  103. package/js/src/tokocrypto.js +23 -0
  104. package/js/src/toobit.js +20 -0
  105. package/js/src/whitebit.js +8 -8
  106. package/js/src/woo.d.ts +12 -1
  107. package/js/src/woo.js +103 -3
  108. package/package.json +1 -1
  109. package/dist/cjs/src/abstract/probit.js +0 -11
  110. package/dist/cjs/src/pro/probit.js +0 -594
  111. package/dist/cjs/src/probit.js +0 -1936
  112. package/js/src/abstract/probit.d.ts +0 -26
  113. package/js/src/abstract/probit.js +0 -11
  114. package/js/src/pro/probit.d.ts +0 -91
  115. package/js/src/pro/probit.js +0 -593
  116. package/js/src/probit.d.ts +0 -283
  117. package/js/src/probit.js +0 -1935
@@ -8,9 +8,9 @@ export default class bingx extends bingxRest {
8
8
  * @method
9
9
  * @name bingx#watchTicker
10
10
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
11
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20to%2024-hour%20Price%20Change
12
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20to%2024-hour%20price%20changes
13
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%2024-Hour%20Price%20Change
11
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20Price%20Change
12
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20price%20changes
13
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%2024-Hour%20Price%20Change
14
14
  * @param {string} symbol unified symbol of the market to fetch the ticker for
15
15
  * @param {object} [params] extra parameters specific to the exchange API endpoint
16
16
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
@@ -20,9 +20,9 @@ export default class bingx extends bingxRest {
20
20
  * @method
21
21
  * @name bingx#unWatchTicker
22
22
  * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
23
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20to%2024-hour%20Price%20Change
24
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20to%2024-hour%20price%20changes
25
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%2024-Hour%20Price%20Change
23
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20Price%20Change
24
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20price%20changes
25
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%2024-Hour%20Price%20Change
26
26
  * @param {string} symbol unified symbol of the market to fetch the ticker for
27
27
  * @param {object} [params] extra parameters specific to the exchange API endpoint
28
28
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
@@ -36,9 +36,9 @@ export default class bingx extends bingxRest {
36
36
  * @method
37
37
  * @name bingx#watchTrades
38
38
  * @description watches information on multiple trades made in a market
39
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscription%20transaction%20by%20transaction
40
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
41
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscription%20transaction%20by%20transaction
39
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
40
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20the%20Latest%20Trade%20Detail
41
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
42
42
  * @param {string} symbol unified market symbol of the market orders were made in
43
43
  * @param {int} [since] the earliest time in ms to fetch orders for
44
44
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -50,9 +50,9 @@ export default class bingx extends bingxRest {
50
50
  * @method
51
51
  * @name bingx#unWatchTrades
52
52
  * @description unsubscribes from the trades channel
53
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscription%20transaction%20by%20transaction
54
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
55
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscription%20transaction%20by%20transaction
53
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
54
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20the%20Latest%20Trade%20Detail
55
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
56
56
  * @param {string} symbol unified symbol of the market to fetch trades for
57
57
  * @param {object} [params] extra parameters specific to the exchange API endpoint
58
58
  * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
@@ -64,9 +64,9 @@ export default class bingx extends bingxRest {
64
64
  * @method
65
65
  * @name bingx#watchOrderBook
66
66
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
67
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20Market%20Depth%20Data
68
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20Market%20Depth%20Data
69
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Limited%20Depth
67
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20Market%20Depth%20Data
68
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Partial%20Order%20Book%20Depth
69
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Limited%20Depth
70
70
  * @param {string} symbol unified symbol of the market to fetch the order book for
71
71
  * @param {int} [limit] the maximum amount of order book entries to return
72
72
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -77,9 +77,9 @@ export default class bingx extends bingxRest {
77
77
  * @method
78
78
  * @name bingx#unWatchOrderBook
79
79
  * @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
80
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20Market%20Depth%20Data
81
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20Market%20Depth%20Data
82
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Limited%20Depth
80
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20Market%20Depth%20Data
81
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Partial%20Order%20Book%20Depth
82
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Limited%20Depth
83
83
  * @param {string} symbol unified symbol of the market
84
84
  * @param {object} [params] extra parameters specific to the exchange API endpoint
85
85
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
@@ -93,9 +93,9 @@ export default class bingx extends bingxRest {
93
93
  * @method
94
94
  * @name bingx#watchOHLCV
95
95
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
96
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#K-line%20Streams
97
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20K-Line%20Data
98
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
96
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/K-line%20Streamst
97
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20K-Line%20Data
98
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
99
99
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
100
100
  * @param {string} timeframe the length of time each candle represents
101
101
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -108,9 +108,9 @@ export default class bingx extends bingxRest {
108
108
  * @method
109
109
  * @name bingx#unWatchOHLCV
110
110
  * @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
111
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#K-line%20Streams
112
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20K-Line%20Data
113
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
111
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/K-line%20Streamst
112
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20K-Line%20Data
113
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
114
114
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
115
115
  * @param {string} timeframe the length of time each candle represents
116
116
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -121,9 +121,9 @@ export default class bingx extends bingxRest {
121
121
  * @method
122
122
  * @name bingx#watchOrders
123
123
  * @description watches information on multiple orders made by the user
124
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/account.html#Subscription%20order%20update%20data
125
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/account.html#Order%20update%20push
126
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/account.html#Order%20update%20push
124
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/order%20update%20event
125
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Order%20update%20push
126
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Order%20update%20push
127
127
  * @param {string} [symbol] unified market symbol of the market orders are made in
128
128
  * @param {int} [since] the earliest time in ms to watch orders for
129
129
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -135,9 +135,9 @@ export default class bingx extends bingxRest {
135
135
  * @method
136
136
  * @name bingx#watchMyTrades
137
137
  * @description watches information on multiple trades made by the user
138
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/account.html#Subscription%20order%20update%20data
139
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/account.html#Order%20update%20push
140
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/account.html#Order%20update%20push
138
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/order%20update%20event
139
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Order%20update%20push
140
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Order%20update%20push
141
141
  * @param {string} [symbol] unified market symbol of the market the trades are made in
142
142
  * @param {int} [since] the earliest time in ms to watch trades for
143
143
  * @param {int} [limit] the maximum number of trade structures to retrieve
@@ -149,9 +149,9 @@ export default class bingx extends bingxRest {
149
149
  * @method
150
150
  * @name bingx#watchBalance
151
151
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
152
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/account.html#Subscription%20account%20balance%20push
153
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/account.html#Account%20balance%20and%20position%20update%20push
154
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/account.html#Account%20balance%20and%20position%20update%20push
152
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/Subscription%20account%20balance%20push
153
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Account%20balance%20and%20position%20update%20push
154
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Account%20balance%20and%20position%20update%20push
155
155
  * @param {object} [params] extra parameters specific to the exchange API endpoint
156
156
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
157
157
  */
@@ -130,9 +130,9 @@ export default class bingx extends bingxRest {
130
130
  * @method
131
131
  * @name bingx#watchTicker
132
132
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
133
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20to%2024-hour%20Price%20Change
134
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20to%2024-hour%20price%20changes
135
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%2024-Hour%20Price%20Change
133
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20Price%20Change
134
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20price%20changes
135
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%2024-Hour%20Price%20Change
136
136
  * @param {string} symbol unified symbol of the market to fetch the ticker for
137
137
  * @param {object} [params] extra parameters specific to the exchange API endpoint
138
138
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
@@ -171,9 +171,9 @@ export default class bingx extends bingxRest {
171
171
  * @method
172
172
  * @name bingx#unWatchTicker
173
173
  * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
174
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20to%2024-hour%20Price%20Change
175
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20to%2024-hour%20price%20changes
176
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%2024-Hour%20Price%20Change
174
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20Price%20Change
175
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20to%2024-hour%20price%20changes
176
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%2024-Hour%20Price%20Change
177
177
  * @param {string} symbol unified symbol of the market to fetch the ticker for
178
178
  * @param {object} [params] extra parameters specific to the exchange API endpoint
179
179
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
@@ -338,9 +338,9 @@ export default class bingx extends bingxRest {
338
338
  * @method
339
339
  * @name bingx#watchTrades
340
340
  * @description watches information on multiple trades made in a market
341
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscription%20transaction%20by%20transaction
342
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
343
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscription%20transaction%20by%20transaction
341
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
342
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20the%20Latest%20Trade%20Detail
343
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
344
344
  * @param {string} symbol unified market symbol of the market orders were made in
345
345
  * @param {int} [since] the earliest time in ms to fetch orders for
346
346
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -392,9 +392,9 @@ export default class bingx extends bingxRest {
392
392
  * @method
393
393
  * @name bingx#unWatchTrades
394
394
  * @description unsubscribes from the trades channel
395
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscription%20transaction%20by%20transaction
396
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20the%20Latest%20Trade%20Detail
397
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscription%20transaction%20by%20transaction
395
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
396
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20the%20Latest%20Trade%20Detail
397
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscription%20transaction%20by%20transaction
398
398
  * @param {string} symbol unified symbol of the market to fetch trades for
399
399
  * @param {object} [params] extra parameters specific to the exchange API endpoint
400
400
  * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
@@ -522,9 +522,9 @@ export default class bingx extends bingxRest {
522
522
  * @method
523
523
  * @name bingx#watchOrderBook
524
524
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
525
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20Market%20Depth%20Data
526
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20Market%20Depth%20Data
527
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Limited%20Depth
525
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20Market%20Depth%20Data
526
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Partial%20Order%20Book%20Depth
527
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Limited%20Depth
528
528
  * @param {string} symbol unified symbol of the market to fetch the order book for
529
529
  * @param {int} [limit] the maximum amount of order book entries to return
530
530
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -580,9 +580,9 @@ export default class bingx extends bingxRest {
580
580
  * @method
581
581
  * @name bingx#unWatchOrderBook
582
582
  * @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
583
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#Subscribe%20Market%20Depth%20Data
584
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20Market%20Depth%20Data
585
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Limited%20Depth
583
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/Subscribe%20Market%20Depth%20Data
584
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Partial%20Order%20Book%20Depth
585
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Limited%20Depth
586
586
  * @param {string} symbol unified symbol of the market
587
587
  * @param {object} [params] extra parameters specific to the exchange API endpoint
588
588
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
@@ -854,9 +854,9 @@ export default class bingx extends bingxRest {
854
854
  * @method
855
855
  * @name bingx#watchOHLCV
856
856
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
857
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#K-line%20Streams
858
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20K-Line%20Data
859
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
857
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/K-line%20Streamst
858
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20K-Line%20Data
859
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
860
860
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
861
861
  * @param {string} timeframe the length of time each candle represents
862
862
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -911,9 +911,9 @@ export default class bingx extends bingxRest {
911
911
  * @method
912
912
  * @name bingx#unWatchOHLCV
913
913
  * @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
914
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/market.html#K-line%20Streams
915
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/market.html#Subscribe%20K-Line%20Data
916
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/market.html#Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
914
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Market%20Data/K-line%20Streamst
915
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Market%20Data/Subscribe%20K-Line%20Data
916
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Market%20Data/Subscribe%20to%20Latest%20Trading%20Pair%20K-Line
917
917
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
918
918
  * @param {string} timeframe the length of time each candle represents
919
919
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -937,9 +937,9 @@ export default class bingx extends bingxRest {
937
937
  * @method
938
938
  * @name bingx#watchOrders
939
939
  * @description watches information on multiple orders made by the user
940
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/account.html#Subscription%20order%20update%20data
941
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/account.html#Order%20update%20push
942
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/account.html#Order%20update%20push
940
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/order%20update%20event
941
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Order%20update%20push
942
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Order%20update%20push
943
943
  * @param {string} [symbol] unified market symbol of the market orders are made in
944
944
  * @param {int} [since] the earliest time in ms to watch orders for
945
945
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -1000,9 +1000,9 @@ export default class bingx extends bingxRest {
1000
1000
  * @method
1001
1001
  * @name bingx#watchMyTrades
1002
1002
  * @description watches information on multiple trades made by the user
1003
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/account.html#Subscription%20order%20update%20data
1004
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/account.html#Order%20update%20push
1005
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/account.html#Order%20update%20push
1003
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/order%20update%20event
1004
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Order%20update%20push
1005
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Order%20update%20push
1006
1006
  * @param {string} [symbol] unified market symbol of the market the trades are made in
1007
1007
  * @param {int} [since] the earliest time in ms to watch trades for
1008
1008
  * @param {int} [limit] the maximum number of trade structures to retrieve
@@ -1063,9 +1063,9 @@ export default class bingx extends bingxRest {
1063
1063
  * @method
1064
1064
  * @name bingx#watchBalance
1065
1065
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1066
- * @see https://bingx-api.github.io/docs/#/en-us/spot/socket/account.html#Subscription%20account%20balance%20push
1067
- * @see https://bingx-api.github.io/docs/#/en-us/swapV2/socket/account.html#Account%20balance%20and%20position%20update%20push
1068
- * @see https://bingx-api.github.io/docs/#/en-us/cswap/socket/account.html#Account%20balance%20and%20position%20update%20push
1066
+ * @see https://bingx-api.github.io/docs-v3/#/en/Spot/Websocket%20Account%20Data/Subscription%20account%20balance%20push
1067
+ * @see https://bingx-api.github.io/docs-v3/#/en/Swap/Websocket%20Account%20Data/Account%20balance%20and%20position%20update%20push
1068
+ * @see https://bingx-api.github.io/docs-v3/#/en/Coin-M%20Futures/Websocket%20Account%20Data/Account%20balance%20and%20position%20update%20push
1069
1069
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1070
1070
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
1071
1071
  */
@@ -8,7 +8,7 @@ import Client from '../base/ws/Client.js';
8
8
  */
9
9
  export default class bitget extends bitgetRest {
10
10
  describe(): any;
11
- getInstType(market: any, uta?: boolean, params?: {}): any[];
11
+ getInstType(methodName: any, market: any, uta?: boolean, params?: {}): any[];
12
12
  /**
13
13
  * @method
14
14
  * @name bitget#watchTicker
@@ -123,7 +123,7 @@ export default class bitget extends bitgetRest {
123
123
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
124
124
  */
125
125
  unWatchOrderBook(symbol: string, params?: {}): Promise<any>;
126
- unWatchChannel(symbol: string, channel: string, messageHashTopic: string, params?: {}): Promise<any>;
126
+ unWatchChannel(symbol: string, channel: string, messageHashTopic: string, methodName: string, params?: {}): Promise<any>;
127
127
  /**
128
128
  * @method
129
129
  * @name bitget#watchOrderBookForSymbols
@@ -263,11 +263,11 @@ export default class bitget extends bitgetRest {
263
263
  */
264
264
  watchBalance(params?: {}): Promise<Balances>;
265
265
  handleBalance(client: Client, message: any): void;
266
- watchPublic(messageHash: any, args: any, params?: {}): Promise<any>;
267
- unWatchPublic(messageHash: any, args: any, params?: {}): Promise<any>;
268
- watchPublicMultiple(messageHashes: any, argsArray: any, params?: {}): Promise<any>;
266
+ watchPublic(uta: any, messageHash: any, args: any, params?: {}): Promise<any>;
267
+ unWatchPublic(uta: any, messageHash: any, args: any, params?: {}): Promise<any>;
268
+ watchPublicMultiple(uta: any, messageHashes: any, argsArray: any, params?: {}): Promise<any>;
269
269
  authenticate(params?: {}): Promise<any>;
270
- watchPrivate(messageHash: any, subscriptionHash: any, args: any, params?: {}): Promise<any>;
270
+ watchPrivate(uta: any, messageHash: any, subscriptionHash: any, args: any, params?: {}): Promise<any>;
271
271
  handleAuthenticate(client: Client, message: any): void;
272
272
  handleErrorMessage(client: Client, message: any): Bool;
273
273
  handleMessage(client: Client, message: any): void;