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
@@ -38,11 +38,11 @@ class whitebit extends whitebit$1 {
38
38
  'createStopOrder': true,
39
39
  'editOrder': false,
40
40
  'fetchBalance': true,
41
- 'fetchBorrowRate': false,
42
41
  'fetchBorrowRateHistories': false,
43
42
  'fetchBorrowRateHistory': false,
44
- 'fetchBorrowRates': false,
45
43
  'fetchClosedOrders': true,
44
+ 'fetchCrossBorrowRate': false,
45
+ 'fetchCrossBorrowRates': false,
46
46
  'fetchCurrencies': true,
47
47
  'fetchDeposit': true,
48
48
  'fetchDepositAddress': true,
@@ -54,6 +54,8 @@ class whitebit extends whitebit$1 {
54
54
  'fetchFundingRateHistory': false,
55
55
  'fetchFundingRates': true,
56
56
  'fetchIndexOHLCV': false,
57
+ 'fetchIsolatedBorrowRate': false,
58
+ 'fetchIsolatedBorrowRates': false,
57
59
  'fetchMarginMode': false,
58
60
  'fetchMarkets': true,
59
61
  'fetchMarkOHLCV': false,
@@ -454,7 +456,7 @@ class whitebit extends whitebit$1 {
454
456
  * @description please use fetchDepositWithdrawFees instead
455
457
  * @param {string[]|undefined} codes not used by fetchTransactionFees ()
456
458
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
457
- * @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
459
+ * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
458
460
  */
459
461
  await this.loadMarkets();
460
462
  const response = await this.v4PublicGetFee(params);
@@ -508,7 +510,7 @@ class whitebit extends whitebit$1 {
508
510
  * @description fetch deposit and withdraw fees
509
511
  * @param {string[]|undefined} codes not used by fetchDepositWithdrawFees ()
510
512
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
511
- * @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
513
+ * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
512
514
  */
513
515
  await this.loadMarkets();
514
516
  const response = await this.v4PublicGetFee(params);
@@ -656,7 +658,7 @@ class whitebit extends whitebit$1 {
656
658
  * @name whitebit#fetchTradingFees
657
659
  * @description fetch the trading fees for multiple markets
658
660
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
659
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
661
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
660
662
  */
661
663
  await this.loadMarkets();
662
664
  const response = await this.v4PublicGetAssets(params);
@@ -704,7 +706,7 @@ class whitebit extends whitebit$1 {
704
706
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
705
707
  * @param {string} symbol unified symbol of the market to fetch the ticker for
706
708
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
707
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
709
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
708
710
  */
709
711
  await this.loadMarkets();
710
712
  const market = this.market(symbol);
@@ -792,7 +794,7 @@ class whitebit extends whitebit$1 {
792
794
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
793
795
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
794
796
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
795
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
797
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
796
798
  */
797
799
  await this.loadMarkets();
798
800
  symbols = this.marketSymbols(symbols);
@@ -828,7 +830,7 @@ class whitebit extends whitebit$1 {
828
830
  * @param {string} symbol unified symbol of the market to fetch the order book for
829
831
  * @param {int} [limit] the maximum amount of order book entries to return
830
832
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
831
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
833
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
832
834
  */
833
835
  await this.loadMarkets();
834
836
  const market = this.market(symbol);
@@ -870,7 +872,7 @@ class whitebit extends whitebit$1 {
870
872
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
871
873
  * @param {int} [limit] the maximum amount of trades to fetch
872
874
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
873
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
875
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
874
876
  */
875
877
  await this.loadMarkets();
876
878
  const market = this.market(symbol);
@@ -901,7 +903,7 @@ class whitebit extends whitebit$1 {
901
903
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
902
904
  * @param {int} [limit] the maximum amount of trades to fetch
903
905
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
904
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
906
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
905
907
  */
906
908
  await this.loadMarkets();
907
909
  let market = undefined;
@@ -1117,7 +1119,7 @@ class whitebit extends whitebit$1 {
1117
1119
  * @name whitebit#fetchStatus
1118
1120
  * @description the latest known information on the availability of the exchange API
1119
1121
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1120
- * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
1122
+ * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
1121
1123
  */
1122
1124
  const response = await this.v4PublicGetPing(params);
1123
1125
  //
@@ -1161,7 +1163,7 @@ class whitebit extends whitebit$1 {
1161
1163
  * @param {float} amount how much of currency you want to trade in units of base currency
1162
1164
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1163
1165
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1164
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1166
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1165
1167
  */
1166
1168
  await this.loadMarkets();
1167
1169
  const market = this.market(symbol);
@@ -1240,9 +1242,11 @@ class whitebit extends whitebit$1 {
1240
1242
  * @param {string} id order id
1241
1243
  * @param {string} symbol unified symbol of the market the order was made in
1242
1244
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1243
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1245
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1244
1246
  */
1245
- this.checkRequiredSymbol('cancelOrder', symbol);
1247
+ if (symbol === undefined) {
1248
+ throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
1249
+ }
1246
1250
  await this.loadMarkets();
1247
1251
  const market = this.market(symbol);
1248
1252
  const request = {
@@ -1279,7 +1283,7 @@ class whitebit extends whitebit$1 {
1279
1283
  * @name whitebit#fetchBalance
1280
1284
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1281
1285
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1282
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1286
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1283
1287
  */
1284
1288
  await this.loadMarkets();
1285
1289
  const [marketType, query] = this.handleMarketTypeAndParams('fetchBalance', undefined, params);
@@ -1333,9 +1337,11 @@ class whitebit extends whitebit$1 {
1333
1337
  * @param {int} [since] the earliest time in ms to fetch open orders for
1334
1338
  * @param {int} [limit] the maximum number of open order structures to retrieve
1335
1339
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1336
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1340
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1337
1341
  */
1338
- this.checkRequiredSymbol('fetchOpenOrders', symbol);
1342
+ if (symbol === undefined) {
1343
+ throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
1344
+ }
1339
1345
  await this.loadMarkets();
1340
1346
  const market = this.market(symbol);
1341
1347
  const request = {
@@ -1376,7 +1382,7 @@ class whitebit extends whitebit$1 {
1376
1382
  * @param {int} [since] the earliest time in ms to fetch orders for
1377
1383
  * @param {int} [limit] the maximum number of orde structures to retrieve
1378
1384
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1379
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1385
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1380
1386
  */
1381
1387
  await this.loadMarkets();
1382
1388
  const request = {};
@@ -1537,7 +1543,7 @@ class whitebit extends whitebit$1 {
1537
1543
  * @param {int} [since] the earliest time in ms to fetch trades for
1538
1544
  * @param {int} [limit] the maximum number of trades to retrieve
1539
1545
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1540
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1546
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1541
1547
  */
1542
1548
  await this.loadMarkets();
1543
1549
  const request = {
@@ -1581,7 +1587,7 @@ class whitebit extends whitebit$1 {
1581
1587
  * @description fetch the deposit address for a currency associated with this account
1582
1588
  * @param {string} code unified currency code
1583
1589
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1584
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1590
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1585
1591
  */
1586
1592
  await this.loadMarkets();
1587
1593
  const currency = this.currency(code);
@@ -1682,7 +1688,7 @@ class whitebit extends whitebit$1 {
1682
1688
  * @param {string} fromAccount account to transfer from - main, spot, collateral
1683
1689
  * @param {string} toAccount account to transfer to - main, spot, collateral
1684
1690
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1685
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1691
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1686
1692
  */
1687
1693
  await this.loadMarkets();
1688
1694
  const currency = this.currency(code);
@@ -1728,7 +1734,7 @@ class whitebit extends whitebit$1 {
1728
1734
  * @param {string} address the address to withdraw to
1729
1735
  * @param {string} tag
1730
1736
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1731
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1737
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1732
1738
  */
1733
1739
  await this.loadMarkets();
1734
1740
  const currency = this.currency(code); // check if it has canDeposit
@@ -1852,7 +1858,7 @@ class whitebit extends whitebit$1 {
1852
1858
  * @param {string} id deposit id
1853
1859
  * @param {string} code not used by whitebit fetchDeposit ()
1854
1860
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1855
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1861
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1856
1862
  */
1857
1863
  await this.loadMarkets();
1858
1864
  let currency = undefined;
@@ -1917,7 +1923,7 @@ class whitebit extends whitebit$1 {
1917
1923
  * @param {int} [since] the earliest time in ms to fetch deposits for
1918
1924
  * @param {int} [limit] the maximum number of deposits structures to retrieve
1919
1925
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1920
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1926
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1921
1927
  */
1922
1928
  await this.loadMarkets();
1923
1929
  let currency = undefined;
@@ -1985,7 +1991,7 @@ class whitebit extends whitebit$1 {
1985
1991
  * @param {int} [since] the earliest time in ms to fetch borrrow interest for
1986
1992
  * @param {int} [limit] the maximum number of structures to retrieve
1987
1993
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
1988
- * @returns {object[]} a list of [borrow interest structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-interest-structure}
1994
+ * @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
1989
1995
  */
1990
1996
  await this.loadMarkets();
1991
1997
  const request = {};
@@ -2062,7 +2068,7 @@ class whitebit extends whitebit$1 {
2062
2068
  * @description fetch the current funding rate
2063
2069
  * @param {string} symbol unified market symbol
2064
2070
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
2065
- * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
2071
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
2066
2072
  */
2067
2073
  await this.loadMarkets();
2068
2074
  symbol = this.symbol(symbol);
@@ -2077,7 +2083,7 @@ class whitebit extends whitebit$1 {
2077
2083
  * @description fetch the funding rate for multiple markets
2078
2084
  * @param {string[]|undefined} symbols list of unified market symbols
2079
2085
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
2080
- * @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
2086
+ * @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
2081
2087
  */
2082
2088
  await this.loadMarkets();
2083
2089
  symbols = this.marketSymbols(symbols);
@@ -335,9 +335,18 @@ class woo extends woo$1 {
335
335
  parseMarket(market) {
336
336
  const marketId = this.safeString(market, 'symbol');
337
337
  const parts = marketId.split('_');
338
- let marketType = this.safeStringLower(parts, 0);
339
- const isSpot = marketType === 'spot';
340
- const isSwap = marketType === 'perp';
338
+ const first = this.safeString(parts, 0);
339
+ let marketType;
340
+ let spot = false;
341
+ let swap = false;
342
+ if (first === 'SPOT') {
343
+ spot = true;
344
+ marketType = 'spot';
345
+ }
346
+ else if (first === 'PERP') {
347
+ swap = true;
348
+ marketType = 'swap';
349
+ }
341
350
  const baseId = this.safeString(parts, 1);
342
351
  const quoteId = this.safeString(parts, 2);
343
352
  const base = this.safeCurrencyCode(baseId);
@@ -348,14 +357,13 @@ class woo extends woo$1 {
348
357
  let contractSize = undefined;
349
358
  let linear = undefined;
350
359
  let margin = true;
351
- const contract = isSwap;
360
+ const contract = swap;
352
361
  if (contract) {
353
362
  margin = false;
354
363
  settleId = this.safeString(parts, 2);
355
364
  settle = this.safeCurrencyCode(settleId);
356
365
  symbol = base + '/' + quote + ':' + settle;
357
366
  contractSize = this.parseNumber('1');
358
- marketType = 'swap';
359
367
  linear = true;
360
368
  }
361
369
  return {
@@ -368,9 +376,9 @@ class woo extends woo$1 {
368
376
  'quoteId': quoteId,
369
377
  'settleId': settleId,
370
378
  'type': marketType,
371
- 'spot': isSpot,
379
+ 'spot': spot,
372
380
  'margin': margin,
373
- 'swap': isSwap,
381
+ 'swap': swap,
374
382
  'future': false,
375
383
  'option': false,
376
384
  'active': undefined,
@@ -417,7 +425,7 @@ class woo extends woo$1 {
417
425
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
418
426
  * @param {int} [limit] the maximum amount of trades to fetch
419
427
  * @param {object} [params] extra parameters specific to the woo api endpoint
420
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
428
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
421
429
  */
422
430
  await this.loadMarkets();
423
431
  const market = this.market(symbol);
@@ -541,7 +549,7 @@ class woo extends woo$1 {
541
549
  * @description fetch the trading fees for multiple markets
542
550
  * @see https://docs.woo.org/#get-account-information-new
543
551
  * @param {object} [params] extra parameters specific to the woo api endpoint
544
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
552
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
545
553
  */
546
554
  await this.loadMarkets();
547
555
  const response = await this.v3PrivateGetAccountinfo(params);
@@ -745,7 +753,7 @@ class woo extends woo$1 {
745
753
  * @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
746
754
  * @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
747
755
  * @param {float} [params.algoType] 'STOP'or 'TRAILING_STOP' or 'OCO' or 'CLOSE_POSITION'
748
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
756
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
749
757
  */
750
758
  const reduceOnly = this.safeValue2(params, 'reduceOnly', 'reduce_only');
751
759
  const orderType = type.toUpperCase();
@@ -922,7 +930,7 @@ class woo extends woo$1 {
922
930
  * @param {float} [params.triggerPrice] The price a trigger order is triggered at
923
931
  * @param {float} [params.stopLossPrice] price to trigger stop-loss orders
924
932
  * @param {float} [params.takeProfitPrice] price to trigger take-profit orders
925
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
933
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
926
934
  */
927
935
  await this.loadMarkets();
928
936
  const market = this.market(symbol);
@@ -991,12 +999,12 @@ class woo extends woo$1 {
991
999
  * @param {string} symbol unified symbol of the market the order was made in
992
1000
  * @param {object} [params] extra parameters specific to the woo api endpoint
993
1001
  * @param {boolean} [params.stop] whether the order is a stop/algo order
994
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1002
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
995
1003
  */
996
1004
  const stop = this.safeValue(params, 'stop', false);
997
1005
  params = this.omit(params, 'stop');
998
- if (!stop) {
999
- this.checkRequiredSymbol('cancelOrder', symbol);
1006
+ if (!stop && (symbol === undefined)) {
1007
+ throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
1000
1008
  }
1001
1009
  await this.loadMarkets();
1002
1010
  let market = undefined;
@@ -1047,7 +1055,7 @@ class woo extends woo$1 {
1047
1055
  * @param {string} symbol unified market symbol
1048
1056
  * @param {object} [params] extra parameters specific to the woo api endpoint
1049
1057
  * @param {boolean} [params.stop] whether the order is a stop/algo order
1050
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1058
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1051
1059
  */
1052
1060
  await this.loadMarkets();
1053
1061
  const stop = this.safeValue(params, 'stop');
@@ -1055,7 +1063,9 @@ class woo extends woo$1 {
1055
1063
  if (stop) {
1056
1064
  return await this.v3PrivateDeleteAlgoOrdersPending(params);
1057
1065
  }
1058
- this.checkRequiredSymbol('cancelOrders', symbol);
1066
+ if (symbol === undefined) {
1067
+ throw new errors.ArgumentsRequired(this.id + ' cancelOrders() requires a symbol argument');
1068
+ }
1059
1069
  const market = this.market(symbol);
1060
1070
  const request = {
1061
1071
  'symbol': market['id'],
@@ -1079,7 +1089,7 @@ class woo extends woo$1 {
1079
1089
  * @param {string} symbol unified symbol of the market the order was made in
1080
1090
  * @param {object} [params] extra parameters specific to the woo api endpoint
1081
1091
  * @param {boolean} [params.stop] whether the order is a stop/algo order
1082
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1092
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1083
1093
  */
1084
1094
  await this.loadMarkets();
1085
1095
  const market = (symbol !== undefined) ? this.market(symbol) : undefined;
@@ -1152,7 +1162,7 @@ class woo extends woo$1 {
1152
1162
  * @param {boolean} [params.stop] whether the order is a stop/algo order
1153
1163
  * @param {boolean} [params.isTriggered] whether the order has been triggered (false by default)
1154
1164
  * @param {string} [params.side] 'buy' or 'sell'
1155
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1165
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1156
1166
  */
1157
1167
  await this.loadMarkets();
1158
1168
  const request = {};
@@ -1360,7 +1370,7 @@ class woo extends woo$1 {
1360
1370
  * @param {string} symbol unified symbol of the market to fetch the order book for
1361
1371
  * @param {int} [limit] the maximum amount of order book entries to return
1362
1372
  * @param {object} [params] extra parameters specific to the woo api endpoint
1363
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
1373
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1364
1374
  */
1365
1375
  await this.loadMarkets();
1366
1376
  const market = this.market(symbol);
@@ -1468,7 +1478,7 @@ class woo extends woo$1 {
1468
1478
  * @param {int} [since] the earliest time in ms to fetch trades for
1469
1479
  * @param {int} [limit] the maximum number of trades to retrieve
1470
1480
  * @param {object} [params] extra parameters specific to the woo api endpoint
1471
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1481
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1472
1482
  */
1473
1483
  await this.loadMarkets();
1474
1484
  let market = undefined;
@@ -1509,7 +1519,7 @@ class woo extends woo$1 {
1509
1519
  * @param {int} [since] the earliest time in ms to fetch trades for
1510
1520
  * @param {int} [limit] the maximum number of trades structures to retrieve
1511
1521
  * @param {object} [params] extra parameters specific to the woo api endpoint
1512
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1522
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1513
1523
  */
1514
1524
  await this.loadMarkets();
1515
1525
  const request = {};
@@ -1554,7 +1564,7 @@ class woo extends woo$1 {
1554
1564
  * @name woo#fetchAccounts
1555
1565
  * @description fetch all the accounts associated with a profile
1556
1566
  * @param {object} [params] extra parameters specific to the woo api endpoint
1557
- * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
1567
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
1558
1568
  */
1559
1569
  const response = await this.v1PrivateGetSubAccountAssets(params);
1560
1570
  //
@@ -1600,7 +1610,7 @@ class woo extends woo$1 {
1600
1610
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1601
1611
  * @see https://docs.woo.org/#get-current-holding-get-balance-new
1602
1612
  * @param {object} [params] extra parameters specific to the woo api endpoint
1603
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1613
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1604
1614
  */
1605
1615
  await this.loadMarkets();
1606
1616
  const response = await this.v3PrivateGetBalances(params);
@@ -1652,7 +1662,7 @@ class woo extends woo$1 {
1652
1662
  * @description fetch the deposit address for a currency associated with this account
1653
1663
  * @param {string} code unified currency code
1654
1664
  * @param {object} [params] extra parameters specific to the woo api endpoint
1655
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1665
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1656
1666
  */
1657
1667
  // this method is TODO because of networks unification
1658
1668
  await this.loadMarkets();
@@ -1746,7 +1756,7 @@ class woo extends woo$1 {
1746
1756
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
1747
1757
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
1748
1758
  * @param {object} [params] extra parameters specific to the woo api endpoint
1749
- * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
1759
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
1750
1760
  */
1751
1761
  const [currency, rows] = await this.getAssetHistoryRows(code, since, limit, params);
1752
1762
  return this.parseLedger(rows, currency, since, limit, params);
@@ -1810,7 +1820,7 @@ class woo extends woo$1 {
1810
1820
  * @param {int} [since] the earliest time in ms to fetch deposits for
1811
1821
  * @param {int} [limit] the maximum number of deposits structures to retrieve
1812
1822
  * @param {object} [params] extra parameters specific to the woo api endpoint
1813
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1823
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1814
1824
  */
1815
1825
  const request = {
1816
1826
  'token_side': 'DEPOSIT',
@@ -1826,7 +1836,7 @@ class woo extends woo$1 {
1826
1836
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
1827
1837
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
1828
1838
  * @param {object} [params] extra parameters specific to the woo api endpoint
1829
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1839
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1830
1840
  */
1831
1841
  const request = {
1832
1842
  'token_side': 'WITHDRAW',
@@ -1842,7 +1852,7 @@ class woo extends woo$1 {
1842
1852
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1843
1853
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1844
1854
  * @param {object} [params] extra parameters specific to the woo api endpoint
1845
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1855
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1846
1856
  */
1847
1857
  const request = {
1848
1858
  'type': 'BALANCE',
@@ -1917,7 +1927,7 @@ class woo extends woo$1 {
1917
1927
  * @param {string} fromAccount account to transfer from
1918
1928
  * @param {string} toAccount account to transfer to
1919
1929
  * @param {object} [params] extra parameters specific to the woo api endpoint
1920
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1930
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1921
1931
  */
1922
1932
  await this.loadMarkets();
1923
1933
  const currency = this.currency(code);
@@ -1953,7 +1963,7 @@ class woo extends woo$1 {
1953
1963
  * @param {int} [since] the earliest time in ms to fetch transfers for
1954
1964
  * @param {int} [limit] the maximum number of transfers structures to retrieve
1955
1965
  * @param {object} [params] extra parameters specific to the woo api endpoint
1956
- * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1966
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1957
1967
  */
1958
1968
  const request = {
1959
1969
  'type': 'COLLATERAL',
@@ -2044,7 +2054,7 @@ class woo extends woo$1 {
2044
2054
  * @param {string} address the address to withdraw to
2045
2055
  * @param {string} tag
2046
2056
  * @param {object} [params] extra parameters specific to the woo api endpoint
2047
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2057
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2048
2058
  */
2049
2059
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2050
2060
  await this.loadMarkets();
@@ -2086,7 +2096,7 @@ class woo extends woo$1 {
2086
2096
  * @param {float} amount the amount to repay
2087
2097
  * @param {string} symbol not used by woo.repayMargin ()
2088
2098
  * @param {object} [params] extra parameters specific to the woo api endpoint
2089
- * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
2099
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
2090
2100
  */
2091
2101
  await this.loadMarkets();
2092
2102
  let market = undefined;
@@ -2374,11 +2384,11 @@ class woo extends woo$1 {
2374
2384
  * @see https://docs.woo.org/#get-funding-rate-history-for-one-market-public
2375
2385
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
2376
2386
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
2377
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
2387
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
2378
2388
  * @param {object} [params] extra parameters specific to the woo api endpoint
2379
2389
  * @param {int} [params.until] timestamp in ms of the latest funding rate
2380
2390
  * @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)
2381
- * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
2391
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
2382
2392
  */
2383
2393
  await this.loadMarkets();
2384
2394
  let paginate = false;