ccxt 4.0.73 → 4.0.75

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 (283) hide show
  1. package/README.md +11 -11
  2. package/dist/ccxt.browser.js +2058 -1943
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +9 -9
  6. package/dist/cjs/src/alpaca.js +6 -6
  7. package/dist/cjs/src/ascendex.js +22 -22
  8. package/dist/cjs/src/base/Exchange.js +2 -2
  9. package/dist/cjs/src/bigone.js +17 -17
  10. package/dist/cjs/src/binance.js +51 -51
  11. package/dist/cjs/src/bingx.js +25 -26
  12. package/dist/cjs/src/bit2c.js +10 -10
  13. package/dist/cjs/src/bitbank.js +11 -11
  14. package/dist/cjs/src/bitbns.js +12 -12
  15. package/dist/cjs/src/bitfinex.js +19 -19
  16. package/dist/cjs/src/bitfinex2.js +25 -25
  17. package/dist/cjs/src/bitflyer.js +15 -15
  18. package/dist/cjs/src/bitforex.js +9 -9
  19. package/dist/cjs/src/bitget.js +34 -34
  20. package/dist/cjs/src/bithumb.js +9 -9
  21. package/dist/cjs/src/bitmart.js +42 -29
  22. package/dist/cjs/src/bitmex.js +19 -19
  23. package/dist/cjs/src/bitopro.js +18 -18
  24. package/dist/cjs/src/bitpanda.js +19 -19
  25. package/dist/cjs/src/bitrue.js +15 -15
  26. package/dist/cjs/src/bitso.js +19 -19
  27. package/dist/cjs/src/bitstamp.js +19 -19
  28. package/dist/cjs/src/bitstamp1.js +6 -6
  29. package/dist/cjs/src/bittrex.js +24 -24
  30. package/dist/cjs/src/bitvavo.js +16 -16
  31. package/dist/cjs/src/bkex.js +17 -17
  32. package/dist/cjs/src/bl3p.js +6 -6
  33. package/dist/cjs/src/blockchaincom.js +20 -20
  34. package/dist/cjs/src/btcalpha.js +13 -13
  35. package/dist/cjs/src/btcbox.js +8 -8
  36. package/dist/cjs/src/btcmarkets.js +15 -15
  37. package/dist/cjs/src/btctradeua.js +6 -6
  38. package/dist/cjs/src/btcturk.js +9 -9
  39. package/dist/cjs/src/bybit.js +148 -116
  40. package/dist/cjs/src/cex.js +12 -12
  41. package/dist/cjs/src/coinbase.js +20 -20
  42. package/dist/cjs/src/coinbasepro.js +22 -22
  43. package/dist/cjs/src/coincheck.js +10 -10
  44. package/dist/cjs/src/coinex.js +81 -35
  45. package/dist/cjs/src/coinfalcon.js +14 -14
  46. package/dist/cjs/src/coinmate.js +12 -12
  47. package/dist/cjs/src/coinone.js +10 -10
  48. package/dist/cjs/src/coinsph.js +20 -20
  49. package/dist/cjs/src/coinspot.js +6 -6
  50. package/dist/cjs/src/cryptocom.js +24 -24
  51. package/dist/cjs/src/currencycom.js +18 -18
  52. package/dist/cjs/src/delta.js +23 -23
  53. package/dist/cjs/src/deribit.js +27 -27
  54. package/dist/cjs/src/digifinex.js +27 -27
  55. package/dist/cjs/src/exmo.js +24 -24
  56. package/dist/cjs/src/gate.js +34 -34
  57. package/dist/cjs/src/gemini.js +14 -14
  58. package/dist/cjs/src/hitbtc.js +30 -30
  59. package/dist/cjs/src/hollaex.js +20 -20
  60. package/dist/cjs/src/huobi.js +40 -40
  61. package/dist/cjs/src/huobijp.js +18 -18
  62. package/dist/cjs/src/idex.js +17 -17
  63. package/dist/cjs/src/independentreserve.js +10 -10
  64. package/dist/cjs/src/indodax.js +12 -12
  65. package/dist/cjs/src/kraken.js +25 -25
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +29 -29
  68. package/dist/cjs/src/kucoinfutures.js +19 -19
  69. package/dist/cjs/src/kuna.js +10 -10
  70. package/dist/cjs/src/latoken.js +15 -15
  71. package/dist/cjs/src/lbank.js +10 -10
  72. package/dist/cjs/src/lbank2.js +21 -21
  73. package/dist/cjs/src/luno.js +14 -14
  74. package/dist/cjs/src/lykke.js +14 -14
  75. package/dist/cjs/src/mercado.js +10 -10
  76. package/dist/cjs/src/mexc.js +38 -38
  77. package/dist/cjs/src/ndax.js +18 -18
  78. package/dist/cjs/src/novadax.js +18 -18
  79. package/dist/cjs/src/oceanex.js +14 -14
  80. package/dist/cjs/src/okcoin.js +19 -19
  81. package/dist/cjs/src/okx.js +48 -48
  82. package/dist/cjs/src/paymium.js +9 -9
  83. package/dist/cjs/src/phemex.js +24 -24
  84. package/dist/cjs/src/poloniex.js +77 -60
  85. package/dist/cjs/src/poloniexfutures.js +16 -16
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +2 -2
  88. package/dist/cjs/src/pro/binance.js +10 -10
  89. package/dist/cjs/src/pro/bitfinex.js +3 -3
  90. package/dist/cjs/src/pro/bitfinex2.js +4 -4
  91. package/dist/cjs/src/pro/bitget.js +4 -4
  92. package/dist/cjs/src/pro/bitmart.js +3 -3
  93. package/dist/cjs/src/pro/bitmex.js +4 -4
  94. package/dist/cjs/src/pro/bitopro.js +2 -2
  95. package/dist/cjs/src/pro/bitrue.js +1 -1
  96. package/dist/cjs/src/pro/bitstamp.js +2 -2
  97. package/dist/cjs/src/pro/bittrex.js +4 -4
  98. package/dist/cjs/src/pro/bitvavo.js +4 -4
  99. package/dist/cjs/src/pro/bybit.js +12 -11
  100. package/dist/cjs/src/pro/cex.js +3 -3
  101. package/dist/cjs/src/pro/coinbasepro.js +5 -5
  102. package/dist/cjs/src/pro/coinex.js +3 -3
  103. package/dist/cjs/src/pro/cryptocom.js +7 -7
  104. package/dist/cjs/src/pro/currencycom.js +2 -2
  105. package/dist/cjs/src/pro/deribit.js +3 -3
  106. package/dist/cjs/src/pro/exmo.js +2 -2
  107. package/dist/cjs/src/pro/gate.js +5 -5
  108. package/dist/cjs/src/pro/gemini.js +2 -2
  109. package/dist/cjs/src/pro/hitbtc.js +2 -2
  110. package/dist/cjs/src/pro/hollaex.js +3 -3
  111. package/dist/cjs/src/pro/huobi.js +4 -4
  112. package/dist/cjs/src/pro/huobijp.js +2 -2
  113. package/dist/cjs/src/pro/idex.js +3 -3
  114. package/dist/cjs/src/pro/independentreserve.js +1 -1
  115. package/dist/cjs/src/pro/kraken.js +6 -6
  116. package/dist/cjs/src/pro/krakenfutures.js +2 -2
  117. package/dist/cjs/src/pro/kucoin.js +4 -4
  118. package/dist/cjs/src/pro/kucoinfutures.js +3 -3
  119. package/dist/cjs/src/pro/luno.js +1 -1
  120. package/dist/cjs/src/pro/ndax.js +2 -2
  121. package/dist/cjs/src/pro/okcoin.js +3 -3
  122. package/dist/cjs/src/pro/okx.js +12 -11
  123. package/dist/cjs/src/pro/phemex.js +4 -4
  124. package/dist/cjs/src/pro/poloniex.js +1 -1
  125. package/dist/cjs/src/pro/upbit.js +2 -2
  126. package/dist/cjs/src/pro/wazirx.js +3 -3
  127. package/dist/cjs/src/pro/whitebit.js +4 -4
  128. package/dist/cjs/src/probit.js +17 -17
  129. package/dist/cjs/src/tidex.js +11 -11
  130. package/dist/cjs/src/timex.js +14 -14
  131. package/dist/cjs/src/tokocrypto.js +16 -16
  132. package/dist/cjs/src/upbit.js +18 -18
  133. package/dist/cjs/src/wavesexchange.js +13 -13
  134. package/dist/cjs/src/wazirx.js +10 -10
  135. package/dist/cjs/src/whitebit.js +21 -21
  136. package/dist/cjs/src/woo.js +28 -22
  137. package/dist/cjs/src/yobit.js +14 -14
  138. package/dist/cjs/src/zaif.js +8 -8
  139. package/dist/cjs/src/zonda.js +13 -13
  140. package/js/ccxt.d.ts +1 -1
  141. package/js/ccxt.js +1 -1
  142. package/js/src/abstract/bitmart.d.ts +13 -0
  143. package/js/src/abstract/bybit.d.ts +33 -21
  144. package/js/src/abstract/woo.d.ts +6 -0
  145. package/js/src/ace.js +9 -9
  146. package/js/src/alpaca.js +6 -6
  147. package/js/src/ascendex.js +22 -22
  148. package/js/src/base/Exchange.js +2 -2
  149. package/js/src/bigone.js +17 -17
  150. package/js/src/binance.js +51 -51
  151. package/js/src/bingx.js +25 -26
  152. package/js/src/bit2c.js +10 -10
  153. package/js/src/bitbank.js +11 -11
  154. package/js/src/bitbns.js +12 -12
  155. package/js/src/bitfinex.js +19 -19
  156. package/js/src/bitfinex2.js +25 -25
  157. package/js/src/bitflyer.js +15 -15
  158. package/js/src/bitforex.js +9 -9
  159. package/js/src/bitget.js +34 -34
  160. package/js/src/bithumb.js +9 -9
  161. package/js/src/bitmart.js +42 -29
  162. package/js/src/bitmex.js +19 -19
  163. package/js/src/bitopro.js +18 -18
  164. package/js/src/bitpanda.js +19 -19
  165. package/js/src/bitrue.js +15 -15
  166. package/js/src/bitso.js +19 -19
  167. package/js/src/bitstamp.js +19 -19
  168. package/js/src/bitstamp1.js +6 -6
  169. package/js/src/bittrex.js +24 -24
  170. package/js/src/bitvavo.js +16 -16
  171. package/js/src/bkex.js +17 -17
  172. package/js/src/bl3p.js +6 -6
  173. package/js/src/blockchaincom.js +20 -20
  174. package/js/src/btcalpha.js +13 -13
  175. package/js/src/btcbox.js +8 -8
  176. package/js/src/btcmarkets.js +15 -15
  177. package/js/src/btctradeua.js +6 -6
  178. package/js/src/btcturk.js +9 -9
  179. package/js/src/bybit.js +148 -116
  180. package/js/src/cex.js +12 -12
  181. package/js/src/coinbase.js +20 -20
  182. package/js/src/coinbasepro.js +22 -22
  183. package/js/src/coincheck.js +10 -10
  184. package/js/src/coinex.d.ts +1 -0
  185. package/js/src/coinex.js +81 -35
  186. package/js/src/coinfalcon.js +14 -14
  187. package/js/src/coinmate.js +12 -12
  188. package/js/src/coinone.js +10 -10
  189. package/js/src/coinsph.js +20 -20
  190. package/js/src/coinspot.js +6 -6
  191. package/js/src/cryptocom.js +24 -24
  192. package/js/src/currencycom.js +18 -18
  193. package/js/src/delta.js +23 -23
  194. package/js/src/deribit.js +27 -27
  195. package/js/src/digifinex.js +27 -27
  196. package/js/src/exmo.js +24 -24
  197. package/js/src/gate.js +34 -34
  198. package/js/src/gemini.js +14 -14
  199. package/js/src/hitbtc.js +30 -30
  200. package/js/src/hollaex.js +20 -20
  201. package/js/src/huobi.js +40 -40
  202. package/js/src/huobijp.js +18 -18
  203. package/js/src/idex.js +17 -17
  204. package/js/src/independentreserve.js +10 -10
  205. package/js/src/indodax.js +12 -12
  206. package/js/src/kraken.js +25 -25
  207. package/js/src/krakenfutures.js +12 -12
  208. package/js/src/kucoin.js +29 -29
  209. package/js/src/kucoinfutures.js +19 -19
  210. package/js/src/kuna.js +10 -10
  211. package/js/src/latoken.js +15 -15
  212. package/js/src/lbank.js +10 -10
  213. package/js/src/lbank2.js +21 -21
  214. package/js/src/luno.js +14 -14
  215. package/js/src/lykke.js +14 -14
  216. package/js/src/mercado.js +10 -10
  217. package/js/src/mexc.js +38 -38
  218. package/js/src/ndax.js +18 -18
  219. package/js/src/novadax.js +18 -18
  220. package/js/src/oceanex.js +14 -14
  221. package/js/src/okcoin.js +19 -19
  222. package/js/src/okx.js +48 -48
  223. package/js/src/paymium.js +9 -9
  224. package/js/src/phemex.js +24 -24
  225. package/js/src/poloniex.js +77 -60
  226. package/js/src/poloniexfutures.js +16 -16
  227. package/js/src/pro/alpaca.js +5 -5
  228. package/js/src/pro/ascendex.js +2 -2
  229. package/js/src/pro/binance.js +10 -10
  230. package/js/src/pro/bitfinex.js +3 -3
  231. package/js/src/pro/bitfinex2.js +4 -4
  232. package/js/src/pro/bitget.js +4 -4
  233. package/js/src/pro/bitmart.js +3 -3
  234. package/js/src/pro/bitmex.js +4 -4
  235. package/js/src/pro/bitopro.js +2 -2
  236. package/js/src/pro/bitrue.js +1 -1
  237. package/js/src/pro/bitstamp.js +2 -2
  238. package/js/src/pro/bittrex.js +4 -4
  239. package/js/src/pro/bitvavo.js +4 -4
  240. package/js/src/pro/bybit.d.ts +1 -1
  241. package/js/src/pro/bybit.js +12 -11
  242. package/js/src/pro/cex.js +3 -3
  243. package/js/src/pro/coinbasepro.js +5 -5
  244. package/js/src/pro/coinex.js +3 -3
  245. package/js/src/pro/cryptocom.js +7 -7
  246. package/js/src/pro/currencycom.js +2 -2
  247. package/js/src/pro/deribit.js +3 -3
  248. package/js/src/pro/exmo.js +2 -2
  249. package/js/src/pro/gate.js +5 -5
  250. package/js/src/pro/gemini.js +2 -2
  251. package/js/src/pro/hitbtc.js +2 -2
  252. package/js/src/pro/hollaex.js +3 -3
  253. package/js/src/pro/huobi.js +4 -4
  254. package/js/src/pro/huobijp.js +2 -2
  255. package/js/src/pro/idex.js +3 -3
  256. package/js/src/pro/independentreserve.js +1 -1
  257. package/js/src/pro/kraken.js +6 -6
  258. package/js/src/pro/krakenfutures.js +2 -2
  259. package/js/src/pro/kucoin.js +4 -4
  260. package/js/src/pro/kucoinfutures.js +3 -3
  261. package/js/src/pro/luno.js +1 -1
  262. package/js/src/pro/ndax.js +2 -2
  263. package/js/src/pro/okcoin.js +3 -3
  264. package/js/src/pro/okx.d.ts +1 -1
  265. package/js/src/pro/okx.js +12 -11
  266. package/js/src/pro/phemex.js +4 -4
  267. package/js/src/pro/poloniex.js +1 -1
  268. package/js/src/pro/upbit.js +2 -2
  269. package/js/src/pro/wazirx.js +3 -3
  270. package/js/src/pro/whitebit.js +4 -4
  271. package/js/src/probit.js +17 -17
  272. package/js/src/tidex.js +11 -11
  273. package/js/src/timex.js +14 -14
  274. package/js/src/tokocrypto.js +16 -16
  275. package/js/src/upbit.js +18 -18
  276. package/js/src/wavesexchange.js +13 -13
  277. package/js/src/wazirx.js +10 -10
  278. package/js/src/whitebit.js +21 -21
  279. package/js/src/woo.js +28 -22
  280. package/js/src/yobit.js +14 -14
  281. package/js/src/zaif.js +8 -8
  282. package/js/src/zonda.js +13 -13
  283. package/package.json +1 -1
