ccxt 4.0.74 → 4.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2635 -2383
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +11 -11
  6. package/dist/cjs/src/alpaca.js +7 -7
  7. package/dist/cjs/src/ascendex.js +25 -25
  8. package/dist/cjs/src/base/Exchange.js +4 -4
  9. package/dist/cjs/src/bigone.js +19 -19
  10. package/dist/cjs/src/binance.js +56 -56
  11. package/dist/cjs/src/bingx.js +85 -40
  12. package/dist/cjs/src/bit2c.js +12 -12
  13. package/dist/cjs/src/bitbank.js +13 -13
  14. package/dist/cjs/src/bitbns.js +14 -14
  15. package/dist/cjs/src/bitfinex.js +21 -21
  16. package/dist/cjs/src/bitfinex2.js +29 -29
  17. package/dist/cjs/src/bitflyer.js +17 -17
  18. package/dist/cjs/src/bitforex.js +11 -11
  19. package/dist/cjs/src/bitget.js +39 -39
  20. package/dist/cjs/src/bithumb.js +11 -11
  21. package/dist/cjs/src/bitmart.js +44 -31
  22. package/dist/cjs/src/bitmex.js +24 -24
  23. package/dist/cjs/src/bitopro.js +21 -21
  24. package/dist/cjs/src/bitpanda.js +21 -21
  25. package/dist/cjs/src/bitrue.js +18 -18
  26. package/dist/cjs/src/bitso.js +21 -21
  27. package/dist/cjs/src/bitstamp.js +21 -21
  28. package/dist/cjs/src/bitstamp1.js +8 -8
  29. package/dist/cjs/src/bittrex.js +27 -27
  30. package/dist/cjs/src/bitvavo.js +19 -19
  31. package/dist/cjs/src/bkex.js +21 -21
  32. package/dist/cjs/src/bl3p.js +8 -8
  33. package/dist/cjs/src/blockchaincom.js +21 -21
  34. package/dist/cjs/src/btcalpha.js +15 -15
  35. package/dist/cjs/src/btcbox.js +10 -10
  36. package/dist/cjs/src/btcmarkets.js +17 -17
  37. package/dist/cjs/src/btctradeua.js +8 -8
  38. package/dist/cjs/src/btcturk.js +11 -11
  39. package/dist/cjs/src/bybit.js +153 -121
  40. package/dist/cjs/src/cex.js +14 -14
  41. package/dist/cjs/src/coinbase.js +23 -23
  42. package/dist/cjs/src/coinbasepro.js +24 -24
  43. package/dist/cjs/src/coincheck.js +12 -12
  44. package/dist/cjs/src/coinex.js +87 -41
  45. package/dist/cjs/src/coinfalcon.js +16 -16
  46. package/dist/cjs/src/coinmate.js +14 -14
  47. package/dist/cjs/src/coinone.js +12 -12
  48. package/dist/cjs/src/coinsph.js +27 -22
  49. package/dist/cjs/src/coinspot.js +8 -8
  50. package/dist/cjs/src/cryptocom.js +29 -29
  51. package/dist/cjs/src/currencycom.js +20 -20
  52. package/dist/cjs/src/delta.js +25 -25
  53. package/dist/cjs/src/deribit.js +30 -30
  54. package/dist/cjs/src/digifinex.js +31 -31
  55. package/dist/cjs/src/exmo.js +26 -26
  56. package/dist/cjs/src/gate.js +38 -38
  57. package/dist/cjs/src/gemini.js +17 -17
  58. package/dist/cjs/src/hitbtc.js +34 -34
  59. package/dist/cjs/src/hollaex.js +23 -23
  60. package/dist/cjs/src/huobi.js +45 -45
  61. package/dist/cjs/src/huobijp.js +20 -20
  62. package/dist/cjs/src/idex.js +19 -19
  63. package/dist/cjs/src/independentreserve.js +12 -12
  64. package/dist/cjs/src/indodax.js +14 -14
  65. package/dist/cjs/src/kraken.js +27 -27
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +33 -33
  68. package/dist/cjs/src/kucoinfutures.js +24 -24
  69. package/dist/cjs/src/kuna.js +12 -12
  70. package/dist/cjs/src/latoken.js +17 -17
  71. package/dist/cjs/src/lbank.js +12 -12
  72. package/dist/cjs/src/lbank2.js +23 -23
  73. package/dist/cjs/src/luno.js +16 -16
  74. package/dist/cjs/src/lykke.js +16 -16
  75. package/dist/cjs/src/mercado.js +12 -12
  76. package/dist/cjs/src/mexc.js +44 -42
  77. package/dist/cjs/src/ndax.js +20 -20
  78. package/dist/cjs/src/novadax.js +20 -20
  79. package/dist/cjs/src/oceanex.js +16 -16
  80. package/dist/cjs/src/okcoin.js +21 -21
  81. package/dist/cjs/src/okx.js +52 -52
  82. package/dist/cjs/src/paymium.js +11 -11
  83. package/dist/cjs/src/phemex.js +26 -26
  84. package/dist/cjs/src/poloniex.js +237 -136
  85. package/dist/cjs/src/poloniexfutures.js +18 -18
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +4 -4
  88. package/dist/cjs/src/pro/binance.js +16 -16
  89. package/dist/cjs/src/pro/bitfinex.js +4 -4
  90. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  91. package/dist/cjs/src/pro/bitget.js +6 -6
  92. package/dist/cjs/src/pro/bitmart.js +4 -4
  93. package/dist/cjs/src/pro/bitmex.js +6 -6
  94. package/dist/cjs/src/pro/bitopro.js +4 -4
  95. package/dist/cjs/src/pro/bitpanda.js +6 -6
  96. package/dist/cjs/src/pro/bitrue.js +2 -2
  97. package/dist/cjs/src/pro/bitstamp.js +3 -3
  98. package/dist/cjs/src/pro/bittrex.js +6 -6
  99. package/dist/cjs/src/pro/bitvavo.js +5 -5
  100. package/dist/cjs/src/pro/blockchaincom.js +5 -5
  101. package/dist/cjs/src/pro/bybit.js +6 -6
  102. package/dist/cjs/src/pro/cex.js +7 -7
  103. package/dist/cjs/src/pro/coinbase.js +5 -5
  104. package/dist/cjs/src/pro/coinbasepro.js +6 -6
  105. package/dist/cjs/src/pro/coinex.js +5 -5
  106. package/dist/cjs/src/pro/cryptocom.js +10 -10
  107. package/dist/cjs/src/pro/currencycom.js +4 -4
  108. package/dist/cjs/src/pro/deribit.js +6 -6
  109. package/dist/cjs/src/pro/exmo.js +5 -5
  110. package/dist/cjs/src/pro/gate.js +7 -7
  111. package/dist/cjs/src/pro/gemini.js +3 -3
  112. package/dist/cjs/src/pro/hitbtc.js +3 -3
  113. package/dist/cjs/src/pro/hollaex.js +5 -5
  114. package/dist/cjs/src/pro/huobi.js +6 -6
  115. package/dist/cjs/src/pro/huobijp.js +3 -3
  116. package/dist/cjs/src/pro/idex.js +4 -4
  117. package/dist/cjs/src/pro/independentreserve.js +2 -2
  118. package/dist/cjs/src/pro/kraken.js +12 -12
  119. package/dist/cjs/src/pro/krakenfutures.js +7 -7
  120. package/dist/cjs/src/pro/kucoin.js +6 -6
  121. package/dist/cjs/src/pro/kucoinfutures.js +6 -5
  122. package/dist/cjs/src/pro/luno.js +2 -2
  123. package/dist/cjs/src/pro/mexc.js +6 -6
  124. package/dist/cjs/src/pro/ndax.js +3 -3
  125. package/dist/cjs/src/pro/okcoin.js +5 -5
  126. package/dist/cjs/src/pro/okx.js +19 -18
  127. package/dist/cjs/src/pro/phemex.js +6 -6
  128. package/dist/cjs/src/pro/poloniex.js +7 -7
  129. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  130. package/dist/cjs/src/pro/probit.js +6 -6
  131. package/dist/cjs/src/pro/upbit.js +3 -3
  132. package/dist/cjs/src/pro/wazirx.js +6 -6
  133. package/dist/cjs/src/pro/whitebit.js +6 -6
  134. package/dist/cjs/src/probit.js +19 -19
  135. package/dist/cjs/src/tidex.js +13 -13
  136. package/dist/cjs/src/timex.js +16 -16
  137. package/dist/cjs/src/tokocrypto.js +18 -18
  138. package/dist/cjs/src/upbit.js +20 -20
  139. package/dist/cjs/src/wavesexchange.js +16 -16
  140. package/dist/cjs/src/wazirx.js +12 -12
  141. package/dist/cjs/src/whitebit.js +24 -24
  142. package/dist/cjs/src/woo.js +30 -24
  143. package/dist/cjs/src/yobit.js +16 -16
  144. package/dist/cjs/src/zaif.js +10 -10
  145. package/dist/cjs/src/zonda.js +15 -15
  146. package/js/ccxt.d.ts +1 -1
  147. package/js/ccxt.js +1 -1
  148. package/js/src/abstract/bingx.d.ts +2 -0
  149. package/js/src/abstract/bitmart.d.ts +13 -0
  150. package/js/src/abstract/bybit.d.ts +33 -21
  151. package/js/src/abstract/coinsph.d.ts +5 -0
  152. package/js/src/abstract/woo.d.ts +6 -0
  153. package/js/src/ace.js +11 -11
  154. package/js/src/alpaca.js +7 -7
  155. package/js/src/ascendex.js +25 -25
  156. package/js/src/base/Exchange.js +4 -4
  157. package/js/src/bigone.js +19 -19
  158. package/js/src/binance.js +56 -56
  159. package/js/src/bingx.d.ts +1 -0
  160. package/js/src/bingx.js +85 -40
  161. package/js/src/bit2c.js +12 -12
  162. package/js/src/bitbank.js +13 -13
  163. package/js/src/bitbns.js +14 -14
  164. package/js/src/bitfinex.js +21 -21
  165. package/js/src/bitfinex2.js +29 -29
  166. package/js/src/bitflyer.js +17 -17
  167. package/js/src/bitforex.js +11 -11
  168. package/js/src/bitget.js +39 -39
  169. package/js/src/bithumb.js +11 -11
  170. package/js/src/bitmart.js +44 -31
  171. package/js/src/bitmex.js +24 -24
  172. package/js/src/bitopro.js +21 -21
  173. package/js/src/bitpanda.js +21 -21
  174. package/js/src/bitrue.js +18 -18
  175. package/js/src/bitso.js +21 -21
  176. package/js/src/bitstamp.js +21 -21
  177. package/js/src/bitstamp1.js +8 -8
  178. package/js/src/bittrex.js +27 -27
  179. package/js/src/bitvavo.js +19 -19
  180. package/js/src/bkex.js +21 -21
  181. package/js/src/bl3p.js +8 -8
  182. package/js/src/blockchaincom.js +21 -21
  183. package/js/src/btcalpha.js +15 -15
  184. package/js/src/btcbox.js +10 -10
  185. package/js/src/btcmarkets.js +17 -17
  186. package/js/src/btctradeua.js +8 -8
  187. package/js/src/btcturk.js +11 -11
  188. package/js/src/bybit.js +153 -121
  189. package/js/src/cex.js +14 -14
  190. package/js/src/coinbase.js +23 -23
  191. package/js/src/coinbasepro.js +24 -24
  192. package/js/src/coincheck.js +12 -12
  193. package/js/src/coinex.d.ts +1 -0
  194. package/js/src/coinex.js +87 -41
  195. package/js/src/coinfalcon.js +16 -16
  196. package/js/src/coinmate.js +14 -14
  197. package/js/src/coinone.js +12 -12
  198. package/js/src/coinsph.js +27 -22
  199. package/js/src/coinspot.js +8 -8
  200. package/js/src/cryptocom.js +29 -29
  201. package/js/src/currencycom.js +20 -20
  202. package/js/src/delta.js +25 -25
  203. package/js/src/deribit.js +30 -30
  204. package/js/src/digifinex.js +31 -31
  205. package/js/src/exmo.js +26 -26
  206. package/js/src/gate.js +38 -38
  207. package/js/src/gemini.js +17 -17
  208. package/js/src/hitbtc.js +34 -34
  209. package/js/src/hollaex.js +23 -23
  210. package/js/src/huobi.js +45 -45
  211. package/js/src/huobijp.js +20 -20
  212. package/js/src/idex.js +19 -19
  213. package/js/src/independentreserve.js +12 -12
  214. package/js/src/indodax.js +14 -14
  215. package/js/src/kraken.js +27 -27
  216. package/js/src/krakenfutures.js +12 -12
  217. package/js/src/kucoin.js +33 -33
  218. package/js/src/kucoinfutures.js +24 -24
  219. package/js/src/kuna.js +12 -12
  220. package/js/src/latoken.js +17 -17
  221. package/js/src/lbank.js +12 -12
  222. package/js/src/lbank2.js +23 -23
  223. package/js/src/luno.js +16 -16
  224. package/js/src/lykke.js +16 -16
  225. package/js/src/mercado.js +12 -12
  226. package/js/src/mexc.js +45 -43
  227. package/js/src/ndax.js +20 -20
  228. package/js/src/novadax.js +20 -20
  229. package/js/src/oceanex.js +16 -16
  230. package/js/src/okcoin.js +21 -21
  231. package/js/src/okx.js +52 -52
  232. package/js/src/paymium.js +11 -11
  233. package/js/src/phemex.js +26 -26
  234. package/js/src/poloniex.d.ts +1 -1
  235. package/js/src/poloniex.js +237 -136
  236. package/js/src/poloniexfutures.js +18 -18
  237. package/js/src/pro/alpaca.js +5 -5
  238. package/js/src/pro/ascendex.js +4 -4
  239. package/js/src/pro/binance.js +16 -16
  240. package/js/src/pro/bitfinex.js +4 -4
  241. package/js/src/pro/bitfinex2.js +6 -6
  242. package/js/src/pro/bitget.js +6 -6
  243. package/js/src/pro/bitmart.js +4 -4
  244. package/js/src/pro/bitmex.js +6 -6
  245. package/js/src/pro/bitopro.js +4 -4
  246. package/js/src/pro/bitpanda.js +6 -6
  247. package/js/src/pro/bitrue.js +2 -2
  248. package/js/src/pro/bitstamp.js +3 -3
  249. package/js/src/pro/bittrex.js +6 -6
  250. package/js/src/pro/bitvavo.js +5 -5
  251. package/js/src/pro/blockchaincom.js +5 -5
  252. package/js/src/pro/bybit.js +6 -6
  253. package/js/src/pro/cex.js +7 -7
  254. package/js/src/pro/coinbase.js +5 -5
  255. package/js/src/pro/coinbasepro.js +6 -6
  256. package/js/src/pro/coinex.js +5 -5
  257. package/js/src/pro/cryptocom.js +10 -10
  258. package/js/src/pro/currencycom.js +4 -4
  259. package/js/src/pro/deribit.js +6 -6
  260. package/js/src/pro/exmo.js +5 -5
  261. package/js/src/pro/gate.js +7 -7
  262. package/js/src/pro/gemini.js +3 -3
  263. package/js/src/pro/hitbtc.js +3 -3
  264. package/js/src/pro/hollaex.js +5 -5
  265. package/js/src/pro/huobi.js +6 -6
  266. package/js/src/pro/huobijp.js +3 -3
  267. package/js/src/pro/idex.js +4 -4
  268. package/js/src/pro/independentreserve.js +2 -2
  269. package/js/src/pro/kraken.js +12 -12
  270. package/js/src/pro/krakenfutures.js +7 -7
  271. package/js/src/pro/kucoin.js +6 -6
  272. package/js/src/pro/kucoinfutures.js +6 -5
  273. package/js/src/pro/luno.js +2 -2
  274. package/js/src/pro/mexc.js +6 -6
  275. package/js/src/pro/ndax.js +3 -3
  276. package/js/src/pro/okcoin.js +5 -5
  277. package/js/src/pro/okx.d.ts +1 -1
  278. package/js/src/pro/okx.js +19 -18
  279. package/js/src/pro/phemex.js +6 -6
  280. package/js/src/pro/poloniex.js +7 -7
  281. package/js/src/pro/poloniexfutures.js +5 -5
  282. package/js/src/pro/probit.js +6 -6
  283. package/js/src/pro/upbit.js +3 -3
  284. package/js/src/pro/wazirx.js +6 -6
  285. package/js/src/pro/whitebit.js +6 -6
  286. package/js/src/probit.js +19 -19
  287. package/js/src/tidex.js +13 -13
  288. package/js/src/timex.js +16 -16
  289. package/js/src/tokocrypto.js +18 -18
  290. package/js/src/upbit.js +20 -20
  291. package/js/src/wavesexchange.js +16 -16
  292. package/js/src/wazirx.js +12 -12
  293. package/js/src/whitebit.js +24 -24
  294. package/js/src/woo.js +30 -24
  295. package/js/src/yobit.js +16 -16
  296. package/js/src/zaif.js +10 -10
  297. package/js/src/zonda.js +15 -15
  298. package/package.json +1 -1
  299. package/skip-tests.json +2 -0
