ccxt 4.0.74 → 4.0.76

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 (299) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2635 -2383
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +11 -11
  6. package/dist/cjs/src/alpaca.js +7 -7
  7. package/dist/cjs/src/ascendex.js +25 -25
  8. package/dist/cjs/src/base/Exchange.js +4 -4
  9. package/dist/cjs/src/bigone.js +19 -19
  10. package/dist/cjs/src/binance.js +56 -56
  11. package/dist/cjs/src/bingx.js +85 -40
  12. package/dist/cjs/src/bit2c.js +12 -12
  13. package/dist/cjs/src/bitbank.js +13 -13
  14. package/dist/cjs/src/bitbns.js +14 -14
  15. package/dist/cjs/src/bitfinex.js +21 -21
  16. package/dist/cjs/src/bitfinex2.js +29 -29
  17. package/dist/cjs/src/bitflyer.js +17 -17
  18. package/dist/cjs/src/bitforex.js +11 -11
  19. package/dist/cjs/src/bitget.js +39 -39
  20. package/dist/cjs/src/bithumb.js +11 -11
  21. package/dist/cjs/src/bitmart.js +44 -31
  22. package/dist/cjs/src/bitmex.js +24 -24
  23. package/dist/cjs/src/bitopro.js +21 -21
  24. package/dist/cjs/src/bitpanda.js +21 -21
  25. package/dist/cjs/src/bitrue.js +18 -18
  26. package/dist/cjs/src/bitso.js +21 -21
  27. package/dist/cjs/src/bitstamp.js +21 -21
  28. package/dist/cjs/src/bitstamp1.js +8 -8
  29. package/dist/cjs/src/bittrex.js +27 -27
  30. package/dist/cjs/src/bitvavo.js +19 -19
  31. package/dist/cjs/src/bkex.js +21 -21
  32. package/dist/cjs/src/bl3p.js +8 -8
  33. package/dist/cjs/src/blockchaincom.js +21 -21
  34. package/dist/cjs/src/btcalpha.js +15 -15
  35. package/dist/cjs/src/btcbox.js +10 -10
  36. package/dist/cjs/src/btcmarkets.js +17 -17
  37. package/dist/cjs/src/btctradeua.js +8 -8
  38. package/dist/cjs/src/btcturk.js +11 -11
  39. package/dist/cjs/src/bybit.js +153 -121
  40. package/dist/cjs/src/cex.js +14 -14
  41. package/dist/cjs/src/coinbase.js +23 -23
  42. package/dist/cjs/src/coinbasepro.js +24 -24
  43. package/dist/cjs/src/coincheck.js +12 -12
  44. package/dist/cjs/src/coinex.js +87 -41
  45. package/dist/cjs/src/coinfalcon.js +16 -16
  46. package/dist/cjs/src/coinmate.js +14 -14
  47. package/dist/cjs/src/coinone.js +12 -12
  48. package/dist/cjs/src/coinsph.js +27 -22
  49. package/dist/cjs/src/coinspot.js +8 -8
  50. package/dist/cjs/src/cryptocom.js +29 -29
  51. package/dist/cjs/src/currencycom.js +20 -20
  52. package/dist/cjs/src/delta.js +25 -25
  53. package/dist/cjs/src/deribit.js +30 -30
  54. package/dist/cjs/src/digifinex.js +31 -31
  55. package/dist/cjs/src/exmo.js +26 -26
  56. package/dist/cjs/src/gate.js +38 -38
  57. package/dist/cjs/src/gemini.js +17 -17
  58. package/dist/cjs/src/hitbtc.js +34 -34
  59. package/dist/cjs/src/hollaex.js +23 -23
  60. package/dist/cjs/src/huobi.js +45 -45
  61. package/dist/cjs/src/huobijp.js +20 -20
  62. package/dist/cjs/src/idex.js +19 -19
  63. package/dist/cjs/src/independentreserve.js +12 -12
  64. package/dist/cjs/src/indodax.js +14 -14
  65. package/dist/cjs/src/kraken.js +27 -27
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +33 -33
  68. package/dist/cjs/src/kucoinfutures.js +24 -24
  69. package/dist/cjs/src/kuna.js +12 -12
  70. package/dist/cjs/src/latoken.js +17 -17
  71. package/dist/cjs/src/lbank.js +12 -12
  72. package/dist/cjs/src/lbank2.js +23 -23
  73. package/dist/cjs/src/luno.js +16 -16
  74. package/dist/cjs/src/lykke.js +16 -16
  75. package/dist/cjs/src/mercado.js +12 -12
  76. package/dist/cjs/src/mexc.js +44 -42
  77. package/dist/cjs/src/ndax.js +20 -20
  78. package/dist/cjs/src/novadax.js +20 -20
  79. package/dist/cjs/src/oceanex.js +16 -16
  80. package/dist/cjs/src/okcoin.js +21 -21
  81. package/dist/cjs/src/okx.js +52 -52
  82. package/dist/cjs/src/paymium.js +11 -11
  83. package/dist/cjs/src/phemex.js +26 -26
  84. package/dist/cjs/src/poloniex.js +237 -136
  85. package/dist/cjs/src/poloniexfutures.js +18 -18
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +4 -4
  88. package/dist/cjs/src/pro/binance.js +16 -16
  89. package/dist/cjs/src/pro/bitfinex.js +4 -4
  90. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  91. package/dist/cjs/src/pro/bitget.js +6 -6
  92. package/dist/cjs/src/pro/bitmart.js +4 -4
  93. package/dist/cjs/src/pro/bitmex.js +6 -6
  94. package/dist/cjs/src/pro/bitopro.js +4 -4
  95. package/dist/cjs/src/pro/bitpanda.js +6 -6
  96. package/dist/cjs/src/pro/bitrue.js +2 -2
  97. package/dist/cjs/src/pro/bitstamp.js +3 -3
  98. package/dist/cjs/src/pro/bittrex.js +6 -6
  99. package/dist/cjs/src/pro/bitvavo.js +5 -5
  100. package/dist/cjs/src/pro/blockchaincom.js +5 -5
  101. package/dist/cjs/src/pro/bybit.js +6 -6
  102. package/dist/cjs/src/pro/cex.js +7 -7
  103. package/dist/cjs/src/pro/coinbase.js +5 -5
  104. package/dist/cjs/src/pro/coinbasepro.js +6 -6
  105. package/dist/cjs/src/pro/coinex.js +5 -5
  106. package/dist/cjs/src/pro/cryptocom.js +10 -10
  107. package/dist/cjs/src/pro/currencycom.js +4 -4
  108. package/dist/cjs/src/pro/deribit.js +6 -6
  109. package/dist/cjs/src/pro/exmo.js +5 -5
  110. package/dist/cjs/src/pro/gate.js +7 -7
  111. package/dist/cjs/src/pro/gemini.js +3 -3
  112. package/dist/cjs/src/pro/hitbtc.js +3 -3
  113. package/dist/cjs/src/pro/hollaex.js +5 -5
  114. package/dist/cjs/src/pro/huobi.js +6 -6
  115. package/dist/cjs/src/pro/huobijp.js +3 -3
  116. package/dist/cjs/src/pro/idex.js +4 -4
  117. package/dist/cjs/src/pro/independentreserve.js +2 -2
  118. package/dist/cjs/src/pro/kraken.js +12 -12
  119. package/dist/cjs/src/pro/krakenfutures.js +7 -7
  120. package/dist/cjs/src/pro/kucoin.js +6 -6
  121. package/dist/cjs/src/pro/kucoinfutures.js +6 -5
  122. package/dist/cjs/src/pro/luno.js +2 -2
  123. package/dist/cjs/src/pro/mexc.js +6 -6
  124. package/dist/cjs/src/pro/ndax.js +3 -3
  125. package/dist/cjs/src/pro/okcoin.js +5 -5
  126. package/dist/cjs/src/pro/okx.js +19 -18
  127. package/dist/cjs/src/pro/phemex.js +6 -6
  128. package/dist/cjs/src/pro/poloniex.js +7 -7
  129. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  130. package/dist/cjs/src/pro/probit.js +6 -6
  131. package/dist/cjs/src/pro/upbit.js +3 -3
  132. package/dist/cjs/src/pro/wazirx.js +6 -6
  133. package/dist/cjs/src/pro/whitebit.js +6 -6
  134. package/dist/cjs/src/probit.js +19 -19
  135. package/dist/cjs/src/tidex.js +13 -13
  136. package/dist/cjs/src/timex.js +16 -16
  137. package/dist/cjs/src/tokocrypto.js +18 -18
  138. package/dist/cjs/src/upbit.js +20 -20
  139. package/dist/cjs/src/wavesexchange.js +16 -16
  140. package/dist/cjs/src/wazirx.js +12 -12
  141. package/dist/cjs/src/whitebit.js +24 -24
  142. package/dist/cjs/src/woo.js +30 -24
  143. package/dist/cjs/src/yobit.js +16 -16
  144. package/dist/cjs/src/zaif.js +10 -10
  145. package/dist/cjs/src/zonda.js +15 -15
  146. package/js/ccxt.d.ts +1 -1
  147. package/js/ccxt.js +1 -1
  148. package/js/src/abstract/bingx.d.ts +2 -0
  149. package/js/src/abstract/bitmart.d.ts +13 -0
  150. package/js/src/abstract/bybit.d.ts +33 -21
  151. package/js/src/abstract/coinsph.d.ts +5 -0
  152. package/js/src/abstract/woo.d.ts +6 -0
  153. package/js/src/ace.js +11 -11
  154. package/js/src/alpaca.js +7 -7
  155. package/js/src/ascendex.js +25 -25
  156. package/js/src/base/Exchange.js +4 -4
  157. package/js/src/bigone.js +19 -19
  158. package/js/src/binance.js +56 -56
  159. package/js/src/bingx.d.ts +1 -0
  160. package/js/src/bingx.js +85 -40
  161. package/js/src/bit2c.js +12 -12
  162. package/js/src/bitbank.js +13 -13
  163. package/js/src/bitbns.js +14 -14
  164. package/js/src/bitfinex.js +21 -21
  165. package/js/src/bitfinex2.js +29 -29
  166. package/js/src/bitflyer.js +17 -17
  167. package/js/src/bitforex.js +11 -11
  168. package/js/src/bitget.js +39 -39
  169. package/js/src/bithumb.js +11 -11
  170. package/js/src/bitmart.js +44 -31
  171. package/js/src/bitmex.js +24 -24
  172. package/js/src/bitopro.js +21 -21
  173. package/js/src/bitpanda.js +21 -21
  174. package/js/src/bitrue.js +18 -18
  175. package/js/src/bitso.js +21 -21
  176. package/js/src/bitstamp.js +21 -21
  177. package/js/src/bitstamp1.js +8 -8
  178. package/js/src/bittrex.js +27 -27
  179. package/js/src/bitvavo.js +19 -19
  180. package/js/src/bkex.js +21 -21
  181. package/js/src/bl3p.js +8 -8
  182. package/js/src/blockchaincom.js +21 -21
  183. package/js/src/btcalpha.js +15 -15
  184. package/js/src/btcbox.js +10 -10
  185. package/js/src/btcmarkets.js +17 -17
  186. package/js/src/btctradeua.js +8 -8
  187. package/js/src/btcturk.js +11 -11
  188. package/js/src/bybit.js +153 -121
  189. package/js/src/cex.js +14 -14
  190. package/js/src/coinbase.js +23 -23
  191. package/js/src/coinbasepro.js +24 -24
  192. package/js/src/coincheck.js +12 -12
  193. package/js/src/coinex.d.ts +1 -0
  194. package/js/src/coinex.js +87 -41
  195. package/js/src/coinfalcon.js +16 -16
  196. package/js/src/coinmate.js +14 -14
  197. package/js/src/coinone.js +12 -12
  198. package/js/src/coinsph.js +27 -22
  199. package/js/src/coinspot.js +8 -8
  200. package/js/src/cryptocom.js +29 -29
  201. package/js/src/currencycom.js +20 -20
  202. package/js/src/delta.js +25 -25
  203. package/js/src/deribit.js +30 -30
  204. package/js/src/digifinex.js +31 -31
  205. package/js/src/exmo.js +26 -26
  206. package/js/src/gate.js +38 -38
  207. package/js/src/gemini.js +17 -17
  208. package/js/src/hitbtc.js +34 -34
  209. package/js/src/hollaex.js +23 -23
  210. package/js/src/huobi.js +45 -45
  211. package/js/src/huobijp.js +20 -20
  212. package/js/src/idex.js +19 -19
  213. package/js/src/independentreserve.js +12 -12
  214. package/js/src/indodax.js +14 -14
  215. package/js/src/kraken.js +27 -27
  216. package/js/src/krakenfutures.js +12 -12
  217. package/js/src/kucoin.js +33 -33
  218. package/js/src/kucoinfutures.js +24 -24
  219. package/js/src/kuna.js +12 -12
  220. package/js/src/latoken.js +17 -17
  221. package/js/src/lbank.js +12 -12
  222. package/js/src/lbank2.js +23 -23
  223. package/js/src/luno.js +16 -16
  224. package/js/src/lykke.js +16 -16
  225. package/js/src/mercado.js +12 -12
  226. package/js/src/mexc.js +45 -43
  227. package/js/src/ndax.js +20 -20
  228. package/js/src/novadax.js +20 -20
  229. package/js/src/oceanex.js +16 -16
  230. package/js/src/okcoin.js +21 -21
  231. package/js/src/okx.js +52 -52
  232. package/js/src/paymium.js +11 -11
  233. package/js/src/phemex.js +26 -26
  234. package/js/src/poloniex.d.ts +1 -1
  235. package/js/src/poloniex.js +237 -136
  236. package/js/src/poloniexfutures.js +18 -18
  237. package/js/src/pro/alpaca.js +5 -5
  238. package/js/src/pro/ascendex.js +4 -4
  239. package/js/src/pro/binance.js +16 -16
  240. package/js/src/pro/bitfinex.js +4 -4
  241. package/js/src/pro/bitfinex2.js +6 -6
  242. package/js/src/pro/bitget.js +6 -6
  243. package/js/src/pro/bitmart.js +4 -4
  244. package/js/src/pro/bitmex.js +6 -6
  245. package/js/src/pro/bitopro.js +4 -4
  246. package/js/src/pro/bitpanda.js +6 -6
  247. package/js/src/pro/bitrue.js +2 -2
  248. package/js/src/pro/bitstamp.js +3 -3
  249. package/js/src/pro/bittrex.js +6 -6
  250. package/js/src/pro/bitvavo.js +5 -5
  251. package/js/src/pro/blockchaincom.js +5 -5
  252. package/js/src/pro/bybit.js +6 -6
  253. package/js/src/pro/cex.js +7 -7
  254. package/js/src/pro/coinbase.js +5 -5
  255. package/js/src/pro/coinbasepro.js +6 -6
  256. package/js/src/pro/coinex.js +5 -5
  257. package/js/src/pro/cryptocom.js +10 -10
  258. package/js/src/pro/currencycom.js +4 -4
  259. package/js/src/pro/deribit.js +6 -6
  260. package/js/src/pro/exmo.js +5 -5
  261. package/js/src/pro/gate.js +7 -7
  262. package/js/src/pro/gemini.js +3 -3
  263. package/js/src/pro/hitbtc.js +3 -3
  264. package/js/src/pro/hollaex.js +5 -5
  265. package/js/src/pro/huobi.js +6 -6
  266. package/js/src/pro/huobijp.js +3 -3
  267. package/js/src/pro/idex.js +4 -4
  268. package/js/src/pro/independentreserve.js +2 -2
  269. package/js/src/pro/kraken.js +12 -12
  270. package/js/src/pro/krakenfutures.js +7 -7
  271. package/js/src/pro/kucoin.js +6 -6
  272. package/js/src/pro/kucoinfutures.js +6 -5
  273. package/js/src/pro/luno.js +2 -2
  274. package/js/src/pro/mexc.js +6 -6
  275. package/js/src/pro/ndax.js +3 -3
  276. package/js/src/pro/okcoin.js +5 -5
  277. package/js/src/pro/okx.d.ts +1 -1
  278. package/js/src/pro/okx.js +19 -18
  279. package/js/src/pro/phemex.js +6 -6
  280. package/js/src/pro/poloniex.js +7 -7
  281. package/js/src/pro/poloniexfutures.js +5 -5
  282. package/js/src/pro/probit.js +6 -6
  283. package/js/src/pro/upbit.js +3 -3
  284. package/js/src/pro/wazirx.js +6 -6
  285. package/js/src/pro/whitebit.js +6 -6
  286. package/js/src/probit.js +19 -19
  287. package/js/src/tidex.js +13 -13
  288. package/js/src/timex.js +16 -16
  289. package/js/src/tokocrypto.js +18 -18
  290. package/js/src/upbit.js +20 -20
  291. package/js/src/wavesexchange.js +16 -16
  292. package/js/src/wazirx.js +12 -12
  293. package/js/src/whitebit.js +24 -24
  294. package/js/src/woo.js +30 -24
  295. package/js/src/yobit.js +16 -16
  296. package/js/src/zaif.js +10 -10
  297. package/js/src/zonda.js +15 -15
  298. package/package.json +1 -1
  299. package/skip-tests.json +2 -0