package/js/src/bitget.js CHANGED
@@ -1482,7 +1482,7 @@ export default class bitget extends Exchange {
1482
1482
  * @see https://bitgetlimited.github.io/apidoc/en/mix/#get-position-tier
1483
1483
  * @param {string} symbol unified market symbol
1484
1484
  * @param {object} [params] extra parameters specific to the bitget api endpoint
1485
- * @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
1485
+ * @returns {object} a [leverage tiers structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}
1486
1486
  */
1487
1487
  await this.loadMarkets();
1488
1488
  const request = {};
@@ -1554,7 +1554,7 @@ export default class bitget extends Exchange {
1554
1554
  * @param {object} [params] extra parameters specific to the bitget api endpoint
1555
1555
  * @param {string} [params.pageNo] pageNo default 1
1556
1556
  * @param {string} [params.pageSize] pageSize default 20. Max 100
1557
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1557
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1558
1558
  */
1559
1559
  await this.loadMarkets();
1560
1560
  if (code === undefined) {
@@ -1609,7 +1609,7 @@ export default class bitget extends Exchange {
1609
1609
  * @param {string} tag
1610
1610
  * @param {object} [params] extra parameters specific to the bitget api endpoint
1611
1611
  * @param {string} [params.chain] the chain to withdraw to
1612
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1612
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1613
1613
  */
1614
1614
  this.checkAddress(address);
1615
1615
  const chain = this.safeString2(params, 'chain', 'network');
@@ -1684,7 +1684,7 @@ export default class bitget extends Exchange {
1684
1684
  * @param {object} [params] extra parameters specific to the bitget api endpoint
1685
1685
  * @param {string} [params.pageNo] pageNo default 1
1686
1686
  * @param {string} [params.pageSize] pageSize default 20. Max 100
1687
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1687
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1688
1688
  */
1689
1689
  await this.loadMarkets();
1690
1690
  if (code === undefined) {
@@ -1798,7 +1798,7 @@ export default class bitget extends Exchange {
1798
1798
  * @description fetch the deposit address for a currency associated with this account
1799
1799
  * @param {string} code unified currency code
1800
1800
  * @param {object} [params] extra parameters specific to the bitget api endpoint
1801
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1801
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1802
1802
  */
1803
1803
  await this.loadMarkets();
1804
1804
  const networkCode = this.safeString(params, 'network');
@@ -1856,7 +1856,7 @@ export default class bitget extends Exchange {
1856
1856
  * @param {string} symbol unified symbol of the market to fetch the order book for
1857
1857
  * @param {int} [limit] the maximum amount of order book entries to return
1858
1858
  * @param {object} [params] extra parameters specific to the bitget api endpoint
1859
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1859
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
1860
1860
  */
1861
1861
  await this.loadMarkets();
1862
1862
  const market = this.market(symbol);
@@ -2013,7 +2013,7 @@ export default class bitget extends Exchange {
2013
2013
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
2014
2014
  * @param {string} symbol unified symbol of the market to fetch the ticker for
2015
2015
  * @param {object} [params] extra parameters specific to the bitget api endpoint
2016
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2016
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
2017
2017
  */
2018
2018
  await this.loadMarkets();
2019
2019
  const market = this.market(symbol);
@@ -2059,7 +2059,7 @@ export default class bitget extends Exchange {
2059
2059
  * @see https://bitgetlimited.github.io/apidoc/en/mix/#get-all-symbol-ticker
2060
2060
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
2061
2061
  * @param {object} [params] extra parameters specific to the bitget api endpoint
2062
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2062
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
2063
2063
  */
2064
2064
  const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
2065
2065
  await this.loadMarkets();
@@ -2334,7 +2334,7 @@ export default class bitget extends Exchange {
2334
2334
  * @description fetch the trading fees for a market
2335
2335
  * @param {string} symbol unified market symbol
2336
2336
  * @param {object} [params] extra parameters specific to the bitget api endpoint
2337
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
2337
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
2338
2338
  */
2339
2339
  await this.loadMarkets();
2340
2340
  const market = this.market(symbol);
@@ -2371,7 +2371,7 @@ export default class bitget extends Exchange {
2371
2371
  * @name bitget#fetchTradingFees
2372
2372
  * @description fetch the trading fees for multiple markets
2373
2373
  * @param {object} [params] extra parameters specific to the bitget api endpoint
2374
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
2374
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
2375
2375
  */
2376
2376
  await this.loadMarkets();
2377
2377
  const response = await this.publicSpotGetPublicProducts(params);
@@ -2813,7 +2813,7 @@ export default class bitget extends Exchange {
2813
2813
  * @param {string} type 'market' or 'limit'
2814
2814
  * @param {string} side 'buy' or 'sell' or 'open_long' or 'open_short' or 'close_long' or 'close_short'
2815
2815
  * @param {float} amount how much of currency you want to trade in units of base currency
2816
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2816
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2817
2817
  * @param {object} [params] extra parameters specific to the bitget api endpoint
2818
2818
  * @param {float} [params.triggerPrice] *swap only* The price at which a trigger order is triggered at
2819
2819
  * @param {float} [params.stopLossPrice] *swap only* The price at which a stop loss order is triggered at
@@ -2823,7 +2823,7 @@ export default class bitget extends Exchange {
2823
2823
  * @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
2824
2824
  * @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
2825
2825
  * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
2826
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2826
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2827
2827
  */
2828
2828
  await this.loadMarkets();
2829
2829
  const market = this.market(symbol);
@@ -3006,9 +3006,9 @@ export default class bitget extends Exchange {
3006
3006
  * @param {string} type 'market' or 'limit'
3007
3007
  * @param {string} side 'buy' or 'sell'
3008
3008
  * @param {float} amount how much of currency you want to trade in units of base currency
3009
- * @param {float} price the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3009
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3010
3010
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3011
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3011
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3012
3012
  */
3013
3013
  await this.loadMarkets();
3014
3014
  const market = this.market(symbol);
@@ -3107,7 +3107,7 @@ export default class bitget extends Exchange {
3107
3107
  * @param {string} id order id
3108
3108
  * @param {string} symbol unified symbol of the market the order was made in
3109
3109
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3110
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3110
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3111
3111
  */
3112
3112
  this.checkRequiredSymbol('cancelOrder', symbol);
3113
3113
  await this.loadMarkets();
@@ -3151,7 +3151,7 @@ export default class bitget extends Exchange {
3151
3151
  * @param {string[]} ids order ids
3152
3152
  * @param {string} symbol unified market symbol, default is undefined
3153
3153
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3154
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3154
+ * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3155
3155
  */
3156
3156
  this.checkRequiredSymbol('cancelOrders', symbol);
3157
3157
  await this.loadMarkets();
@@ -3220,7 +3220,7 @@ export default class bitget extends Exchange {
3220
3220
  * @param {string} symbol unified market symbol
3221
3221
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3222
3222
  * @param {string} [params.code] marginCoin unified currency code
3223
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3223
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3224
3224
  */
3225
3225
  const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
3226
3226
  await this.loadMarkets();
@@ -3288,7 +3288,7 @@ export default class bitget extends Exchange {
3288
3288
  * @description fetches information on an order made by the user
3289
3289
  * @param {string} symbol unified symbol of the market the order was made in
3290
3290
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3291
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3291
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3292
3292
  */
3293
3293
  this.checkRequiredSymbol('fetchOrder', symbol);
3294
3294
  await this.loadMarkets();
@@ -3376,7 +3376,7 @@ export default class bitget extends Exchange {
3376
3376
  * @param {int} [since] the earliest time in ms to fetch open orders for
3377
3377
  * @param {int} [limit] the maximum number of open order structures to retrieve
3378
3378
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3379
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3379
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3380
3380
  */
3381
3381
  await this.loadMarkets();
3382
3382
  const request = {};
@@ -3547,7 +3547,7 @@ export default class bitget extends Exchange {
3547
3547
  * @param {int} [since] timestamp in ms of the earliest order
3548
3548
  * @param {int} [limit] the max number of closed orders to return
3549
3549
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3550
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3550
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3551
3551
  */
3552
3552
  await this.loadMarkets();
3553
3553
  this.checkRequiredSymbol('fetchClosedOrders', symbol);
@@ -3574,7 +3574,7 @@ export default class bitget extends Exchange {
3574
3574
  * @param {int} [since] timestamp in ms of the earliest order
3575
3575
  * @param {int} [limit] the max number of canceled orders to return
3576
3576
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3577
- * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3577
+ * @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3578
3578
  */
3579
3579
  await this.loadMarkets();
3580
3580
  this.checkRequiredSymbol('fetchCanceledOrders', symbol);
@@ -3757,7 +3757,7 @@ export default class bitget extends Exchange {
3757
3757
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
3758
3758
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
3759
3759
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3760
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
3760
+ * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
3761
3761
  */
3762
3762
  await this.loadMarkets();
3763
3763
  let currency = undefined;
@@ -3845,7 +3845,7 @@ export default class bitget extends Exchange {
3845
3845
  * @param {int} [since] the earliest time in ms to fetch trades for
3846
3846
  * @param {int} [limit] the maximum number of trades structures to retrieve
3847
3847
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3848
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3848
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
3849
3849
  */
3850
3850
  this.checkRequiredSymbol('fetchMyTrades', symbol);
3851
3851
  await this.loadMarkets();
@@ -3896,7 +3896,7 @@ export default class bitget extends Exchange {
3896
3896
  * @param {int} [since] the earliest time in ms to fetch trades for
3897
3897
  * @param {int} [limit] the maximum number of trades to retrieve
3898
3898
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3899
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3899
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
3900
3900
  */
3901
3901
  this.checkRequiredSymbol('fetchOrderTrades', symbol);
3902
3902
  await this.loadMarkets();
@@ -3945,7 +3945,7 @@ export default class bitget extends Exchange {
3945
3945
  * @description fetch data on a single open contract trade position
3946
3946
  * @param {string} symbol unified market symbol of the market the position is held in, default is undefined
3947
3947
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3948
- * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
3948
+ * @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
3949
3949
  */
3950
3950
  await this.loadMarkets();
3951
3951
  const market = this.market(symbol);
@@ -3994,7 +3994,7 @@ export default class bitget extends Exchange {
3994
3994
  * @description fetch all open positions
3995
3995
  * @param {string[]|undefined} symbols list of unified market symbols
3996
3996
  * @param {object} [params] extra parameters specific to the bitget api endpoint
3997
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
3997
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
3998
3998
  */
3999
3999
  const sandboxMode = this.safeValue(this.options, 'sandboxMode', false);
4000
4000
  await this.loadMarkets();
@@ -4309,7 +4309,7 @@ export default class bitget extends Exchange {
4309
4309
  * @description fetch the current funding rate
4310
4310
  * @param {string} symbol unified market symbol
4311
4311
  * @param {object} [params] extra parameters specific to the bitget api endpoint
4312
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
4312
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
4313
4313
  */
4314
4314
  await this.loadMarkets();
4315
4315
  const market = this.market(symbol);
@@ -4373,7 +4373,7 @@ export default class bitget extends Exchange {
4373
4373
  * @param {int} [since] the starting timestamp in milliseconds
4374
4374
  * @param {int} [limit] the number of entries to return
4375
4375
  * @param {object} [params] extra parameters specific to the bitget api endpoint
4376
- * @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
4376
+ * @returns {object[]} a list of [funding history structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
4377
4377
  */
4378
4378
  await this.loadMarkets();
4379
4379
  const market = this.market(symbol);
@@ -4513,7 +4513,7 @@ export default class bitget extends Exchange {
4513
4513
  * @param {string} symbol unified market symbol
4514
4514
  * @param {float} amount the amount of margin to remove
4515
4515
  * @param {object} [params] extra parameters specific to the bitget api endpoint
4516
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
4516
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
4517
4517
  */
4518
4518
  if (amount > 0) {
4519
4519
  throw new BadRequest(this.id + ' reduceMargin() amount parameter must be a negative value');
@@ -4532,7 +4532,7 @@ export default class bitget extends Exchange {
4532
4532
  * @param {string} symbol unified market symbol
4533
4533
  * @param {float} amount amount of margin to add
4534
4534
  * @param {object} [params] extra parameters specific to the bitget api endpoint
4535
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
4535
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
4536
4536
  */
4537
4537
  const holdSide = this.safeString(params, 'holdSide');
4538
4538
  if (holdSide === undefined) {
@@ -4547,7 +4547,7 @@ export default class bitget extends Exchange {
4547
4547
  * @description fetch the set leverage for a market
4548
4548
  * @param {string} symbol unified market symbol
4549
4549
  * @param {object} [params] extra parameters specific to the bitget api endpoint
4550
- * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
4550
+ * @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
4551
4551
  */
4552
4552
  await this.loadMarkets();
4553
4553
  const market = this.market(symbol);
@@ -4682,7 +4682,7 @@ export default class bitget extends Exchange {
4682
4682
  * @see https://bitgetlimited.github.io/apidoc/en/mix/#get-open-interest
4683
4683
  * @param {string} symbol Unified CCXT market symbol
4684
4684
  * @param {object} [params] exchange specific parameters
4685
- * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=interest-history-structure}
4685
+ * @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
4686
4686
  */
4687
4687
  await this.loadMarkets();
4688
4688
  const market = this.market(symbol);
@@ -4718,7 +4718,7 @@ export default class bitget extends Exchange {
4718
4718
  * @param {int} [since] the earliest time in ms to fetch transfers for
4719
4719
  * @param {int} [limit] the maximum number of transfers structures to retrieve
4720
4720
  * @param {object} [params] extra parameters specific to the bitget api endpoint
4721
- * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
4721
+ * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
4722
4722
  */
4723
4723
  await this.loadMarkets();
4724
4724
  let type = undefined;
@@ -4776,7 +4776,7 @@ export default class bitget extends Exchange {
4776
4776
  *
4777
4777
  * EXCHANGE SPECIFIC PARAMS
4778
4778
  * @param {string} [params.clientOid] custom id
4779
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
4779
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
4780
4780
  */
4781
4781
  await this.loadMarkets();
4782
4782
  const currency = this.currency(code);
package/js/src/bithumb.js CHANGED
@@ -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);
@@ -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);