@@ -2500,7 +2500,7 @@ class binance extends binance$1 {
2500
2500
  * @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
2501
2501
  * @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
2502
2502
  * @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
2503
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
2503
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
2504
2504
  */
2505
2505
  await this.loadMarkets();
2506
2506
  const defaultType = this.safeString2(this.options, 'fetchBalance', 'defaultType', 'spot');
@@ -2751,7 +2751,7 @@ class binance extends binance$1 {
2751
2751
  * @param {string} symbol unified symbol of the market to fetch the order book for
2752
2752
  * @param {int} [limit] the maximum amount of order book entries to return
2753
2753
  * @param {object} [params] extra parameters specific to the binance api endpoint
2754
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
2754
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
2755
2755
  */
2756
2756
  await this.loadMarkets();
2757
2757
  const market = this.market(symbol);
@@ -2969,7 +2969,7 @@ class binance extends binance$1 {
2969
2969
  * @description the latest known information on the availability of the exchange API
2970
2970
  * @see https://binance-docs.github.io/apidocs/spot/en/#system-status-system
2971
2971
  * @param {object} [params] extra parameters specific to the binance api endpoint
2972
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
2972
+ * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
2973
2973
  */
2974
2974
  const response = await this.sapiGetSystemStatus(params);
2975
2975
  //
@@ -2998,7 +2998,7 @@ class binance extends binance$1 {
2998
2998
  * @see https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics // option
2999
2999
  * @param {string} symbol unified symbol of the market to fetch the ticker for
3000
3000
  * @param {object} [params] extra parameters specific to the binance api endpoint
3001
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
3001
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
3002
3002
  */
3003
3003
  await this.loadMarkets();
3004
3004
  const market = this.market(symbol);
@@ -3032,7 +3032,7 @@ class binance extends binance$1 {
3032
3032
  * @see https://binance-docs.github.io/apidocs/delivery/en/#symbol-order-book-ticker // future
3033
3033
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
3034
3034
  * @param {object} [params] extra parameters specific to the binance api endpoint
3035
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
3035
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
3036
3036
  */
3037
3037
  await this.loadMarkets();
3038
3038
  symbols = this.marketSymbols(symbols);
@@ -3068,7 +3068,7 @@ class binance extends binance$1 {
3068
3068
  * @see https://binance-docs.github.io/apidocs/delivery/en/#symbol-price-ticker // future
3069
3069
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the last prices
3070
3070
  * @param {object} [params] extra parameters specific to the binance api endpoint
3071
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
3071
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
3072
3072
  */
3073
3073
  await this.loadMarkets();
3074
3074
  symbols = this.marketSymbols(symbols);
@@ -3174,7 +3174,7 @@ class binance extends binance$1 {
3174
3174
  * @see https://binance-docs.github.io/apidocs/voptions/en/#24hr-ticker-price-change-statistics // option
3175
3175
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
3176
3176
  * @param {object} [params] extra parameters specific to the binance api endpoint
3177
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
3177
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
3178
3178
  */
3179
3179
  await this.loadMarkets();
3180
3180
  let type = undefined;
@@ -3606,7 +3606,7 @@ class binance extends binance$1 {
3606
3606
  *
3607
3607
  * EXCHANGE SPECIFIC PARAMETERS
3608
3608
  * @param {int} [params.fromId] trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
3609
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
3609
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
3610
3610
  */
3611
3611
  await this.loadMarkets();
3612
3612
  const market = this.market(symbol);
@@ -3718,7 +3718,7 @@ class binance extends binance$1 {
3718
3718
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3719
3719
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
3720
3720
  * @param {object} [params] extra parameters specific to the binance api endpoint
3721
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3721
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3722
3722
  */
3723
3723
  await this.loadMarkets();
3724
3724
  const market = this.market(symbol);
@@ -3918,9 +3918,9 @@ class binance extends binance$1 {
3918
3918
  * @param {string} type 'market' or 'limit'
3919
3919
  * @param {string} side 'buy' or 'sell'
3920
3920
  * @param {float} amount how much of currency you want to trade in units of base currency
3921
- * @param {float} price the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3921
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3922
3922
  * @param {object} [params] extra parameters specific to the binance api endpoint
3923
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3923
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3924
3924
  */
3925
3925
  await this.loadMarkets();
3926
3926
  const market = this.market(symbol);
@@ -3990,9 +3990,9 @@ class binance extends binance$1 {
3990
3990
  * @param {string} type 'market' or 'limit'
3991
3991
  * @param {string} side 'buy' or 'sell'
3992
3992
  * @param {float} amount how much of currency you want to trade in units of base currency
3993
- * @param {float} price the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3993
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the base currency, ignored in market orders
3994
3994
  * @param {object} [params] extra parameters specific to the binance api endpoint
3995
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3995
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
3996
3996
  */
3997
3997
  await this.loadMarkets();
3998
3998
  const market = this.market(symbol);
@@ -4278,12 +4278,12 @@ class binance extends binance$1 {
4278
4278
  * @param {string} type 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
4279
4279
  * @param {string} side 'buy' or 'sell'
4280
4280
  * @param {float} amount how much of currency you want to trade in units of base currency
4281
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
4281
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
4282
4282
  * @param {object} [params] extra parameters specific to the binance api endpoint
4283
4283
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4284
4284
  * @param {boolean} [params.sor] *spot only* whether to use SOR (Smart Order Routing) or not, default is false
4285
4285
  * @param {boolean} [params.test] *spot only* whether to use the test endpoint or not, default is false
4286
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
4286
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4287
4287
  */
4288
4288
  await this.loadMarkets();
4289
4289
  const market = this.market(symbol);
@@ -4562,7 +4562,7 @@ class binance extends binance$1 {
4562
4562
  * @param {string} symbol unified symbol of the market the order was made in
4563
4563
  * @param {object} [params] extra parameters specific to the binance api endpoint
4564
4564
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4565
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
4565
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4566
4566
  */
4567
4567
  this.checkRequiredSymbol('fetchOrder', symbol);
4568
4568
  await this.loadMarkets();
@@ -4615,7 +4615,7 @@ class binance extends binance$1 {
4615
4615
  * @param {int} [limit] the maximum number of order structures to retrieve
4616
4616
  * @param {object} [params] extra parameters specific to the binance api endpoint
4617
4617
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4618
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4618
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4619
4619
  */
4620
4620
  this.checkRequiredSymbol('fetchOrders', symbol);
4621
4621
  await this.loadMarkets();
@@ -4735,7 +4735,7 @@ class binance extends binance$1 {
4735
4735
  * @param {int} [limit] the maximum number of open orders structures to retrieve
4736
4736
  * @param {object} [params] extra parameters specific to the binance api endpoint
4737
4737
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4738
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4738
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4739
4739
  */
4740
4740
  await this.loadMarkets();
4741
4741
  let market = undefined;
@@ -4801,7 +4801,7 @@ class binance extends binance$1 {
4801
4801
  * @param {int} [since] the earliest time in ms to fetch orders for
4802
4802
  * @param {int} [limit] the maximum number of order structures to retrieve
4803
4803
  * @param {object} [params] extra parameters specific to the binance api endpoint
4804
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4804
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4805
4805
  */
4806
4806
  const orders = await this.fetchOrders(symbol, since, limit, params);
4807
4807
  return this.filterBy(orders, 'status', 'closed');
@@ -4818,7 +4818,7 @@ class binance extends binance$1 {
4818
4818
  * @param {int} [since] the earliest time in ms to fetch orders for
4819
4819
  * @param {int} [limit] the maximum number of order structures to retrieve
4820
4820
  * @param {object} [params] extra parameters specific to the binance api endpoint
4821
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4821
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4822
4822
  */
4823
4823
  this.checkRequiredSymbol('fetchCanceledOrders', symbol);
4824
4824
  await this.loadMarkets();
@@ -4839,7 +4839,7 @@ class binance extends binance$1 {
4839
4839
  * @param {string} id order id
4840
4840
  * @param {string} symbol unified symbol of the market the order was made in
4841
4841
  * @param {object} [params] extra parameters specific to the binance api endpoint
4842
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
4842
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4843
4843
  */
4844
4844
  this.checkRequiredSymbol('cancelOrder', symbol);
4845
4845
  await this.loadMarkets();
@@ -4897,7 +4897,7 @@ class binance extends binance$1 {
4897
4897
  * @param {string} symbol unified market symbol of the market to cancel orders in
4898
4898
  * @param {object} [params] extra parameters specific to the binance api endpoint
4899
4899
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
4900
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4900
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
4901
4901
  */
4902
4902
  this.checkRequiredSymbol('cancelAllOrders', symbol);
4903
4903
  await this.loadMarkets();
@@ -4942,7 +4942,7 @@ class binance extends binance$1 {
4942
4942
  * @param {int} [since] the earliest time in ms to fetch trades for
4943
4943
  * @param {int} [limit] the maximum number of trades to retrieve
4944
4944
  * @param {object} [params] extra parameters specific to the binance api endpoint
4945
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4945
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
4946
4946
  */
4947
4947
  if (symbol === undefined) {
4948
4948
  throw new errors.ArgumentsRequired(this.id + ' fetchOrderTrades() requires a symbol argument');
@@ -4968,7 +4968,7 @@ class binance extends binance$1 {
4968
4968
  * @param {int} [since] the earliest time in ms to fetch trades for
4969
4969
  * @param {int} [limit] the maximum number of trades structures to retrieve
4970
4970
  * @param {object} [params] extra parameters specific to the binance api endpoint
4971
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4971
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
4972
4972
  */
4973
4973
  await this.loadMarkets();
4974
4974
  const request = {};
@@ -5107,7 +5107,7 @@ class binance extends binance$1 {
5107
5107
  * @param {int} [since] the earliest time in ms to fetch my dust trades for
5108
5108
  * @param {int} [limit] the maximum number of dust trades to retrieve
5109
5109
  * @param {object} [params] extra parameters specific to the binance api endpoint
5110
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
5110
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
5111
5111
  */
5112
5112
  //
5113
5113
  // Binance provides an opportunity to trade insignificant (i.e. non-tradable and non-withdrawable)
@@ -5247,7 +5247,7 @@ class binance extends binance$1 {
5247
5247
  * @param {object} [params] extra parameters specific to the binance api endpoint
5248
5248
  * @param {bool} [params.fiat] if true, only fiat deposits will be returned
5249
5249
  * @param {int} [params.until] the latest time in ms to fetch deposits for
5250
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5250
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
5251
5251
  */
5252
5252
  await this.loadMarkets();
5253
5253
  let currency = undefined;
@@ -5350,7 +5350,7 @@ class binance extends binance$1 {
5350
5350
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
5351
5351
  * @param {object} [params] extra parameters specific to the binance api endpoint
5352
5352
  * @param {bool} [params.fiat] if true, only fiat withdrawals will be returned
5353
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5353
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
5354
5354
  */
5355
5355
  await this.loadMarkets();
5356
5356
  const legalMoney = this.safeValue(this.options, 'legalMoney', {});
@@ -5719,7 +5719,7 @@ class binance extends binance$1 {
5719
5719
  * @param {string} fromAccount account to transfer from
5720
5720
  * @param {string} toAccount account to transfer to
5721
5721
  * @param {object} [params] extra parameters specific to the binance api endpoint
5722
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
5722
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
5723
5723
  */
5724
5724
  await this.loadMarkets();
5725
5725
  const currency = this.currency(code);
@@ -5813,7 +5813,7 @@ class binance extends binance$1 {
5813
5813
  * @param {int} [since] the earliest time in ms to fetch transfers for
5814
5814
  * @param {int} [limit] the maximum number of transfers structures to retrieve
5815
5815
  * @param {object} [params] extra parameters specific to the binance api endpoint
5816
- * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
5816
+ * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
5817
5817
  */
5818
5818
  await this.loadMarkets();
5819
5819
  let currency = undefined;
@@ -5874,7 +5874,7 @@ class binance extends binance$1 {
5874
5874
  * @description fetch the deposit address for a currency associated with this account
5875
5875
  * @param {string} code unified currency code
5876
5876
  * @param {object} [params] extra parameters specific to the binance api endpoint
5877
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
5877
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
5878
5878
  */
5879
5879
  await this.loadMarkets();
5880
5880
  const currency = this.currency(code);
@@ -5949,7 +5949,7 @@ class binance extends binance$1 {
5949
5949
  * @description please use fetchDepositWithdrawFees instead
5950
5950
  * @param {string[]|undefined} codes not used by binance fetchTransactionFees ()
5951
5951
  * @param {object} [params] extra parameters specific to the binance api endpoint
5952
- * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
5952
+ * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
5953
5953
  */
5954
5954
  await this.loadMarkets();
5955
5955
  const response = await this.sapiGetCapitalConfigGetall(params);
@@ -6062,7 +6062,7 @@ class binance extends binance$1 {
6062
6062
  * @description fetch deposit and withdraw fees
6063
6063
  * @param {string[]|undefined} codes not used by binance fetchDepositWithdrawFees ()
6064
6064
  * @param {object} [params] extra parameters specific to the binance api endpoint
6065
- * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
6065
+ * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
6066
6066
  */
6067
6067
  await this.loadMarkets();
6068
6068
  const response = await this.sapiGetCapitalConfigGetall(params);
@@ -6188,7 +6188,7 @@ class binance extends binance$1 {
6188
6188
  * @param {string} address the address to withdraw to
6189
6189
  * @param {string} tag
6190
6190
  * @param {object} [params] extra parameters specific to the binance api endpoint
6191
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
6191
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
6192
6192
  */
6193
6193
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
6194
6194
  this.checkAddress(address);
@@ -6240,7 +6240,7 @@ class binance extends binance$1 {
6240
6240
  * @description fetch the trading fees for a market
6241
6241
  * @param {string} symbol unified market symbol
6242
6242
  * @param {object} [params] extra parameters specific to the binance api endpoint
6243
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
6243
+ * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
6244
6244
  */
6245
6245
  await this.loadMarkets();
6246
6246
  const market = this.market(symbol);
@@ -6266,7 +6266,7 @@ class binance extends binance$1 {
6266
6266
  * @name binance#fetchTradingFees
6267
6267
  * @description fetch the trading fees for multiple markets
6268
6268
  * @param {object} [params] extra parameters specific to the binance api endpoint
6269
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
6269
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
6270
6270
  */
6271
6271
  await this.loadMarkets();
6272
6272
  let method = undefined;
@@ -6447,7 +6447,7 @@ class binance extends binance$1 {
6447
6447
  * @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
6448
6448
  * @param {object} [params] extra parameters specific to the binance api endpoint
6449
6449
  * @param {float} params.recvWindow
6450
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=futures-transfer-structure}
6450
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#futures-transfer-structure}
6451
6451
  */
6452
6452
  if ((type < 1) || (type > 4)) {
6453
6453
  throw new errors.ArgumentsRequired(this.id + ' type must be between 1 and 4');
@@ -6474,7 +6474,7 @@ class binance extends binance$1 {
6474
6474
  * @description fetch the current funding rate
6475
6475
  * @param {string} symbol unified market symbol
6476
6476
  * @param {object} [params] extra parameters specific to the binance api endpoint
6477
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
6477
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
6478
6478
  */
6479
6479
  await this.loadMarkets();
6480
6480
  const market = this.market(symbol);
@@ -6516,10 +6516,10 @@ class binance extends binance$1 {
6516
6516
  * @description fetches historical funding rate prices
6517
6517
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
6518
6518
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
6519
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure} to fetch
6519
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
6520
6520
  * @param {object} [params] extra parameters specific to the binance api endpoint
6521
6521
  * @param {int} [params.until] timestamp in ms of the latest funding rate
6522
- * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure}
6522
+ * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
6523
6523
  */
6524
6524
  await this.loadMarkets();
6525
6525
  const request = {};
@@ -6586,7 +6586,7 @@ class binance extends binance$1 {
6586
6586
  * @description fetch the funding rate for multiple markets
6587
6587
  * @param {string[]|undefined} symbols list of unified market symbols
6588
6588
  * @param {object} [params] extra parameters specific to the binance api endpoint
6589
- * @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
6589
+ * @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
6590
6590
  */
6591
6591
  await this.loadMarkets();
6592
6592
  symbols = this.marketSymbols(symbols);
@@ -7114,7 +7114,7 @@ class binance extends binance$1 {
7114
7114
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
7115
7115
  * @param {string[]|undefined} symbols list of unified market symbols
7116
7116
  * @param {object} [params] extra parameters specific to the binance api endpoint
7117
- * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
7117
+ * @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
7118
7118
  */
7119
7119
  await this.loadMarkets();
7120
7120
  const [type, query] = this.handleMarketTypeAndParams('fetchLeverageTiers', undefined, params);
@@ -7220,7 +7220,7 @@ class binance extends binance$1 {
7220
7220
  * @description fetch data on an open position
7221
7221
  * @param {string} symbol unified market symbol of the market the position is held in
7222
7222
  * @param {object} [params] extra parameters specific to the binance api endpoint
7223
- * @returns {object} a [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
7223
+ * @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
7224
7224
  */
7225
7225
  await this.loadMarkets();
7226
7226
  const market = this.market(symbol);
@@ -7264,7 +7264,7 @@ class binance extends binance$1 {
7264
7264
  * @description fetch data on open options positions
7265
7265
  * @param {string[]|undefined} symbols list of unified market symbols
7266
7266
  * @param {object} [params] extra parameters specific to the binance api endpoint
7267
- * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
7267
+ * @returns {object[]} a list of [position structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
7268
7268
  */
7269
7269
  await this.loadMarkets();
7270
7270
  symbols = this.marketSymbols(symbols);
@@ -7379,7 +7379,7 @@ class binance extends binance$1 {
7379
7379
  * @description fetch all open positions
7380
7380
  * @param {string[]|undefined} symbols list of unified market symbols
7381
7381
  * @param {object} [params] extra parameters specific to the binance api endpoint
7382
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
7382
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
7383
7383
  */
7384
7384
  const defaultMethod = this.safeString(this.options, 'fetchPositions', 'positionRisk');
7385
7385
  if (defaultMethod === 'positionRisk') {
@@ -7537,7 +7537,7 @@ class binance extends binance$1 {
7537
7537
  * @param {int} [since] the earliest time in ms to fetch funding history for
7538
7538
  * @param {int} [limit] the maximum number of funding history structures to retrieve
7539
7539
  * @param {object} [params] extra parameters specific to the binance api endpoint
7540
- * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
7540
+ * @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
7541
7541
  */
7542
7542
  await this.loadMarkets();
7543
7543
  let market = undefined;
@@ -7912,7 +7912,7 @@ class binance extends binance$1 {
7912
7912
  * @param {int} [since] timestamp in ms of the earliest ledger entry
7913
7913
  * @param {int} [limit] max number of ledger entrys to return
7914
7914
  * @param {object} [params] extra parameters specific to the binance api endpoint
7915
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
7915
+ * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
7916
7916
  */
7917
7917
  await this.loadMarkets();
7918
7918
  let type = undefined;
@@ -8322,7 +8322,7 @@ class binance extends binance$1 {
8322
8322
  * @param {string} symbol unified market symbol
8323
8323
  * @param {float} amount the amount of margin to remove
8324
8324
  * @param {object} [params] extra parameters specific to the binance api endpoint
8325
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
8325
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
8326
8326
  */
8327
8327
  return await this.modifyMarginHelper(symbol, amount, 2, params);
8328
8328
  }
@@ -8336,7 +8336,7 @@ class binance extends binance$1 {
8336
8336
  * @param {string} symbol unified market symbol
8337
8337
  * @param {float} amount amount of margin to add
8338
8338
  * @param {object} [params] extra parameters specific to the binance api endpoint
8339
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
8339
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
8340
8340
  */
8341
8341
  return await this.modifyMarginHelper(symbol, amount, 1, params);
8342
8342
  }
@@ -8347,7 +8347,7 @@ class binance extends binance$1 {
8347
8347
  * @description fetch the rate of interest to borrow a currency for margin trading
8348
8348
  * @param {string} code unified currency code
8349
8349
  * @param {object} [params] extra parameters specific to the binance api endpoint
8350
- * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
8350
+ * @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
8351
8351
  */
8352
8352
  await this.loadMarkets();
8353
8353
  const currency = this.currency(code);
@@ -8376,9 +8376,9 @@ class binance extends binance$1 {
8376
8376
  * @description retrieves a history of a currencies borrow interest rate at specific time slots
8377
8377
  * @param {string} code unified currency code
8378
8378
  * @param {int} [since] timestamp for the earliest borrow rate
8379
- * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} to retrieve
8379
+ * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure} to retrieve
8380
8380
  * @param {object} [params] extra parameters specific to the exchange api endpoint
8381
- * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
8381
+ * @returns {object[]} an array of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
8382
8382
  */
8383
8383
  await this.loadMarkets();
8384
8384
  if (limit === undefined) {
@@ -8538,7 +8538,7 @@ class binance extends binance$1 {
8538
8538
  * @param {int} [since] the earliest time in ms to fetch borrrow interest for
8539
8539
  * @param {int} [limit] the maximum number of structures to retrieve
8540
8540
  * @param {object} [params] extra parameters specific to the binance api endpoint
8541
- * @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
8541
+ * @returns {object[]} a list of [borrow interest structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-interest-structure}
8542
8542
  */
8543
8543
  await this.loadMarkets();
8544
8544
  const request = {};
@@ -8605,7 +8605,7 @@ class binance extends binance$1 {
8605
8605
  * @param {float} amount the amount to repay
8606
8606
  * @param {string} symbol unified market symbol, required for isolated margin
8607
8607
  * @param {object} [params] extra parameters specific to the binance api endpoint
8608
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
8608
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
8609
8609
  */
8610
8610
  const [marginMode, query] = this.handleMarginModeAndParams('repayMargin', params); // cross or isolated
8611
8611
  this.checkRequiredMarginArgument('repayMargin', symbol, marginMode);
@@ -8639,7 +8639,7 @@ class binance extends binance$1 {
8639
8639
  * @param {float} amount the amount to borrow
8640
8640
  * @param {string} symbol unified market symbol, required for isolated margin
8641
8641
  * @param {object} [params] extra parameters specific to the binance api endpoint
8642
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
8642
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
8643
8643
  */
8644
8644
  const [marginMode, query] = this.handleMarginModeAndParams('borrowMargin', params); // cross or isolated
8645
8645
  this.checkRequiredMarginArgument('borrowMargin', symbol, marginMode);
@@ -8691,7 +8691,7 @@ class binance extends binance$1 {
8691
8691
  * @param {int} [limit] default 30, max 500
8692
8692
  * @param {object} [params] exchange specific parameters
8693
8693
  * @param {int} [params.until] the time(ms) of the latest record to retrieve as a unix timestamp
8694
- * @returns {object} an array of [open interest history structure]{@link https://docs.ccxt.com/#/?id=interest-history-structure}
8694
+ * @returns {object} an array of [open interest history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
8695
8695
  */
8696
8696
  if (timeframe === '1m') {
8697
8697
  throw new errors.BadRequest(this.id + 'fetchOpenInterestHistory cannot use the 1m timeframe');
@@ -8753,7 +8753,7 @@ class binance extends binance$1 {
8753
8753
  * @see https://binance-docs.github.io/apidocs/voptions/en/#open-interest
8754
8754
  * @param {string} symbol unified CCXT market symbol
8755
8755
  * @param {object} [params] exchange specific parameters
8756
- * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=interest-history-structure}
8756
+ * @returns {object} an open interest structure{@link https://github.com/ccxt/ccxt/wiki/Manual#interest-history-structure}
8757
8757
  */
8758
8758
  await this.loadMarkets();
8759
8759
  const market = this.market(symbol);