ccxt 4.1.55 → 4.1.57

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 (328) hide show
  1. package/.git-templates/hooks/pre-push +2 -2
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +6 -6
  4. package/build.sh +30 -8
  5. package/dist/ccxt.browser.js +5592 -4907
  6. package/dist/ccxt.browser.min.js +13 -13
  7. package/dist/cjs/ccxt.js +1 -1
  8. package/dist/cjs/src/ace.js +17 -13
  9. package/dist/cjs/src/alpaca.js +6 -6
  10. package/dist/cjs/src/ascendex.js +35 -29
  11. package/dist/cjs/src/base/Exchange.js +39 -26
  12. package/dist/cjs/src/base/Precise.js +1 -3
  13. package/dist/cjs/src/bigone.js +24 -20
  14. package/dist/cjs/src/binance.js +97 -76
  15. package/dist/cjs/src/bingx.js +63 -44
  16. package/dist/cjs/src/bit2c.js +18 -15
  17. package/dist/cjs/src/bitbank.js +17 -15
  18. package/dist/cjs/src/bitbns.js +28 -18
  19. package/dist/cjs/src/bitfinex.js +23 -21
  20. package/dist/cjs/src/bitfinex2.js +32 -28
  21. package/dist/cjs/src/bitflyer.js +28 -20
  22. package/dist/cjs/src/bitforex.js +25 -18
  23. package/dist/cjs/src/bitget.js +184 -147
  24. package/dist/cjs/src/bithumb.js +23 -16
  25. package/dist/cjs/src/bitmart.js +129 -94
  26. package/dist/cjs/src/bitmex.js +104 -64
  27. package/dist/cjs/src/bitopro.js +38 -26
  28. package/dist/cjs/src/bitpanda.js +24 -23
  29. package/dist/cjs/src/bitrue.js +33 -24
  30. package/dist/cjs/src/bitso.js +24 -23
  31. package/dist/cjs/src/bitstamp.js +24 -23
  32. package/dist/cjs/src/bittrex.js +30 -29
  33. package/dist/cjs/src/bitvavo.js +38 -30
  34. package/dist/cjs/src/bl3p.js +11 -10
  35. package/dist/cjs/src/blockchaincom.js +20 -20
  36. package/dist/cjs/src/btcalpha.js +18 -17
  37. package/dist/cjs/src/btcbox.js +13 -12
  38. package/dist/cjs/src/btcmarkets.js +20 -19
  39. package/dist/cjs/src/btcturk.js +14 -13
  40. package/dist/cjs/src/bybit.js +84 -54
  41. package/dist/cjs/src/cex.js +16 -14
  42. package/dist/cjs/src/coinbase.js +29 -27
  43. package/dist/cjs/src/coinbasepro.js +27 -25
  44. package/dist/cjs/src/coincheck.js +15 -14
  45. package/dist/cjs/src/coinex.js +101 -78
  46. package/dist/cjs/src/coinlist.js +28 -27
  47. package/dist/cjs/src/coinmate.js +20 -17
  48. package/dist/cjs/src/coinone.js +21 -16
  49. package/dist/cjs/src/coinsph.js +37 -28
  50. package/dist/cjs/src/coinspot.js +12 -11
  51. package/dist/cjs/src/cryptocom.js +40 -202
  52. package/dist/cjs/src/currencycom.js +32 -25
  53. package/dist/cjs/src/delta.js +34 -28
  54. package/dist/cjs/src/deribit.js +39 -36
  55. package/dist/cjs/src/digifinex.js +64 -44
  56. package/dist/cjs/src/exmo.js +29 -27
  57. package/dist/cjs/src/gate.js +67 -53
  58. package/dist/cjs/src/gemini.js +23 -20
  59. package/dist/cjs/src/hitbtc.js +65 -56
  60. package/dist/cjs/src/hollaex.js +30 -27
  61. package/dist/cjs/src/htx.js +135 -143
  62. package/dist/cjs/src/huobijp.js +22 -20
  63. package/dist/cjs/src/idex.js +22 -21
  64. package/dist/cjs/src/independentreserve.js +15 -14
  65. package/dist/cjs/src/indodax.js +30 -26
  66. package/dist/cjs/src/kraken.js +29 -27
  67. package/dist/cjs/src/krakenfutures.js +29 -22
  68. package/dist/cjs/src/kucoin.js +48 -43
  69. package/dist/cjs/src/kucoinfutures.js +33 -28
  70. package/dist/cjs/src/kuna.js +25 -24
  71. package/dist/cjs/src/latoken.js +24 -22
  72. package/dist/cjs/src/lbank.js +45 -30
  73. package/dist/cjs/src/luno.js +22 -19
  74. package/dist/cjs/src/lykke.js +19 -17
  75. package/dist/cjs/src/mercado.js +30 -19
  76. package/dist/cjs/src/mexc.js +60 -49
  77. package/dist/cjs/src/ndax.js +23 -22
  78. package/dist/cjs/src/novadax.js +23 -22
  79. package/dist/cjs/src/oceanex.js +22 -19
  80. package/dist/cjs/src/okcoin.js +29 -23
  81. package/dist/cjs/src/okx.js +92 -84
  82. package/dist/cjs/src/p2b.js +80 -83
  83. package/dist/cjs/src/paymium.js +10 -10
  84. package/dist/cjs/src/phemex.js +63 -40
  85. package/dist/cjs/src/poloniex.js +22 -22
  86. package/dist/cjs/src/poloniexfutures.js +23 -19
  87. package/dist/cjs/src/pro/alpaca.js +5 -5
  88. package/dist/cjs/src/pro/ascendex.js +4 -4
  89. package/dist/cjs/src/pro/binance.js +16 -16
  90. package/dist/cjs/src/pro/bingx.js +1 -1
  91. package/dist/cjs/src/pro/bitfinex.js +4 -4
  92. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  93. package/dist/cjs/src/pro/bitget.js +7 -7
  94. package/dist/cjs/src/pro/bitmart.js +7 -5
  95. package/dist/cjs/src/pro/bitmex.js +6 -6
  96. package/dist/cjs/src/pro/bitopro.js +4 -4
  97. package/dist/cjs/src/pro/bitpanda.js +6 -6
  98. package/dist/cjs/src/pro/bitrue.js +2 -2
  99. package/dist/cjs/src/pro/bitstamp.js +6 -4
  100. package/dist/cjs/src/pro/bittrex.js +6 -6
  101. package/dist/cjs/src/pro/bitvavo.js +11 -7
  102. package/dist/cjs/src/pro/blockchaincom.js +8 -8
  103. package/dist/cjs/src/pro/bybit.js +7 -7
  104. package/dist/cjs/src/pro/cex.js +13 -9
  105. package/dist/cjs/src/pro/coinbase.js +5 -5
  106. package/dist/cjs/src/pro/coinbasepro.js +11 -10
  107. package/dist/cjs/src/pro/coinex.js +7 -9
  108. package/dist/cjs/src/pro/cryptocom.js +9 -9
  109. package/dist/cjs/src/pro/currencycom.js +4 -4
  110. package/dist/cjs/src/pro/deribit.js +6 -6
  111. package/dist/cjs/src/pro/exmo.js +12 -14
  112. package/dist/cjs/src/pro/gate.js +7 -7
  113. package/dist/cjs/src/pro/gemini.js +3 -3
  114. package/dist/cjs/src/pro/hitbtc.js +263 -4
  115. package/dist/cjs/src/pro/hollaex.js +5 -5
  116. package/dist/cjs/src/pro/htx.js +6 -6
  117. package/dist/cjs/src/pro/huobijp.js +3 -3
  118. package/dist/cjs/src/pro/idex.js +4 -4
  119. package/dist/cjs/src/pro/independentreserve.js +2 -2
  120. package/dist/cjs/src/pro/kraken.js +10 -10
  121. package/dist/cjs/src/pro/krakenfutures.js +41 -17
  122. package/dist/cjs/src/pro/kucoin.js +7 -7
  123. package/dist/cjs/src/pro/kucoinfutures.js +8 -6
  124. package/dist/cjs/src/pro/luno.js +2 -2
  125. package/dist/cjs/src/pro/mexc.js +6 -6
  126. package/dist/cjs/src/pro/ndax.js +3 -3
  127. package/dist/cjs/src/pro/okcoin.js +5 -5
  128. package/dist/cjs/src/pro/okx.js +12 -12
  129. package/dist/cjs/src/pro/phemex.js +6 -6
  130. package/dist/cjs/src/pro/poloniex.js +7 -7
  131. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  132. package/dist/cjs/src/pro/probit.js +6 -6
  133. package/dist/cjs/src/pro/upbit.js +3 -3
  134. package/dist/cjs/src/pro/wazirx.js +8 -8
  135. package/dist/cjs/src/pro/whitebit.js +12 -8
  136. package/dist/cjs/src/pro/woo.js +1 -1
  137. package/dist/cjs/src/probit.js +28 -23
  138. package/dist/cjs/src/tidex.js +16 -15
  139. package/dist/cjs/src/timex.js +19 -18
  140. package/dist/cjs/src/tokocrypto.js +27 -22
  141. package/dist/cjs/src/upbit.js +19 -19
  142. package/dist/cjs/src/wavesexchange.js +22 -19
  143. package/dist/cjs/src/wazirx.js +24 -17
  144. package/dist/cjs/src/whitebit.js +33 -27
  145. package/dist/cjs/src/woo.js +44 -34
  146. package/dist/cjs/src/yobit.js +25 -20
  147. package/dist/cjs/src/zaif.js +9 -9
  148. package/dist/cjs/src/zonda.js +18 -17
  149. package/js/ccxt.d.ts +1 -1
  150. package/js/ccxt.js +1 -1
  151. package/js/src/abstract/bitbank.d.ts +1 -0
  152. package/js/src/abstract/bybit.d.ts +1 -0
  153. package/js/src/abstract/cryptocom.d.ts +0 -20
  154. package/js/src/abstract/htx.d.ts +3 -0
  155. package/js/src/abstract/huobi.d.ts +3 -0
  156. package/js/src/abstract/huobipro.d.ts +3 -0
  157. package/js/src/abstract/okex.d.ts +3 -1
  158. package/js/src/abstract/okex5.d.ts +3 -1
  159. package/js/src/abstract/okx.d.ts +3 -1
  160. package/js/src/ace.js +18 -14
  161. package/js/src/alpaca.js +6 -6
  162. package/js/src/ascendex.js +35 -29
  163. package/js/src/base/Exchange.d.ts +37 -34
  164. package/js/src/base/Exchange.js +39 -26
  165. package/js/src/base/Precise.d.ts +4 -4
  166. package/js/src/base/Precise.js +1 -3
  167. package/js/src/base/functions/type.d.ts +25 -25
  168. package/js/src/base/types.d.ts +21 -14
  169. package/js/src/bigone.js +25 -21
  170. package/js/src/binance.d.ts +2 -2
  171. package/js/src/binance.js +97 -76
  172. package/js/src/bingx.js +63 -44
  173. package/js/src/bit2c.js +19 -16
  174. package/js/src/bitbank.js +17 -15
  175. package/js/src/bitbns.js +28 -18
  176. package/js/src/bitfinex.js +23 -21
  177. package/js/src/bitfinex2.js +32 -28
  178. package/js/src/bitflyer.js +28 -20
  179. package/js/src/bitforex.js +26 -19
  180. package/js/src/bitget.d.ts +25 -3
  181. package/js/src/bitget.js +184 -147
  182. package/js/src/bithumb.js +23 -16
  183. package/js/src/bitmart.d.ts +1 -1
  184. package/js/src/bitmart.js +129 -94
  185. package/js/src/bitmex.d.ts +2 -2
  186. package/js/src/bitmex.js +104 -64
  187. package/js/src/bitopro.js +38 -26
  188. package/js/src/bitpanda.js +24 -23
  189. package/js/src/bitrue.js +33 -24
  190. package/js/src/bitso.js +24 -23
  191. package/js/src/bitstamp.d.ts +2 -2
  192. package/js/src/bitstamp.js +24 -23
  193. package/js/src/bittrex.js +30 -29
  194. package/js/src/bitvavo.js +38 -30
  195. package/js/src/bl3p.js +11 -10
  196. package/js/src/blockchaincom.js +20 -20
  197. package/js/src/btcalpha.js +18 -17
  198. package/js/src/btcbox.js +13 -12
  199. package/js/src/btcmarkets.js +20 -19
  200. package/js/src/btcturk.js +14 -13
  201. package/js/src/bybit.d.ts +1 -1
  202. package/js/src/bybit.js +84 -54
  203. package/js/src/cex.js +16 -14
  204. package/js/src/coinbase.js +29 -27
  205. package/js/src/coinbasepro.js +27 -25
  206. package/js/src/coincheck.js +15 -14
  207. package/js/src/coinex.d.ts +1 -1
  208. package/js/src/coinex.js +101 -78
  209. package/js/src/coinlist.js +28 -27
  210. package/js/src/coinmate.js +21 -18
  211. package/js/src/coinone.js +21 -16
  212. package/js/src/coinsph.js +37 -28
  213. package/js/src/coinspot.js +12 -11
  214. package/js/src/cryptocom.d.ts +0 -23
  215. package/js/src/cryptocom.js +40 -202
  216. package/js/src/currencycom.js +32 -25
  217. package/js/src/delta.js +35 -29
  218. package/js/src/deribit.js +39 -36
  219. package/js/src/digifinex.d.ts +2 -2
  220. package/js/src/digifinex.js +65 -45
  221. package/js/src/exmo.js +29 -27
  222. package/js/src/gate.d.ts +1 -1
  223. package/js/src/gate.js +67 -53
  224. package/js/src/gemini.js +23 -20
  225. package/js/src/hitbtc.d.ts +1 -0
  226. package/js/src/hitbtc.js +65 -56
  227. package/js/src/hollaex.js +30 -27
  228. package/js/src/htx.d.ts +11 -3
  229. package/js/src/htx.js +135 -143
  230. package/js/src/huobijp.js +23 -21
  231. package/js/src/idex.js +22 -21
  232. package/js/src/independentreserve.js +15 -14
  233. package/js/src/indodax.js +30 -26
  234. package/js/src/kraken.js +29 -27
  235. package/js/src/krakenfutures.js +29 -22
  236. package/js/src/kucoin.d.ts +1 -1
  237. package/js/src/kucoin.js +48 -43
  238. package/js/src/kucoinfutures.js +33 -28
  239. package/js/src/kuna.js +25 -24
  240. package/js/src/latoken.js +25 -23
  241. package/js/src/lbank.js +46 -31
  242. package/js/src/luno.js +22 -19
  243. package/js/src/lykke.js +19 -17
  244. package/js/src/mercado.js +30 -19
  245. package/js/src/mexc.d.ts +1 -1
  246. package/js/src/mexc.js +60 -49
  247. package/js/src/ndax.js +23 -22
  248. package/js/src/novadax.js +23 -22
  249. package/js/src/oceanex.js +22 -19
  250. package/js/src/okcoin.js +29 -23
  251. package/js/src/okx.d.ts +2 -2
  252. package/js/src/okx.js +92 -84
  253. package/js/src/p2b.d.ts +8 -7
  254. package/js/src/p2b.js +80 -82
  255. package/js/src/paymium.js +10 -10
  256. package/js/src/phemex.js +63 -40
  257. package/js/src/poloniex.js +22 -22
  258. package/js/src/poloniexfutures.js +23 -19
  259. package/js/src/pro/alpaca.js +5 -5
  260. package/js/src/pro/ascendex.js +4 -4
  261. package/js/src/pro/binance.js +16 -16
  262. package/js/src/pro/bingx.js +1 -1
  263. package/js/src/pro/bitfinex.js +4 -4
  264. package/js/src/pro/bitfinex2.d.ts +1 -1
  265. package/js/src/pro/bitfinex2.js +6 -6
  266. package/js/src/pro/bitget.js +7 -7
  267. package/js/src/pro/bitmart.js +7 -5
  268. package/js/src/pro/bitmex.js +6 -6
  269. package/js/src/pro/bitopro.js +4 -4
  270. package/js/src/pro/bitpanda.js +6 -6
  271. package/js/src/pro/bitrue.js +2 -2
  272. package/js/src/pro/bitstamp.js +7 -5
  273. package/js/src/pro/bittrex.js +6 -6
  274. package/js/src/pro/bitvavo.js +12 -8
  275. package/js/src/pro/blockchaincom.js +8 -8
  276. package/js/src/pro/bybit.js +7 -7
  277. package/js/src/pro/cex.js +14 -10
  278. package/js/src/pro/coinbase.js +5 -5
  279. package/js/src/pro/coinbasepro.js +12 -11
  280. package/js/src/pro/coinex.js +7 -9
  281. package/js/src/pro/cryptocom.js +9 -9
  282. package/js/src/pro/currencycom.js +4 -4
  283. package/js/src/pro/deribit.js +6 -6
  284. package/js/src/pro/exmo.js +12 -14
  285. package/js/src/pro/gate.js +7 -7
  286. package/js/src/pro/gemini.js +3 -3
  287. package/js/src/pro/hitbtc.d.ts +8 -1
  288. package/js/src/pro/hitbtc.js +264 -5
  289. package/js/src/pro/hollaex.js +5 -5
  290. package/js/src/pro/htx.js +6 -6
  291. package/js/src/pro/huobijp.js +3 -3
  292. package/js/src/pro/idex.js +4 -4
  293. package/js/src/pro/independentreserve.js +2 -2
  294. package/js/src/pro/kraken.js +10 -10
  295. package/js/src/pro/krakenfutures.d.ts +1 -0
  296. package/js/src/pro/krakenfutures.js +42 -18
  297. package/js/src/pro/kucoin.js +7 -7
  298. package/js/src/pro/kucoinfutures.js +8 -6
  299. package/js/src/pro/luno.js +2 -2
  300. package/js/src/pro/mexc.js +6 -6
  301. package/js/src/pro/ndax.js +3 -3
  302. package/js/src/pro/okcoin.js +5 -5
  303. package/js/src/pro/okx.js +12 -12
  304. package/js/src/pro/phemex.js +6 -6
  305. package/js/src/pro/poloniex.js +7 -7
  306. package/js/src/pro/poloniexfutures.js +5 -5
  307. package/js/src/pro/probit.js +6 -6
  308. package/js/src/pro/upbit.js +3 -3
  309. package/js/src/pro/wazirx.js +8 -8
  310. package/js/src/pro/whitebit.js +13 -9
  311. package/js/src/pro/woo.js +1 -1
  312. package/js/src/probit.js +29 -24
  313. package/js/src/tidex.js +16 -15
  314. package/js/src/timex.js +19 -18
  315. package/js/src/tokocrypto.js +28 -23
  316. package/js/src/upbit.js +19 -19
  317. package/js/src/wavesexchange.js +23 -20
  318. package/js/src/wazirx.js +25 -18
  319. package/js/src/whitebit.js +33 -27
  320. package/js/src/woo.js +45 -35
  321. package/js/src/yobit.js +25 -20
  322. package/js/src/zaif.js +9 -9
  323. package/js/src/zonda.js +18 -17
  324. package/package.json +2 -2
  325. package/js/src/bitstamp1.d.ts +0 -28
  326. package/js/src/bitstamp1.js +0 -430
  327. package/js/src/lbank2.d.ts +0 -90
  328. package/js/src/lbank2.js +0 -2779
