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
@@ -39,12 +39,11 @@ class novadax extends novadax$1 {
39
39
  'createStopOrder': true,
40
40
  'fetchAccounts': true,
41
41
  'fetchBalance': true,
42
- 'fetchBorrowRate': false,
43
42
  'fetchBorrowRateHistories': false,
44
43
  'fetchBorrowRateHistory': false,
45
- 'fetchBorrowRates': false,
46
- 'fetchBorrowRatesPerSymbol': false,
47
44
  'fetchClosedOrders': true,
45
+ 'fetchCrossBorrowRate': false,
46
+ 'fetchCrossBorrowRates': false,
48
47
  'fetchDepositAddress': false,
49
48
  'fetchDepositAddresses': false,
50
49
  'fetchDepositAddressesByNetwork': false,
@@ -55,6 +54,8 @@ class novadax extends novadax$1 {
55
54
  'fetchFundingRateHistory': false,
56
55
  'fetchFundingRates': false,
57
56
  'fetchIndexOHLCV': false,
57
+ 'fetchIsolatedBorrowRate': false,
58
+ 'fetchIsolatedBorrowRates': false,
58
59
  'fetchLeverage': false,
59
60
  'fetchLeverageTiers': false,
60
61
  'fetchMarkets': true,
@@ -359,7 +360,7 @@ class novadax extends novadax$1 {
359
360
  * @see https://doc.novadax.com/en-US/#get-latest-ticker-for-specific-pair
360
361
  * @param {string} symbol unified symbol of the market to fetch the ticker for
361
362
  * @param {object} [params] extra parameters specific to the novadax api endpoint
362
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
363
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
363
364
  */
364
365
  await this.loadMarkets();
365
366
  const market = this.market(symbol);
@@ -396,7 +397,7 @@ class novadax extends novadax$1 {
396
397
  * @see https://doc.novadax.com/en-US/#get-latest-tickers-for-all-trading-pairs
397
398
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
398
399
  * @param {object} [params] extra parameters specific to the novadax api endpoint
399
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
400
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
400
401
  */
401
402
  await this.loadMarkets();
402
403
  symbols = this.marketSymbols(symbols);
@@ -439,7 +440,7 @@ class novadax extends novadax$1 {
439
440
  * @param {string} symbol unified symbol of the market to fetch the order book for
440
441
  * @param {int} [limit] the maximum amount of order book entries to return
441
442
  * @param {object} [params] extra parameters specific to the novadax api endpoint
442
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
443
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
443
444
  */
444
445
  await this.loadMarkets();
445
446
  const market = this.market(symbol);
@@ -561,7 +562,7 @@ class novadax extends novadax$1 {
561
562
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
562
563
  * @param {int} [limit] the maximum amount of trades to fetch
563
564
  * @param {object} [params] extra parameters specific to the novadax api endpoint
564
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
565
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
565
566
  */
566
567
  await this.loadMarkets();
567
568
  const market = this.market(symbol);
@@ -693,7 +694,7 @@ class novadax extends novadax$1 {
693
694
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
694
695
  * @see https://doc.novadax.com/en-US/#get-account-balance
695
696
  * @param {object} [params] extra parameters specific to the novadax api endpoint
696
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
697
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
697
698
  */
698
699
  await this.loadMarkets();
699
700
  const response = await this.privateGetAccountGetBalance(params);
@@ -725,7 +726,7 @@ class novadax extends novadax$1 {
725
726
  * @param {float} amount how much of currency you want to trade in units of base currency
726
727
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
727
728
  * @param {object} [params] extra parameters specific to the novadax api endpoint
728
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
729
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
729
730
  */
730
731
  await this.loadMarkets();
731
732
  const market = this.market(symbol);
@@ -822,7 +823,7 @@ class novadax extends novadax$1 {
822
823
  * @param {string} id order id
823
824
  * @param {string} symbol not used by novadax cancelOrder ()
824
825
  * @param {object} [params] extra parameters specific to the novadax api endpoint
825
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
826
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
826
827
  */
827
828
  await this.loadMarkets();
828
829
  const request = {
@@ -849,7 +850,7 @@ class novadax extends novadax$1 {
849
850
  * @see https://doc.novadax.com/en-US/#get-order-details
850
851
  * @param {string} symbol not used by novadax fetchOrder
851
852
  * @param {object} [params] extra parameters specific to the novadax api endpoint
852
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
853
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
853
854
  */
854
855
  await this.loadMarkets();
855
856
  const request = {
@@ -890,7 +891,7 @@ class novadax extends novadax$1 {
890
891
  * @param {int} [since] the earliest time in ms to fetch orders for
891
892
  * @param {int} [limit] the maximum number of orde structures to retrieve
892
893
  * @param {object} [params] extra parameters specific to the novadax api endpoint
893
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
894
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
894
895
  */
895
896
  await this.loadMarkets();
896
897
  const request = {
@@ -950,7 +951,7 @@ class novadax extends novadax$1 {
950
951
  * @param {int} [since] the earliest time in ms to fetch open orders for
951
952
  * @param {int} [limit] the maximum number of open orders structures to retrieve
952
953
  * @param {object} [params] extra parameters specific to the novadax api endpoint
953
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
954
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
954
955
  */
955
956
  const request = {
956
957
  'status': 'SUBMITTED,PROCESSING,PARTIAL_FILLED,CANCELING',
@@ -967,7 +968,7 @@ class novadax extends novadax$1 {
967
968
  * @param {int} [since] the earliest time in ms to fetch orders for
968
969
  * @param {int} [limit] the maximum number of orde structures to retrieve
969
970
  * @param {object} [params] extra parameters specific to the novadax api endpoint
970
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
971
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
971
972
  */
972
973
  const request = {
973
974
  'status': 'FILLED,CANCELED,REJECTED',
@@ -985,7 +986,7 @@ class novadax extends novadax$1 {
985
986
  * @param {int} [since] the earliest time in ms to fetch trades for
986
987
  * @param {int} [limit] the maximum number of trades to retrieve
987
988
  * @param {object} [params] extra parameters specific to the novadax api endpoint
988
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
989
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
989
990
  */
990
991
  await this.loadMarkets();
991
992
  const request = {
@@ -1117,7 +1118,7 @@ class novadax extends novadax$1 {
1117
1118
  * @param {string} fromAccount account to transfer from
1118
1119
  * @param {string} toAccount account to transfer to
1119
1120
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1120
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1121
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1121
1122
  */
1122
1123
  await this.loadMarkets();
1123
1124
  const currency = this.currency(code);
@@ -1192,7 +1193,7 @@ class novadax extends novadax$1 {
1192
1193
  * @param {string} address the address to withdraw to
1193
1194
  * @param {string} tag
1194
1195
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1195
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1196
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1196
1197
  */
1197
1198
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1198
1199
  await this.loadMarkets();
@@ -1222,7 +1223,7 @@ class novadax extends novadax$1 {
1222
1223
  * @description fetch all the accounts associated with a profile
1223
1224
  * @see https://doc.novadax.com/en-US/#get-sub-account-list
1224
1225
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1225
- * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
1226
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
1226
1227
  */
1227
1228
  const response = await this.privateGetAccountSubs(params);
1228
1229
  //
@@ -1264,7 +1265,7 @@ class novadax extends novadax$1 {
1264
1265
  * @param {int} [since] the earliest time in ms to fetch deposits for
1265
1266
  * @param {int} [limit] the maximum number of deposits structures to retrieve
1266
1267
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1267
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1268
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1268
1269
  */
1269
1270
  const request = {
1270
1271
  'type': 'coin_in',
@@ -1281,7 +1282,7 @@ class novadax extends novadax$1 {
1281
1282
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
1282
1283
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
1283
1284
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1284
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1285
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1285
1286
  */
1286
1287
  const request = {
1287
1288
  'type': 'coin_out',
@@ -1298,7 +1299,7 @@ class novadax extends novadax$1 {
1298
1299
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1299
1300
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1300
1301
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1301
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1302
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1302
1303
  */
1303
1304
  await this.loadMarkets();
1304
1305
  const request = {
@@ -1437,7 +1438,7 @@ class novadax extends novadax$1 {
1437
1438
  * @param {int} [since] the earliest time in ms to fetch trades for
1438
1439
  * @param {int} [limit] the maximum number of trades structures to retrieve
1439
1440
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1440
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1441
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1441
1442
  */
1442
1443
  await this.loadMarkets();
1443
1444
  const request = {
@@ -42,12 +42,13 @@ class oceanex extends oceanex$1 {
42
42
  'createMarketOrder': true,
43
43
  'createOrder': true,
44
44
  'fetchBalance': true,
45
- 'fetchBorrowRate': false,
46
45
  'fetchBorrowRateHistories': false,
47
46
  'fetchBorrowRateHistory': false,
48
- 'fetchBorrowRates': false,
49
- 'fetchBorrowRatesPerSymbol': false,
50
47
  'fetchClosedOrders': true,
48
+ 'fetchCrossBorrowRate': false,
49
+ 'fetchCrossBorrowRates': false,
50
+ 'fetchIsolatedBorrowRate': false,
51
+ 'fetchIsolatedBorrowRates': false,
51
52
  'fetchMarkets': true,
52
53
  'fetchOHLCV': true,
53
54
  'fetchOpenOrders': true,
@@ -239,7 +240,7 @@ class oceanex extends oceanex$1 {
239
240
  * @see https://api.oceanex.pro/doc/v1/#ticker-post
240
241
  * @param {string} symbol unified symbol of the market to fetch the ticker for
241
242
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
242
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
243
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
243
244
  */
244
245
  await this.loadMarkets();
245
246
  const market = this.market(symbol);
@@ -275,7 +276,7 @@ class oceanex extends oceanex$1 {
275
276
  * @see https://api.oceanex.pro/doc/v1/#multiple-tickers-post
276
277
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
277
278
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
278
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
279
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
279
280
  */
280
281
  await this.loadMarkets();
281
282
  symbols = this.marketSymbols(symbols);
@@ -362,7 +363,7 @@ class oceanex extends oceanex$1 {
362
363
  * @param {string} symbol unified symbol of the market to fetch the order book for
363
364
  * @param {int} [limit] the maximum amount of order book entries to return
364
365
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
365
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
366
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
366
367
  */
367
368
  await this.loadMarkets();
368
369
  const market = this.market(symbol);
@@ -405,7 +406,7 @@ class oceanex extends oceanex$1 {
405
406
  * @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
406
407
  * @param {int} [limit] max number of entries per orderbook to return, default is undefined
407
408
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
408
- * @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
409
+ * @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
409
410
  */
410
411
  await this.loadMarkets();
411
412
  if (symbols === undefined) {
@@ -463,7 +464,7 @@ class oceanex extends oceanex$1 {
463
464
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
464
465
  * @param {int} [limit] the maximum amount of trades to fetch
465
466
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
466
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
467
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
467
468
  */
468
469
  await this.loadMarkets();
469
470
  const market = this.market(symbol);
@@ -563,7 +564,7 @@ class oceanex extends oceanex$1 {
563
564
  * @description fetch the trading fees for multiple markets
564
565
  * @see https://api.oceanex.pro/doc/v1/#trading-fees-post
565
566
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
566
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
567
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
567
568
  */
568
569
  const response = await this.publicGetFeesTrading(params);
569
570
  const data = this.safeValue(response, 'data', []);
@@ -610,7 +611,7 @@ class oceanex extends oceanex$1 {
610
611
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
611
612
  * @see https://api.oceanex.pro/doc/v1/#account-info-post
612
613
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
613
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
614
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
614
615
  */
615
616
  await this.loadMarkets();
616
617
  const response = await this.privateGetMembersMe(params);
@@ -628,7 +629,7 @@ class oceanex extends oceanex$1 {
628
629
  * @param {float} amount how much of currency you want to trade in units of base currency
629
630
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
630
631
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
631
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
632
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
632
633
  */
633
634
  await this.loadMarkets();
634
635
  const market = this.market(symbol);
@@ -653,7 +654,7 @@ class oceanex extends oceanex$1 {
653
654
  * @see https://api.oceanex.pro/doc/v1/#order-status-get
654
655
  * @param {string} symbol unified symbol of the market the order was made in
655
656
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
656
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
657
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
657
658
  */
658
659
  await this.loadMarkets();
659
660
  let market = undefined;
@@ -687,7 +688,7 @@ class oceanex extends oceanex$1 {
687
688
  * @param {int} [since] the earliest time in ms to fetch open orders for
688
689
  * @param {int} [limit] the maximum number of open orders structures to retrieve
689
690
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
690
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
691
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
691
692
  */
692
693
  const request = {
693
694
  'states': ['wait'],
@@ -704,7 +705,7 @@ class oceanex extends oceanex$1 {
704
705
  * @param {int} [since] the earliest time in ms to fetch orders for
705
706
  * @param {int} [limit] the maximum number of orde structures to retrieve
706
707
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
707
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
708
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
708
709
  */
709
710
  const request = {
710
711
  'states': ['done', 'cancel'],
@@ -721,9 +722,11 @@ class oceanex extends oceanex$1 {
721
722
  * @param {int} [since] the earliest time in ms to fetch orders for
722
723
  * @param {int} [limit] the maximum number of order structures to retrieve
723
724
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
724
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
725
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
725
726
  */
726
- this.checkRequiredSymbol('fetchOrders', symbol);
727
+ if (symbol === undefined) {
728
+ throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
729
+ }
727
730
  await this.loadMarkets();
728
731
  const market = this.market(symbol);
729
732
  const states = this.safeValue(params, 'states', ['wait', 'done', 'cancel']);
@@ -866,7 +869,7 @@ class oceanex extends oceanex$1 {
866
869
  * @param {string} id order id
867
870
  * @param {string} symbol not used by oceanex cancelOrder ()
868
871
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
869
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
872
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
870
873
  */
871
874
  await this.loadMarkets();
872
875
  const response = await this.privatePostOrderDelete(this.extend({ 'id': id }, params));
@@ -882,7 +885,7 @@ class oceanex extends oceanex$1 {
882
885
  * @param {string[]} ids order ids
883
886
  * @param {string} symbol not used by oceanex cancelOrders ()
884
887
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
885
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
888
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
886
889
  */
887
890
  await this.loadMarkets();
888
891
  const response = await this.privatePostOrderDeleteMulti(this.extend({ 'ids': ids }, params));
@@ -897,7 +900,7 @@ class oceanex extends oceanex$1 {
897
900
  * @see https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
898
901
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
899
902
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
900
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
903
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
901
904
  */
902
905
  await this.loadMarkets();
903
906
  const response = await this.privatePostOrdersClear(params);
@@ -776,7 +776,7 @@ class okcoin extends okcoin$1 {
776
776
  * @param {string} symbol unified symbol of the market to fetch the order book for
777
777
  * @param {int} [limit] the maximum amount of order book entries to return
778
778
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
779
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
779
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
780
780
  */
781
781
  await this.loadMarkets();
782
782
  const market = this.market(symbol);
@@ -877,7 +877,7 @@ class okcoin extends okcoin$1 {
877
877
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
878
878
  * @param {string} symbol unified symbol of the market to fetch the ticker for
879
879
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
880
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
880
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
881
881
  */
882
882
  await this.loadMarkets();
883
883
  const market = this.market(symbol);
@@ -923,7 +923,7 @@ class okcoin extends okcoin$1 {
923
923
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
924
924
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
925
925
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
926
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
926
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
927
927
  */
928
928
  symbols = this.marketSymbols(symbols);
929
929
  const request = {
@@ -1020,7 +1020,7 @@ class okcoin extends okcoin$1 {
1020
1020
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1021
1021
  * @param {int} [limit] the maximum amount of trades to fetch
1022
1022
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
1023
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1023
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1024
1024
  */
1025
1025
  await this.loadMarkets();
1026
1026
  const market = this.market(symbol);
@@ -1170,7 +1170,7 @@ class okcoin extends okcoin$1 {
1170
1170
  * @name okcoin#fetchBalance
1171
1171
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1172
1172
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
1173
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1173
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1174
1174
  */
1175
1175
  await this.loadMarkets();
1176
1176
  const [marketType, query] = this.handleMarketTypeAndParams('fetchBalance', undefined, params);
@@ -1279,7 +1279,7 @@ class okcoin extends okcoin$1 {
1279
1279
  * @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
1280
1280
  * @param {float} [params.stopLoss.price] used for stop loss limit orders, not used for stop loss market price orders
1281
1281
  * @param {string} [params.stopLoss.type] 'market' or 'limit' used to specify the stop loss price type
1282
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1282
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1283
1283
  */
1284
1284
  await this.loadMarkets();
1285
1285
  const market = this.market(symbol);
@@ -1554,9 +1554,11 @@ class okcoin extends okcoin$1 {
1554
1554
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
1555
1555
  * @param {bool} [params.stop] True if cancel trigger or conditional orders
1556
1556
  * @param {bool} [params.advanced] True if canceling advanced orders only
1557
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1557
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1558
1558
  */
1559
- this.checkRequiredSymbol('cancelOrder', symbol);
1559
+ if (symbol === undefined) {
1560
+ throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
1561
+ }
1560
1562
  await this.loadMarkets();
1561
1563
  const stop = this.safeValue2(params, 'stop', 'trigger');
1562
1564
  const advanced = this.safeValue(params, 'advanced');
@@ -1610,9 +1612,11 @@ class okcoin extends okcoin$1 {
1610
1612
  * @param {string[]} ids order ids
1611
1613
  * @param {string} symbol unified market symbol
1612
1614
  * @param {object} [params] extra parameters specific to the okx api endpoint
1613
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1615
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1614
1616
  */
1615
- this.checkRequiredSymbol('cancelOrders', symbol);
1617
+ if (symbol === undefined) {
1618
+ throw new errors.ArgumentsRequired(this.id + ' cancelOrders() requires a symbol argument');
1619
+ }
1616
1620
  await this.loadMarkets();
1617
1621
  const stop = this.safeValue2(params, 'stop', 'trigger');
1618
1622
  const advanced = this.safeValue(params, 'advanced');
@@ -1901,8 +1905,11 @@ class okcoin extends okcoin$1 {
1901
1905
  * @description fetches information on an order made by the user
1902
1906
  * @param {string} symbol unified symbol of the market the order was made in
1903
1907
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
1904
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1908
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1905
1909
  */
1910
+ if (symbol === undefined) {
1911
+ throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
1912
+ }
1906
1913
  await this.loadMarkets();
1907
1914
  const market = this.market(symbol);
1908
1915
  const request = {
@@ -1921,7 +1928,6 @@ class okcoin extends okcoin$1 {
1921
1928
  }
1922
1929
  }
1923
1930
  else {
1924
- this.checkRequiredSymbol('fetchOrder', symbol);
1925
1931
  if (clientOrderId !== undefined) {
1926
1932
  request['clOrdId'] = clientOrderId;
1927
1933
  }
@@ -1954,7 +1960,7 @@ class okcoin extends okcoin$1 {
1954
1960
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
1955
1961
  * @param {bool} [params.stop] True if fetching trigger or conditional orders
1956
1962
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
1957
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1963
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1958
1964
  */
1959
1965
  await this.loadMarkets();
1960
1966
  const request = {
@@ -2003,7 +2009,7 @@ class okcoin extends okcoin$1 {
2003
2009
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
2004
2010
  * @param {bool} [params.stop] True if fetching trigger or conditional orders
2005
2011
  * @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
2006
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2012
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2007
2013
  */
2008
2014
  await this.loadMarkets();
2009
2015
  const request = {
@@ -2177,7 +2183,7 @@ class okcoin extends okcoin$1 {
2177
2183
  * @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
2178
2184
  * @param {string} code unified currency code
2179
2185
  * @param {object} [params] extra parameters specific to the okx api endpoint
2180
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2186
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2181
2187
  */
2182
2188
  await this.loadMarkets();
2183
2189
  const defaultNetwork = this.safeString(this.options, 'defaultNetwork', 'ERC20');
@@ -2199,7 +2205,7 @@ class okcoin extends okcoin$1 {
2199
2205
  * @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
2200
2206
  * @param {string} code unified currency code of the currency for the deposit address
2201
2207
  * @param {object} [params] extra parameters specific to the okx api endpoint
2202
- * @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
2208
+ * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
2203
2209
  */
2204
2210
  await this.loadMarkets();
2205
2211
  const currency = this.currency(code);
@@ -2244,7 +2250,7 @@ class okcoin extends okcoin$1 {
2244
2250
  * @param {string} fromAccount account to transfer from
2245
2251
  * @param {string} toAccount account to transfer to
2246
2252
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
2247
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
2253
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
2248
2254
  */
2249
2255
  await this.loadMarkets();
2250
2256
  const currency = this.currency(code);
@@ -2388,7 +2394,7 @@ class okcoin extends okcoin$1 {
2388
2394
  * @param {string} address the address to withdraw to
2389
2395
  * @param {string} tag
2390
2396
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
2391
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2397
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2392
2398
  */
2393
2399
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2394
2400
  this.checkAddress(address);
@@ -2447,7 +2453,7 @@ class okcoin extends okcoin$1 {
2447
2453
  * @param {int} [since] the earliest time in ms to fetch deposits for
2448
2454
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2449
2455
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
2450
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2456
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2451
2457
  */
2452
2458
  await this.loadMarkets();
2453
2459
  let request = {
@@ -2521,7 +2527,7 @@ class okcoin extends okcoin$1 {
2521
2527
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2522
2528
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2523
2529
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
2524
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2530
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2525
2531
  */
2526
2532
  await this.loadMarkets();
2527
2533
  let request = {
@@ -2722,7 +2728,7 @@ class okcoin extends okcoin$1 {
2722
2728
  * @param {int} [since] the earliest time in ms to fetch trades for
2723
2729
  * @param {int} [limit] the maximum number of trades structures to retrieve
2724
2730
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
2725
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
2731
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
2726
2732
  */
2727
2733
  await this.loadMarkets();
2728
2734
  const request = {
@@ -2758,7 +2764,7 @@ class okcoin extends okcoin$1 {
2758
2764
  * @param {int} [since] the earliest time in ms to fetch trades for
2759
2765
  * @param {int} [limit] the maximum number of trades to retrieve
2760
2766
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
2761
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
2767
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
2762
2768
  */
2763
2769
  const request = {
2764
2770
  // 'instrument_id': market['id'],
@@ -2781,7 +2787,7 @@ class okcoin extends okcoin$1 {
2781
2787
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
2782
2788
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
2783
2789
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
2784
- * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
2790
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
2785
2791
  */
2786
2792
  await this.loadMarkets();
2787
2793
  let method = undefined;