ccxt 4.1.96 → 4.1.98

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 (187) hide show
  1. package/README.md +3 -3
  2. package/build.sh +1 -1
  3. package/dist/ccxt.browser.js +1275 -1208
  4. package/dist/ccxt.browser.min.js +3 -3
  5. package/dist/cjs/ccxt.js +1 -1
  6. package/dist/cjs/src/ace.js +1 -1
  7. package/dist/cjs/src/ascendex.js +1 -1
  8. package/dist/cjs/src/base/Exchange.js +6 -5
  9. package/dist/cjs/src/base/errors.js +8 -1
  10. package/dist/cjs/src/bigone.js +2 -2
  11. package/dist/cjs/src/binance.js +29 -32
  12. package/dist/cjs/src/bingx.js +76 -3
  13. package/dist/cjs/src/bitfinex.js +1 -1
  14. package/dist/cjs/src/bitfinex2.js +1 -1
  15. package/dist/cjs/src/bitflyer.js +2 -2
  16. package/dist/cjs/src/bitget.js +13 -13
  17. package/dist/cjs/src/bitmart.js +1 -1
  18. package/dist/cjs/src/bitmex.js +2 -2
  19. package/dist/cjs/src/bitopro.js +1 -1
  20. package/dist/cjs/src/bitpanda.js +1 -1
  21. package/dist/cjs/src/bitvavo.js +1 -1
  22. package/dist/cjs/src/blockchaincom.js +1 -1
  23. package/dist/cjs/src/btcalpha.js +2 -2
  24. package/dist/cjs/src/btcbox.js +1 -1
  25. package/dist/cjs/src/btcmarkets.js +2 -2
  26. package/dist/cjs/src/btcturk.js +1 -1
  27. package/dist/cjs/src/bybit.js +2 -2
  28. package/dist/cjs/src/cex.js +1 -1
  29. package/dist/cjs/src/coinbasepro.js +2 -2
  30. package/dist/cjs/src/coinex.js +1 -1
  31. package/dist/cjs/src/coinlist.js +1 -1
  32. package/dist/cjs/src/deribit.js +1 -1
  33. package/dist/cjs/src/digifinex.js +1 -1
  34. package/dist/cjs/src/gate.js +1 -1
  35. package/dist/cjs/src/hitbtc.js +1 -1
  36. package/dist/cjs/src/hollaex.js +2 -2
  37. package/dist/cjs/src/htx.js +1 -1
  38. package/dist/cjs/src/huobijp.js +2 -2
  39. package/dist/cjs/src/idex.js +1 -1
  40. package/dist/cjs/src/independentreserve.js +1 -1
  41. package/dist/cjs/src/kraken.js +1 -1
  42. package/dist/cjs/src/kucoin.js +4 -4
  43. package/dist/cjs/src/kucoinfutures.js +1 -1
  44. package/dist/cjs/src/kuna.js +1 -1
  45. package/dist/cjs/src/latoken.js +1 -1
  46. package/dist/cjs/src/luno.js +2 -2
  47. package/dist/cjs/src/lykke.js +1 -1
  48. package/dist/cjs/src/mexc.js +2 -2
  49. package/dist/cjs/src/ndax.js +1 -1
  50. package/dist/cjs/src/novadax.js +2 -2
  51. package/dist/cjs/src/oceanex.js +1 -1
  52. package/dist/cjs/src/okcoin.js +1 -1
  53. package/dist/cjs/src/okx.js +1 -1
  54. package/dist/cjs/src/phemex.js +3 -3
  55. package/dist/cjs/src/poloniexfutures.js +1 -1
  56. package/dist/cjs/src/pro/alpaca.js +1 -1
  57. package/dist/cjs/src/pro/ascendex.js +1 -1
  58. package/dist/cjs/src/pro/binance.js +2 -2
  59. package/dist/cjs/src/pro/bingx.js +12 -6
  60. package/dist/cjs/src/pro/bitfinex.js +1 -1
  61. package/dist/cjs/src/pro/bitfinex2.js +1 -1
  62. package/dist/cjs/src/pro/bitmart.js +1 -1
  63. package/dist/cjs/src/pro/bitmex.js +1 -1
  64. package/dist/cjs/src/pro/bitpanda.js +1 -1
  65. package/dist/cjs/src/pro/blockchaincom.js +1 -1
  66. package/dist/cjs/src/pro/bybit.js +2 -2
  67. package/dist/cjs/src/pro/coinbase.js +1 -1
  68. package/dist/cjs/src/pro/coinbasepro.js +1 -1
  69. package/dist/cjs/src/pro/deribit.js +1 -1
  70. package/dist/cjs/src/pro/gate.js +1 -1
  71. package/dist/cjs/src/pro/gemini.js +1 -1
  72. package/dist/cjs/src/pro/hollaex.js +1 -1
  73. package/dist/cjs/src/pro/htx.js +1 -1
  74. package/dist/cjs/src/pro/idex.js +1 -1
  75. package/dist/cjs/src/pro/kraken.js +1 -1
  76. package/dist/cjs/src/pro/krakenfutures.js +1 -1
  77. package/dist/cjs/src/pro/kucoinfutures.js +1 -1
  78. package/dist/cjs/src/pro/mexc.js +1 -1
  79. package/dist/cjs/src/pro/okcoin.js +1 -1
  80. package/dist/cjs/src/pro/okx.js +1 -1
  81. package/dist/cjs/src/pro/phemex.js +1 -1
  82. package/dist/cjs/src/pro/poloniexfutures.js +1 -1
  83. package/dist/cjs/src/probit.js +1 -1
  84. package/dist/cjs/src/timex.js +1 -1
  85. package/dist/cjs/src/tokocrypto.js +1 -1
  86. package/dist/cjs/src/upbit.js +1 -1
  87. package/dist/cjs/src/wavesexchange.js +1 -1
  88. package/dist/cjs/src/whitebit.js +1 -1
  89. package/dist/cjs/src/woo.js +1 -1
  90. package/dist/cjs/src/zaif.js +1 -1
  91. package/js/ccxt.d.ts +1 -1
  92. package/js/ccxt.js +1 -1
  93. package/js/src/abstract/bingx.d.ts +2 -0
  94. package/js/src/ace.js +1 -1
  95. package/js/src/ascendex.js +1 -1
  96. package/js/src/base/Exchange.d.ts +1 -1
  97. package/js/src/base/Exchange.js +7 -6
  98. package/js/src/base/errorHierarchy.d.ts +1 -0
  99. package/js/src/base/errorHierarchy.js +1 -0
  100. package/js/src/base/errors.d.ts +5 -1
  101. package/js/src/base/errors.js +8 -2
  102. package/js/src/bigone.js +2 -2
  103. package/js/src/binance.js +29 -32
  104. package/js/src/bingx.d.ts +2 -0
  105. package/js/src/bingx.js +76 -3
  106. package/js/src/bitfinex.js +1 -1
  107. package/js/src/bitfinex2.js +1 -1
  108. package/js/src/bitflyer.js +2 -2
  109. package/js/src/bitget.js +13 -13
  110. package/js/src/bitmart.js +1 -1
  111. package/js/src/bitmex.js +2 -2
  112. package/js/src/bitopro.js +1 -1
  113. package/js/src/bitpanda.js +1 -1
  114. package/js/src/bitso.d.ts +1 -1
  115. package/js/src/bitvavo.js +1 -1
  116. package/js/src/blockchaincom.js +1 -1
  117. package/js/src/btcalpha.js +2 -2
  118. package/js/src/btcbox.js +1 -1
  119. package/js/src/btcmarkets.js +2 -2
  120. package/js/src/btcturk.js +1 -1
  121. package/js/src/bybit.js +2 -2
  122. package/js/src/cex.js +1 -1
  123. package/js/src/coinbasepro.js +2 -2
  124. package/js/src/coinex.js +1 -1
  125. package/js/src/coinlist.js +1 -1
  126. package/js/src/deribit.js +1 -1
  127. package/js/src/digifinex.js +1 -1
  128. package/js/src/gate.js +1 -1
  129. package/js/src/hitbtc.js +1 -1
  130. package/js/src/hollaex.js +2 -2
  131. package/js/src/htx.js +1 -1
  132. package/js/src/huobijp.js +2 -2
  133. package/js/src/idex.js +1 -1
  134. package/js/src/independentreserve.js +1 -1
  135. package/js/src/kraken.js +1 -1
  136. package/js/src/kucoin.js +4 -4
  137. package/js/src/kucoinfutures.js +1 -1
  138. package/js/src/kuna.js +1 -1
  139. package/js/src/latoken.js +1 -1
  140. package/js/src/luno.js +2 -2
  141. package/js/src/lykke.js +1 -1
  142. package/js/src/mexc.js +2 -2
  143. package/js/src/ndax.js +1 -1
  144. package/js/src/novadax.js +2 -2
  145. package/js/src/oceanex.js +1 -1
  146. package/js/src/okcoin.js +1 -1
  147. package/js/src/okx.js +1 -1
  148. package/js/src/phemex.js +3 -3
  149. package/js/src/poloniexfutures.js +1 -1
  150. package/js/src/pro/alpaca.js +1 -1
  151. package/js/src/pro/ascendex.js +1 -1
  152. package/js/src/pro/binance.js +2 -2
  153. package/js/src/pro/bingx.js +12 -6
  154. package/js/src/pro/bitfinex.js +1 -1
  155. package/js/src/pro/bitfinex2.js +1 -1
  156. package/js/src/pro/bitmart.js +1 -1
  157. package/js/src/pro/bitmex.js +1 -1
  158. package/js/src/pro/bitpanda.js +1 -1
  159. package/js/src/pro/blockchaincom.js +1 -1
  160. package/js/src/pro/bybit.js +2 -2
  161. package/js/src/pro/coinbase.js +1 -1
  162. package/js/src/pro/coinbasepro.js +1 -1
  163. package/js/src/pro/deribit.js +1 -1
  164. package/js/src/pro/gate.js +1 -1
  165. package/js/src/pro/gemini.js +1 -1
  166. package/js/src/pro/hollaex.js +1 -1
  167. package/js/src/pro/htx.js +1 -1
  168. package/js/src/pro/idex.js +1 -1
  169. package/js/src/pro/kraken.js +1 -1
  170. package/js/src/pro/krakenfutures.js +1 -1
  171. package/js/src/pro/kucoinfutures.js +1 -1
  172. package/js/src/pro/mexc.js +1 -1
  173. package/js/src/pro/okcoin.js +1 -1
  174. package/js/src/pro/okx.js +1 -1
  175. package/js/src/pro/phemex.js +1 -1
  176. package/js/src/pro/poloniexfutures.js +1 -1
  177. package/js/src/probit.js +1 -1
  178. package/js/src/timex.js +1 -1
  179. package/js/src/tokocrypto.js +1 -1
  180. package/js/src/upbit.js +1 -1
  181. package/js/src/wavesexchange.js +1 -1
  182. package/js/src/whitebit.js +1 -1
  183. package/js/src/woo.js +1 -1
  184. package/js/src/zaif.js +1 -1
  185. package/package.json +13 -13
  186. package/skip-tests.json +120 -71
  187. package/run-tests-ws.js +0 -290
