ccxt 4.3.53 → 4.3.55

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 (231) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/ace.js +1 -1
  5. package/dist/cjs/src/alpaca.js +1 -1
  6. package/dist/cjs/src/ascendex.js +6 -4
  7. package/dist/cjs/src/bigone.js +1 -1
  8. package/dist/cjs/src/binance.js +6 -6
  9. package/dist/cjs/src/bingx.js +4 -4
  10. package/dist/cjs/src/bit2c.js +1 -1
  11. package/dist/cjs/src/bitbank.js +1 -1
  12. package/dist/cjs/src/bitbns.js +1 -1
  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 +1 -1
  16. package/dist/cjs/src/bitget.js +2 -2
  17. package/dist/cjs/src/bithumb.js +1 -1
  18. package/dist/cjs/src/bitmart.js +3 -3
  19. package/dist/cjs/src/bitmex.js +1 -1
  20. package/dist/cjs/src/bitopro.js +1 -1
  21. package/dist/cjs/src/bitrue.js +1 -1
  22. package/dist/cjs/src/bitso.js +1 -1
  23. package/dist/cjs/src/bitstamp.js +1 -1
  24. package/dist/cjs/src/bitteam.js +1 -1
  25. package/dist/cjs/src/bitvavo.js +2 -2
  26. package/dist/cjs/src/bl3p.js +1 -1
  27. package/dist/cjs/src/blockchaincom.js +28 -28
  28. package/dist/cjs/src/blofin.js +1 -1
  29. package/dist/cjs/src/btcalpha.js +4 -12
  30. package/dist/cjs/src/btcbox.js +1 -1
  31. package/dist/cjs/src/btcmarkets.js +1 -1
  32. package/dist/cjs/src/btcturk.js +1 -1
  33. package/dist/cjs/src/bybit.js +2 -2
  34. package/dist/cjs/src/cex.js +2 -2
  35. package/dist/cjs/src/coinbase.js +33 -33
  36. package/dist/cjs/src/coinbaseexchange.js +1 -1
  37. package/dist/cjs/src/coinbaseinternational.js +1 -1
  38. package/dist/cjs/src/coincheck.js +1 -1
  39. package/dist/cjs/src/coinex.js +2 -2
  40. package/dist/cjs/src/coinlist.js +2 -2
  41. package/dist/cjs/src/coinmate.js +1 -1
  42. package/dist/cjs/src/coinmetro.js +1 -1
  43. package/dist/cjs/src/coinone.js +1 -1
  44. package/dist/cjs/src/coinsph.js +1 -1
  45. package/dist/cjs/src/coinspot.js +1 -1
  46. package/dist/cjs/src/cryptocom.js +1 -1
  47. package/dist/cjs/src/currencycom.js +1 -1
  48. package/dist/cjs/src/delta.js +2 -2
  49. package/dist/cjs/src/deribit.js +4 -4
  50. package/dist/cjs/src/digifinex.js +2 -2
  51. package/dist/cjs/src/exmo.js +2 -2
  52. package/dist/cjs/src/gate.js +2 -2
  53. package/dist/cjs/src/gemini.js +1 -1
  54. package/dist/cjs/src/hitbtc.js +1 -1
  55. package/dist/cjs/src/hollaex.js +1 -1
  56. package/dist/cjs/src/htx.js +3 -3
  57. package/dist/cjs/src/huobijp.js +1 -1
  58. package/dist/cjs/src/hyperliquid.js +2 -2
  59. package/dist/cjs/src/idex.js +1 -1
  60. package/dist/cjs/src/independentreserve.js +1 -1
  61. package/dist/cjs/src/indodax.js +1 -1
  62. package/dist/cjs/src/kraken.js +2 -2
  63. package/dist/cjs/src/kucoin.js +136 -47
  64. package/dist/cjs/src/kucoinfutures.js +1 -1
  65. package/dist/cjs/src/kuna.js +1 -1
  66. package/dist/cjs/src/latoken.js +1 -1
  67. package/dist/cjs/src/lbank.js +1 -1
  68. package/dist/cjs/src/luno.js +1 -1
  69. package/dist/cjs/src/lykke.js +1 -1
  70. package/dist/cjs/src/mercado.js +1 -1
  71. package/dist/cjs/src/mexc.js +1 -1
  72. package/dist/cjs/src/ndax.js +1 -1
  73. package/dist/cjs/src/novadax.js +1 -1
  74. package/dist/cjs/src/oceanex.js +1 -1
  75. package/dist/cjs/src/okcoin.js +1 -1
  76. package/dist/cjs/src/okx.js +3 -3
  77. package/dist/cjs/src/onetrading.js +1 -1
  78. package/dist/cjs/src/oxfun.js +2 -2
  79. package/dist/cjs/src/p2b.js +1 -1
  80. package/dist/cjs/src/paymium.js +1 -1
  81. package/dist/cjs/src/phemex.js +30 -3
  82. package/dist/cjs/src/poloniex.js +6 -4
  83. package/dist/cjs/src/poloniexfutures.js +1 -1
  84. package/dist/cjs/src/pro/binance.js +3 -3
  85. package/dist/cjs/src/pro/bitvavo.js +2 -2
  86. package/dist/cjs/src/pro/bybit.js +22 -14
  87. package/dist/cjs/src/pro/cex.js +3 -3
  88. package/dist/cjs/src/pro/coinbase.js +23 -1
  89. package/dist/cjs/src/pro/cryptocom.js +1 -1
  90. package/dist/cjs/src/pro/gate.js +2 -2
  91. package/dist/cjs/src/pro/hitbtc.js +1 -1
  92. package/dist/cjs/src/pro/kraken.js +2 -2
  93. package/dist/cjs/src/pro/kucoin.js +66 -28
  94. package/dist/cjs/src/pro/okx.js +2 -2
  95. package/dist/cjs/src/pro/oxfun.js +2 -2
  96. package/dist/cjs/src/pro/poloniex.js +1 -1
  97. package/dist/cjs/src/pro/vertex.js +2 -2
  98. package/dist/cjs/src/probit.js +1 -1
  99. package/dist/cjs/src/timex.js +1 -1
  100. package/dist/cjs/src/tokocrypto.js +1 -1
  101. package/dist/cjs/src/tradeogre.js +1 -1
  102. package/dist/cjs/src/upbit.js +1 -1
  103. package/dist/cjs/src/vertex.js +2 -2
  104. package/dist/cjs/src/wavesexchange.js +1 -1
  105. package/dist/cjs/src/wazirx.js +1 -1
  106. package/dist/cjs/src/whitebit.js +2 -2
  107. package/dist/cjs/src/woo.js +34 -26
  108. package/dist/cjs/src/woofipro.js +3 -3
  109. package/dist/cjs/src/yobit.js +1 -1
  110. package/dist/cjs/src/zaif.js +1 -1
  111. package/dist/cjs/src/zonda.js +1 -1
  112. package/js/ccxt.d.ts +1 -1
  113. package/js/ccxt.js +1 -1
  114. package/js/src/abstract/kucoin.d.ts +3 -0
  115. package/js/src/abstract/kucoinfutures.d.ts +3 -0
  116. package/js/src/ace.js +1 -1
  117. package/js/src/alpaca.js +1 -1
  118. package/js/src/ascendex.d.ts +1 -1
  119. package/js/src/ascendex.js +6 -4
  120. package/js/src/base/types.d.ts +4 -0
  121. package/js/src/bigone.js +1 -1
  122. package/js/src/binance.js +6 -6
  123. package/js/src/bingx.js +4 -4
  124. package/js/src/bit2c.js +1 -1
  125. package/js/src/bitbank.js +1 -1
  126. package/js/src/bitbns.js +1 -1
  127. package/js/src/bitfinex.js +1 -1
  128. package/js/src/bitfinex2.js +1 -1
  129. package/js/src/bitflyer.js +1 -1
  130. package/js/src/bitget.js +2 -2
  131. package/js/src/bithumb.js +1 -1
  132. package/js/src/bitmart.js +3 -3
  133. package/js/src/bitmex.js +1 -1
  134. package/js/src/bitopro.js +1 -1
  135. package/js/src/bitrue.js +1 -1
  136. package/js/src/bitso.js +1 -1
  137. package/js/src/bitstamp.js +1 -1
  138. package/js/src/bitteam.js +1 -1
  139. package/js/src/bitvavo.js +2 -2
  140. package/js/src/bl3p.js +1 -1
  141. package/js/src/blockchaincom.js +28 -28
  142. package/js/src/blofin.js +1 -1
  143. package/js/src/btcalpha.js +5 -13
  144. package/js/src/btcbox.js +1 -1
  145. package/js/src/btcmarkets.js +1 -1
  146. package/js/src/btcturk.js +1 -1
  147. package/js/src/bybit.js +2 -2
  148. package/js/src/cex.js +2 -2
  149. package/js/src/coinbase.js +33 -33
  150. package/js/src/coinbaseexchange.js +1 -1
  151. package/js/src/coinbaseinternational.js +1 -1
  152. package/js/src/coincheck.js +1 -1
  153. package/js/src/coinex.js +2 -2
  154. package/js/src/coinlist.js +2 -2
  155. package/js/src/coinmate.js +1 -1
  156. package/js/src/coinmetro.js +1 -1
  157. package/js/src/coinone.js +1 -1
  158. package/js/src/coinsph.js +1 -1
  159. package/js/src/coinspot.js +1 -1
  160. package/js/src/cryptocom.js +1 -1
  161. package/js/src/currencycom.js +1 -1
  162. package/js/src/delta.js +2 -2
  163. package/js/src/deribit.js +4 -4
  164. package/js/src/digifinex.js +2 -2
  165. package/js/src/exmo.js +2 -2
  166. package/js/src/gate.js +2 -2
  167. package/js/src/gemini.js +1 -1
  168. package/js/src/hitbtc.js +1 -1
  169. package/js/src/hollaex.js +1 -1
  170. package/js/src/htx.js +3 -3
  171. package/js/src/huobijp.js +1 -1
  172. package/js/src/hyperliquid.js +2 -2
  173. package/js/src/idex.js +1 -1
  174. package/js/src/independentreserve.js +1 -1
  175. package/js/src/indodax.js +1 -1
  176. package/js/src/kraken.js +2 -2
  177. package/js/src/kucoin.d.ts +1 -0
  178. package/js/src/kucoin.js +136 -47
  179. package/js/src/kucoinfutures.js +1 -1
  180. package/js/src/kuna.js +1 -1
  181. package/js/src/latoken.js +1 -1
  182. package/js/src/lbank.js +1 -1
  183. package/js/src/luno.js +1 -1
  184. package/js/src/lykke.js +1 -1
  185. package/js/src/mercado.js +1 -1
  186. package/js/src/mexc.js +1 -1
  187. package/js/src/ndax.js +1 -1
  188. package/js/src/novadax.js +1 -1
  189. package/js/src/oceanex.js +1 -1
  190. package/js/src/okcoin.js +1 -1
  191. package/js/src/okx.js +3 -3
  192. package/js/src/onetrading.js +1 -1
  193. package/js/src/oxfun.js +2 -2
  194. package/js/src/p2b.js +1 -1
  195. package/js/src/paymium.js +1 -1
  196. package/js/src/phemex.d.ts +1 -1
  197. package/js/src/phemex.js +30 -3
  198. package/js/src/poloniex.js +6 -4
  199. package/js/src/poloniexfutures.js +1 -1
  200. package/js/src/pro/binance.js +3 -3
  201. package/js/src/pro/bitvavo.js +2 -2
  202. package/js/src/pro/bybit.d.ts +1 -1
  203. package/js/src/pro/bybit.js +22 -14
  204. package/js/src/pro/cex.js +3 -3
  205. package/js/src/pro/coinbase.d.ts +1 -0
  206. package/js/src/pro/coinbase.js +23 -1
  207. package/js/src/pro/cryptocom.js +1 -1
  208. package/js/src/pro/gate.js +2 -2
  209. package/js/src/pro/hitbtc.js +1 -1
  210. package/js/src/pro/kraken.js +2 -2
  211. package/js/src/pro/kucoin.js +66 -28
  212. package/js/src/pro/okx.js +2 -2
  213. package/js/src/pro/oxfun.js +2 -2
  214. package/js/src/pro/poloniex.js +1 -1
  215. package/js/src/pro/vertex.js +2 -2
  216. package/js/src/probit.js +1 -1
  217. package/js/src/timex.js +1 -1
  218. package/js/src/tokocrypto.js +1 -1
  219. package/js/src/tradeogre.js +1 -1
  220. package/js/src/upbit.js +1 -1
  221. package/js/src/vertex.js +2 -2
  222. package/js/src/wavesexchange.js +1 -1
  223. package/js/src/wazirx.js +1 -1
  224. package/js/src/whitebit.js +2 -2
  225. package/js/src/woo.d.ts +1 -0
  226. package/js/src/woo.js +34 -26
  227. package/js/src/woofipro.js +3 -3
  228. package/js/src/yobit.js +1 -1
  229. package/js/src/zaif.js +1 -1
  230. package/js/src/zonda.js +1 -1
  231. package/package.json +54 -52
