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/binance.js CHANGED
@@ -2754,7 +2754,7 @@ export default class binance extends Exchange {
2754
2754
  * @param {string} symbol unified symbol of the market to fetch the order book for
2755
2755
  * @param {int} [limit] the maximum amount of order book entries to return
2756
2756
  * @param {object} [params] extra parameters specific to the binance api endpoint
2757
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
2757
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
2758
2758
  */
2759
2759
  await this.loadMarkets();
2760
2760
  const market = this.market(symbol);
@@ -2972,7 +2972,7 @@ export default class binance extends Exchange {
2972
2972
  * @description the latest known information on the availability of the exchange API
2973
2973
  * @see https://binance-docs.github.io/apidocs/spot/en/#system-status-system
2974
2974
  * @param {object} [params] extra parameters specific to the binance api endpoint
2975
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
2975
+ * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
2976
2976
  */
2977
2977
  const response = await this.sapiGetSystemStatus(params);
2978
2978
  //
@@ -3001,7 +3001,7 @@ export default class binance extends Exchange {
3001
3001
  * @see https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics // option
3002
3002
  * @param {string} symbol unified symbol of the market to fetch the ticker for
3003
3003
  * @param {object} [params] extra parameters specific to the binance api endpoint
3004
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
3004
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
3005
3005
  */
3006
3006
  await this.loadMarkets();
3007
3007
  const market = this.market(symbol);
@@ -3035,7 +3035,7 @@ export default class binance extends Exchange {
3035
3035
  * @see https://binance-docs.github.io/apidocs/delivery/en/#symbol-order-book-ticker // future
3036
3036
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
3037
3037
  * @param {object} [params] extra parameters specific to the binance api endpoint
3038
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
3038
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
3039
3039
  */
3040
3040
  await this.loadMarkets();
3041
3041
  symbols = this.marketSymbols(symbols);
@@ -3071,7 +3071,7 @@ export default class binance extends Exchange {
3071
3071
  * @see https://binance-docs.github.io/apidocs/delivery/en/#symbol-price-ticker // future
3072
3072
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the last prices
3073
3073
  * @param {object} [params] extra parameters specific to the binance api endpoint
3074
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
3074
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
3075
3075
  */
3076
3076
  await this.loadMarkets();
3077
3077
  symbols = this.marketSymbols(symbols);
@@ -3177,7 +3177,7 @@ export default class binance extends Exchange {
3177
3177
  * @see https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics // option
3178
3178
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
3179
3179
  * @param {object} [params] extra parameters specific to the binance api endpoint
3180
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
3180
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
3181
3181
  */
3182
3182
  await this.loadMarkets();
3183
3183
  let type = undefined;
@@ -3721,7 +3721,7 @@ export default class binance extends Exchange {
3721
3721
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3722
3722
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
3723
3723
  * @param {object} [params] extra parameters specific to the binance api endpoint
3724
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3724
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3725
3725
  */
3726
3726
  await this.loadMarkets();
3727
3727
  const market = this.market(symbol);
@@ -3921,9 +3921,9 @@ export default class binance extends Exchange {
3921
3921
  * @param {string} type 'market' or 'limit'
3922
3922
  * @param {string} side 'buy' or 'sell'
3923
3923
  * @param {float} amount how much of currency you want to trade in units of base currency
3924
- * @param {float} price the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3924
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3925
3925
  * @param {object} [params] extra parameters specific to the binance api endpoint
3926
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3926
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3927
3927
  */
3928
3928
  await this.loadMarkets();
3929
3929
  const market = this.market(symbol);
@@ -3993,9 +3993,9 @@ export default class binance extends Exchange {
3993
3993
  * @param {string} type 'market' or 'limit'
3994
3994
  * @param {string} side 'buy' or 'sell'
3995
3995
  * @param {float} amount how much of currency you want to trade in units of base currency
3996
- * @param {float} price the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3996
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3997
3997
  * @param {object} [params] extra parameters specific to the binance api endpoint
3998
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3998
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3999
3999
  */
4000
4000
  await this.loadMarkets();
4001
4001
  const market = this.market(symbol);
@@ -4281,12 +4281,12 @@ export default class binance extends Exchange {
4281
4281
  * @param {string} type 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
4282
4282
  * @param {string} side 'buy' or 'sell'
4283
4283
  * @param {float} amount how much of currency you want to trade in units of base currency
4284
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
4284
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
4285
4285
  * @param {object} [params] extra parameters specific to the binance api endpoint
4286
4286
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4287
4287
  * @param {boolean} [params.sor] *spot only* whether to use SOR (Smart Order Routing) or not, default is false
4288
4288
  * @param {boolean} [params.test] *spot only* whether to use the test endpoint or not, default is false
4289
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
4289
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4290
4290
  */
4291
4291
  await this.loadMarkets();
4292
4292
  const market = this.market(symbol);
@@ -4565,7 +4565,7 @@ export default class binance extends Exchange {
4565
4565
  * @param {string} symbol unified symbol of the market the order was made in
4566
4566
  * @param {object} [params] extra parameters specific to the binance api endpoint
4567
4567
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4568
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
4568
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4569
4569
  */
4570
4570
  this.checkRequiredSymbol('fetchOrder', symbol);
4571
4571
  await this.loadMarkets();
@@ -4618,7 +4618,7 @@ export default class binance extends Exchange {
4618
4618
  * @param {int} [limit] the maximum number of order structures to retrieve
4619
4619
  * @param {object} [params] extra parameters specific to the binance api endpoint
4620
4620
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4621
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4621
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4622
4622
  */
4623
4623
  this.checkRequiredSymbol('fetchOrders', symbol);
4624
4624
  await this.loadMarkets();
@@ -4738,7 +4738,7 @@ export default class binance extends Exchange {
4738
4738
  * @param {int} [limit] the maximum number of open orders structures to retrieve
4739
4739
  * @param {object} [params] extra parameters specific to the binance api endpoint
4740
4740
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4741
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4741
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4742
4742
  */
4743
4743
  await this.loadMarkets();
4744
4744
  let market = undefined;
@@ -4804,7 +4804,7 @@ export default class binance extends Exchange {
4804
4804
  * @param {int} [since] the earliest time in ms to fetch orders for
4805
4805
  * @param {int} [limit] the maximum number of order structures to retrieve
4806
4806
  * @param {object} [params] extra parameters specific to the binance api endpoint
4807
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4807
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4808
4808
  */
4809
4809
  const orders = await this.fetchOrders(symbol, since, limit, params);
4810
4810
  return this.filterBy(orders, 'status', 'closed');
@@ -4821,7 +4821,7 @@ export default class binance extends Exchange {
4821
4821
  * @param {int} [since] the earliest time in ms to fetch orders for
4822
4822
  * @param {int} [limit] the maximum number of order structures to retrieve
4823
4823
  * @param {object} [params] extra parameters specific to the binance api endpoint
4824
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4824
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4825
4825
  */
4826
4826
  this.checkRequiredSymbol('fetchCanceledOrders', symbol);
4827
4827
  await this.loadMarkets();
@@ -4842,7 +4842,7 @@ export default class binance extends Exchange {
4842
4842
  * @param {string} id order id
4843
4843
  * @param {string} symbol unified symbol of the market the order was made in
4844
4844
  * @param {object} [params] extra parameters specific to the binance api endpoint
4845
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
4845
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4846
4846
  */
4847
4847
  this.checkRequiredSymbol('cancelOrder', symbol);
4848
4848
  await this.loadMarkets();
@@ -4900,7 +4900,7 @@ export default class binance extends Exchange {
4900
4900
  * @param {string} symbol unified market symbol of the market to cancel orders in
4901
4901
  * @param {object} [params] extra parameters specific to the binance api endpoint
4902
4902
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4903
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4903
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4904
4904
  */
4905
4905
  this.checkRequiredSymbol('cancelAllOrders', symbol);
4906
4906
  await this.loadMarkets();
@@ -4945,7 +4945,7 @@ export default class binance extends Exchange {
4945
4945
  * @param {int} [since] the earliest time in ms to fetch trades for
4946
4946
  * @param {int} [limit] the maximum number of trades to retrieve
4947
4947
  * @param {object} [params] extra parameters specific to the binance api endpoint
4948
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4948
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
4949
4949
  */
4950
4950
  if (symbol === undefined) {
4951
4951
  throw new ArgumentsRequired(this.id + ' fetchOrderTrades() requires a symbol argument');
@@ -4971,7 +4971,7 @@ export default class binance extends Exchange {
4971
4971
  * @param {int} [since] the earliest time in ms to fetch trades for
4972
4972
  * @param {int} [limit] the maximum number of trades structures to retrieve
4973
4973
  * @param {object} [params] extra parameters specific to the binance api endpoint
4974
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4974
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
4975
4975
  */
4976
4976
  await this.loadMarkets();
4977
4977
  const request = {};
@@ -5110,7 +5110,7 @@ export default class binance extends Exchange {
5110
5110
  * @param {int} [since] the earliest time in ms to fetch my dust trades for
5111
5111
  * @param {int} [limit] the maximum number of dust trades to retrieve
5112
5112
  * @param {object} [params] extra parameters specific to the binance api endpoint
5113
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
5113
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
5114
5114
  */
5115
5115
  //
5116
5116
  // Binance provides an opportunity to trade insignificant (i.e. non-tradable and non-withdrawable)
@@ -5250,7 +5250,7 @@ export default class binance extends Exchange {
5250
5250
  * @param {object} [params] extra parameters specific to the binance api endpoint
5251
5251
  * @param {bool} [params.fiat] if true, only fiat deposits will be returned
5252
5252
  * @param {int} [params.until] the latest time in ms to fetch deposits for
5253
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5253
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
5254
5254
  */
5255
5255
  await this.loadMarkets();
5256
5256
  let currency = undefined;
@@ -5353,7 +5353,7 @@ export default class binance extends Exchange {
5353
5353
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
5354
5354
  * @param {object} [params] extra parameters specific to the binance api endpoint
5355
5355
  * @param {bool} [params.fiat] if true, only fiat withdrawals will be returned
5356
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5356
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
5357
5357
  */
5358
5358
  await this.loadMarkets();
5359
5359
  const legalMoney = this.safeValue(this.options, 'legalMoney', {});
@@ -5722,7 +5722,7 @@ export default class binance extends Exchange {
5722
5722
  * @param {string} fromAccount account to transfer from
5723
5723
  * @param {string} toAccount account to transfer to
5724
5724
  * @param {object} [params] extra parameters specific to the binance api endpoint
5725
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
5725
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
5726
5726
  */
5727
5727
  await this.loadMarkets();
5728
5728
  const currency = this.currency(code);
@@ -5816,7 +5816,7 @@ export default class binance extends Exchange {
5816
5816
  * @param {int} [since] the earliest time in ms to fetch transfers for
5817
5817
  * @param {int} [limit] the maximum number of transfers structures to retrieve
5818
5818
  * @param {object} [params] extra parameters specific to the binance api endpoint
5819
- * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
5819
+ * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
5820
5820
  */
5821
5821
  await this.loadMarkets();
5822
5822
  let currency = undefined;
@@ -5877,7 +5877,7 @@ export default class binance extends Exchange {
5877
5877
  * @description fetch the deposit address for a currency associated with this account
5878
5878
  * @param {string} code unified currency code
5879
5879
  * @param {object} [params] extra parameters specific to the binance api endpoint
5880
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
5880
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
5881
5881
  */
5882
5882
  await this.loadMarkets();
5883
5883
  const currency = this.currency(code);
@@ -5952,7 +5952,7 @@ export default class binance extends Exchange {
5952
5952
  * @description please use fetchDepositWithdrawFees instead
5953
5953
  * @param {string[]|undefined} codes not used by binance fetchTransactionFees ()
5954
5954
  * @param {object} [params] extra parameters specific to the binance api endpoint
5955
- * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
5955
+ * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
5956
5956
  */
5957
5957
  await this.loadMarkets();
5958
5958
  const response = await this.sapiGetCapitalConfigGetall(params);
@@ -6065,7 +6065,7 @@ export default class binance extends Exchange {
6065
6065
  * @description fetch deposit and withdraw fees
6066
6066
  * @param {string[]|undefined} codes not used by binance fetchDepositWithdrawFees ()
6067
6067
  * @param {object} [params] extra parameters specific to the binance api endpoint
6068
- * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
6068
+ * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
6069
6069
  */
6070
6070
  await this.loadMarkets();
6071
6071
  const response = await this.sapiGetCapitalConfigGetall(params);
@@ -6191,7 +6191,7 @@ export default class binance extends Exchange {
6191
6191
  * @param {string} address the address to withdraw to
6192
6192
  * @param {string} tag
6193
6193
  * @param {object} [params] extra parameters specific to the binance api endpoint
6194
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
6194
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
6195
6195
  */
6196
6196
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
6197
6197
  this.checkAddress(address);
@@ -6243,7 +6243,7 @@ export default class binance extends Exchange {
6243
6243
  * @description fetch the trading fees for a market
6244
6244
  * @param {string} symbol unified market symbol
6245
6245
  * @param {object} [params] extra parameters specific to the binance api endpoint
6246
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
6246
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
6247
6247
  */
6248
6248
  await this.loadMarkets();
6249
6249
  const market = this.market(symbol);
@@ -6269,7 +6269,7 @@ export default class binance extends Exchange {
6269
6269
  * @name binance#fetchTradingFees
6270
6270
  * @description fetch the trading fees for multiple markets
6271
6271
  * @param {object} [params] extra parameters specific to the binance api endpoint
6272
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
6272
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
6273
6273
  */
6274
6274
  await this.loadMarkets();
6275
6275
  let method = undefined;
@@ -6450,7 +6450,7 @@ export default class binance extends Exchange {
6450
6450
  * @param {string} type 1 - transfer from spot account to USDT-Ⓜ futures account, 2 - transfer from USDT-Ⓜ futures account to spot account, 3 - transfer from spot account to COIN-Ⓜ futures account, 4 - transfer from COIN-Ⓜ futures account to spot account
6451
6451
  * @param {object} [params] extra parameters specific to the binance api endpoint
6452
6452
  * @param {float} params.recvWindow
6453
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=futures-transfer-structure}
6453
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#futures-transfer-structure}
6454
6454
  */
6455
6455
  if ((type < 1) || (type > 4)) {
6456
6456
  throw new ArgumentsRequired(this.id + ' type must be between 1 and 4');
@@ -6477,7 +6477,7 @@ export default class binance extends Exchange {
6477
6477
  * @description fetch the current funding rate
6478
6478
  * @param {string} symbol unified market symbol
6479
6479
  * @param {object} [params] extra parameters specific to the binance api endpoint
6480
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
6480
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
6481
6481
  */
6482
6482
  await this.loadMarkets();
6483
6483
  const market = this.market(symbol);
@@ -6589,7 +6589,7 @@ export default class binance extends Exchange {
6589
6589
  * @description fetch the funding rate for multiple markets
6590
6590
  * @param {string[]|undefined} symbols list of unified market symbols
6591
6591
  * @param {object} [params] extra parameters specific to the binance api endpoint
6592
- * @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
6592
+ * @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
6593
6593
  */
6594
6594
  await this.loadMarkets();
6595
6595
  symbols = this.marketSymbols(symbols);
@@ -7117,7 +7117,7 @@ export default class binance extends Exchange {
7117
7117
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
7118
7118
  * @param {string[]|undefined} symbols list of unified market symbols
7119
7119
  * @param {object} [params] extra parameters specific to the binance api endpoint
7120
- * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
7120
+ * @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
7121
7121
  */
7122
7122
  await this.loadMarkets();
7123
7123
  const [type, query] = this.handleMarketTypeAndParams('fetchLeverageTiers', undefined, params);
@@ -7267,7 +7267,7 @@ export default class binance extends Exchange {
7267
7267
  * @description fetch data on open options positions
7268
7268
  * @param {string[]|undefined} symbols list of unified market symbols
7269
7269
  * @param {object} [params] extra parameters specific to the binance api endpoint
7270
- * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
7270
+ * @returns {object[]} a list of [position structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
7271
7271
  */
7272
7272
  await this.loadMarkets();
7273
7273
  symbols = this.marketSymbols(symbols);
@@ -7382,7 +7382,7 @@ export default class binance extends Exchange {
7382
7382
  * @description fetch all open positions
7383
7383
  * @param {string[]|undefined} symbols list of unified market symbols
7384
7384
  * @param {object} [params] extra parameters specific to the binance api endpoint
7385
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
7385
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
7386
7386
  */
7387
7387
  const defaultMethod = this.safeString(this.options, 'fetchPositions', 'positionRisk');
7388
7388
  if (defaultMethod === 'positionRisk') {
@@ -7540,7 +7540,7 @@ export default class binance extends Exchange {
7540
7540
  * @param {int} [since] the earliest time in ms to fetch funding history for
7541
7541
  * @param {int} [limit] the maximum number of funding history structures to retrieve
7542
7542
  * @param {object} [params] extra parameters specific to the binance api endpoint
7543
- * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
7543
+ * @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
7544
7544
  */
7545
7545
  await this.loadMarkets();
7546
7546
  let market = undefined;
@@ -7915,7 +7915,7 @@ export default class binance extends Exchange {
7915
7915
  * @param {int} [since] timestamp in ms of the earliest ledger entry
7916
7916
  * @param {int} [limit] max number of ledger entrys to return
7917
7917
  * @param {object} [params] extra parameters specific to the binance api endpoint
7918
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
7918
+ * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
7919
7919
  */
7920
7920
  await this.loadMarkets();
7921
7921
  let type = undefined;
@@ -8325,7 +8325,7 @@ export default class binance extends Exchange {
8325
8325
  * @param {string} symbol unified market symbol
8326
8326
  * @param {float} amount the amount of margin to remove
8327
8327
  * @param {object} [params] extra parameters specific to the binance api endpoint
8328
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
8328
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
8329
8329
  */
8330
8330
  return await this.modifyMarginHelper(symbol, amount, 2, params);
8331
8331
  }
@@ -8339,7 +8339,7 @@ export default class binance extends Exchange {
8339
8339
  * @param {string} symbol unified market symbol
8340
8340
  * @param {float} amount amount of margin to add
8341
8341
  * @param {object} [params] extra parameters specific to the binance api endpoint
8342
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
8342
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
8343
8343
  */
8344
8344
  return await this.modifyMarginHelper(symbol, amount, 1, params);
8345
8345
  }
@@ -8350,7 +8350,7 @@ export default class binance extends Exchange {
8350
8350
  * @description fetch the rate of interest to borrow a currency for margin trading
8351
8351
  * @param {string} code unified currency code
8352
8352
  * @param {object} [params] extra parameters specific to the binance api endpoint
8353
- * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
8353
+ * @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
8354
8354
  */
8355
8355
  await this.loadMarkets();
8356
8356
  const currency = this.currency(code);
@@ -8379,9 +8379,9 @@ export default class binance extends Exchange {
8379
8379
  * @description retrieves a history of a currencies borrow interest rate at specific time slots
8380
8380
  * @param {string} code unified currency code
8381
8381
  * @param {int} [since] timestamp for the earliest borrow rate
8382
- * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} to retrieve
8382
+ * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure} to retrieve
8383
8383
  * @param {object} [params] extra parameters specific to the exchange api endpoint
8384
- * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
8384
+ * @returns {object[]} an array of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
8385
8385
  */
8386
8386
  await this.loadMarkets();
8387
8387
  if (limit === undefined) {
@@ -8541,7 +8541,7 @@ export default class binance extends Exchange {
8541
8541
  * @param {int} [since] the earliest time in ms to fetch borrrow interest for
8542
8542
  * @param {int} [limit] the maximum number of structures to retrieve
8543
8543
  * @param {object} [params] extra parameters specific to the binance api endpoint
8544
- * @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
8544
+ * @returns {object[]} a list of [borrow interest structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-interest-structure}
8545
8545
  */
8546
8546
  await this.loadMarkets();
8547
8547
  const request = {};
@@ -8608,7 +8608,7 @@ export default class binance extends Exchange {
8608
8608
  * @param {float} amount the amount to repay
8609
8609
  * @param {string} symbol unified market symbol, required for isolated margin
8610
8610
  * @param {object} [params] extra parameters specific to the binance api endpoint
8611
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
8611
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
8612
8612
  */
8613
8613
  const [marginMode, query] = this.handleMarginModeAndParams('repayMargin', params); // cross or isolated
8614
8614
  this.checkRequiredMarginArgument('repayMargin', symbol, marginMode);
@@ -8642,7 +8642,7 @@ export default class binance extends Exchange {
8642
8642
  * @param {float} amount the amount to borrow
8643
8643
  * @param {string} symbol unified market symbol, required for isolated margin
8644
8644
  * @param {object} [params] extra parameters specific to the binance api endpoint
8645
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
8645
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
8646
8646
  */
8647
8647
  const [marginMode, query] = this.handleMarginModeAndParams('borrowMargin', params); // cross or isolated
8648
8648
  this.checkRequiredMarginArgument('borrowMargin', symbol, marginMode);
@@ -8694,7 +8694,7 @@ export default class binance extends Exchange {
8694
8694
  * @param {int} [limit] default 30, max 500
8695
8695
  * @param {object} [params] exchange specific parameters
8696
8696
  * @param {int} [params.until] the time(ms) of the latest record to retrieve as a unix timestamp
8697
- * @returns {object} an array of [open interest history structure]{@link https://docs.ccxt.com/#/?id=interest-history-structure}
8697
+ * @returns {object} an array of [open interest history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
8698
8698
  */
8699
8699
  if (timeframe === '1m') {
8700
8700
  throw new BadRequest(this.id + 'fetchOpenInterestHistory cannot use the 1m timeframe');
@@ -8756,7 +8756,7 @@ export default class binance extends Exchange {
8756
8756
  * @see https://binance-docs.github.io/apidocs/voptions/en/#open-interest
8757
8757
  * @param {string} symbol unified CCXT market symbol
8758
8758
  * @param {object} [params] exchange specific parameters
8759
- * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=interest-history-structure}
8759
+ * @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
8760
8760
  */
8761
8761
  await this.loadMarkets();
8762
8762
  const market = this.market(symbol);