ccxt 4.0.74 → 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 (282) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2047 -1932
  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 +21 -21
  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 +5 -5
  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 +21 -21
  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.js +5 -5
  241. package/js/src/pro/cex.js +3 -3
  242. package/js/src/pro/coinbasepro.js +5 -5
  243. package/js/src/pro/coinex.js +3 -3
  244. package/js/src/pro/cryptocom.js +7 -7
  245. package/js/src/pro/currencycom.js +2 -2
  246. package/js/src/pro/deribit.js +3 -3
  247. package/js/src/pro/exmo.js +2 -2
  248. package/js/src/pro/gate.js +5 -5
  249. package/js/src/pro/gemini.js +2 -2
  250. package/js/src/pro/hitbtc.js +2 -2
  251. package/js/src/pro/hollaex.js +3 -3
  252. package/js/src/pro/huobi.js +4 -4
  253. package/js/src/pro/huobijp.js +2 -2
  254. package/js/src/pro/idex.js +3 -3
  255. package/js/src/pro/independentreserve.js +1 -1
  256. package/js/src/pro/kraken.js +6 -6
  257. package/js/src/pro/krakenfutures.js +2 -2
  258. package/js/src/pro/kucoin.js +4 -4
  259. package/js/src/pro/kucoinfutures.js +3 -3
  260. package/js/src/pro/luno.js +1 -1
  261. package/js/src/pro/ndax.js +2 -2
  262. package/js/src/pro/okcoin.js +3 -3
  263. package/js/src/pro/okx.d.ts +1 -1
  264. package/js/src/pro/okx.js +12 -11
  265. package/js/src/pro/phemex.js +4 -4
  266. package/js/src/pro/poloniex.js +1 -1
  267. package/js/src/pro/upbit.js +2 -2
  268. package/js/src/pro/wazirx.js +3 -3
  269. package/js/src/pro/whitebit.js +4 -4
  270. package/js/src/probit.js +17 -17
  271. package/js/src/tidex.js +11 -11
  272. package/js/src/timex.js +14 -14
  273. package/js/src/tokocrypto.js +16 -16
  274. package/js/src/upbit.js +18 -18
  275. package/js/src/wavesexchange.js +13 -13
  276. package/js/src/wazirx.js +10 -10
  277. package/js/src/whitebit.js +21 -21
  278. package/js/src/woo.js +28 -22
  279. package/js/src/yobit.js +14 -14
  280. package/js/src/zaif.js +8 -8
  281. package/js/src/zonda.js +13 -13
  282. package/package.json +1 -1