@@ -3756,7 +3756,7 @@ class gate extends gate$1 {
3756
3756
  * @param {string} type 'limit' or 'market' *"market" is contract only*
3757
3757
  * @param {string} side 'buy' or 'sell'
3758
3758
  * @param {float} amount the amount of currency to trade
3759
- * @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
3759
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
3760
3760
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3761
3761
  * @param {float} [params.stopPrice] The price at which a trigger order is triggered at
3762
3762
  * @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
@@ -4261,7 +4261,7 @@ class gate extends gate$1 {
4261
4261
  * @param {string} type 'market' or 'limit'
4262
4262
  * @param {string} side 'buy' or 'sell'
4263
4263
  * @param {float} amount how much of the currency you want to trade in units of the base currency
4264
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
4264
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
4265
4265
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4266
4266
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
4267
4267
  */
@@ -1447,7 +1447,7 @@ class gemini extends gemini$1 {
1447
1447
  * @param {string} type must be 'limit'
1448
1448
  * @param {string} side 'buy' or 'sell'
1449
1449
  * @param {float} amount how much of currency you want to trade in units of base currency
1450
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1450
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1451
1451
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1452
1452
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1453
1453
  */
@@ -2289,7 +2289,7 @@ class hitbtc extends hitbtc$1 {
2289
2289
  * @param {string} type 'market' or 'limit'
2290
2290
  * @param {string} side 'buy' or 'sell'
2291
2291
  * @param {float} amount how much of currency you want to trade in units of base currency
2292
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2292
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2293
2293
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2294
2294
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported for spot-margin, swap supports both, default is 'cross'
2295
2295
  * @param {bool} [params.margin] true for creating a margin order
@@ -1145,7 +1145,7 @@ class hollaex extends hollaex$1 {
1145
1145
  * @param {string} type 'market' or 'limit'
1146
1146
  * @param {string} side 'buy' or 'sell'
1147
1147
  * @param {float} amount how much of currency you want to trade in units of base currency
1148
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1148
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1149
1149
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1150
1150
  * @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
1151
1151
  * @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
@@ -5146,7 +5146,7 @@ class htx extends htx$1 {
5146
5146
  * @param {string} type 'market' or 'limit'
5147
5147
  * @param {string} side 'buy' or 'sell'
5148
5148
  * @param {float} amount how much you want to trade in units of the base currency
5149
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
5149
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
5150
5150
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5151
5151
  * @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
5152
5152
  * @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
@@ -5273,7 +5273,7 @@ class htx extends htx$1 {
5273
5273
  * @param {string} type 'market' or 'limit'
5274
5274
  * @param {string} side 'buy' or 'sell'
5275
5275
  * @param {float} amount how much you want to trade in units of the base currency
5276
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
5276
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
5277
5277
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5278
5278
  * @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
5279
5279
  * @param {float} [params.trailingPercent] *contract only* the percent to trail away from the current market price
@@ -5381,7 +5381,7 @@ class htx extends htx$1 {
5381
5381
  * @param {string} type 'market' or 'limit'
5382
5382
  * @param {string} side 'buy' or 'sell'
5383
5383
  * @param {float} amount how much you want to trade in units of the base currency
5384
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
5384
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
5385
5385
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5386
5386
  * @param {float} [params.stopPrice] the price a trigger order is triggered at
5387
5387
  * @param {string} [params.triggerType] *contract trigger orders only* ge: greater than or equal to, le: less than or equal to
@@ -1388,7 +1388,7 @@ class huobijp extends huobijp$1 {
1388
1388
  * @param {string} type 'market' or 'limit'
1389
1389
  * @param {string} side 'buy' or 'sell'
1390
1390
  * @param {float} amount how much of currency you want to trade in units of base currency
1391
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1391
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1392
1392
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1393
1393
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1394
1394
  */
@@ -1016,7 +1016,7 @@ class hyperliquid extends hyperliquid$1 {
1016
1016
  * @param {string} type 'market' or 'limit'
1017
1017
  * @param {string} side 'buy' or 'sell'
1018
1018
  * @param {float} amount how much of currency you want to trade in units of base currency
1019
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1019
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1020
1020
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1021
1021
  * @param {string} [params.timeInForce] 'Gtc', 'Ioc', 'Alo'
1022
1022
  * @param {bool} [params.postOnly] true or false whether the order is post-only
@@ -1432,7 +1432,7 @@ class hyperliquid extends hyperliquid$1 {
1432
1432
  * @param {string} type 'market' or 'limit'
1433
1433
  * @param {string} side 'buy' or 'sell'
1434
1434
  * @param {float} amount how much of currency you want to trade in units of base currency
1435
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
1435
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1436
1436
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1437
1437
  * @param {string} [params.timeInForce] 'Gtc', 'Ioc', 'Alo'
1438
1438
  * @param {bool} [params.postOnly] true or false whether the order is post-only
@@ -1166,7 +1166,7 @@ class idex extends idex$1 {
1166
1166
  * @param {string} type 'market' or 'limit'
1167
1167
  * @param {string} side 'buy' or 'sell'
1168
1168
  * @param {float} amount how much of currency you want to trade in units of base currency
1169
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1169
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1170
1170
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1171
1171
  * @param {bool} [params.test] set to true to test an order, no order will be created but the request will be validated
1172
1172
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -698,7 +698,7 @@ class independentreserve extends independentreserve$1 {
698
698
  * @param {string} type 'market' or 'limit'
699
699
  * @param {string} side 'buy' or 'sell'
700
700
  * @param {float} amount how much of currency you want to trade in units of base currency
701
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
701
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
702
702
  * @param {object} [params] extra parameters specific to the exchange API endpoint
703
703
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
704
704
  */
@@ -828,7 +828,7 @@ class indodax extends indodax$1 {
828
828
  * @param {string} type 'market' or 'limit'
829
829
  * @param {string} side 'buy' or 'sell'
830
830
  * @param {float} amount how much of currency you want to trade in units of base currency
831
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
831
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
832
832
  * @param {object} [params] extra parameters specific to the exchange API endpoint
833
833
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
834
834
  */
@@ -1391,7 +1391,7 @@ class kraken extends kraken$1 {
1391
1391
  * @param {string} type 'market' or 'limit'
1392
1392
  * @param {string} side 'buy' or 'sell'
1393
1393
  * @param {float} amount how much of currency you want to trade in units of base currency
1394
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1394
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1395
1395
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1396
1396
  * @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
1397
1397
  * @param {bool} [params.reduceOnly] *margin only* indicates if this order is to reduce the size of a position
@@ -1837,7 +1837,7 @@ class kraken extends kraken$1 {
1837
1837
  * @param {string} type 'market' or 'limit'
1838
1838
  * @param {string} side 'buy' or 'sell'
1839
1839
  * @param {float} amount how much of the currency you want to trade in units of the base currency
1840
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1840
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1841
1841
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1842
1842
  * @param {float} [params.stopLossPrice] *margin only* the price that a stop loss order is triggered at
1843
1843
  * @param {float} [params.takeProfitPrice] *margin only* the price that a take profit order is triggered at
@@ -104,7 +104,7 @@ class kucoin extends kucoin$1 {
104
104
  'fetchWithdrawals': true,
105
105
  'repayCrossMargin': true,
106
106
  'repayIsolatedMargin': true,
107
- 'setLeverage': false,
107
+ 'setLeverage': true,
108
108
  'setMarginMode': false,
109
109
  'setPositionMode': false,
110
110
  'signIn': false,
@@ -200,6 +200,7 @@ class kucoin extends kucoin$1 {
200
200
  'market/orderbook/level3': 3,
201
201
  'hf/orders/active': 2,
202
202
  'hf/orders/active/symbols': 2,
203
+ 'hf/margin/order/active/symbols': 2,
203
204
  'hf/orders/done': 2,
204
205
  'hf/orders/{orderId}': 2,
205
206
  'hf/orders/client-order/{clientOid}': 2,
@@ -228,6 +229,7 @@ class kucoin extends kucoin$1 {
228
229
  'margin/currencies': 20,
229
230
  'risk/limit/strategy': 20,
230
231
  'isolated/symbols': 20,
232
+ 'margin/symbols': 5,
231
233
  'isolated/account/{symbol}': 50,
232
234
  'margin/borrow': 15,
233
235
  'margin/repay': 15,
@@ -276,7 +278,8 @@ class kucoin extends kucoin$1 {
276
278
  'redeem': 15,
277
279
  'lend/purchase/update': 10,
278
280
  // ws
279
- 'bullet-private': 10, // 10SW
281
+ 'bullet-private': 10,
282
+ 'position/update-user-leverage': 5,
280
283
  },
281
284
  'delete': {
282
285
  // account
@@ -663,6 +666,7 @@ class kucoin extends kucoin$1 {
663
666
  'oco/orders': 'v3',
664
667
  // margin trading
665
668
  'hf/margin/orders/active': 'v3',
669
+ 'hf/margin/order/active/symbols': 'v3',
666
670
  'hf/margin/orders/done': 'v3',
667
671
  'hf/margin/orders/{orderId}': 'v3',
668
672
  'hf/margin/orders/client-order/{clientOid}': 'v3',
@@ -676,6 +680,7 @@ class kucoin extends kucoin$1 {
676
680
  'project/marketInterestRate': 'v3',
677
681
  'redeem/orders': 'v3',
678
682
  'purchase/orders': 'v3',
683
+ 'margin/symbols': 'v3',
679
684
  },
680
685
  'POST': {
681
686
  // account
@@ -695,6 +700,7 @@ class kucoin extends kucoin$1 {
695
700
  'purchase': 'v3',
696
701
  'redeem': 'v3',
697
702
  'lend/purchase/update': 'v3',
703
+ 'position/update-user-leverage': 'v3',
698
704
  },
699
705
  'DELETE': {
700
706
  // account
@@ -1017,7 +1023,10 @@ class kucoin extends kucoin$1 {
1017
1023
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1018
1024
  * @returns {object[]} an array of objects representing market data
1019
1025
  */
1020
- const response = await this.publicGetSymbols(params);
1026
+ let fetchTickersFees = undefined;
1027
+ [fetchTickersFees, params] = this.handleOptionAndParams(params, 'fetchMarkets', 'fetchTickersFees', true);
1028
+ const promises = [];
1029
+ promises.push(this.publicGetSymbols(params));
1021
1030
  //
1022
1031
  // {
1023
1032
  // "code": "200000",
@@ -1040,60 +1049,100 @@ class kucoin extends kucoin$1 {
1040
1049
  // "isMarginEnabled": true,
1041
1050
  // "enableTrading": true
1042
1051
  // },
1043
- // ]
1044
- // }
1045
1052
  //
1046
- const data = this.safeList(response, 'data');
1047
- const options = this.safeDict(this.options, 'fetchMarkets', {});
1048
- const fetchTickersFees = this.safeBool(options, 'fetchTickersFees', true);
1049
- let tickersResponse = {};
1053
+ const requestMarginables = this.checkRequiredCredentials(false);
1054
+ if (requestMarginables) {
1055
+ promises.push(this.privateGetMarginSymbols(params)); // cross margin symbols
1056
+ //
1057
+ // {
1058
+ // "code": "200000",
1059
+ // "data": {
1060
+ // "timestamp": 1719393213421,
1061
+ // "items": [
1062
+ // {
1063
+ // // same object as in market, with one additional field:
1064
+ // "minFunds": "0.1"
1065
+ // },
1066
+ //
1067
+ promises.push(this.privateGetIsolatedSymbols(params)); // isolated margin symbols
1068
+ //
1069
+ // {
1070
+ // "code": "200000",
1071
+ // "data": [
1072
+ // {
1073
+ // "symbol": "NKN-USDT",
1074
+ // "symbolName": "NKN-USDT",
1075
+ // "baseCurrency": "NKN",
1076
+ // "quoteCurrency": "USDT",
1077
+ // "maxLeverage": 5,
1078
+ // "flDebtRatio": "0.97",
1079
+ // "tradeEnable": true,
1080
+ // "autoRenewMaxDebtRatio": "0.96",
1081
+ // "baseBorrowEnable": true,
1082
+ // "quoteBorrowEnable": true,
1083
+ // "baseTransferInEnable": true,
1084
+ // "quoteTransferInEnable": true,
1085
+ // "baseBorrowCoefficient": "1",
1086
+ // "quoteBorrowCoefficient": "1"
1087
+ // },
1088
+ //
1089
+ }
1050
1090
  if (fetchTickersFees) {
1051
- tickersResponse = await this.publicGetMarketAllTickers(params);
1091
+ promises.push(this.publicGetMarketAllTickers(params));
1092
+ //
1093
+ // {
1094
+ // "code": "200000",
1095
+ // "data": {
1096
+ // "time":1602832092060,
1097
+ // "ticker":[
1098
+ // {
1099
+ // "symbol": "BTC-USDT", // symbol
1100
+ // "symbolName":"BTC-USDT", // Name of trading pairs, it would change after renaming
1101
+ // "buy": "11328.9", // bestAsk
1102
+ // "sell": "11329", // bestBid
1103
+ // "changeRate": "-0.0055", // 24h change rate
1104
+ // "changePrice": "-63.6", // 24h change price
1105
+ // "high": "11610", // 24h highest price
1106
+ // "low": "11200", // 24h lowest price
1107
+ // "vol": "2282.70993217", // 24h volume,the aggregated trading volume in BTC
1108
+ // "volValue": "25984946.157790431", // 24h total, the trading volume in quote currency of last 24 hours
1109
+ // "last": "11328.9", // last price
1110
+ // "averagePrice": "11360.66065903", // 24h average transaction price yesterday
1111
+ // "takerFeeRate": "0.001", // Basic Taker Fee
1112
+ // "makerFeeRate": "0.001", // Basic Maker Fee
1113
+ // "takerCoefficient": "1", // Taker Fee Coefficient
1114
+ // "makerCoefficient": "1" // Maker Fee Coefficient
1115
+ // }
1116
+ //
1052
1117
  }
1053
- //
1054
- // {
1055
- // "code": "200000",
1056
- // "data": {
1057
- // "time":1602832092060,
1058
- // "ticker":[
1059
- // {
1060
- // "symbol": "BTC-USDT", // symbol
1061
- // "symbolName":"BTC-USDT", // Name of trading pairs, it would change after renaming
1062
- // "buy": "11328.9", // bestAsk
1063
- // "sell": "11329", // bestBid
1064
- // "changeRate": "-0.0055", // 24h change rate
1065
- // "changePrice": "-63.6", // 24h change price
1066
- // "high": "11610", // 24h highest price
1067
- // "low": "11200", // 24h lowest price
1068
- // "vol": "2282.70993217", // 24h volume,the aggregated trading volume in BTC
1069
- // "volValue": "25984946.157790431", // 24h total, the trading volume in quote currency of last 24 hours
1070
- // "last": "11328.9", // last price
1071
- // "averagePrice": "11360.66065903", // 24h average transaction price yesterday
1072
- // "takerFeeRate": "0.001", // Basic Taker Fee
1073
- // "makerFeeRate": "0.001", // Basic Maker Fee
1074
- // "takerCoefficient": "1", // Taker Fee Coefficient
1075
- // "makerCoefficient": "1" // Maker Fee Coefficient
1076
- // }
1077
- // ]
1078
- // }
1079
- // }
1080
- //
1081
- const tickersData = this.safeDict(tickersResponse, 'data', {});
1082
- const tickers = this.safeList(tickersData, 'ticker', []);
1083
- const tickersByMarketId = this.indexBy(tickers, 'symbol');
1118
+ const responses = await Promise.all(promises);
1119
+ const symbolsData = this.safeList(responses[0], 'data');
1120
+ const crossData = requestMarginables ? this.safeDict(responses[1], 'data', {}) : {};
1121
+ const crossItems = this.safeList(crossData, 'items', []);
1122
+ const crossById = this.indexBy(crossItems, 'symbol');
1123
+ const isolatedData = requestMarginables ? responses[2] : {};
1124
+ const isolatedItems = this.safeList(isolatedData, 'data', []);
1125
+ const isolatedById = this.indexBy(isolatedItems, 'symbol');
1126
+ const tickersIdx = requestMarginables ? 3 : 1;
1127
+ const tickersResponse = this.safeDict(responses, tickersIdx, {});
1128
+ const tickerItems = this.safeList(this.safeDict(tickersResponse, 'data', {}), 'ticker', []);
1129
+ const tickersById = this.indexBy(tickerItems, 'symbol');
1084
1130
  const result = [];
1085
- for (let i = 0; i < data.length; i++) {
1086
- const market = data[i];
1131
+ for (let i = 0; i < symbolsData.length; i++) {
1132
+ const market = symbolsData[i];
1087
1133
  const id = this.safeString(market, 'symbol');
1088
1134
  const [baseId, quoteId] = id.split('-');
1089
1135
  const base = this.safeCurrencyCode(baseId);
1090
1136
  const quote = this.safeCurrencyCode(quoteId);
1091
1137
  // const quoteIncrement = this.safeNumber (market, 'quoteIncrement');
1092
- const ticker = this.safeDict(tickersByMarketId, id, {});
1138
+ const ticker = this.safeDict(tickersById, id, {});
1093
1139
  const makerFeeRate = this.safeString(ticker, 'makerFeeRate');
1094
1140
  const takerFeeRate = this.safeString(ticker, 'takerFeeRate');
1095
1141
  const makerCoefficient = this.safeString(ticker, 'makerCoefficient');
1096
1142
  const takerCoefficient = this.safeString(ticker, 'takerCoefficient');
1143
+ const hasCrossMargin = (id in crossById);
1144
+ const hasIsolatedMargin = (id in isolatedById);
1145
+ const isMarginable = this.safeBool(market, 'isMarginEnabled', false) || hasCrossMargin || hasIsolatedMargin;
1097
1146
  result.push({
1098
1147
  'id': id,
1099
1148
  'symbol': base + '/' + quote,
@@ -1105,7 +1154,11 @@ class kucoin extends kucoin$1 {
1105
1154
  'settleId': undefined,
1106
1155
  'type': 'spot',
1107
1156
  'spot': true,
1108
- 'margin': this.safeBool(market, 'isMarginEnabled'),
1157
+ 'margin': isMarginable,
1158
+ 'marginMode': {
1159
+ 'cross': hasCrossMargin,
1160
+ 'isolated': hasIsolatedMargin,
1161
+ },
1109
1162
  'swap': false,
1110
1163
  'future': false,
1111
1164
  'option': false,
@@ -1990,7 +2043,7 @@ class kucoin extends kucoin$1 {
1990
2043
  * @param {string} type 'limit' or 'market'
1991
2044
  * @param {string} side 'buy' or 'sell'
1992
2045
  * @param {float} amount the amount of currency to trade
1993
- * @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
2046
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1994
2047
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1995
2048
  * @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
1996
2049
  * @param {string} [params.marginMode] 'cross', // cross (cross mode) and isolated (isolated mode), set to cross by default, the isolated mode will be released soon, stay tuned
@@ -2282,7 +2335,7 @@ class kucoin extends kucoin$1 {
2282
2335
  * @param {string} type not used
2283
2336
  * @param {string} side not used
2284
2337
  * @param {float} amount how much of the currency you want to trade in units of the base currency
2285
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
2338
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2286
2339
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2287
2340
  * @param {string} [params.clientOrderId] client order id, defaults to id if not passed
2288
2341
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -4802,6 +4855,42 @@ class kucoin extends kucoin$1 {
4802
4855
  const data = this.safeList(response, 'data', []);
4803
4856
  return this.parseDepositWithdrawFees(data, codes, 'currency');
4804
4857
  }
4858
+ async setLeverage(leverage, symbol = undefined, params = {}) {
4859
+ /**
4860
+ * @method
4861
+ * @name kucoin#setLeverage
4862
+ * @description set the level of leverage for a market
4863
+ * @see https://www.kucoin.com/docs/rest/margin-trading/margin-trading-v3-/modify-leverage-multiplier
4864
+ * @param {string} symbol unified market symbol
4865
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
4866
+ * @returns {object} response from the exchange
4867
+ */
4868
+ await this.loadMarkets();
4869
+ let market = undefined;
4870
+ let marketType = undefined;
4871
+ [marketType, params] = this.handleMarketTypeAndParams('setLeverage', undefined, params);
4872
+ if ((symbol !== undefined) || marketType !== 'spot') {
4873
+ market = this.market(symbol);
4874
+ if (market['contract']) {
4875
+ throw new errors.NotSupported(this.id + ' setLeverage currently supports only spot margin');
4876
+ }
4877
+ }
4878
+ let marginMode = undefined;
4879
+ [marginMode, params] = this.handleMarginModeAndParams('setLeverage', params);
4880
+ if (marginMode === undefined) {
4881
+ throw new errors.ArgumentsRequired(this.id + ' setLeverage requires a marginMode parameter');
4882
+ }
4883
+ const request = {};
4884
+ if (marginMode === 'isolated' && symbol === undefined) {
4885
+ throw new errors.ArgumentsRequired(this.id + ' setLeverage requires a symbol parameter for isolated margin');
4886
+ }
4887
+ if (symbol !== undefined) {
4888
+ request['symbol'] = market['id'];
4889
+ }
4890
+ request['leverage'] = leverage.toString();
4891
+ request['isIsolated'] = (marginMode === 'isolated');
4892
+ return await this.privatePostPositionUpdateUserLeverage(this.extend(request, params));
4893
+ }
4805
4894
  sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
4806
4895
  //
4807
4896
  // the v2 URL is https://openapi-v2.kucoin.com/api/v1/endpoint
@@ -1353,7 +1353,7 @@ class kucoinfutures extends kucoinfutures$1 {
1353
1353
  * @param {string} type 'limit' or 'market'
1354
1354
  * @param {string} side 'buy' or 'sell'
1355
1355
  * @param {float} amount the amount of currency to trade
1356
- * @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
1356
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1357
1357
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1358
1358
  * @param {float} [params.triggerPrice] The price a trigger order is triggered at
1359
1359
  * @param {float} [params.stopLossPrice] price to trigger stop-loss orders
@@ -944,7 +944,7 @@ class kuna extends kuna$1 {
944
944
  * @param {string} type 'market' or 'limit'
945
945
  * @param {string} side 'buy' or 'sell'
946
946
  * @param {float} amount how much of currency you want to trade in units of base currency
947
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
947
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
948
948
  * @param {object} [params] extra parameters specific to the exchange API endpoint
949
949
  * @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
950
950
  *
@@ -1282,7 +1282,7 @@ class latoken extends latoken$1 {
1282
1282
  * @param {string} type 'market' or 'limit'
1283
1283
  * @param {string} side 'buy' or 'sell'
1284
1284
  * @param {float} amount how much of currency you want to trade in units of base currency
1285
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1285
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1286
1286
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1287
1287
  * @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
1288
1288
  *
@@ -1311,7 +1311,7 @@ class lbank extends lbank$1 {
1311
1311
  * @param {string} type 'market' or 'limit'
1312
1312
  * @param {string} side 'buy' or 'sell'
1313
1313
  * @param {float} amount how much of currency you want to trade in units of base currency
1314
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1314
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1315
1315
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1316
1316
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1317
1317
  */
@@ -914,7 +914,7 @@ class luno extends luno$1 {
914
914
  * @param {string} type 'market' or 'limit'
915
915
  * @param {string} side 'buy' or 'sell'
916
916
  * @param {float} amount how much of currency you want to trade in units of base currency
917
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
917
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
918
918
  * @param {object} [params] extra parameters specific to the exchange API endpoint
919
919
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
920
920
  */
@@ -793,7 +793,7 @@ class lykke extends lykke$1 {
793
793
  * @param {string} type 'market' or 'limit'
794
794
  * @param {string} side 'buy' or 'sell'
795
795
  * @param {float} amount how much of currency you want to trade in units of base currency
796
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
796
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
797
797
  * @param {object} [params] extra parameters specific to the exchange API endpoint
798
798
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
799
799
  */
@@ -439,7 +439,7 @@ class mercado extends mercado$1 {
439
439
  * @param {string} type 'market' or 'limit'
440
440
  * @param {string} side 'buy' or 'sell'
441
441
  * @param {float} amount how much of currency you want to trade in units of base currency
442
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
442
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
443
443
  * @param {object} [params] extra parameters specific to the exchange API endpoint
444
444
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
445
445
  */
@@ -2209,7 +2209,7 @@ class mexc extends mexc$1 {
2209
2209
  * @param {string} type 'market' or 'limit'
2210
2210
  * @param {string} side 'buy' or 'sell'
2211
2211
  * @param {float} amount how much of currency you want to trade in units of base currency
2212
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2212
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2213
2213
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2214
2214
  * @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
2215
2215
  * @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
@@ -1342,7 +1342,7 @@ class ndax extends ndax$1 {
1342
1342
  * @param {string} type 'market' or 'limit'
1343
1343
  * @param {string} side 'buy' or 'sell'
1344
1344
  * @param {float} amount how much of currency you want to trade in units of base currency
1345
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1345
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1346
1346
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1347
1347
  * @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
1348
1348
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -738,7 +738,7 @@ class novadax extends novadax$1 {
738
738
  * @param {string} type 'market' or 'limit'
739
739
  * @param {string} side 'buy' or 'sell'
740
740
  * @param {float} amount how much you want to trade in units of the base currency
741
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
741
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
742
742
  * @param {object} [params] extra parameters specific to the exchange API endpoint
743
743
  * @param {float} [params.cost] for spot market buy orders, the quote quantity that can be used as an alternative for the amount
744
744
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -630,7 +630,7 @@ class oceanex extends oceanex$1 {
630
630
  * @param {string} type 'market' or 'limit'
631
631
  * @param {string} side 'buy' or 'sell'
632
632
  * @param {float} amount how much of currency you want to trade in units of base currency
633
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
633
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
634
634
  * @param {object} [params] extra parameters specific to the exchange API endpoint
635
635
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
636
636
  */
@@ -1330,7 +1330,7 @@ class okcoin extends okcoin$1 {
1330
1330
  * @param {string} type 'market' or 'limit'
1331
1331
  * @param {string} side 'buy' or 'sell'
1332
1332
  * @param {float} amount how much of currency you want to trade in units of base currency
1333
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1333
+ * @param {float} price the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1334
1334
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1335
1335
  * @param {bool} [params.reduceOnly] MARGIN orders only, or swap/future orders in net mode
1336
1336
  * @param {bool} [params.postOnly] true to place a post only order
@@ -2913,7 +2913,7 @@ class okx extends okx$1 {
2913
2913
  * @param {string} type 'market' or 'limit'
2914
2914
  * @param {string} side 'buy' or 'sell'
2915
2915
  * @param {float} amount how much of currency you want to trade in units of base currency
2916
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2916
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2917
2917
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2918
2918
  * @param {bool} [params.reduceOnly] a mark to reduce the position size for margin, swap and future orders
2919
2919
  * @param {bool} [params.postOnly] true to place a post only order
@@ -3123,7 +3123,7 @@ class okx extends okx$1 {
3123
3123
  * @param {string} type 'market' or 'limit'
3124
3124
  * @param {string} side 'buy' or 'sell'
3125
3125
  * @param {float} amount how much of the currency you want to trade in units of the base currency
3126
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
3126
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
3127
3127
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3128
3128
  * @param {string} [params.clientOrderId] client order id, uses id if not passed
3129
3129
  * @param {float} [params.stopLossPrice] stop loss trigger price
@@ -5526,7 +5526,7 @@ class okx extends okx$1 {
5526
5526
  for (let i = 0; i < positions.length; i++) {
5527
5527
  result.push(this.parsePosition(positions[i]));
5528
5528
  }
5529
- return this.filterByArrayPositions(result, 'symbol', symbols, false);
5529
+ return this.filterByArrayPositions(result, 'symbol', this.marketSymbols(symbols), false);
5530
5530
  }
5531
5531
  async fetchPositionsForSymbol(symbol, params = {}) {
5532
5532
  /**
@@ -1501,7 +1501,7 @@ class onetrading extends onetrading$1 {
1501
1501
  * @param {string} type 'market' or 'limit'
1502
1502
  * @param {string} side 'buy' or 'sell'
1503
1503
  * @param {float} amount how much of currency you want to trade in units of base currency
1504
- * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1504
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1505
1505
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1506
1506
  * @param {float} [params.triggerPrice] onetrading only does stop limit orders and does not do stop market
1507
1507
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}