@@ -41,11 +41,11 @@ class hitbtc extends hitbtc$1 {
41
41
  'editOrder': true,
42
42
  'fetchAccounts': false,
43
43
  'fetchBalance': true,
44
- 'fetchBorrowRate': undefined,
45
44
  'fetchBorrowRateHistories': undefined,
46
45
  'fetchBorrowRateHistory': undefined,
47
- 'fetchBorrowRates': undefined,
48
46
  'fetchClosedOrders': true,
47
+ 'fetchCrossBorrowRate': false,
48
+ 'fetchCrossBorrowRates': false,
49
49
  'fetchCurrencies': true,
50
50
  'fetchDepositAddress': true,
51
51
  'fetchDeposits': true,
@@ -57,6 +57,8 @@ class hitbtc extends hitbtc$1 {
57
57
  'fetchFundingRateHistory': true,
58
58
  'fetchFundingRates': true,
59
59
  'fetchIndexOHLCV': true,
60
+ 'fetchIsolatedBorrowRate': false,
61
+ 'fetchIsolatedBorrowRates': false,
60
62
  'fetchLeverage': true,
61
63
  'fetchLeverageTiers': undefined,
62
64
  'fetchLiquidations': false,
@@ -905,7 +907,7 @@ class hitbtc extends hitbtc$1 {
905
907
  * @description create a currency deposit address
906
908
  * @param {string} code unified currency code of the currency for the deposit address
907
909
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
908
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
910
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
909
911
  */
910
912
  await this.loadMarkets();
911
913
  const currency = this.currency(code);
@@ -941,7 +943,7 @@ class hitbtc extends hitbtc$1 {
941
943
  * @description fetch the deposit address for a currency associated with this account
942
944
  * @param {string} code unified currency code
943
945
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
944
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
946
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
945
947
  */
946
948
  await this.loadMarkets();
947
949
  const currency = this.currency(code);
@@ -994,7 +996,7 @@ class hitbtc extends hitbtc$1 {
994
996
  * @name hitbtc#fetchBalance
995
997
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
996
998
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
997
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
999
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
998
1000
  */
999
1001
  const type = this.safeStringLower(params, 'type', 'spot');
1000
1002
  params = this.omit(params, ['type']);
@@ -1035,7 +1037,7 @@ class hitbtc extends hitbtc$1 {
1035
1037
  * @see https://api.hitbtc.com/#tickers
1036
1038
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1037
1039
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1038
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1040
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1039
1041
  */
1040
1042
  await this.loadMarkets();
1041
1043
  const market = this.market(symbol);
@@ -1066,7 +1068,7 @@ class hitbtc extends hitbtc$1 {
1066
1068
  * @see https://api.hitbtc.com/#tickers
1067
1069
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1068
1070
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1069
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1071
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1070
1072
  */
1071
1073
  await this.loadMarkets();
1072
1074
  symbols = this.marketSymbols(symbols);
@@ -1156,7 +1158,7 @@ class hitbtc extends hitbtc$1 {
1156
1158
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1157
1159
  * @param {int} [limit] the maximum amount of trades to fetch
1158
1160
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1159
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1161
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1160
1162
  */
1161
1163
  await this.loadMarkets();
1162
1164
  let market = undefined;
@@ -1201,7 +1203,7 @@ class hitbtc extends hitbtc$1 {
1201
1203
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1202
1204
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
1203
1205
  * @param {bool} [params.margin] true for fetching margin trades
1204
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1206
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1205
1207
  */
1206
1208
  await this.loadMarkets();
1207
1209
  let market = undefined;
@@ -1485,7 +1487,7 @@ class hitbtc extends hitbtc$1 {
1485
1487
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1486
1488
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1487
1489
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1488
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1490
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1489
1491
  */
1490
1492
  return await this.fetchTransactionsHelper('DEPOSIT,WITHDRAW', code, since, limit, params);
1491
1493
  }
@@ -1498,7 +1500,7 @@ class hitbtc extends hitbtc$1 {
1498
1500
  * @param {int} [since] the earliest time in ms to fetch deposits for
1499
1501
  * @param {int} [limit] the maximum number of deposits structures to retrieve
1500
1502
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1501
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1503
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1502
1504
  */
1503
1505
  return await this.fetchTransactionsHelper('DEPOSIT', code, since, limit, params);
1504
1506
  }
@@ -1511,7 +1513,7 @@ class hitbtc extends hitbtc$1 {
1511
1513
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
1512
1514
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
1513
1515
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1514
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1516
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1515
1517
  */
1516
1518
  return await this.fetchTransactionsHelper('WITHDRAW', code, since, limit, params);
1517
1519
  }
@@ -1524,7 +1526,7 @@ class hitbtc extends hitbtc$1 {
1524
1526
  * @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
1525
1527
  * @param {int} [limit] max number of entries per orderbook to return, default is undefined
1526
1528
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1527
- * @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
1529
+ * @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
1528
1530
  */
1529
1531
  await this.loadMarkets();
1530
1532
  const request = {};
@@ -1556,7 +1558,7 @@ class hitbtc extends hitbtc$1 {
1556
1558
  * @param {string} symbol unified symbol of the market to fetch the order book for
1557
1559
  * @param {int} [limit] the maximum amount of order book entries to return
1558
1560
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1559
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
1561
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1560
1562
  */
1561
1563
  await this.loadMarkets();
1562
1564
  const market = this.market(symbol);
@@ -1596,7 +1598,7 @@ class hitbtc extends hitbtc$1 {
1596
1598
  * @description fetch the trading fees for a market
1597
1599
  * @param {string} symbol unified market symbol
1598
1600
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1599
- * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
1601
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
1600
1602
  */
1601
1603
  await this.loadMarkets();
1602
1604
  const market = this.market(symbol);
@@ -1622,7 +1624,7 @@ class hitbtc extends hitbtc$1 {
1622
1624
  * @name hitbtc#fetchTradingFees
1623
1625
  * @description fetch the trading fees for multiple markets
1624
1626
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1625
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
1627
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
1626
1628
  */
1627
1629
  await this.loadMarkets();
1628
1630
  const [marketType, query] = this.handleMarketTypeAndParams('fetchTradingFees', undefined, params);
@@ -1772,7 +1774,7 @@ class hitbtc extends hitbtc$1 {
1772
1774
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1773
1775
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
1774
1776
  * @param {bool} [params.margin] true for fetching margin orders
1775
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1777
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1776
1778
  */
1777
1779
  await this.loadMarkets();
1778
1780
  let market = undefined;
@@ -1811,7 +1813,7 @@ class hitbtc extends hitbtc$1 {
1811
1813
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1812
1814
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
1813
1815
  * @param {bool} [params.margin] true for fetching a margin order
1814
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1816
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1815
1817
  */
1816
1818
  await this.loadMarkets();
1817
1819
  let market = undefined;
@@ -1867,7 +1869,7 @@ class hitbtc extends hitbtc$1 {
1867
1869
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1868
1870
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
1869
1871
  * @param {bool} [params.margin] true for fetching margin trades
1870
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1872
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1871
1873
  */
1872
1874
  await this.loadMarkets();
1873
1875
  let market = undefined;
@@ -1940,7 +1942,7 @@ class hitbtc extends hitbtc$1 {
1940
1942
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1941
1943
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
1942
1944
  * @param {bool} [params.margin] true for fetching open margin orders
1943
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1945
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1944
1946
  */
1945
1947
  await this.loadMarkets();
1946
1948
  let market = undefined;
@@ -1992,7 +1994,7 @@ class hitbtc extends hitbtc$1 {
1992
1994
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
1993
1995
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
1994
1996
  * @param {bool} [params.margin] true for fetching an open margin order
1995
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1997
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1996
1998
  */
1997
1999
  await this.loadMarkets();
1998
2000
  let market = undefined;
@@ -2025,7 +2027,7 @@ class hitbtc extends hitbtc$1 {
2025
2027
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2026
2028
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
2027
2029
  * @param {bool} [params.margin] true for canceling margin orders
2028
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2030
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2029
2031
  */
2030
2032
  await this.loadMarkets();
2031
2033
  let market = undefined;
@@ -2058,7 +2060,7 @@ class hitbtc extends hitbtc$1 {
2058
2060
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2059
2061
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported
2060
2062
  * @param {bool} [params.margin] true for canceling a margin order
2061
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2063
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2062
2064
  */
2063
2065
  await this.loadMarkets();
2064
2066
  let market = undefined;
@@ -2131,23 +2133,38 @@ class hitbtc extends hitbtc$1 {
2131
2133
  * @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
2132
2134
  * @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
2133
2135
  * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", "Day", "GTD"
2134
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2136
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2135
2137
  */
2136
2138
  await this.loadMarkets();
2137
2139
  const market = this.market(symbol);
2138
- const isLimit = (type === 'limit');
2139
- const reduceOnly = this.safeValue(params, 'reduceOnly');
2140
- const timeInForce = this.safeString(params, 'timeInForce');
2141
- const triggerPrice = this.safeNumberN(params, ['triggerPrice', 'stopPrice', 'stop_price']);
2140
+ let request = undefined;
2142
2141
  let marketType = undefined;
2143
2142
  [marketType, params] = this.handleMarketTypeAndParams('createOrder', market, params);
2144
2143
  let marginMode = undefined;
2145
2144
  [marginMode, params] = this.handleMarginModeAndParams('createOrder', params);
2145
+ [request, params] = this.createOrderRequest(market, marketType, type, side, amount, price, marginMode, params);
2146
+ let response = undefined;
2147
+ if (marketType === 'swap') {
2148
+ response = await this.privatePostFuturesOrder(this.extend(request, params));
2149
+ }
2150
+ else if ((marketType === 'margin') || (marginMode !== undefined)) {
2151
+ response = await this.privatePostMarginOrder(this.extend(request, params));
2152
+ }
2153
+ else {
2154
+ response = await this.privatePostSpotOrder(this.extend(request, params));
2155
+ }
2156
+ return this.parseOrder(response, market);
2157
+ }
2158
+ createOrderRequest(market, marketType, type, side, amount, price = undefined, marginMode = undefined, params = {}) {
2159
+ const isLimit = (type === 'limit');
2160
+ const reduceOnly = this.safeValue(params, 'reduceOnly');
2161
+ const timeInForce = this.safeString(params, 'timeInForce');
2162
+ const triggerPrice = this.safeNumberN(params, ['triggerPrice', 'stopPrice', 'stop_price']);
2146
2163
  const isPostOnly = this.isPostOnly(type === 'market', undefined, params);
2147
2164
  const request = {
2148
2165
  'type': type,
2149
2166
  'side': side,
2150
- 'quantity': this.amountToPrecision(symbol, amount),
2167
+ 'quantity': this.amountToPrecision(market['symbol'], amount),
2151
2168
  'symbol': market['id'],
2152
2169
  // 'client_order_id': 'r42gdPjNMZN-H_xs8RKl2wljg_dfgdg4', // Optional
2153
2170
  // 'time_in_force': 'GTC', // Optional GTC, IOC, FOK, Day, GTD
@@ -2179,7 +2196,7 @@ class hitbtc extends hitbtc$1 {
2179
2196
  if (price === undefined) {
2180
2197
  throw new errors.ExchangeError(this.id + ' createOrder() requires a price argument for limit orders');
2181
2198
  }
2182
- request['price'] = this.priceToPrecision(symbol, price);
2199
+ request['price'] = this.priceToPrecision(market['symbol'], price);
2183
2200
  }
2184
2201
  if ((timeInForce === 'GTD')) {
2185
2202
  const expireTime = this.safeString(params, 'expire_time');
@@ -2188,7 +2205,7 @@ class hitbtc extends hitbtc$1 {
2188
2205
  }
2189
2206
  }
2190
2207
  if (triggerPrice !== undefined) {
2191
- request['stop_price'] = this.priceToPrecision(symbol, triggerPrice);
2208
+ request['stop_price'] = this.priceToPrecision(market['symbol'], triggerPrice);
2192
2209
  if (isLimit) {
2193
2210
  request['type'] = 'stopLimit';
2194
2211
  }
@@ -2207,17 +2224,7 @@ class hitbtc extends hitbtc$1 {
2207
2224
  }
2208
2225
  request['margin_mode'] = marginMode;
2209
2226
  }
2210
- let response = undefined;
2211
- if (marketType === 'swap') {
2212
- response = await this.privatePostFuturesOrder(this.extend(request, params));
2213
- }
2214
- else if ((marketType === 'margin') || (marginMode !== undefined)) {
2215
- response = await this.privatePostMarginOrder(this.extend(request, params));
2216
- }
2217
- else {
2218
- response = await this.privatePostSpotOrder(this.extend(request, params));
2219
- }
2220
- return this.parseOrder(response, market);
2227
+ return [request, params];
2221
2228
  }
2222
2229
  parseOrderStatus(status) {
2223
2230
  const statuses = {
@@ -2438,7 +2445,7 @@ class hitbtc extends hitbtc$1 {
2438
2445
  * @param {string} fromAccount account to transfer from
2439
2446
  * @param {string} toAccount account to transfer to
2440
2447
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2441
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
2448
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
2442
2449
  */
2443
2450
  // account can be "spot", "wallet", or "derivatives"
2444
2451
  await this.loadMarkets();
@@ -2525,7 +2532,7 @@ class hitbtc extends hitbtc$1 {
2525
2532
  * @param {string} address the address to withdraw to
2526
2533
  * @param {string} tag
2527
2534
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2528
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2535
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2529
2536
  */
2530
2537
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2531
2538
  await this.loadMarkets();
@@ -2569,7 +2576,7 @@ class hitbtc extends hitbtc$1 {
2569
2576
  * @see https://api.hitbtc.com/#futures-info
2570
2577
  * @param {string[]} symbols unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
2571
2578
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2572
- * @returns {object} an array of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
2579
+ * @returns {object} an array of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
2573
2580
  */
2574
2581
  await this.loadMarkets();
2575
2582
  let market = undefined;
@@ -2623,11 +2630,11 @@ class hitbtc extends hitbtc$1 {
2623
2630
  * @description fetches historical funding rate prices
2624
2631
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
2625
2632
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
2626
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
2633
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
2627
2634
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2628
2635
  * @param {int} [params.until] timestamp in ms of the latest funding rate
2629
2636
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2630
- * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
2637
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
2631
2638
  */
2632
2639
  await this.loadMarkets();
2633
2640
  let paginate = false;
@@ -2705,7 +2712,7 @@ class hitbtc extends hitbtc$1 {
2705
2712
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2706
2713
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if this is set
2707
2714
  * @param {bool} [params.margin] true for fetching spot-margin positions
2708
- * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
2715
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2709
2716
  */
2710
2717
  await this.loadMarkets();
2711
2718
  const request = {};
@@ -2767,7 +2774,7 @@ class hitbtc extends hitbtc$1 {
2767
2774
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2768
2775
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to spot-margin endpoint if this is set
2769
2776
  * @param {bool} [params.margin] true for fetching a spot-margin position
2770
- * @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
2777
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2771
2778
  */
2772
2779
  await this.loadMarkets();
2773
2780
  let marketType = undefined;
@@ -2940,7 +2947,7 @@ class hitbtc extends hitbtc$1 {
2940
2947
  * @see https://api.hitbtc.com/#futures-info
2941
2948
  * @param {string} symbol Unified CCXT market symbol
2942
2949
  * @param {object} [params] exchange specific parameters
2943
- * @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
2950
+ * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=interest-history-structure}
2944
2951
  */
2945
2952
  await this.loadMarkets();
2946
2953
  const market = this.market(symbol);
@@ -2976,7 +2983,7 @@ class hitbtc extends hitbtc$1 {
2976
2983
  * @see https://api.hitbtc.com/#futures-info
2977
2984
  * @param {string} symbol unified market symbol
2978
2985
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2979
- * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
2986
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
2980
2987
  */
2981
2988
  await this.loadMarkets();
2982
2989
  const market = this.market(symbol);
@@ -3117,7 +3124,7 @@ class hitbtc extends hitbtc$1 {
3117
3124
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
3118
3125
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if this is set
3119
3126
  * @param {bool} [params.margin] true for reducing spot-margin
3120
- * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
3127
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
3121
3128
  */
3122
3129
  if (amount !== 0) {
3123
3130
  throw new errors.BadRequest(this.id + ' reduceMargin() on hitbtc requires the amount to be 0 and that will remove the entire margin amount');
@@ -3134,7 +3141,7 @@ class hitbtc extends hitbtc$1 {
3134
3141
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
3135
3142
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if this is set
3136
3143
  * @param {bool} [params.margin] true for adding spot-margin
3137
- * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
3144
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
3138
3145
  */
3139
3146
  return await this.modifyMarginHelper(symbol, amount, 'add', params);
3140
3147
  }
@@ -3147,7 +3154,7 @@ class hitbtc extends hitbtc$1 {
3147
3154
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
3148
3155
  * @param {string} [params.marginMode] 'cross' or 'isolated' only 'isolated' is supported, defaults to the spot-margin endpoint if this is set
3149
3156
  * @param {bool} [params.margin] true for fetching spot-margin leverage
3150
- * @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
3157
+ * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
3151
3158
  */
3152
3159
  await this.loadMarkets();
3153
3160
  const market = this.market(symbol);
@@ -3206,7 +3213,9 @@ class hitbtc extends hitbtc$1 {
3206
3213
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
3207
3214
  * @returns {object} response from the exchange
3208
3215
  */
3209
- this.checkRequiredSymbol('setLeverage', symbol);
3216
+ if (symbol === undefined) {
3217
+ throw new errors.ArgumentsRequired(this.id + ' setLeverage() requires a symbol argument');
3218
+ }
3210
3219
  await this.loadMarkets();
3211
3220
  if (params['margin_balance'] === undefined) {
3212
3221
  throw new errors.ArgumentsRequired(this.id + ' setLeverage() requires a margin_balance parameter that will transfer margin to the specified trading pair');
@@ -3236,7 +3245,7 @@ class hitbtc extends hitbtc$1 {
3236
3245
  * @see https://api.hitbtc.com/#currencies
3237
3246
  * @param {string[]|undefined} codes list of unified currency codes
3238
3247
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
3239
- * @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
3248
+ * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
3240
3249
  */
3241
3250
  await this.loadMarkets();
3242
3251
  const response = await this.publicGetPublicCurrency(params);