package/js/src/bithumb.js CHANGED
@@ -288,7 +288,7 @@ export default class bithumb extends Exchange {
288
288
  * @name bithumb#fetchBalance
289
289
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
290
290
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
291
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
291
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
292
292
  */
293
293
  await this.loadMarkets();
294
294
  const request = {
@@ -305,7 +305,7 @@ export default class bithumb extends Exchange {
305
305
  * @param {string} symbol unified symbol of the market to fetch the order book for
306
306
  * @param {int} [limit] the maximum amount of order book entries to return
307
307
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
308
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
308
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
309
309
  */
310
310
  await this.loadMarkets();
311
311
  const market = this.market(symbol);
@@ -395,7 +395,7 @@ export default class bithumb extends Exchange {
395
395
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
396
396
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
397
397
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
398
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
398
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
399
399
  */
400
400
  await this.loadMarkets();
401
401
  const result = {};
@@ -449,7 +449,7 @@ export default class bithumb extends Exchange {
449
449
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
450
450
  * @param {string} symbol unified symbol of the market to fetch the ticker for
451
451
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
452
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
452
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
453
453
  */
454
454
  await this.loadMarkets();
455
455
  const market = this.market(symbol);
@@ -631,7 +631,7 @@ export default class bithumb extends Exchange {
631
631
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
632
632
  * @param {int} [limit] the maximum amount of trades to fetch
633
633
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
634
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
634
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
635
635
  */
636
636
  await this.loadMarkets();
637
637
  const market = this.market(symbol);
@@ -668,9 +668,9 @@ export default class bithumb extends Exchange {
668
668
  * @param {string} type 'market' or 'limit'
669
669
  * @param {string} side 'buy' or 'sell'
670
670
  * @param {float} amount how much of currency you want to trade in units of base currency
671
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
671
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
672
672
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
673
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
673
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
674
674
  */
675
675
  await this.loadMarkets();
676
676
  const market = this.market(symbol);
@@ -707,7 +707,7 @@ export default class bithumb extends Exchange {
707
707
  * @description fetches information on an order made by the user
708
708
  * @param {string} symbol unified symbol of the market the order was made in
709
709
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
710
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
710
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
711
711
  */
712
712
  if (symbol === undefined) {
713
713
  throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
@@ -867,7 +867,7 @@ export default class bithumb extends Exchange {
867
867
  * @param {int} [since] the earliest time in ms to fetch open orders for
868
868
  * @param {int} [limit] the maximum number of open orders structures to retrieve
869
869
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
870
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
870
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
871
871
  */
872
872
  if (symbol === undefined) {
873
873
  throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
@@ -914,7 +914,7 @@ export default class bithumb extends Exchange {
914
914
  * @param {string} id order id
915
915
  * @param {string} symbol unified symbol of the market the order was made in
916
916
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
917
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
917
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
918
918
  */
919
919
  const side_in_params = ('side' in params);
920
920
  if (!side_in_params) {
@@ -951,7 +951,7 @@ export default class bithumb extends Exchange {
951
951
  * @param {string} address the address to withdraw to
952
952
  * @param {string} tag
953
953
  * @param {object} [params] extra parameters specific to the bithumb api endpoint
954
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
954
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
955
955
  */
956
956
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
957
957
  this.checkAddress(address);
package/js/src/bitmart.js CHANGED
@@ -119,8 +119,15 @@ export default class bitmart extends Exchange {
119
119
  'spot/v1/currencies': 7.5,
120
120
  'spot/v1/symbols': 7.5,
121
121
  'spot/v1/symbols/details': 5,
122
+ 'spot/quotation/v3/tickers': 6,
123
+ 'spot/quotation/v3/ticker': 4,
124
+ 'spot/quotation/v3/lite-klines': 4,
125
+ 'spot/quotation/v3/klines': 6,
126
+ 'spot/quotation/v3/books': 4,
127
+ 'spot/quotation/v3/trades': 4,
122
128
  'spot/v1/ticker': 5,
123
129
  'spot/v2/ticker': 5,
130
+ 'spot/v1/ticker_detail': 5,
124
131
  'spot/v1/steps': 30,
125
132
  'spot/v1/symbols/kline': 5,
126
133
  'spot/v1/symbols/book': 5,
@@ -185,6 +192,12 @@ export default class bitmart extends Exchange {
185
192
  'spot/v1/batch_orders': 1,
186
193
  'spot/v2/cancel_order': 1,
187
194
  'spot/v1/cancel_orders': 15,
195
+ 'spot/v4/query/order': 1,
196
+ 'spot/v4/query/client-order': 1,
197
+ 'spot/v4/query/open-orders': 5,
198
+ 'spot/v4/query/history-orders': 5,
199
+ 'spot/v4/query/trades': 5,
200
+ 'spot/v4/query/order-trades': 5,
188
201
  // newer endpoint
189
202
  'spot/v3/cancel_order': 1,
190
203
  'spot/v2/batch_orders': 1,
@@ -569,7 +582,7 @@ export default class bitmart extends Exchange {
569
582
  * @name bitmart#fetchStatus
570
583
  * @description the latest known information on the availability of the exchange API
571
584
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
572
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
585
+ * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
573
586
  */
574
587
  const options = this.safeValue(this.options, 'fetchStatus', {});
575
588
  const defaultType = this.safeString(this.options, 'defaultType');
@@ -903,7 +916,7 @@ export default class bitmart extends Exchange {
903
916
  * @description please use fetchDepositWithdrawFee instead
904
917
  * @param {string} code unified currency code
905
918
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
906
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
919
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
907
920
  */
908
921
  await this.loadMarkets();
909
922
  const currency = this.currency(code);
@@ -962,7 +975,7 @@ export default class bitmart extends Exchange {
962
975
  * @description fetch the fee for deposits and withdrawals
963
976
  * @param {string} code unified currency code
964
977
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
965
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
978
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
966
979
  */
967
980
  await this.loadMarkets();
968
981
  const currency = this.currency(code);
@@ -1075,7 +1088,7 @@ export default class bitmart extends Exchange {
1075
1088
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1076
1089
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1077
1090
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
1078
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1091
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1079
1092
  */
1080
1093
  await this.loadMarkets();
1081
1094
  const market = this.market(symbol);
@@ -1164,7 +1177,7 @@ export default class bitmart extends Exchange {
1164
1177
  * @see https://developer-pro.bitmart.com/en/spot/#get-ticker-of-all-pairs-v2
1165
1178
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1166
1179
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
1167
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1180
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1168
1181
  */
1169
1182
  await this.loadMarkets();
1170
1183
  symbols = this.marketSymbols(symbols);
@@ -1198,7 +1211,7 @@ export default class bitmart extends Exchange {
1198
1211
  * @param {string} symbol unified symbol of the market to fetch the order book for
1199
1212
  * @param {int} [limit] the maximum amount of order book entries to return
1200
1213
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
1201
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1214
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
1202
1215
  */
1203
1216
  await this.loadMarkets();
1204
1217
  const market = this.market(symbol);
@@ -1321,7 +1334,7 @@ export default class bitmart extends Exchange {
1321
1334
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1322
1335
  * @param {int} [limit] the maximum amount of trades to fetch
1323
1336
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
1324
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
1337
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1325
1338
  */
1326
1339
  await this.loadMarkets();
1327
1340
  const market = this.market(symbol);
@@ -1514,7 +1527,7 @@ export default class bitmart extends Exchange {
1514
1527
  * @param {int} [since] the earliest time in ms to fetch trades for
1515
1528
  * @param {int} [limit] the maximum number of trades structures to retrieve
1516
1529
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
1517
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1530
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1518
1531
  */
1519
1532
  if (symbol === undefined) {
1520
1533
  throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
@@ -1575,7 +1588,7 @@ export default class bitmart extends Exchange {
1575
1588
  * @param {int} [since] the earliest time in ms to fetch trades for
1576
1589
  * @param {int} [limit] the maximum number of trades to retrieve
1577
1590
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
1578
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1591
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1579
1592
  */
1580
1593
  if (symbol === undefined) {
1581
1594
  throw new ArgumentsRequired(this.id + ' fetchOrderTrades() requires a symbol argument');
@@ -1690,7 +1703,7 @@ export default class bitmart extends Exchange {
1690
1703
  * @see https://developer-pro.bitmart.com/en/spot/#get-account-balance
1691
1704
  * @see https://developer-pro.bitmart.com/en/spot/#get-margin-account-details-isolated
1692
1705
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
1693
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
1706
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1694
1707
  */
1695
1708
  await this.loadMarkets();
1696
1709
  let marketType = undefined;
@@ -1829,7 +1842,7 @@ export default class bitmart extends Exchange {
1829
1842
  * @description fetch the trading fees for a market
1830
1843
  * @param {string} symbol unified market symbol
1831
1844
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
1832
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
1845
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
1833
1846
  */
1834
1847
  await this.loadMarkets();
1835
1848
  const market = this.market(symbol);
@@ -1971,10 +1984,10 @@ export default class bitmart extends Exchange {
1971
1984
  * @param {string} type 'market' or 'limit'
1972
1985
  * @param {string} side 'buy' or 'sell'
1973
1986
  * @param {float} amount how much of currency you want to trade in units of base currency
1974
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1987
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1975
1988
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
1976
1989
  * @param {string} [params.marginMode] 'cross' or 'isolated'
1977
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1990
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1978
1991
  */
1979
1992
  await this.loadMarkets();
1980
1993
  const market = this.market(symbol);
@@ -2071,7 +2084,7 @@ export default class bitmart extends Exchange {
2071
2084
  * @param {string} id order id
2072
2085
  * @param {string} symbol unified symbol of the market the order was made in
2073
2086
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2074
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2087
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2075
2088
  */
2076
2089
  if (symbol === undefined) {
2077
2090
  throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
@@ -2135,7 +2148,7 @@ export default class bitmart extends Exchange {
2135
2148
  * @see https://developer-pro.bitmart.com/en/spot/#cancel-all-orders
2136
2149
  * @param {string} symbol unified market symbol of the market to cancel orders in
2137
2150
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2138
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2151
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2139
2152
  */
2140
2153
  await this.loadMarkets();
2141
2154
  const request = {};
@@ -2233,7 +2246,7 @@ export default class bitmart extends Exchange {
2233
2246
  * @param {int} [since] the earliest time in ms to fetch open orders for
2234
2247
  * @param {int} [limit] the maximum number of open orders structures to retrieve
2235
2248
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2236
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2249
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2237
2250
  */
2238
2251
  return await this.fetchOrdersByStatus('open', symbol, since, limit, params);
2239
2252
  }
@@ -2246,7 +2259,7 @@ export default class bitmart extends Exchange {
2246
2259
  * @param {int} [since] the earliest time in ms to fetch orders for
2247
2260
  * @param {int} [limit] the maximum number of orde structures to retrieve
2248
2261
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2249
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2262
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2250
2263
  */
2251
2264
  return await this.fetchOrdersByStatus('closed', symbol, since, limit, params);
2252
2265
  }
@@ -2259,7 +2272,7 @@ export default class bitmart extends Exchange {
2259
2272
  * @param {int} [since] timestamp in ms of the earliest order, default is undefined
2260
2273
  * @param {int} [limit] max number of orders to return, default is undefined
2261
2274
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2262
- * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2275
+ * @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2263
2276
  */
2264
2277
  return await this.fetchOrdersByStatus('canceled', symbol, since, limit, params);
2265
2278
  }
@@ -2270,7 +2283,7 @@ export default class bitmart extends Exchange {
2270
2283
  * @description fetches information on an order made by the user
2271
2284
  * @param {string} symbol unified symbol of the market the order was made in
2272
2285
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2273
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2286
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2274
2287
  */
2275
2288
  if (symbol === undefined) {
2276
2289
  throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
@@ -2318,7 +2331,7 @@ export default class bitmart extends Exchange {
2318
2331
  * @description fetch the deposit address for a currency associated with this account
2319
2332
  * @param {string} code unified currency code
2320
2333
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2321
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2334
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2322
2335
  */
2323
2336
  await this.loadMarkets();
2324
2337
  const currency = this.currency(code);
@@ -2383,7 +2396,7 @@ export default class bitmart extends Exchange {
2383
2396
  * @param {string} address the address to withdraw to
2384
2397
  * @param {string} tag
2385
2398
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2386
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2399
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2387
2400
  */
2388
2401
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2389
2402
  this.checkAddress(address);
@@ -2492,7 +2505,7 @@ export default class bitmart extends Exchange {
2492
2505
  * @param {string} id deposit id
2493
2506
  * @param {string} code not used by bitmart fetchDeposit ()
2494
2507
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2495
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2508
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2496
2509
  */
2497
2510
  await this.loadMarkets();
2498
2511
  const request = {
@@ -2534,7 +2547,7 @@ export default class bitmart extends Exchange {
2534
2547
  * @param {int} [since] the earliest time in ms to fetch deposits for
2535
2548
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2536
2549
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2537
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2550
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2538
2551
  */
2539
2552
  return await this.fetchTransactionsByType('deposit', code, since, limit, params);
2540
2553
  }
@@ -2546,7 +2559,7 @@ export default class bitmart extends Exchange {
2546
2559
  * @param {string} id withdrawal id
2547
2560
  * @param {string} code not used by bitmart.fetchWithdrawal
2548
2561
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2549
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2562
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2550
2563
  */
2551
2564
  await this.loadMarkets();
2552
2565
  const request = {
@@ -2588,7 +2601,7 @@ export default class bitmart extends Exchange {
2588
2601
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2589
2602
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2590
2603
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2591
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2604
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2592
2605
  */
2593
2606
  return await this.fetchTransactionsByType('withdraw', code, since, limit, params);
2594
2607
  }
@@ -2687,7 +2700,7 @@ export default class bitmart extends Exchange {
2687
2700
  * @param {string} symbol unified market symbol
2688
2701
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2689
2702
  * @param {string} [params.marginMode] 'isolated' is the default and 'cross' is unavailable
2690
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
2703
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
2691
2704
  */
2692
2705
  await this.loadMarkets();
2693
2706
  if (symbol === undefined) {
@@ -2730,7 +2743,7 @@ export default class bitmart extends Exchange {
2730
2743
  * @param {string} symbol unified market symbol
2731
2744
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2732
2745
  * @param {string} [params.marginMode] 'isolated' is the default and 'cross' is unavailable
2733
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
2746
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
2734
2747
  */
2735
2748
  await this.loadMarkets();
2736
2749
  if (symbol === undefined) {
@@ -2795,7 +2808,7 @@ export default class bitmart extends Exchange {
2795
2808
  * @see https://developer-pro.bitmart.com/en/spot/#get-trading-pair-borrowing-rate-and-amount
2796
2809
  * @param {string} code unified currency code
2797
2810
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2798
- * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
2811
+ * @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
2799
2812
  */
2800
2813
  await this.loadMarkets();
2801
2814
  let market = undefined;
@@ -2894,7 +2907,7 @@ export default class bitmart extends Exchange {
2894
2907
  * @description fetch the borrow interest rates of all currencies, currently only works for isolated margin
2895
2908
  * @see https://developer-pro.bitmart.com/en/spot/#get-trading-pair-borrowing-rate-and-amount
2896
2909
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2897
- * @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
2910
+ * @returns {object} a list of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
2898
2911
  */
2899
2912
  await this.loadMarkets();
2900
2913
  const response = await this.privateGetSpotV1MarginIsolatedPairs(params);
@@ -2985,7 +2998,7 @@ export default class bitmart extends Exchange {
2985
2998
  * @param {string} fromAccount account to transfer from
2986
2999
  * @param {string} toAccount account to transfer to
2987
3000
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
2988
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
3001
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
2989
3002
  */
2990
3003
  await this.loadMarkets();
2991
3004
  const currency = this.currency(code);
@@ -3065,7 +3078,7 @@ export default class bitmart extends Exchange {
3065
3078
  * @param {int} [since] the earliest time in ms to fetch borrrow interest for
3066
3079
  * @param {int} [limit] the maximum number of structures to retrieve
3067
3080
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
3068
- * @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
3081
+ * @returns {object[]} a list of [borrow interest structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-interest-structure}
3069
3082
  */
3070
3083
  if (symbol === undefined) {
3071
3084
  throw new ArgumentsRequired(this.id + ' fetchBorrowInterest() requires a symbol argument');
package/js/src/bitmex.js CHANGED
@@ -734,7 +734,7 @@ export default class bitmex extends Exchange {
734
734
  * @name bitmex#fetchBalance
735
735
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
736
736
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
737
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
737
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
738
738
  */
739
739
  await this.loadMarkets();
740
740
  const request = {
@@ -798,7 +798,7 @@ export default class bitmex extends Exchange {
798
798
  * @param {string} symbol unified symbol of the market to fetch the order book for
799
799
  * @param {int} [limit] the maximum amount of order book entries to return
800
800
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
801
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
801
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
802
802
  */
803
803
  await this.loadMarkets();
804
804
  const market = this.market(symbol);
@@ -840,7 +840,7 @@ export default class bitmex extends Exchange {
840
840
  * @description fetches information on an order made by the user
841
841
  * @param {string} symbol unified symbol of the market the order was made in
842
842
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
843
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
843
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
844
844
  */
845
845
  const filter = {
846
846
  'filter': {
@@ -863,7 +863,7 @@ export default class bitmex extends Exchange {
863
863
  * @param {int} [since] the earliest time in ms to fetch orders for
864
864
  * @param {int} [limit] the maximum number of orde structures to retrieve
865
865
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
866
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
866
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
867
867
  */
868
868
  await this.loadMarkets();
869
869
  let market = undefined;
@@ -897,7 +897,7 @@ export default class bitmex extends Exchange {
897
897
  * @param {int} [since] the earliest time in ms to fetch open orders for
898
898
  * @param {int} [limit] the maximum number of open orders structures to retrieve
899
899
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
900
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
900
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
901
901
  */
902
902
  const request = {
903
903
  'filter': {
@@ -915,7 +915,7 @@ export default class bitmex extends Exchange {
915
915
  * @param {int} [since] the earliest time in ms to fetch orders for
916
916
  * @param {int} [limit] the maximum number of orde structures to retrieve
917
917
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
918
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
918
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
919
919
  */
920
920
  // Bitmex barfs if you set 'open': false in the filter...
921
921
  const orders = await this.fetchOrders(symbol, since, limit, params);
@@ -930,7 +930,7 @@ export default class bitmex extends Exchange {
930
930
  * @param {int} [since] the earliest time in ms to fetch trades for
931
931
  * @param {int} [limit] the maximum number of trades structures to retrieve
932
932
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
933
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
933
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
934
934
  */
935
935
  await this.loadMarkets();
936
936
  let market = undefined;
@@ -1126,7 +1126,7 @@ export default class bitmex extends Exchange {
1126
1126
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
1127
1127
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
1128
1128
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1129
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
1129
+ * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
1130
1130
  */
1131
1131
  await this.loadMarkets();
1132
1132
  const request = {
@@ -1177,7 +1177,7 @@ export default class bitmex extends Exchange {
1177
1177
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1178
1178
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1179
1179
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1180
- * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1180
+ * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1181
1181
  */
1182
1182
  await this.loadMarkets();
1183
1183
  const request = {
@@ -1292,7 +1292,7 @@ export default class bitmex extends Exchange {
1292
1292
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1293
1293
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1294
1294
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1295
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1295
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1296
1296
  */
1297
1297
  await this.loadMarkets();
1298
1298
  const market = this.market(symbol);
@@ -1313,7 +1313,7 @@ export default class bitmex extends Exchange {
1313
1313
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1314
1314
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1315
1315
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1316
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1316
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1317
1317
  */
1318
1318
  await this.loadMarkets();
1319
1319
  symbols = this.marketSymbols(symbols);
@@ -1710,7 +1710,7 @@ export default class bitmex extends Exchange {
1710
1710
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1711
1711
  * @param {int} [limit] the maximum amount of trades to fetch
1712
1712
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1713
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
1713
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1714
1714
  */
1715
1715
  await this.loadMarkets();
1716
1716
  const market = this.market(symbol);
@@ -1767,9 +1767,9 @@ export default class bitmex extends Exchange {
1767
1767
  * @param {string} type 'market' or 'limit'
1768
1768
  * @param {string} side 'buy' or 'sell'
1769
1769
  * @param {float} amount how much of currency you want to trade in units of base currency
1770
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1770
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1771
1771
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1772
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1772
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1773
1773
  */
1774
1774
  await this.loadMarkets();
1775
1775
  const market = this.market(symbol);
@@ -1845,7 +1845,7 @@ export default class bitmex extends Exchange {
1845
1845
  * @param {string} id order id
1846
1846
  * @param {string} symbol not used by bitmex cancelOrder ()
1847
1847
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1848
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1848
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1849
1849
  */
1850
1850
  await this.loadMarkets();
1851
1851
  // https://github.com/ccxt/ccxt/issues/6507
@@ -1876,7 +1876,7 @@ export default class bitmex extends Exchange {
1876
1876
  * @param {string[]} ids order ids
1877
1877
  * @param {string} symbol not used by bitmex cancelOrders ()
1878
1878
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1879
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1879
+ * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1880
1880
  */
1881
1881
  // return await this.cancelOrder (ids, symbol, params);
1882
1882
  await this.loadMarkets();
@@ -1900,7 +1900,7 @@ export default class bitmex extends Exchange {
1900
1900
  * @description cancel all open orders
1901
1901
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1902
1902
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1903
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1903
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1904
1904
  */
1905
1905
  await this.loadMarkets();
1906
1906
  const request = {};
@@ -1958,7 +1958,7 @@ export default class bitmex extends Exchange {
1958
1958
  * @description fetch all open positions
1959
1959
  * @param {string[]|undefined} symbols list of unified market symbols
1960
1960
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
1961
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
1961
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
1962
1962
  */
1963
1963
  await this.loadMarkets();
1964
1964
  const response = await this.privateGetPosition(params);
@@ -2218,7 +2218,7 @@ export default class bitmex extends Exchange {
2218
2218
  * @param {string} address the address to withdraw to
2219
2219
  * @param {string} tag
2220
2220
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
2221
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2221
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2222
2222
  */
2223
2223
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2224
2224
  this.checkAddress(address);
@@ -2262,7 +2262,7 @@ export default class bitmex extends Exchange {
2262
2262
  * @description fetch the funding rate for multiple markets
2263
2263
  * @param {string[]|undefined} symbols list of unified market symbols
2264
2264
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
2265
- * @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
2265
+ * @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
2266
2266
  */
2267
2267
  await this.loadMarkets();
2268
2268
  const response = await this.publicGetInstrumentActiveAndIndices(params);
@@ -2311,14 +2311,14 @@ export default class bitmex extends Exchange {
2311
2311
  * @description Fetches the history of funding rates
2312
2312
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
2313
2313
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
2314
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure} to fetch
2314
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
2315
2315
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
2316
2316
  * @param {int} [params.until] timestamp in ms for ending date filter
2317
2317
  * @param {bool} [params.reverse] if true, will sort results newest first
2318
2318
  * @param {int} [params.start] starting point for results
2319
2319
  * @param {string} [params.columns] array of column names to fetch in info, if omitted, will return all columns
2320
2320
  * @param {string} [params.filter] generic table filter, send json key/value pairs, such as {"key": "value"}, you can key on individual fields, and do more advanced querying on timestamps, see the [timestamp docs]{@link https://www.bitmex.com/app/restAPI#Timestamp-Filters} for more details
2321
- * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure}
2321
+ * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
2322
2322
  */
2323
2323
  await this.loadMarkets();
2324
2324
  const request = {};
@@ -2451,7 +2451,7 @@ export default class bitmex extends Exchange {
2451
2451
  * @param {string} code unified currency code
2452
2452
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
2453
2453
  * @param {string} [params.network] deposit chain, can view all chains via this.publicGetWalletAssets, default is eth, unless the currency has a default chain within this.options['networks']
2454
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2454
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2455
2455
  */
2456
2456
  await this.loadMarkets();
2457
2457
  let networkCode = undefined;
@@ -2551,7 +2551,7 @@ export default class bitmex extends Exchange {
2551
2551
  * @see https://www.bitmex.com/api/explorer/#!/Wallet/Wallet_getAssetsConfig
2552
2552
  * @param {string[]|undefined} codes list of unified currency codes
2553
2553
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
2554
- * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/en/latest/manual.html#fee-structure}
2554
+ * @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
2555
2555
  */
2556
2556
  await this.loadMarkets();
2557
2557
  const assets = await this.publicGetWalletAssets(params);