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
package/js/src/ndax.js CHANGED
@@ -43,11 +43,10 @@ export default class ndax extends Exchange {
43
43
  'editOrder': true,
44
44
  'fetchAccounts': true,
45
45
  'fetchBalance': true,
46
- 'fetchBorrowRate': false,
47
46
  'fetchBorrowRateHistories': false,
48
47
  'fetchBorrowRateHistory': false,
49
- 'fetchBorrowRates': false,
50
- 'fetchBorrowRatesPerSymbol': false,
48
+ 'fetchCrossBorrowRate': false,
49
+ 'fetchCrossBorrowRates': false,
51
50
  'fetchCurrencies': true,
52
51
  'fetchDepositAddress': true,
53
52
  'fetchDeposits': true,
@@ -56,6 +55,8 @@ export default class ndax extends Exchange {
56
55
  'fetchFundingRateHistory': false,
57
56
  'fetchFundingRates': false,
58
57
  'fetchIndexOHLCV': false,
58
+ 'fetchIsolatedBorrowRate': false,
59
+ 'fetchIsolatedBorrowRates': false,
59
60
  'fetchLedger': true,
60
61
  'fetchLeverage': false,
61
62
  'fetchLeverageTiers': false,
@@ -564,7 +565,7 @@ export default class ndax extends Exchange {
564
565
  * @param {string} symbol unified symbol of the market to fetch the order book for
565
566
  * @param {int} [limit] the maximum amount of order book entries to return
566
567
  * @param {object} [params] extra parameters specific to the ndax api endpoint
567
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
568
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
568
569
  */
569
570
  const omsId = this.safeInteger(this.options, 'omsId', 1);
570
571
  await this.loadMarkets();
@@ -673,7 +674,7 @@ export default class ndax extends Exchange {
673
674
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
674
675
  * @param {string} symbol unified symbol of the market to fetch the ticker for
675
676
  * @param {object} [params] extra parameters specific to the ndax api endpoint
676
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
677
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
677
678
  */
678
679
  const omsId = this.safeInteger(this.options, 'omsId', 1);
679
680
  await this.loadMarkets();
@@ -962,7 +963,7 @@ export default class ndax extends Exchange {
962
963
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
963
964
  * @param {int} [limit] the maximum amount of trades to fetch
964
965
  * @param {object} [params] extra parameters specific to the ndax api endpoint
965
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
966
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
966
967
  */
967
968
  const omsId = this.safeInteger(this.options, 'omsId', 1);
968
969
  await this.loadMarkets();
@@ -990,7 +991,7 @@ export default class ndax extends Exchange {
990
991
  * @name ndax#fetchAccounts
991
992
  * @description fetch all the accounts associated with a profile
992
993
  * @param {object} [params] extra parameters specific to the ndax api endpoint
993
- * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
994
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
994
995
  */
995
996
  if (!this.login) {
996
997
  throw new AuthenticationError(this.id + ' fetchAccounts() requires exchange.login email credential');
@@ -1043,7 +1044,7 @@ export default class ndax extends Exchange {
1043
1044
  * @name ndax#fetchBalance
1044
1045
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1045
1046
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1046
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1047
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1047
1048
  */
1048
1049
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1049
1050
  await this.loadMarkets();
@@ -1173,7 +1174,7 @@ export default class ndax extends Exchange {
1173
1174
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
1174
1175
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
1175
1176
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1176
- * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
1177
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
1177
1178
  */
1178
1179
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1179
1180
  await this.loadMarkets();
@@ -1330,7 +1331,7 @@ export default class ndax extends Exchange {
1330
1331
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1331
1332
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1332
1333
  * @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
1333
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1334
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1334
1335
  */
1335
1336
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1336
1337
  await this.loadMarkets();
@@ -1445,7 +1446,7 @@ export default class ndax extends Exchange {
1445
1446
  * @param {int} [since] the earliest time in ms to fetch trades for
1446
1447
  * @param {int} [limit] the maximum number of trades structures to retrieve
1447
1448
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1448
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1449
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1449
1450
  */
1450
1451
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1451
1452
  await this.loadMarkets();
@@ -1530,7 +1531,7 @@ export default class ndax extends Exchange {
1530
1531
  * @description cancel all open orders
1531
1532
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1532
1533
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1533
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1534
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1534
1535
  */
1535
1536
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1536
1537
  await this.loadMarkets();
@@ -1565,7 +1566,7 @@ export default class ndax extends Exchange {
1565
1566
  * @param {string} id order id
1566
1567
  * @param {string} symbol unified symbol of the market the order was made in
1567
1568
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1568
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1569
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1569
1570
  */
1570
1571
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1571
1572
  await this.loadMarkets();
@@ -1605,7 +1606,7 @@ export default class ndax extends Exchange {
1605
1606
  * @param {int} [since] the earliest time in ms to fetch open orders for
1606
1607
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1607
1608
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1608
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1609
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1609
1610
  */
1610
1611
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1611
1612
  await this.loadMarkets();
@@ -1683,7 +1684,7 @@ export default class ndax extends Exchange {
1683
1684
  * @param {int} [since] the earliest time in ms to fetch orders for
1684
1685
  * @param {int} [limit] the maximum number of orde structures to retrieve
1685
1686
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1686
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1687
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1687
1688
  */
1688
1689
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1689
1690
  await this.loadMarkets();
@@ -1775,7 +1776,7 @@ export default class ndax extends Exchange {
1775
1776
  * @description fetches information on an order made by the user
1776
1777
  * @param {string} symbol unified symbol of the market the order was made in
1777
1778
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1778
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1779
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1779
1780
  */
1780
1781
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1781
1782
  await this.loadMarkets();
@@ -1853,7 +1854,7 @@ export default class ndax extends Exchange {
1853
1854
  * @param {int} [since] the earliest time in ms to fetch trades for
1854
1855
  * @param {int} [limit] the maximum number of trades to retrieve
1855
1856
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1856
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1857
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1857
1858
  */
1858
1859
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1859
1860
  await this.loadMarkets();
@@ -1932,7 +1933,7 @@ export default class ndax extends Exchange {
1932
1933
  * @description fetch the deposit address for a currency associated with this account
1933
1934
  * @param {string} code unified currency code
1934
1935
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1935
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1936
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1936
1937
  */
1937
1938
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1938
1939
  await this.loadMarkets();
@@ -2004,7 +2005,7 @@ export default class ndax extends Exchange {
2004
2005
  * @description create a currency deposit address
2005
2006
  * @param {string} code unified currency code of the currency for the deposit address
2006
2007
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2007
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2008
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2008
2009
  */
2009
2010
  const request = {
2010
2011
  'GenerateNewKey': true,
@@ -2021,7 +2022,7 @@ export default class ndax extends Exchange {
2021
2022
  * @param {int} [since] not used by ndax fetchDeposits
2022
2023
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2023
2024
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2024
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2025
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2025
2026
  */
2026
2027
  const omsId = this.safeInteger(this.options, 'omsId', 1);
2027
2028
  await this.loadMarkets();
@@ -2080,7 +2081,7 @@ export default class ndax extends Exchange {
2080
2081
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2081
2082
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2082
2083
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2083
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2084
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2084
2085
  */
2085
2086
  const omsId = this.safeInteger(this.options, 'omsId', 1);
2086
2087
  await this.loadMarkets();
@@ -2280,7 +2281,7 @@ export default class ndax extends Exchange {
2280
2281
  * @param {string} address the address to withdraw to
2281
2282
  * @param {string} tag
2282
2283
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2283
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2284
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2284
2285
  */
2285
2286
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2286
2287
  // this method required login, password and twofa key
package/js/src/novadax.js CHANGED
@@ -42,12 +42,11 @@ export default class novadax extends Exchange {
42
42
  'createStopOrder': true,
43
43
  'fetchAccounts': 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,
51
50
  'fetchDepositAddress': false,
52
51
  'fetchDepositAddresses': false,
53
52
  'fetchDepositAddressesByNetwork': false,
@@ -58,6 +57,8 @@ export default class novadax extends Exchange {
58
57
  'fetchFundingRateHistory': false,
59
58
  'fetchFundingRates': false,
60
59
  'fetchIndexOHLCV': false,
60
+ 'fetchIsolatedBorrowRate': false,
61
+ 'fetchIsolatedBorrowRates': false,
61
62
  'fetchLeverage': false,
62
63
  'fetchLeverageTiers': false,
63
64
  'fetchMarkets': true,
@@ -362,7 +363,7 @@ export default class novadax extends Exchange {
362
363
  * @see https://doc.novadax.com/en-US/#get-latest-ticker-for-specific-pair
363
364
  * @param {string} symbol unified symbol of the market to fetch the ticker for
364
365
  * @param {object} [params] extra parameters specific to the novadax api endpoint
365
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
366
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
366
367
  */
367
368
  await this.loadMarkets();
368
369
  const market = this.market(symbol);
@@ -399,7 +400,7 @@ export default class novadax extends Exchange {
399
400
  * @see https://doc.novadax.com/en-US/#get-latest-tickers-for-all-trading-pairs
400
401
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
401
402
  * @param {object} [params] extra parameters specific to the novadax api endpoint
402
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
403
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
403
404
  */
404
405
  await this.loadMarkets();
405
406
  symbols = this.marketSymbols(symbols);
@@ -442,7 +443,7 @@ export default class novadax extends Exchange {
442
443
  * @param {string} symbol unified symbol of the market to fetch the order book for
443
444
  * @param {int} [limit] the maximum amount of order book entries to return
444
445
  * @param {object} [params] extra parameters specific to the novadax api endpoint
445
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
446
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
446
447
  */
447
448
  await this.loadMarkets();
448
449
  const market = this.market(symbol);
@@ -564,7 +565,7 @@ export default class novadax extends Exchange {
564
565
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
565
566
  * @param {int} [limit] the maximum amount of trades to fetch
566
567
  * @param {object} [params] extra parameters specific to the novadax api endpoint
567
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
568
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
568
569
  */
569
570
  await this.loadMarkets();
570
571
  const market = this.market(symbol);
@@ -696,7 +697,7 @@ export default class novadax extends Exchange {
696
697
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
697
698
  * @see https://doc.novadax.com/en-US/#get-account-balance
698
699
  * @param {object} [params] extra parameters specific to the novadax api endpoint
699
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
700
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
700
701
  */
701
702
  await this.loadMarkets();
702
703
  const response = await this.privateGetAccountGetBalance(params);
@@ -728,7 +729,7 @@ export default class novadax extends Exchange {
728
729
  * @param {float} amount how much of currency you want to trade in units of base currency
729
730
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
730
731
  * @param {object} [params] extra parameters specific to the novadax api endpoint
731
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
732
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
732
733
  */
733
734
  await this.loadMarkets();
734
735
  const market = this.market(symbol);
@@ -825,7 +826,7 @@ export default class novadax extends Exchange {
825
826
  * @param {string} id order id
826
827
  * @param {string} symbol not used by novadax cancelOrder ()
827
828
  * @param {object} [params] extra parameters specific to the novadax api endpoint
828
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
829
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
829
830
  */
830
831
  await this.loadMarkets();
831
832
  const request = {
@@ -852,7 +853,7 @@ export default class novadax extends Exchange {
852
853
  * @see https://doc.novadax.com/en-US/#get-order-details
853
854
  * @param {string} symbol not used by novadax fetchOrder
854
855
  * @param {object} [params] extra parameters specific to the novadax api endpoint
855
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
856
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
856
857
  */
857
858
  await this.loadMarkets();
858
859
  const request = {
@@ -893,7 +894,7 @@ export default class novadax extends Exchange {
893
894
  * @param {int} [since] the earliest time in ms to fetch orders for
894
895
  * @param {int} [limit] the maximum number of orde structures to retrieve
895
896
  * @param {object} [params] extra parameters specific to the novadax api endpoint
896
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
897
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
897
898
  */
898
899
  await this.loadMarkets();
899
900
  const request = {
@@ -953,7 +954,7 @@ export default class novadax extends Exchange {
953
954
  * @param {int} [since] the earliest time in ms to fetch open orders for
954
955
  * @param {int} [limit] the maximum number of open orders structures to retrieve
955
956
  * @param {object} [params] extra parameters specific to the novadax api endpoint
956
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
957
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
957
958
  */
958
959
  const request = {
959
960
  'status': 'SUBMITTED,PROCESSING,PARTIAL_FILLED,CANCELING',
@@ -970,7 +971,7 @@ export default class novadax extends Exchange {
970
971
  * @param {int} [since] the earliest time in ms to fetch orders for
971
972
  * @param {int} [limit] the maximum number of orde structures to retrieve
972
973
  * @param {object} [params] extra parameters specific to the novadax api endpoint
973
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
974
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
974
975
  */
975
976
  const request = {
976
977
  'status': 'FILLED,CANCELED,REJECTED',
@@ -988,7 +989,7 @@ export default class novadax extends Exchange {
988
989
  * @param {int} [since] the earliest time in ms to fetch trades for
989
990
  * @param {int} [limit] the maximum number of trades to retrieve
990
991
  * @param {object} [params] extra parameters specific to the novadax api endpoint
991
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
992
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
992
993
  */
993
994
  await this.loadMarkets();
994
995
  const request = {
@@ -1120,7 +1121,7 @@ export default class novadax extends Exchange {
1120
1121
  * @param {string} fromAccount account to transfer from
1121
1122
  * @param {string} toAccount account to transfer to
1122
1123
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1123
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1124
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1124
1125
  */
1125
1126
  await this.loadMarkets();
1126
1127
  const currency = this.currency(code);
@@ -1195,7 +1196,7 @@ export default class novadax extends Exchange {
1195
1196
  * @param {string} address the address to withdraw to
1196
1197
  * @param {string} tag
1197
1198
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1198
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1199
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1199
1200
  */
1200
1201
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1201
1202
  await this.loadMarkets();
@@ -1225,7 +1226,7 @@ export default class novadax extends Exchange {
1225
1226
  * @description fetch all the accounts associated with a profile
1226
1227
  * @see https://doc.novadax.com/en-US/#get-sub-account-list
1227
1228
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1228
- * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
1229
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
1229
1230
  */
1230
1231
  const response = await this.privateGetAccountSubs(params);
1231
1232
  //
@@ -1267,7 +1268,7 @@ export default class novadax extends Exchange {
1267
1268
  * @param {int} [since] the earliest time in ms to fetch deposits for
1268
1269
  * @param {int} [limit] the maximum number of deposits structures to retrieve
1269
1270
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1270
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1271
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1271
1272
  */
1272
1273
  const request = {
1273
1274
  'type': 'coin_in',
@@ -1284,7 +1285,7 @@ export default class novadax extends Exchange {
1284
1285
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
1285
1286
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
1286
1287
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1287
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1288
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1288
1289
  */
1289
1290
  const request = {
1290
1291
  'type': 'coin_out',
@@ -1301,7 +1302,7 @@ export default class novadax extends Exchange {
1301
1302
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1302
1303
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1303
1304
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1304
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1305
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1305
1306
  */
1306
1307
  await this.loadMarkets();
1307
1308
  const request = {
@@ -1440,7 +1441,7 @@ export default class novadax extends Exchange {
1440
1441
  * @param {int} [since] the earliest time in ms to fetch trades for
1441
1442
  * @param {int} [limit] the maximum number of trades structures to retrieve
1442
1443
  * @param {object} [params] extra parameters specific to the novadax api endpoint
1443
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1444
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1444
1445
  */
1445
1446
  await this.loadMarkets();
1446
1447
  const request = {
package/js/src/oceanex.js CHANGED
@@ -45,12 +45,13 @@ export default class oceanex extends Exchange {
45
45
  'createMarketOrder': true,
46
46
  'createOrder': true,
47
47
  'fetchBalance': true,
48
- 'fetchBorrowRate': false,
49
48
  'fetchBorrowRateHistories': false,
50
49
  'fetchBorrowRateHistory': false,
51
- 'fetchBorrowRates': false,
52
- 'fetchBorrowRatesPerSymbol': false,
53
50
  'fetchClosedOrders': true,
51
+ 'fetchCrossBorrowRate': false,
52
+ 'fetchCrossBorrowRates': false,
53
+ 'fetchIsolatedBorrowRate': false,
54
+ 'fetchIsolatedBorrowRates': false,
54
55
  'fetchMarkets': true,
55
56
  'fetchOHLCV': true,
56
57
  'fetchOpenOrders': true,
@@ -242,7 +243,7 @@ export default class oceanex extends Exchange {
242
243
  * @see https://api.oceanex.pro/doc/v1/#ticker-post
243
244
  * @param {string} symbol unified symbol of the market to fetch the ticker for
244
245
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
245
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
246
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
246
247
  */
247
248
  await this.loadMarkets();
248
249
  const market = this.market(symbol);
@@ -278,7 +279,7 @@ export default class oceanex extends Exchange {
278
279
  * @see https://api.oceanex.pro/doc/v1/#multiple-tickers-post
279
280
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
280
281
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
281
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
282
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
282
283
  */
283
284
  await this.loadMarkets();
284
285
  symbols = this.marketSymbols(symbols);
@@ -365,7 +366,7 @@ export default class oceanex extends Exchange {
365
366
  * @param {string} symbol unified symbol of the market to fetch the order book for
366
367
  * @param {int} [limit] the maximum amount of order book entries to return
367
368
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
368
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
369
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
369
370
  */
370
371
  await this.loadMarkets();
371
372
  const market = this.market(symbol);
@@ -408,7 +409,7 @@ export default class oceanex extends Exchange {
408
409
  * @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
409
410
  * @param {int} [limit] max number of entries per orderbook to return, default is undefined
410
411
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
411
- * @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
412
+ * @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
412
413
  */
413
414
  await this.loadMarkets();
414
415
  if (symbols === undefined) {
@@ -466,7 +467,7 @@ export default class oceanex extends Exchange {
466
467
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
467
468
  * @param {int} [limit] the maximum amount of trades to fetch
468
469
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
469
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
470
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
470
471
  */
471
472
  await this.loadMarkets();
472
473
  const market = this.market(symbol);
@@ -566,7 +567,7 @@ export default class oceanex extends Exchange {
566
567
  * @description fetch the trading fees for multiple markets
567
568
  * @see https://api.oceanex.pro/doc/v1/#trading-fees-post
568
569
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
569
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
570
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
570
571
  */
571
572
  const response = await this.publicGetFeesTrading(params);
572
573
  const data = this.safeValue(response, 'data', []);
@@ -613,7 +614,7 @@ export default class oceanex extends Exchange {
613
614
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
614
615
  * @see https://api.oceanex.pro/doc/v1/#account-info-post
615
616
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
616
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
617
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
617
618
  */
618
619
  await this.loadMarkets();
619
620
  const response = await this.privateGetMembersMe(params);
@@ -631,7 +632,7 @@ export default class oceanex extends Exchange {
631
632
  * @param {float} amount how much of currency you want to trade in units of base currency
632
633
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
633
634
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
634
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
635
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
635
636
  */
636
637
  await this.loadMarkets();
637
638
  const market = this.market(symbol);
@@ -656,7 +657,7 @@ export default class oceanex extends Exchange {
656
657
  * @see https://api.oceanex.pro/doc/v1/#order-status-get
657
658
  * @param {string} symbol unified symbol of the market the order was made in
658
659
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
659
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
660
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
660
661
  */
661
662
  await this.loadMarkets();
662
663
  let market = undefined;
@@ -690,7 +691,7 @@ export default class oceanex extends Exchange {
690
691
  * @param {int} [since] the earliest time in ms to fetch open orders for
691
692
  * @param {int} [limit] the maximum number of open orders structures to retrieve
692
693
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
693
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
694
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
694
695
  */
695
696
  const request = {
696
697
  'states': ['wait'],
@@ -707,7 +708,7 @@ export default class oceanex extends Exchange {
707
708
  * @param {int} [since] the earliest time in ms to fetch orders for
708
709
  * @param {int} [limit] the maximum number of orde structures to retrieve
709
710
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
710
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
711
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
711
712
  */
712
713
  const request = {
713
714
  'states': ['done', 'cancel'],
@@ -724,9 +725,11 @@ export default class oceanex extends Exchange {
724
725
  * @param {int} [since] the earliest time in ms to fetch orders for
725
726
  * @param {int} [limit] the maximum number of order structures to retrieve
726
727
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
727
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
728
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
728
729
  */
729
- this.checkRequiredSymbol('fetchOrders', symbol);
730
+ if (symbol === undefined) {
731
+ throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
732
+ }
730
733
  await this.loadMarkets();
731
734
  const market = this.market(symbol);
732
735
  const states = this.safeValue(params, 'states', ['wait', 'done', 'cancel']);
@@ -869,7 +872,7 @@ export default class oceanex extends Exchange {
869
872
  * @param {string} id order id
870
873
  * @param {string} symbol not used by oceanex cancelOrder ()
871
874
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
872
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
875
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
873
876
  */
874
877
  await this.loadMarkets();
875
878
  const response = await this.privatePostOrderDelete(this.extend({ 'id': id }, params));
@@ -885,7 +888,7 @@ export default class oceanex extends Exchange {
885
888
  * @param {string[]} ids order ids
886
889
  * @param {string} symbol not used by oceanex cancelOrders ()
887
890
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
888
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
891
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
889
892
  */
890
893
  await this.loadMarkets();
891
894
  const response = await this.privatePostOrderDeleteMulti(this.extend({ 'ids': ids }, params));
@@ -900,7 +903,7 @@ export default class oceanex extends Exchange {
900
903
  * @see https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
901
904
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
902
905
  * @param {object} [params] extra parameters specific to the oceanex api endpoint
903
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
906
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
904
907
  */
905
908
  await this.loadMarkets();
906
909
  const response = await this.privatePostOrdersClear(params);