@@ -435,7 +435,7 @@ export default class bitfinex2 extends Exchange {
435
435
  * @name bitfinex2#fetchStatus
436
436
  * @description the latest known information on the availability of the exchange API
437
437
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
438
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
438
+ * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
439
439
  */
440
440
  //
441
441
  // [1] // operative
@@ -838,7 +838,7 @@ export default class bitfinex2 extends Exchange {
838
838
  * @param {string} fromAccount account to transfer from
839
839
  * @param {string} toAccount account to transfer to
840
840
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
841
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
841
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
842
842
  */
843
843
  // transferring between derivatives wallet and regular wallet is not documented in their API
844
844
  // however we support it in CCXT (from just looking at web inspector)
@@ -981,7 +981,7 @@ export default class bitfinex2 extends Exchange {
981
981
  * @param {string} symbol unified symbol of the market to fetch the order book for
982
982
  * @param {int} [limit] the maximum amount of order book entries to return
983
983
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
984
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
984
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
985
985
  */
986
986
  await this.loadMarkets();
987
987
  const precision = this.safeValue(this.options, 'precision', 'R0');
@@ -1092,7 +1092,7 @@ export default class bitfinex2 extends Exchange {
1092
1092
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1093
1093
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1094
1094
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1095
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1095
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1096
1096
  */
1097
1097
  await this.loadMarkets();
1098
1098
  symbols = this.marketSymbols(symbols);
@@ -1161,7 +1161,7 @@ export default class bitfinex2 extends Exchange {
1161
1161
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1162
1162
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1163
1163
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1164
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1164
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1165
1165
  */
1166
1166
  await this.loadMarkets();
1167
1167
  const market = this.market(symbol);
@@ -1468,7 +1468,7 @@ export default class bitfinex2 extends Exchange {
1468
1468
  * @param {string} type 'limit' or 'market'
1469
1469
  * @param {string} side 'buy' or 'sell'
1470
1470
  * @param {float} amount the amount of currency to trade
1471
- * @param {float} price price of order
1471
+ * @param {float} [price] price of order
1472
1472
  * @param {object} [params] Extra parameters specific to the exchange API endpoint
1473
1473
  * @param {float} [params.stopPrice] The price at which a trigger order is triggered at
1474
1474
  * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
@@ -1479,7 +1479,7 @@ export default class bitfinex2 extends Exchange {
1479
1479
  * @param {string} [params.price_traling] The trailing price for a trailing stop order
1480
1480
  * @param {string} [params.price_aux_limit] Order price for stop limit orders
1481
1481
  * @param {string} [params.price_oco_stop] OCO stop price
1482
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1482
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1483
1483
  */
1484
1484
  await this.loadMarkets();
1485
1485
  const market = this.market(symbol);
@@ -1630,7 +1630,7 @@ export default class bitfinex2 extends Exchange {
1630
1630
  * @description cancel all open orders
1631
1631
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1632
1632
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1633
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1633
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1634
1634
  */
1635
1635
  const request = {
1636
1636
  'all': 1,
@@ -1647,7 +1647,7 @@ export default class bitfinex2 extends Exchange {
1647
1647
  * @param {string} id order id
1648
1648
  * @param {string} symbol Not used by bitfinex2 cancelOrder ()
1649
1649
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1650
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1650
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1651
1651
  */
1652
1652
  const cid = this.safeValue2(params, 'cid', 'clientOrderId'); // client order id
1653
1653
  let request = undefined;
@@ -1679,7 +1679,7 @@ export default class bitfinex2 extends Exchange {
1679
1679
  * @param {string} id order id
1680
1680
  * @param {string} symbol unified market symbol, default is undefined
1681
1681
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1682
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1682
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1683
1683
  */
1684
1684
  const request = {
1685
1685
  'id': [parseInt(id)],
@@ -1699,7 +1699,7 @@ export default class bitfinex2 extends Exchange {
1699
1699
  * @param {string} id order id
1700
1700
  * @param {string} symbol unified market symbol, default is undefined
1701
1701
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1702
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1702
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1703
1703
  */
1704
1704
  const request = {
1705
1705
  'id': [parseInt(id)],
@@ -1720,7 +1720,7 @@ export default class bitfinex2 extends Exchange {
1720
1720
  * @param {int} [since] the earliest time in ms to fetch open orders for
1721
1721
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1722
1722
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1723
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1723
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1724
1724
  */
1725
1725
  await this.loadMarkets();
1726
1726
  const request = {};
@@ -1783,7 +1783,7 @@ export default class bitfinex2 extends Exchange {
1783
1783
  * @param {int} [since] the earliest time in ms to fetch orders for
1784
1784
  * @param {int} [limit] the maximum number of orde structures to retrieve
1785
1785
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1786
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1786
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1787
1787
  */
1788
1788
  // returns the most recent closed or canceled orders up to circa two weeks ago
1789
1789
  await this.loadMarkets();
@@ -1854,7 +1854,7 @@ export default class bitfinex2 extends Exchange {
1854
1854
  * @param {int} [since] the earliest time in ms to fetch trades for
1855
1855
  * @param {int} [limit] the maximum number of trades to retrieve
1856
1856
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1857
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1857
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1858
1858
  */
1859
1859
  if (symbol === undefined) {
1860
1860
  throw new ArgumentsRequired(this.id + ' fetchOrderTrades() requires a symbol argument');
@@ -1879,7 +1879,7 @@ export default class bitfinex2 extends Exchange {
1879
1879
  * @param {int} [since] the earliest time in ms to fetch trades for
1880
1880
  * @param {int} [limit] the maximum number of trades structures to retrieve
1881
1881
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1882
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1882
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1883
1883
  */
1884
1884
  await this.loadMarkets();
1885
1885
  let market = undefined;
@@ -1908,7 +1908,7 @@ export default class bitfinex2 extends Exchange {
1908
1908
  * @description create a currency deposit address
1909
1909
  * @param {string} code unified currency code of the currency for the deposit address
1910
1910
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1911
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1911
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1912
1912
  */
1913
1913
  await this.loadMarkets();
1914
1914
  const request = {
@@ -1923,7 +1923,7 @@ export default class bitfinex2 extends Exchange {
1923
1923
  * @description fetch the deposit address for a currency associated with this account
1924
1924
  * @param {string} code unified currency code
1925
1925
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1926
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1926
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1927
1927
  */
1928
1928
  await this.loadMarkets();
1929
1929
  const currency = this.currency(code);
@@ -2136,7 +2136,7 @@ export default class bitfinex2 extends Exchange {
2136
2136
  * @name bitfinex2#fetchTradingFees
2137
2137
  * @description fetch the trading fees for multiple markets
2138
2138
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2139
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
2139
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
2140
2140
  */
2141
2141
  await this.loadMarkets();
2142
2142
  const response = await this.privatePostAuthRSummary(params);
@@ -2252,7 +2252,7 @@ export default class bitfinex2 extends Exchange {
2252
2252
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
2253
2253
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
2254
2254
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2255
- * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2255
+ * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2256
2256
  */
2257
2257
  await this.loadMarkets();
2258
2258
  let currency = undefined;
@@ -2310,7 +2310,7 @@ export default class bitfinex2 extends Exchange {
2310
2310
  * @param {string} address the address to withdraw to
2311
2311
  * @param {string} tag
2312
2312
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2313
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2313
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2314
2314
  */
2315
2315
  this.checkAddress(address);
2316
2316
  await this.loadMarkets();
@@ -2397,7 +2397,7 @@ export default class bitfinex2 extends Exchange {
2397
2397
  * @see https://docs.bitfinex.com/reference/rest-auth-positions
2398
2398
  * @param {string[]|undefined} symbols list of unified market symbols
2399
2399
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2400
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2400
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
2401
2401
  */
2402
2402
  await this.loadMarkets();
2403
2403
  symbols = this.marketSymbols(symbols);
@@ -2647,7 +2647,7 @@ export default class bitfinex2 extends Exchange {
2647
2647
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
2648
2648
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
2649
2649
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2650
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
2650
+ * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
2651
2651
  */
2652
2652
  await this.loadMarkets();
2653
2653
  await this.loadMarkets();
@@ -2691,7 +2691,7 @@ export default class bitfinex2 extends Exchange {
2691
2691
  * @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
2692
2692
  * @param {string} symbol unified market symbol
2693
2693
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2694
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
2694
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
2695
2695
  */
2696
2696
  return this.fetchFundingRates([symbol], params);
2697
2697
  }
@@ -2703,7 +2703,7 @@ export default class bitfinex2 extends Exchange {
2703
2703
  * @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
2704
2704
  * @param {string[]} symbols list of unified market symbols
2705
2705
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2706
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
2706
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
2707
2707
  */
2708
2708
  if (symbols === undefined) {
2709
2709
  throw new ArgumentsRequired(this.id + ' fetchFundingRates() requires a symbols argument');
@@ -2754,7 +2754,7 @@ export default class bitfinex2 extends Exchange {
2754
2754
  * @see https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
2755
2755
  * @param {string} symbol unified market symbol
2756
2756
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2757
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
2757
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
2758
2758
  */
2759
2759
  await this.loadMarkets();
2760
2760
  this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
@@ -351,7 +351,7 @@ export default class bitflyer extends Exchange {
351
351
  * @param {string} symbol unified symbol of the market to fetch the order book for
352
352
  * @param {int} [limit] the maximum amount of order book entries to return
353
353
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
354
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
354
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
355
355
  */
356
356
  await this.loadMarkets();
357
357
  const market = this.market(symbol);
@@ -395,7 +395,7 @@ export default class bitflyer extends Exchange {
395
395
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
396
396
  * @param {string} symbol unified symbol of the market to fetch the ticker for
397
397
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
398
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
398
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
399
399
  */
400
400
  await this.loadMarkets();
401
401
  const market = this.market(symbol);
@@ -496,7 +496,7 @@ export default class bitflyer extends Exchange {
496
496
  * @description fetch the trading fees for a market
497
497
  * @param {string} symbol unified market symbol
498
498
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
499
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
499
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
500
500
  */
501
501
  await this.loadMarkets();
502
502
  const market = this.market(symbol);
@@ -526,9 +526,9 @@ export default class bitflyer extends Exchange {
526
526
  * @param {string} type 'market' or 'limit'
527
527
  * @param {string} side 'buy' or 'sell'
528
528
  * @param {float} amount how much of currency you want to trade in units of base currency
529
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
529
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
530
530
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
531
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
531
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
532
532
  */
533
533
  await this.loadMarkets();
534
534
  const request = {
@@ -554,7 +554,7 @@ export default class bitflyer extends Exchange {
554
554
  * @param {string} id order id
555
555
  * @param {string} symbol unified symbol of the market the order was made in
556
556
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
557
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
557
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
558
558
  */
559
559
  if (symbol === undefined) {
560
560
  throw new ArgumentsRequired(this.id + ' cancelOrder() requires a `symbol` argument');
@@ -631,7 +631,7 @@ export default class bitflyer extends Exchange {
631
631
  * @param {int} [since] the earliest time in ms to fetch orders for
632
632
  * @param {int} [limit] the maximum number of orde structures to retrieve
633
633
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
634
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
634
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
635
635
  */
636
636
  if (symbol === undefined) {
637
637
  throw new ArgumentsRequired(this.id + ' fetchOrders() requires a `symbol` argument');
@@ -658,7 +658,7 @@ export default class bitflyer extends Exchange {
658
658
  * @param {int} [since] the earliest time in ms to fetch open orders for
659
659
  * @param {int} [limit] the maximum number of open orders structures to retrieve
660
660
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
661
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
661
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
662
662
  */
663
663
  const request = {
664
664
  'child_order_state': 'ACTIVE',
@@ -674,7 +674,7 @@ export default class bitflyer extends Exchange {
674
674
  * @param {int} [since] the earliest time in ms to fetch orders for
675
675
  * @param {int} [limit] the maximum number of orde structures to retrieve
676
676
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
677
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
677
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
678
678
  */
679
679
  const request = {
680
680
  'child_order_state': 'COMPLETED',
@@ -688,7 +688,7 @@ export default class bitflyer extends Exchange {
688
688
  * @description fetches information on an order made by the user
689
689
  * @param {string} symbol unified symbol of the market the order was made in
690
690
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
691
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
691
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
692
692
  */
693
693
  if (symbol === undefined) {
694
694
  throw new ArgumentsRequired(this.id + ' fetchOrder() requires a `symbol` argument');
@@ -709,7 +709,7 @@ export default class bitflyer extends Exchange {
709
709
  * @param {int} [since] the earliest time in ms to fetch trades for
710
710
  * @param {int} [limit] the maximum number of trades structures to retrieve
711
711
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
712
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
712
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
713
713
  */
714
714
  if (symbol === undefined) {
715
715
  throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a `symbol` argument');
@@ -732,7 +732,7 @@ export default class bitflyer extends Exchange {
732
732
  * @description fetch all open positions
733
733
  * @param {string[]} symbols list of unified market symbols
734
734
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
735
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
735
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
736
736
  */
737
737
  if (symbols === undefined) {
738
738
  throw new ArgumentsRequired(this.id + ' fetchPositions() requires a `symbols` argument, exactly one symbol in an array');
@@ -772,7 +772,7 @@ export default class bitflyer extends Exchange {
772
772
  * @param {string} address the address to withdraw to
773
773
  * @param {string} tag
774
774
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
775
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
775
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
776
776
  */
777
777
  this.checkAddress(address);
778
778
  await this.loadMarkets();
@@ -802,7 +802,7 @@ export default class bitflyer extends Exchange {
802
802
  * @param {int} [since] the earliest time in ms to fetch deposits for
803
803
  * @param {int} [limit] the maximum number of deposits structures to retrieve
804
804
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
805
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
805
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
806
806
  */
807
807
  await this.loadMarkets();
808
808
  let currency = undefined;
@@ -839,7 +839,7 @@ export default class bitflyer extends Exchange {
839
839
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
840
840
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
841
841
  * @param {object} [params] extra parameters specific to the bitflyer api endpoint
842
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
842
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
843
843
  */
844
844
  await this.loadMarkets();
845
845
  let currency = undefined;
@@ -365,7 +365,7 @@ export default class bitforex extends Exchange {
365
365
  * @param {int} [since] the earliest time in ms to fetch trades for
366
366
  * @param {int} [limit] the maximum number of trades structures to retrieve
367
367
  * @param {object} [params] extra parameters specific to the bitforex api endpoint
368
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
368
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
369
369
  */
370
370
  this.checkRequiredSymbol('fetchMyTrades', symbol);
371
371
  await this.loadMarkets();
@@ -485,7 +485,7 @@ export default class bitforex extends Exchange {
485
485
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
486
486
  * @param {string} symbol unified symbol of the market to fetch the ticker for
487
487
  * @param {object} [params] extra parameters specific to the bitforex api endpoint
488
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
488
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
489
489
  */
490
490
  await this.loadMarkets();
491
491
  const market = this.markets[symbol];
@@ -576,7 +576,7 @@ export default class bitforex extends Exchange {
576
576
  * @param {string} symbol unified symbol of the market to fetch the order book for
577
577
  * @param {int} [limit] the maximum amount of order book entries to return
578
578
  * @param {object} [params] extra parameters specific to the bitforex api endpoint
579
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
579
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
580
580
  */
581
581
  await this.loadMarkets();
582
582
  const market = this.market(symbol);
@@ -663,7 +663,7 @@ export default class bitforex extends Exchange {
663
663
  * @description fetches information on an order made by the user
664
664
  * @param {string} symbol unified symbol of the market the order was made in
665
665
  * @param {object} [params] extra parameters specific to the bitforex api endpoint
666
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
666
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
667
667
  */
668
668
  await this.loadMarkets();
669
669
  const market = this.market(symbol);
@@ -684,7 +684,7 @@ export default class bitforex extends Exchange {
684
684
  * @param {int} [since] the earliest time in ms to fetch open orders for
685
685
  * @param {int} [limit] the maximum number of open orders structures to retrieve
686
686
  * @param {object} [params] extra parameters specific to the bitforex api endpoint
687
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
687
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
688
688
  */
689
689
  if (symbol === undefined) {
690
690
  throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
@@ -707,7 +707,7 @@ export default class bitforex extends Exchange {
707
707
  * @param {int} [since] the earliest time in ms to fetch orders for
708
708
  * @param {int} [limit] the maximum number of orde structures to retrieve
709
709
  * @param {object} [params] extra parameters specific to the bitforex api endpoint
710
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
710
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
711
711
  */
712
712
  if (symbol === undefined) {
713
713
  throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
@@ -730,9 +730,9 @@ export default class bitforex extends Exchange {
730
730
  * @param {string} type 'market' or 'limit'
731
731
  * @param {string} side 'buy' or 'sell'
732
732
  * @param {float} amount how much of currency you want to trade in units of base currency
733
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
733
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
734
734
  * @param {object} [params] extra parameters specific to the bitforex api endpoint
735
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
735
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
736
736
  */
737
737
  await this.loadMarkets();
738
738
  let sideId = undefined;
@@ -764,7 +764,7 @@ export default class bitforex extends Exchange {
764
764
  * @param {string} id order id
765
765
  * @param {string} symbol unified symbol of the market the order was made in
766
766
  * @param {object} [params] extra parameters specific to the bitforex api endpoint
767
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
767
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
768
768
  */
769
769
  await this.loadMarkets();
770
770
  const request = {