@@ -785,7 +785,7 @@ class bybit extends bybit$1 {
785
785
  * @see https://bybit-exchange.github.io/docs/v5/websocket/private/execution
786
786
  * @param {string} symbol unified market symbol of the market orders were made in
787
787
  * @param {int} [since] the earliest time in ms to fetch orders for
788
- * @param {int} [limit] the maximum number of orde structures to retrieve
788
+ * @param {int} [limit] the maximum number of order structures to retrieve
789
789
  * @param {object} [params] extra parameters specific to the exchange API endpoint
790
790
  * @param {boolean} [params.unifiedMargin] use unified margin account
791
791
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
@@ -1050,7 +1050,7 @@ class bybit extends bybit$1 {
1050
1050
  * @see https://bybit-exchange.github.io/docs/v5/websocket/private/order
1051
1051
  * @param {string} symbol unified market symbol of the market orders were made in
1052
1052
  * @param {int} [since] the earliest time in ms to fetch orders for
1053
- * @param {int} [limit] the maximum number of orde structures to retrieve
1053
+ * @param {int} [limit] the maximum number of order structures to retrieve
1054
1054
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1055
1055
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
1056
1056
  */
@@ -267,7 +267,7 @@ class coinbase extends coinbase$1 {
267
267
  * @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#user-channel
268
268
  * @param {string} [symbol] unified market symbol of the market orders were made in
269
269
  * @param {int} [since] the earliest time in ms to fetch orders for
270
- * @param {int} [limit] the maximum number of orde structures to retrieve
270
+ * @param {int} [limit] the maximum number of order structures to retrieve
271
271
  * @param {object} [params] extra parameters specific to the exchange API endpoint
272
272
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
273
273
  */
@@ -268,7 +268,7 @@ class coinbasepro extends coinbasepro$1 {
268
268
  * @description watches information on multiple orders made by the user
269
269
  * @param {string} symbol unified market symbol of the market orders were made in
270
270
  * @param {int} [since] the earliest time in ms to fetch orders for
271
- * @param {int} [limit] the maximum number of orde structures to retrieve
271
+ * @param {int} [limit] the maximum number of order structures to retrieve
272
272
  * @param {object} [params] extra parameters specific to the exchange API endpoint
273
273
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
274
274
  */
@@ -509,7 +509,7 @@ class deribit extends deribit$1 {
509
509
  * @description watches information on multiple orders made by the user
510
510
  * @param {string} symbol unified market symbol of the market orders were made in
511
511
  * @param {int} [since] the earliest time in ms to fetch orders for
512
- * @param {int} [limit] the maximum number of orde structures to retrieve
512
+ * @param {int} [limit] the maximum number of order structures to retrieve
513
513
  * @param {object} [params] extra parameters specific to the exchange API endpoint
514
514
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
515
515
  */
@@ -891,7 +891,7 @@ class gate extends gate$1 {
891
891
  * @description watches information on multiple orders made by the user
892
892
  * @param {string} symbol unified market symbol of the market orders were made in
893
893
  * @param {int} [since] the earliest time in ms to fetch orders for
894
- * @param {int} [limit] the maximum number of orde structures to retrieve
894
+ * @param {int} [limit] the maximum number of order structures to retrieve
895
895
  * @param {object} [params] extra parameters specific to the exchange API endpoint
896
896
  * @param {string} [params.type] spot, margin, swap, future, or option. Required if listening to all symbols.
897
897
  * @param {boolean} [params.isInverse] if future, listen to inverse or linear contracts
@@ -377,7 +377,7 @@ class gemini extends gemini$1 {
377
377
  * @see https://docs.gemini.com/websocket-api/#order-events
378
378
  * @param {string} symbol unified market symbol of the market orders were made in
379
379
  * @param {int} [since] the earliest time in ms to fetch orders for
380
- * @param {int} [limit] the maximum number of orde structures to retrieve
380
+ * @param {int} [limit] the maximum number of order structures to retrieve
381
381
  * @param {object} [params] extra parameters specific to the exchange API endpoint
382
382
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
383
383
  */
@@ -251,7 +251,7 @@ class hollaex extends hollaex$1 {
251
251
  * @description watches information on multiple orders made by the user
252
252
  * @param {string} symbol unified market symbol of the market orders were made in
253
253
  * @param {int} [since] the earliest time in ms to fetch orders for
254
- * @param {int} [limit] the maximum number of orde structures to retrieve
254
+ * @param {int} [limit] the maximum number of order structures to retrieve
255
255
  * @param {object} [params] extra parameters specific to the exchange API endpoint
256
256
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
257
257
  */
@@ -767,7 +767,7 @@ class htx extends htx$1 {
767
767
  * @description watches information on multiple orders made by the user
768
768
  * @param {string} symbol unified market symbol of the market orders were made in
769
769
  * @param {int} [since] the earliest time in ms to fetch orders for
770
- * @param {int} [limit] the maximum number of orde structures to retrieve
770
+ * @param {int} [limit] the maximum number of order structures to retrieve
771
771
  * @param {object} [params] extra parameters specific to the exchange API endpoint
772
772
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
773
773
  */
@@ -509,7 +509,7 @@ class idex extends idex$1 {
509
509
  * @description watches information on multiple orders made by the user
510
510
  * @param {string} symbol unified market symbol of the market orders were made in
511
511
  * @param {int} [since] the earliest time in ms to fetch orders for
512
- * @param {int} [limit] the maximum number of orde structures to retrieve
512
+ * @param {int} [limit] the maximum number of order structures to retrieve
513
513
  * @param {object} [params] extra parameters specific to the exchange API endpoint
514
514
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
515
515
  */
@@ -990,7 +990,7 @@ class kraken extends kraken$1 {
990
990
  * @param {string} symbol unified market symbol of the market orders were made in
991
991
  * @param {int} [since] the earliest time in ms to fetch orders for
992
992
  * @param {int} [limit] the maximum number of orde structures to retrieve
993
- * @param {object} [params] extra parameters specific to the exchange API endpoint
993
+ * @param {object} [params] maximum number of orderic to the exchange API endpoint
994
994
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
995
995
  */
996
996
  return await this.watchPrivate('openOrders', symbol, since, limit, params);
@@ -375,7 +375,7 @@ class krakenfutures extends krakenfutures$1 {
375
375
  * @see https://docs.futures.kraken.com/#websocket-api-private-feeds-fills
376
376
  * @param {string} symbol unified market symbol of the market orders were made in
377
377
  * @param {int} [since] the earliest time in ms to fetch orders for
378
- * @param {int} [limit] the maximum number of orde structures to retrieve
378
+ * @param {int} [limit] the maximum number of order structures to retrieve
379
379
  * @param {object} [params] extra parameters specific to the exchange API endpoint
380
380
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
381
381
  */
@@ -672,7 +672,7 @@ class kucoinfutures extends kucoinfutures$1 {
672
672
  * @see https://docs.kucoin.com/futures/#trade-orders-according-to-the-market
673
673
  * @param {string} symbol unified market symbol of the market orders were made in
674
674
  * @param {int} [since] the earliest time in ms to fetch orders for
675
- * @param {int} [limit] the maximum number of orde structures to retrieve
675
+ * @param {int} [limit] the maximum number of order structures to retrieve
676
676
  * @param {object} [params] extra parameters specific to the exchange API endpoint
677
677
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
678
678
  */
@@ -737,7 +737,7 @@ class mexc extends mexc$1 {
737
737
  * @description watches information on multiple orders made by the user
738
738
  * @param {string} symbol unified market symbol of the market orders were made in
739
739
  * @param {int} [since] the earliest time in ms to fetch orders for
740
- * @param {int} [limit] the maximum number of orde structures to retrieve
740
+ * @param {int} [limit] the maximum number of order structures to retrieve
741
741
  * @param {object} [params] extra parameters specific to the exchange API endpoint
742
742
  * @param {string|undefined} params.type the type of orders to retrieve, can be 'spot' or 'margin'
743
743
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -88,7 +88,7 @@ class okcoin extends okcoin$1 {
88
88
  * @description watches information on multiple orders made by the user
89
89
  * @param {string} symbol unified market symbol of the market orders were made in
90
90
  * @param {int} [since] the earliest time in ms to fetch orders for
91
- * @param {int} [limit] the maximum number of orde structures to retrieve
91
+ * @param {int} [limit] the maximum number of order structures to retrieve
92
92
  * @param {object} [params] extra parameters specific to the exchange API endpoint
93
93
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
94
94
  */
@@ -965,7 +965,7 @@ class okx extends okx$1 {
965
965
  * @description watches information on multiple orders made by the user
966
966
  * @param {string} [symbol] unified market symbol of the market orders were made in
967
967
  * @param {int} [since] the earliest time in ms to fetch orders for
968
- * @param {int} [limit] the maximum number of orde structures to retrieve
968
+ * @param {int} [limit] the maximum number of order structures to retrieve
969
969
  * @param {object} [params] extra parameters specific to the exchange API endpoint
970
970
  * @param {bool} [params.stop] true if fetching trigger or conditional orders
971
971
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -886,7 +886,7 @@ class phemex extends phemex$1 {
886
886
  * @description watches information on multiple orders made by the user
887
887
  * @param {string} symbol unified market symbol of the market orders were made in
888
888
  * @param {int} [since] the earliest time in ms to fetch orders for
889
- * @param {int} [limit] the maximum number of orde structures to retrieve
889
+ * @param {int} [limit] the maximum number of order structures to retrieve
890
890
  * @param {object} [params] extra parameters specific to the exchange API endpoint
891
891
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
892
892
  */
@@ -297,7 +297,7 @@ class poloniexfutures extends poloniexfutures$1 {
297
297
  * @see https://futures-docs.poloniex.com/#private-messages
298
298
  * @param {string} symbol filter by unified market symbol of the market orders were made in
299
299
  * @param {int} [since] the earliest time in ms to fetch orders for
300
- * @param {int} [limit] the maximum number of orde structures to retrieve
300
+ * @param {int} [limit] the maximum number of order structures to retrieve
301
301
  * @param {object} [params] extra parameters specific to the exchange API endpoint
302
302
  * @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
303
303
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -1055,7 +1055,7 @@ class probit extends probit$1 {
1055
1055
  * @description fetches information on multiple closed orders made by the user
1056
1056
  * @param {string} symbol unified market symbol of the market orders were made in
1057
1057
  * @param {int} [since] the earliest time in ms to fetch orders for
1058
- * @param {int} [limit] the maximum number of orde structures to retrieve
1058
+ * @param {int} [limit] the maximum number of order structures to retrieve
1059
1059
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1060
1060
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1061
1061
  */
@@ -998,7 +998,7 @@ class timex extends timex$1 {
998
998
  * @description fetches information on multiple closed orders made by the user
999
999
  * @param {string} symbol unified market symbol of the market orders were made in
1000
1000
  * @param {int} [since] the earliest time in ms to fetch orders for
1001
- * @param {int} [limit] the maximum number of orde structures to retrieve
1001
+ * @param {int} [limit] the maximum number of order structures to retrieve
1002
1002
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1003
1003
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1004
1004
  */
@@ -1903,7 +1903,7 @@ class tokocrypto extends tokocrypto$1 {
1903
1903
  * @description fetches information on multiple closed orders made by the user
1904
1904
  * @param {string} symbol unified market symbol of the market orders were made in
1905
1905
  * @param {int} [since] the earliest time in ms to fetch orders for
1906
- * @param {int} [limit] the maximum number of orde structures to retrieve
1906
+ * @param {int} [limit] the maximum number of order structures to retrieve
1907
1907
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1908
1908
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1909
1909
  */
@@ -1520,7 +1520,7 @@ class upbit extends upbit$1 {
1520
1520
  * @description fetches information on multiple closed orders made by the user
1521
1521
  * @param {string} symbol unified market symbol of the market orders were made in
1522
1522
  * @param {int} [since] the earliest time in ms to fetch orders for
1523
- * @param {int} [limit] the maximum number of orde structures to retrieve
1523
+ * @param {int} [limit] the maximum number of order structures to retrieve
1524
1524
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1525
1525
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1526
1526
  */
@@ -1632,7 +1632,7 @@ class wavesexchange extends wavesexchange$1 {
1632
1632
  * @description fetches information on multiple closed orders made by the user
1633
1633
  * @param {string} symbol unified market symbol of the market orders were made in
1634
1634
  * @param {int} [since] the earliest time in ms to fetch orders for
1635
- * @param {int} [limit] the maximum number of orde structures to retrieve
1635
+ * @param {int} [limit] the maximum number of order structures to retrieve
1636
1636
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1637
1637
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1638
1638
  */
@@ -1406,7 +1406,7 @@ class whitebit extends whitebit$1 {
1406
1406
  * @see https://docs.whitebit.com/private/http-trade-v4/#query-executed-orders
1407
1407
  * @param {string} symbol unified market symbol of the market orders were made in
1408
1408
  * @param {int} [since] the earliest time in ms to fetch orders for
1409
- * @param {int} [limit] the maximum number of orde structures to retrieve
1409
+ * @param {int} [limit] the maximum number of order structures to retrieve
1410
1410
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1411
1411
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1412
1412
  */
@@ -1189,7 +1189,7 @@ class woo extends woo$1 {
1189
1189
  * @description fetches information on multiple orders made by the user
1190
1190
  * @param {string} symbol unified market symbol of the market orders were made in
1191
1191
  * @param {int} [since] the earliest time in ms to fetch orders for
1192
- * @param {int} [limit] the maximum number of orde structures to retrieve
1192
+ * @param {int} [limit] the maximum number of order structures to retrieve
1193
1193
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1194
1194
  * @param {boolean} [params.stop] whether the order is a stop/algo order
1195
1195
  * @param {boolean} [params.isTriggered] whether the order has been triggered (false by default)
@@ -555,7 +555,7 @@ class zaif extends zaif$1 {
555
555
  * @description fetches information on multiple closed orders made by the user
556
556
  * @param {string} symbol unified market symbol of the market orders were made in
557
557
  * @param {int} [since] the earliest time in ms to fetch orders for
558
- * @param {int} [limit] the maximum number of orde structures to retrieve
558
+ * @param {int} [limit] the maximum number of order structures to retrieve
559
559
  * @param {object} [params] extra parameters specific to the exchange API endpoint
560
560
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
561
561
  */
package/js/ccxt.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
4
4
  import * as errors from './src/base/errors.js';
5
5
  import type { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
7
- declare const version = "4.1.95";
7
+ declare const version = "4.1.97";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
package/js/ccxt.js CHANGED
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
38
38
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.1.96';
41
+ const version = '4.1.98';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -19,6 +19,8 @@ interface Exchange {
19
19
  spotV3PrivateGetCapitalDepositHisrec(params?: {}): Promise<implicitReturnType>;
20
20
  spotV3PrivateGetCapitalWithdrawHistory(params?: {}): Promise<implicitReturnType>;
21
21
  spotV3PrivatePostPostAssetTransfer(params?: {}): Promise<implicitReturnType>;
22
+ swapV1PrivateGetPositionSideDual(params?: {}): Promise<implicitReturnType>;
23
+ swapV1PrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
22
24
  swapV2PublicGetServerTime(params?: {}): Promise<implicitReturnType>;
23
25
  swapV2PublicGetQuoteContracts(params?: {}): Promise<implicitReturnType>;
24
26
  swapV2PublicGetQuotePrice(params?: {}): Promise<implicitReturnType>;
package/js/src/ace.js CHANGED
@@ -700,7 +700,7 @@ export default class ace extends Exchange {
700
700
  * @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-list
701
701
  * @param {string} symbol unified market symbol of the market orders were made in
702
702
  * @param {int} [since] the earliest time in ms to fetch orders for
703
- * @param {int} [limit] the maximum number of orde structures to retrieve
703
+ * @param {int} [limit] the maximum number of order structures to retrieve
704
704
  * @param {object} [params] extra parameters specific to the exchange API endpoint
705
705
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
706
706
  */
@@ -1992,7 +1992,7 @@ export default class ascendex extends Exchange {
1992
1992
  * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-current-history-orders
1993
1993
  * @param {string} symbol unified market symbol of the market orders were made in
1994
1994
  * @param {int} [since] the earliest time in ms to fetch orders for
1995
- * @param {int} [limit] the maximum number of orde structures to retrieve
1995
+ * @param {int} [limit] the maximum number of order structures to retrieve
1996
1996
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1997
1997
  * @param {int} [params.until] the latest time in ms to fetch orders for
1998
1998
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -642,7 +642,7 @@ export default class Exchange {
642
642
  after: number;
643
643
  status: string;
644
644
  fee: any;
645
- info: object;
645
+ info: any;
646
646
  };
647
647
  safeCurrencyStructure(currency: object): any;
648
648
  safeMarketStructure(market?: any): MarketInterface;
@@ -11,7 +11,7 @@ const { isNode, deepExtend, extend, clone, flatten, unique, indexBy, sortBy, sor
11
11
  import { keys as keysFunc, values as valuesFunc, vwap as vwapFunc } from './functions.js';
12
12
  // import exceptions from "./errors.js"
13
13
  import { // eslint-disable-line object-curly-newline
14
- ExchangeError, BadSymbol, NullResponse, InvalidAddress, InvalidOrder, NotSupported, BadResponse, AuthenticationError, DDoSProtection, RequestTimeout, NetworkError, ExchangeNotAvailable, ArgumentsRequired, RateLimitExceeded, BadRequest } from "./errors.js";
14
+ ExchangeError, BadSymbol, NullResponse, InvalidAddress, InvalidOrder, NotSupported, BadResponse, AuthenticationError, DDoSProtection, RequestTimeout, NetworkError, ProxyError, ExchangeNotAvailable, ArgumentsRequired, RateLimitExceeded, BadRequest } from "./errors.js";
15
15
  import { Precise } from './Precise.js';
16
16
  //-----------------------------------------------------------------------------
17
17
  import WsClient from './ws/WsClient.js';
@@ -1378,7 +1378,7 @@ export default class Exchange {
1378
1378
  const length = usedProxies.length;
1379
1379
  if (length > 1) {
1380
1380
  const joinedProxyNames = usedProxies.join(',');
1381
- throw new ExchangeError(this.id + ' you have multiple conflicting proxy_url settings (' + joinedProxyNames + '), please use only one from : proxyUrl, proxy_url, proxyUrlCallback, proxy_url_callback');
1381
+ throw new ProxyError(this.id + ' you have multiple conflicting proxy settings (' + joinedProxyNames + '), please use only one from : proxyUrl, proxy_url, proxyUrlCallback, proxy_url_callback');
1382
1382
  }
1383
1383
  return proxyUrl;
1384
1384
  }
@@ -1442,7 +1442,7 @@ export default class Exchange {
1442
1442
  const length = usedProxies.length;
1443
1443
  if (length > 1) {
1444
1444
  const joinedProxyNames = usedProxies.join(',');
1445
- throw new ExchangeError(this.id + ' you have multiple conflicting settings (' + joinedProxyNames + '), please use only one from: httpProxy, httpsProxy, httpProxyCallback, httpsProxyCallback, socksProxy, socksProxyCallback');
1445
+ throw new ProxyError(this.id + ' you have multiple conflicting proxy settings (' + joinedProxyNames + '), please use only one from: httpProxy, httpsProxy, httpProxyCallback, httpsProxyCallback, socksProxy, socksProxyCallback');
1446
1446
  }
1447
1447
  return [httpProxy, httpsProxy, socksProxy];
1448
1448
  }
@@ -1482,13 +1482,13 @@ export default class Exchange {
1482
1482
  const length = usedProxies.length;
1483
1483
  if (length > 1) {
1484
1484
  const joinedProxyNames = usedProxies.join(',');
1485
- throw new ExchangeError(this.id + ' you have multiple conflicting settings (' + joinedProxyNames + '), please use only one from: wsProxy, wssProxy, wsSocksProxy');
1485
+ throw new ProxyError(this.id + ' you have multiple conflicting proxy settings (' + joinedProxyNames + '), please use only one from: wsProxy, wssProxy, wsSocksProxy');
1486
1486
  }
1487
1487
  return [wsProxy, wssProxy, wsSocksProxy];
1488
1488
  }
1489
1489
  checkConflictingProxies(proxyAgentSet, proxyUrlSet) {
1490
1490
  if (proxyAgentSet && proxyUrlSet) {
1491
- throw new ExchangeError(this.id + ' you have multiple conflicting proxy settings, please use only one from : proxyUrl, httpProxy, httpsProxy, socksProxy');
1491
+ throw new ProxyError(this.id + ' you have multiple conflicting proxy settings, please use only one from : proxyUrl, httpProxy, httpsProxy, socksProxy');
1492
1492
  }
1493
1493
  }
1494
1494
  findMessageHashes(client, element) {
@@ -1805,6 +1805,7 @@ export default class Exchange {
1805
1805
  fee['cost'] = this.safeNumber(fee, 'cost');
1806
1806
  }
1807
1807
  const timestamp = this.safeInteger(entry, 'timestamp');
1808
+ const info = this.safeValue(entry, 'info', {});
1808
1809
  return {
1809
1810
  'id': this.safeString(entry, 'id'),
1810
1811
  'timestamp': timestamp,
@@ -1820,7 +1821,7 @@ export default class Exchange {
1820
1821
  'after': this.parseNumber(after),
1821
1822
  'status': this.safeString(entry, 'status'),
1822
1823
  'fee': fee,
1823
- 'info': entry,
1824
+ 'info': info,
1824
1825
  };
1825
1826
  }
1826
1827
  safeCurrencyStructure(currency) {
@@ -31,6 +31,7 @@ declare const errorHierarchy: {
31
31
  ContractUnavailable: {};
32
32
  };
33
33
  NotSupported: {};
34
+ ProxyError: {};
34
35
  };
35
36
  OperationFailed: {
36
37
  NetworkError: {
@@ -37,6 +37,7 @@ const errorHierarchy = {
37
37
  'ContractUnavailable': {},
38
38
  },
39
39
  'NotSupported': {},
40
+ 'ProxyError': {},
40
41
  },
41
42
  'OperationFailed': {
42
43
  'NetworkError': {
@@ -79,6 +79,9 @@ declare class NotSupported extends ExchangeError {
79
79
  declare class OperationFailed extends BaseError {
80
80
  constructor(message: any);
81
81
  }
82
+ declare class ProxyError extends ExchangeError {
83
+ constructor(message: any);
84
+ }
82
85
  declare class NetworkError extends OperationFailed {
83
86
  constructor(message: any);
84
87
  }
@@ -135,6 +138,7 @@ declare const errors: {
135
138
  NoChange: typeof NoChange;
136
139
  OperationRejected: typeof OperationRejected;
137
140
  OperationFailed: typeof OperationFailed;
141
+ ProxyError: typeof ProxyError;
138
142
  };
139
- export { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed };
143
+ export { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed, ProxyError };
140
144
  export default errors;
@@ -198,6 +198,12 @@ class OperationFailed extends BaseError {
198
198
  this.name = 'OperationFailed';
199
199
  }
200
200
  }
201
+ class ProxyError extends ExchangeError {
202
+ constructor(message) {
203
+ super(message);
204
+ this.name = 'OperationFailed';
205
+ }
206
+ }
201
207
  // Network error
202
208
  class NetworkError extends OperationFailed {
203
209
  constructor(message) {
@@ -248,6 +254,6 @@ class RequestTimeout extends NetworkError {
248
254
  // // Derived class hierarchy
249
255
  // errorHierarchy
250
256
  // )
251
- const errors = { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed };
252
- export { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed };
257
+ const errors = { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed, ProxyError };
258
+ export { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, ContractUnavailable, NoChange, OperationRejected, OperationFailed, ProxyError };
253
259
  export default errors;
package/js/src/bigone.js CHANGED
@@ -1366,7 +1366,7 @@ export default class bigone extends Exchange {
1366
1366
  * @description fetches information on multiple orders made by the user
1367
1367
  * @param {string} symbol unified market symbol of the market orders were made in
1368
1368
  * @param {int} [since] the earliest time in ms to fetch orders for
1369
- * @param {int} [limit] the maximum number of orde structures to retrieve
1369
+ * @param {int} [limit] the maximum number of order structures to retrieve
1370
1370
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1371
1371
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1372
1372
  */
@@ -1501,7 +1501,7 @@ export default class bigone extends Exchange {
1501
1501
  * @description fetches information on multiple closed orders made by the user
1502
1502
  * @param {string} symbol unified market symbol of the market orders were made in
1503
1503
  * @param {int} [since] the earliest time in ms to fetch orders for
1504
- * @param {int} [limit] the maximum number of orde structures to retrieve
1504
+ * @param {int} [limit] the maximum number of order structures to retrieve
1505
1505
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1506
1506
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1507
1507
  */