ccxt 4.5.28 → 4.5.30

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 (522) hide show
  1. package/README.md +24 -7
  2. package/dist/ccxt.browser.min.js +7 -7
  3. package/dist/cjs/ccxt.js +6 -1
  4. package/dist/cjs/src/abstract/bydfi.js +11 -0
  5. package/dist/cjs/src/alpaca.js +21 -21
  6. package/dist/cjs/src/apex.js +20 -20
  7. package/dist/cjs/src/arkham.js +22 -22
  8. package/dist/cjs/src/ascendex.js +28 -28
  9. package/dist/cjs/src/backpack.js +22 -22
  10. package/dist/cjs/src/base/Exchange.js +48 -38
  11. package/dist/cjs/src/base/functions/throttle.js +54 -5
  12. package/dist/cjs/src/bigone.js +19 -19
  13. package/dist/cjs/src/binance.js +83 -82
  14. package/dist/cjs/src/bingx.js +47 -47
  15. package/dist/cjs/src/bit2c.js +11 -11
  16. package/dist/cjs/src/bitbank.js +49 -48
  17. package/dist/cjs/src/bitbns.js +13 -13
  18. package/dist/cjs/src/bitfinex.js +33 -33
  19. package/dist/cjs/src/bitflyer.js +17 -17
  20. package/dist/cjs/src/bitget.js +58 -57
  21. package/dist/cjs/src/bithumb.js +10 -10
  22. package/dist/cjs/src/bitmart.js +44 -44
  23. package/dist/cjs/src/bitmex.js +24 -24
  24. package/dist/cjs/src/bitopro.js +20 -20
  25. package/dist/cjs/src/bitrue.js +18 -18
  26. package/dist/cjs/src/bitso.js +20 -20
  27. package/dist/cjs/src/bitstamp.js +21 -21
  28. package/dist/cjs/src/bittrade.js +20 -20
  29. package/dist/cjs/src/bitvavo.js +19 -19
  30. package/dist/cjs/src/blockchaincom.js +20 -20
  31. package/dist/cjs/src/blofin.js +26 -26
  32. package/dist/cjs/src/btcalpha.js +35 -34
  33. package/dist/cjs/src/btcbox.js +10 -10
  34. package/dist/cjs/src/btcmarkets.js +16 -16
  35. package/dist/cjs/src/btcturk.js +10 -10
  36. package/dist/cjs/src/bullish.js +27 -27
  37. package/dist/cjs/src/bybit.js +69 -67
  38. package/dist/cjs/src/bydfi.js +2907 -0
  39. package/dist/cjs/src/cex.js +18 -18
  40. package/dist/cjs/src/coinbase.js +74 -41
  41. package/dist/cjs/src/coinbaseexchange.js +22 -22
  42. package/dist/cjs/src/coinbaseinternational.js +22 -22
  43. package/dist/cjs/src/coincatch.js +39 -39
  44. package/dist/cjs/src/coincheck.js +11 -11
  45. package/dist/cjs/src/coinex.js +48 -48
  46. package/dist/cjs/src/coinmate.js +14 -14
  47. package/dist/cjs/src/coinmetro.js +14 -14
  48. package/dist/cjs/src/coinone.js +11 -11
  49. package/dist/cjs/src/coinsph.js +20 -20
  50. package/dist/cjs/src/coinspot.js +8 -8
  51. package/dist/cjs/src/cryptocom.js +32 -32
  52. package/dist/cjs/src/cryptomus.js +9 -9
  53. package/dist/cjs/src/deepcoin.js +33 -33
  54. package/dist/cjs/src/defx.js +23 -23
  55. package/dist/cjs/src/delta.js +29 -29
  56. package/dist/cjs/src/deribit.js +36 -36
  57. package/dist/cjs/src/derive.js +19 -19
  58. package/dist/cjs/src/digifinex.js +36 -36
  59. package/dist/cjs/src/dydx.js +25 -25
  60. package/dist/cjs/src/exmo.js +29 -29
  61. package/dist/cjs/src/foxbit.js +23 -23
  62. package/dist/cjs/src/gate.js +60 -59
  63. package/dist/cjs/src/gemini.js +16 -16
  64. package/dist/cjs/src/hashkey.js +35 -35
  65. package/dist/cjs/src/hibachi.js +24 -24
  66. package/dist/cjs/src/hitbtc.js +38 -38
  67. package/dist/cjs/src/hollaex.js +22 -22
  68. package/dist/cjs/src/htx.js +50 -50
  69. package/dist/cjs/src/hyperliquid.js +86 -45
  70. package/dist/cjs/src/independentreserve.js +13 -13
  71. package/dist/cjs/src/indodax.js +14 -14
  72. package/dist/cjs/src/kraken.js +30 -30
  73. package/dist/cjs/src/krakenfutures.js +21 -21
  74. package/dist/cjs/src/kucoin.js +156 -48
  75. package/dist/cjs/src/kucoinfutures.js +42 -40
  76. package/dist/cjs/src/latoken.js +16 -16
  77. package/dist/cjs/src/lbank.js +23 -23
  78. package/dist/cjs/src/luno.js +17 -17
  79. package/dist/cjs/src/mercado.js +11 -11
  80. package/dist/cjs/src/mexc.js +47 -47
  81. package/dist/cjs/src/modetrade.js +37 -35
  82. package/dist/cjs/src/ndax.js +19 -19
  83. package/dist/cjs/src/novadax.js +19 -19
  84. package/dist/cjs/src/oceanex.js +16 -16
  85. package/dist/cjs/src/okx.js +83 -83
  86. package/dist/cjs/src/onetrading.js +34 -33
  87. package/dist/cjs/src/oxfun.js +25 -25
  88. package/dist/cjs/src/p2b.js +11 -11
  89. package/dist/cjs/src/paradex.js +54 -54
  90. package/dist/cjs/src/paymium.js +20 -21
  91. package/dist/cjs/src/phemex.js +35 -35
  92. package/dist/cjs/src/poloniex.js +27 -27
  93. package/dist/cjs/src/pro/alpaca.js +5 -5
  94. package/dist/cjs/src/pro/apex.js +13 -11
  95. package/dist/cjs/src/pro/arkham.js +5 -5
  96. package/dist/cjs/src/pro/ascendex.js +5 -5
  97. package/dist/cjs/src/pro/backpack.js +16 -16
  98. package/dist/cjs/src/pro/binance.js +45 -41
  99. package/dist/cjs/src/pro/bingx.js +14 -12
  100. package/dist/cjs/src/pro/bitfinex.js +8 -8
  101. package/dist/cjs/src/pro/bitget.js +12 -12
  102. package/dist/cjs/src/pro/bithumb.js +3 -3
  103. package/dist/cjs/src/pro/bitmart.js +393 -34
  104. package/dist/cjs/src/pro/bitmex.js +9 -9
  105. package/dist/cjs/src/pro/bitopro.js +5 -5
  106. package/dist/cjs/src/pro/bitrue.js +2 -2
  107. package/dist/cjs/src/pro/bitstamp.js +3 -3
  108. package/dist/cjs/src/pro/bittrade.js +3 -3
  109. package/dist/cjs/src/pro/bitvavo.js +19 -19
  110. package/dist/cjs/src/pro/blockchaincom.js +5 -5
  111. package/dist/cjs/src/pro/blofin.js +10 -10
  112. package/dist/cjs/src/pro/bullish.js +6 -6
  113. package/dist/cjs/src/pro/bybit.js +24 -22
  114. package/dist/cjs/src/pro/bydfi.js +1077 -0
  115. package/dist/cjs/src/pro/cex.js +13 -13
  116. package/dist/cjs/src/pro/coinbase.js +13 -13
  117. package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
  118. package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
  119. package/dist/cjs/src/pro/coincatch.js +10 -10
  120. package/dist/cjs/src/pro/coincheck.js +2 -2
  121. package/dist/cjs/src/pro/coinex.js +10 -10
  122. package/dist/cjs/src/pro/coinone.js +3 -3
  123. package/dist/cjs/src/pro/cryptocom.js +25 -23
  124. package/dist/cjs/src/pro/deepcoin.js +8 -8
  125. package/dist/cjs/src/pro/defx.js +15 -15
  126. package/dist/cjs/src/pro/deribit.js +10 -10
  127. package/dist/cjs/src/pro/derive.js +6 -6
  128. package/dist/cjs/src/pro/dydx.js +3 -3
  129. package/dist/cjs/src/pro/exmo.js +7 -7
  130. package/dist/cjs/src/pro/gate.js +26 -62
  131. package/dist/cjs/src/pro/gemini.js +6 -6
  132. package/dist/cjs/src/pro/hashkey.js +11 -9
  133. package/dist/cjs/src/pro/hitbtc.js +8 -8
  134. package/dist/cjs/src/pro/hollaex.js +5 -5
  135. package/dist/cjs/src/pro/htx.js +9 -9
  136. package/dist/cjs/src/pro/hyperliquid.js +103 -14
  137. package/dist/cjs/src/pro/independentreserve.js +2 -2
  138. package/dist/cjs/src/pro/kraken.js +15 -15
  139. package/dist/cjs/src/pro/krakenfutures.js +10 -10
  140. package/dist/cjs/src/pro/kucoin.js +15 -15
  141. package/dist/cjs/src/pro/kucoinfutures.js +18 -16
  142. package/dist/cjs/src/pro/lbank.js +5 -5
  143. package/dist/cjs/src/pro/luno.js +2 -2
  144. package/dist/cjs/src/pro/mexc.js +13 -13
  145. package/dist/cjs/src/pro/modetrade.js +13 -11
  146. package/dist/cjs/src/pro/ndax.js +3 -3
  147. package/dist/cjs/src/pro/okx.js +25 -25
  148. package/dist/cjs/src/pro/onetrading.js +6 -6
  149. package/dist/cjs/src/pro/oxfun.js +13 -13
  150. package/dist/cjs/src/pro/p2b.js +5 -5
  151. package/dist/cjs/src/pro/paradex.js +8 -8
  152. package/dist/cjs/src/pro/phemex.js +7 -7
  153. package/dist/cjs/src/pro/poloniex.js +8 -8
  154. package/dist/cjs/src/pro/probit.js +6 -6
  155. package/dist/cjs/src/pro/toobit.js +20 -16
  156. package/dist/cjs/src/pro/upbit.js +9 -9
  157. package/dist/cjs/src/pro/whitebit.js +7 -7
  158. package/dist/cjs/src/pro/woo.js +18 -16
  159. package/dist/cjs/src/pro/woofipro.js +25 -23
  160. package/dist/cjs/src/pro/xt.js +7 -5
  161. package/dist/cjs/src/probit.js +18 -18
  162. package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
  163. package/dist/cjs/src/timex.js +16 -16
  164. package/dist/cjs/src/tokocrypto.js +17 -17
  165. package/dist/cjs/src/toobit.js +33 -30
  166. package/dist/cjs/src/upbit.js +23 -23
  167. package/dist/cjs/src/wavesexchange.js +86 -85
  168. package/dist/cjs/src/whitebit.js +44 -44
  169. package/dist/cjs/src/woo.js +51 -49
  170. package/dist/cjs/src/woofipro.js +104 -82
  171. package/dist/cjs/src/xt.js +17 -12
  172. package/dist/cjs/src/yobit.js +15 -15
  173. package/dist/cjs/src/zaif.js +38 -9
  174. package/dist/cjs/src/zebpay.js +35 -20
  175. package/dist/cjs/src/zonda.js +14 -14
  176. package/js/ccxt.d.ts +8 -2
  177. package/js/ccxt.js +6 -2
  178. package/js/src/abstract/bydfi.d.ts +52 -0
  179. package/js/src/abstract/bydfi.js +11 -0
  180. package/js/src/alpaca.d.ts +21 -21
  181. package/js/src/alpaca.js +21 -21
  182. package/js/src/apex.d.ts +20 -20
  183. package/js/src/apex.js +20 -20
  184. package/js/src/arkham.d.ts +22 -22
  185. package/js/src/arkham.js +22 -22
  186. package/js/src/ascendex.d.ts +28 -28
  187. package/js/src/ascendex.js +28 -28
  188. package/js/src/backpack.d.ts +21 -21
  189. package/js/src/backpack.js +22 -22
  190. package/js/src/base/Exchange.d.ts +6 -3
  191. package/js/src/base/Exchange.js +48 -38
  192. package/js/src/base/functions/throttle.d.ts +22 -0
  193. package/js/src/base/functions/throttle.js +54 -5
  194. package/js/src/bigone.d.ts +19 -19
  195. package/js/src/bigone.js +19 -19
  196. package/js/src/binance.d.ts +82 -82
  197. package/js/src/binance.js +83 -82
  198. package/js/src/bingx.d.ts +46 -46
  199. package/js/src/bingx.js +47 -47
  200. package/js/src/bit2c.d.ts +11 -11
  201. package/js/src/bit2c.js +11 -11
  202. package/js/src/bitbank.d.ts +12 -12
  203. package/js/src/bitbank.js +49 -48
  204. package/js/src/bitbns.d.ts +13 -13
  205. package/js/src/bitbns.js +13 -13
  206. package/js/src/bitfinex.d.ts +33 -33
  207. package/js/src/bitfinex.js +33 -33
  208. package/js/src/bitflyer.d.ts +17 -17
  209. package/js/src/bitflyer.js +17 -17
  210. package/js/src/bitget.d.ts +57 -57
  211. package/js/src/bitget.js +58 -57
  212. package/js/src/bithumb.d.ts +10 -10
  213. package/js/src/bithumb.js +10 -10
  214. package/js/src/bitmart.d.ts +42 -42
  215. package/js/src/bitmart.js +44 -44
  216. package/js/src/bitmex.d.ts +24 -24
  217. package/js/src/bitmex.js +24 -24
  218. package/js/src/bitopro.d.ts +20 -20
  219. package/js/src/bitopro.js +20 -20
  220. package/js/src/bitrue.d.ts +18 -18
  221. package/js/src/bitrue.js +18 -18
  222. package/js/src/bitso.d.ts +20 -20
  223. package/js/src/bitso.js +20 -20
  224. package/js/src/bitstamp.d.ts +21 -21
  225. package/js/src/bitstamp.js +21 -21
  226. package/js/src/bittrade.d.ts +20 -20
  227. package/js/src/bittrade.js +20 -20
  228. package/js/src/bitvavo.d.ts +19 -19
  229. package/js/src/bitvavo.js +19 -19
  230. package/js/src/blockchaincom.d.ts +20 -20
  231. package/js/src/blockchaincom.js +20 -20
  232. package/js/src/blofin.d.ts +26 -26
  233. package/js/src/blofin.js +26 -26
  234. package/js/src/btcalpha.d.ts +14 -14
  235. package/js/src/btcalpha.js +35 -34
  236. package/js/src/btcbox.d.ts +10 -10
  237. package/js/src/btcbox.js +10 -10
  238. package/js/src/btcmarkets.d.ts +16 -16
  239. package/js/src/btcmarkets.js +16 -16
  240. package/js/src/btcturk.d.ts +10 -10
  241. package/js/src/btcturk.js +10 -10
  242. package/js/src/bullish.d.ts +26 -26
  243. package/js/src/bullish.js +27 -27
  244. package/js/src/bybit.d.ts +66 -66
  245. package/js/src/bybit.js +69 -67
  246. package/js/src/bydfi.d.ts +472 -0
  247. package/js/src/bydfi.js +2905 -0
  248. package/js/src/cex.d.ts +18 -18
  249. package/js/src/cex.js +18 -18
  250. package/js/src/coinbase.d.ts +51 -40
  251. package/js/src/coinbase.js +74 -41
  252. package/js/src/coinbaseexchange.d.ts +22 -22
  253. package/js/src/coinbaseexchange.js +22 -22
  254. package/js/src/coinbaseinternational.d.ts +22 -22
  255. package/js/src/coinbaseinternational.js +22 -22
  256. package/js/src/coincatch.d.ts +39 -39
  257. package/js/src/coincatch.js +39 -39
  258. package/js/src/coincheck.d.ts +11 -11
  259. package/js/src/coincheck.js +11 -11
  260. package/js/src/coinex.d.ts +48 -48
  261. package/js/src/coinex.js +48 -48
  262. package/js/src/coinmate.d.ts +14 -14
  263. package/js/src/coinmate.js +14 -14
  264. package/js/src/coinmetro.d.ts +14 -14
  265. package/js/src/coinmetro.js +14 -14
  266. package/js/src/coinone.d.ts +11 -11
  267. package/js/src/coinone.js +11 -11
  268. package/js/src/coinsph.d.ts +20 -20
  269. package/js/src/coinsph.js +20 -20
  270. package/js/src/coinspot.d.ts +8 -8
  271. package/js/src/coinspot.js +8 -8
  272. package/js/src/cryptocom.d.ts +32 -32
  273. package/js/src/cryptocom.js +32 -32
  274. package/js/src/cryptomus.d.ts +9 -9
  275. package/js/src/cryptomus.js +9 -9
  276. package/js/src/deepcoin.d.ts +33 -33
  277. package/js/src/deepcoin.js +33 -33
  278. package/js/src/defx.d.ts +23 -23
  279. package/js/src/defx.js +23 -23
  280. package/js/src/delta.d.ts +29 -29
  281. package/js/src/delta.js +29 -29
  282. package/js/src/deribit.d.ts +36 -36
  283. package/js/src/deribit.js +36 -36
  284. package/js/src/derive.d.ts +19 -19
  285. package/js/src/derive.js +19 -19
  286. package/js/src/digifinex.d.ts +36 -36
  287. package/js/src/digifinex.js +36 -36
  288. package/js/src/dydx.d.ts +22 -22
  289. package/js/src/dydx.js +25 -25
  290. package/js/src/exmo.d.ts +29 -29
  291. package/js/src/exmo.js +29 -29
  292. package/js/src/foxbit.d.ts +23 -23
  293. package/js/src/foxbit.js +23 -23
  294. package/js/src/gate.d.ts +57 -57
  295. package/js/src/gate.js +60 -59
  296. package/js/src/gemini.d.ts +16 -16
  297. package/js/src/gemini.js +16 -16
  298. package/js/src/hashkey.d.ts +35 -35
  299. package/js/src/hashkey.js +35 -35
  300. package/js/src/hibachi.d.ts +24 -24
  301. package/js/src/hibachi.js +24 -24
  302. package/js/src/hitbtc.d.ts +38 -38
  303. package/js/src/hitbtc.js +38 -38
  304. package/js/src/hollaex.d.ts +22 -22
  305. package/js/src/hollaex.js +22 -22
  306. package/js/src/htx.d.ts +50 -50
  307. package/js/src/htx.js +50 -50
  308. package/js/src/hyperliquid.d.ts +46 -36
  309. package/js/src/hyperliquid.js +86 -45
  310. package/js/src/independentreserve.d.ts +13 -13
  311. package/js/src/independentreserve.js +13 -13
  312. package/js/src/indodax.d.ts +14 -14
  313. package/js/src/indodax.js +14 -14
  314. package/js/src/kraken.d.ts +30 -30
  315. package/js/src/kraken.js +30 -30
  316. package/js/src/krakenfutures.d.ts +21 -21
  317. package/js/src/krakenfutures.js +21 -21
  318. package/js/src/kucoin.d.ts +58 -44
  319. package/js/src/kucoin.js +156 -48
  320. package/js/src/kucoinfutures.d.ts +35 -35
  321. package/js/src/kucoinfutures.js +42 -40
  322. package/js/src/latoken.d.ts +16 -16
  323. package/js/src/latoken.js +16 -16
  324. package/js/src/lbank.d.ts +23 -23
  325. package/js/src/lbank.js +23 -23
  326. package/js/src/luno.d.ts +17 -17
  327. package/js/src/luno.js +17 -17
  328. package/js/src/mercado.d.ts +11 -11
  329. package/js/src/mercado.js +11 -11
  330. package/js/src/mexc.d.ts +47 -47
  331. package/js/src/mexc.js +47 -47
  332. package/js/src/modetrade.d.ts +31 -31
  333. package/js/src/modetrade.js +37 -35
  334. package/js/src/ndax.d.ts +19 -19
  335. package/js/src/ndax.js +19 -19
  336. package/js/src/novadax.d.ts +19 -19
  337. package/js/src/novadax.js +19 -19
  338. package/js/src/oceanex.d.ts +16 -16
  339. package/js/src/oceanex.js +16 -16
  340. package/js/src/okx.d.ts +74 -74
  341. package/js/src/okx.js +83 -83
  342. package/js/src/onetrading.d.ts +34 -33
  343. package/js/src/onetrading.js +34 -33
  344. package/js/src/oxfun.d.ts +25 -25
  345. package/js/src/oxfun.js +25 -25
  346. package/js/src/p2b.d.ts +11 -11
  347. package/js/src/p2b.js +11 -11
  348. package/js/src/paradex.d.ts +54 -54
  349. package/js/src/paradex.js +54 -54
  350. package/js/src/paymium.d.ts +20 -21
  351. package/js/src/paymium.js +20 -21
  352. package/js/src/phemex.d.ts +30 -30
  353. package/js/src/phemex.js +35 -35
  354. package/js/src/poloniex.d.ts +26 -26
  355. package/js/src/poloniex.js +27 -27
  356. package/js/src/pro/alpaca.d.ts +5 -5
  357. package/js/src/pro/alpaca.js +5 -5
  358. package/js/src/pro/apex.d.ts +8 -8
  359. package/js/src/pro/apex.js +13 -11
  360. package/js/src/pro/arkham.d.ts +5 -5
  361. package/js/src/pro/arkham.js +5 -5
  362. package/js/src/pro/ascendex.d.ts +5 -5
  363. package/js/src/pro/ascendex.js +5 -5
  364. package/js/src/pro/backpack.d.ts +16 -16
  365. package/js/src/pro/backpack.js +16 -16
  366. package/js/src/pro/binance.d.ts +35 -35
  367. package/js/src/pro/binance.js +45 -41
  368. package/js/src/pro/bingx.d.ts +9 -9
  369. package/js/src/pro/bingx.js +14 -12
  370. package/js/src/pro/bitfinex.d.ts +8 -8
  371. package/js/src/pro/bitfinex.js +8 -8
  372. package/js/src/pro/bitget.d.ts +12 -12
  373. package/js/src/pro/bitget.js +12 -12
  374. package/js/src/pro/bithumb.d.ts +3 -3
  375. package/js/src/pro/bithumb.js +3 -3
  376. package/js/src/pro/bitmart.d.ts +120 -9
  377. package/js/src/pro/bitmart.js +393 -34
  378. package/js/src/pro/bitmex.d.ts +9 -9
  379. package/js/src/pro/bitmex.js +9 -9
  380. package/js/src/pro/bitopro.d.ts +5 -5
  381. package/js/src/pro/bitopro.js +5 -5
  382. package/js/src/pro/bitrue.d.ts +2 -2
  383. package/js/src/pro/bitrue.js +2 -2
  384. package/js/src/pro/bitstamp.d.ts +3 -3
  385. package/js/src/pro/bitstamp.js +3 -3
  386. package/js/src/pro/bittrade.d.ts +3 -3
  387. package/js/src/pro/bittrade.js +3 -3
  388. package/js/src/pro/bitvavo.d.ts +19 -19
  389. package/js/src/pro/bitvavo.js +19 -19
  390. package/js/src/pro/blockchaincom.d.ts +5 -5
  391. package/js/src/pro/blockchaincom.js +5 -5
  392. package/js/src/pro/blofin.d.ts +10 -10
  393. package/js/src/pro/blofin.js +10 -10
  394. package/js/src/pro/bullish.d.ts +6 -6
  395. package/js/src/pro/bullish.js +6 -6
  396. package/js/src/pro/bybit.d.ts +19 -19
  397. package/js/src/pro/bybit.js +24 -22
  398. package/js/src/pro/bydfi.d.ts +206 -0
  399. package/js/src/pro/bydfi.js +1076 -0
  400. package/js/src/pro/cex.d.ts +13 -13
  401. package/js/src/pro/cex.js +13 -13
  402. package/js/src/pro/coinbase.d.ts +13 -13
  403. package/js/src/pro/coinbase.js +13 -13
  404. package/js/src/pro/coinbaseexchange.d.ts +10 -10
  405. package/js/src/pro/coinbaseexchange.js +10 -10
  406. package/js/src/pro/coinbaseinternational.d.ts +8 -8
  407. package/js/src/pro/coinbaseinternational.js +8 -8
  408. package/js/src/pro/coincatch.d.ts +10 -10
  409. package/js/src/pro/coincatch.js +10 -10
  410. package/js/src/pro/coincheck.d.ts +2 -2
  411. package/js/src/pro/coincheck.js +2 -2
  412. package/js/src/pro/coinex.d.ts +10 -10
  413. package/js/src/pro/coinex.js +10 -10
  414. package/js/src/pro/coinone.d.ts +3 -3
  415. package/js/src/pro/coinone.js +3 -3
  416. package/js/src/pro/cryptocom.d.ts +20 -20
  417. package/js/src/pro/cryptocom.js +25 -23
  418. package/js/src/pro/deepcoin.d.ts +8 -8
  419. package/js/src/pro/deepcoin.js +8 -8
  420. package/js/src/pro/defx.d.ts +15 -15
  421. package/js/src/pro/defx.js +15 -15
  422. package/js/src/pro/deribit.d.ts +10 -10
  423. package/js/src/pro/deribit.js +10 -10
  424. package/js/src/pro/derive.d.ts +6 -6
  425. package/js/src/pro/derive.js +6 -6
  426. package/js/src/pro/dydx.d.ts +3 -3
  427. package/js/src/pro/dydx.js +3 -3
  428. package/js/src/pro/exmo.d.ts +7 -7
  429. package/js/src/pro/exmo.js +7 -7
  430. package/js/src/pro/gate.d.ts +22 -23
  431. package/js/src/pro/gate.js +26 -62
  432. package/js/src/pro/gemini.d.ts +6 -6
  433. package/js/src/pro/gemini.js +6 -6
  434. package/js/src/pro/hashkey.d.ts +6 -6
  435. package/js/src/pro/hashkey.js +11 -9
  436. package/js/src/pro/hitbtc.d.ts +8 -8
  437. package/js/src/pro/hitbtc.js +8 -8
  438. package/js/src/pro/hollaex.d.ts +5 -5
  439. package/js/src/pro/hollaex.js +5 -5
  440. package/js/src/pro/htx.d.ts +9 -9
  441. package/js/src/pro/htx.js +9 -9
  442. package/js/src/pro/hyperliquid.d.ts +38 -14
  443. package/js/src/pro/hyperliquid.js +103 -14
  444. package/js/src/pro/independentreserve.d.ts +2 -2
  445. package/js/src/pro/independentreserve.js +2 -2
  446. package/js/src/pro/kraken.d.ts +15 -15
  447. package/js/src/pro/kraken.js +15 -15
  448. package/js/src/pro/krakenfutures.d.ts +10 -10
  449. package/js/src/pro/krakenfutures.js +10 -10
  450. package/js/src/pro/kucoin.d.ts +15 -15
  451. package/js/src/pro/kucoin.js +15 -15
  452. package/js/src/pro/kucoinfutures.d.ts +13 -13
  453. package/js/src/pro/kucoinfutures.js +18 -16
  454. package/js/src/pro/lbank.d.ts +5 -5
  455. package/js/src/pro/lbank.js +5 -5
  456. package/js/src/pro/luno.d.ts +2 -2
  457. package/js/src/pro/luno.js +2 -2
  458. package/js/src/pro/mexc.d.ts +13 -13
  459. package/js/src/pro/mexc.js +13 -13
  460. package/js/src/pro/modetrade.d.ts +8 -8
  461. package/js/src/pro/modetrade.js +13 -11
  462. package/js/src/pro/ndax.d.ts +3 -3
  463. package/js/src/pro/ndax.js +3 -3
  464. package/js/src/pro/okx.d.ts +25 -25
  465. package/js/src/pro/okx.js +25 -25
  466. package/js/src/pro/onetrading.d.ts +6 -6
  467. package/js/src/pro/onetrading.js +6 -6
  468. package/js/src/pro/oxfun.d.ts +13 -13
  469. package/js/src/pro/oxfun.js +13 -13
  470. package/js/src/pro/p2b.d.ts +5 -5
  471. package/js/src/pro/p2b.js +5 -5
  472. package/js/src/pro/paradex.d.ts +8 -8
  473. package/js/src/pro/paradex.js +8 -8
  474. package/js/src/pro/phemex.d.ts +7 -7
  475. package/js/src/pro/phemex.js +7 -7
  476. package/js/src/pro/poloniex.d.ts +8 -8
  477. package/js/src/pro/poloniex.js +8 -8
  478. package/js/src/pro/probit.d.ts +6 -6
  479. package/js/src/pro/probit.js +6 -6
  480. package/js/src/pro/toobit.d.ts +9 -9
  481. package/js/src/pro/toobit.js +20 -16
  482. package/js/src/pro/upbit.d.ts +9 -9
  483. package/js/src/pro/upbit.js +9 -9
  484. package/js/src/pro/whitebit.d.ts +7 -7
  485. package/js/src/pro/whitebit.js +7 -7
  486. package/js/src/pro/woo.d.ts +13 -13
  487. package/js/src/pro/woo.js +18 -16
  488. package/js/src/pro/woofipro.d.ts +20 -20
  489. package/js/src/pro/woofipro.js +25 -23
  490. package/js/src/pro/xt.d.ts +2 -2
  491. package/js/src/pro/xt.js +7 -5
  492. package/js/src/probit.d.ts +18 -18
  493. package/js/src/probit.js +18 -18
  494. package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
  495. package/js/src/static_dependencies/ethers/utils/index.js +8 -1
  496. package/js/src/timex.d.ts +16 -16
  497. package/js/src/timex.js +16 -16
  498. package/js/src/tokocrypto.d.ts +17 -17
  499. package/js/src/tokocrypto.js +17 -17
  500. package/js/src/toobit.d.ts +27 -27
  501. package/js/src/toobit.js +33 -30
  502. package/js/src/upbit.d.ts +23 -23
  503. package/js/src/upbit.js +23 -23
  504. package/js/src/wavesexchange.d.ts +15 -15
  505. package/js/src/wavesexchange.js +86 -85
  506. package/js/src/whitebit.d.ts +44 -44
  507. package/js/src/whitebit.js +44 -44
  508. package/js/src/woo.d.ts +45 -45
  509. package/js/src/woo.js +51 -49
  510. package/js/src/woofipro.d.ts +77 -77
  511. package/js/src/woofipro.js +104 -82
  512. package/js/src/xt.d.ts +12 -12
  513. package/js/src/xt.js +17 -12
  514. package/js/src/yobit.d.ts +15 -15
  515. package/js/src/yobit.js +15 -15
  516. package/js/src/zaif.d.ts +9 -9
  517. package/js/src/zaif.js +38 -9
  518. package/js/src/zebpay.d.ts +20 -20
  519. package/js/src/zebpay.js +35 -20
  520. package/js/src/zonda.d.ts +14 -14
  521. package/js/src/zonda.js +14 -14
  522. package/package.json +1 -1
package/js/src/binance.js CHANGED
@@ -2634,6 +2634,7 @@ export default class binance extends Exchange {
2634
2634
  'PERCENT_PRICE_BY_SIDE': InvalidOrder, // {"code":-1013,"msg":"Filter failure: PERCENT_PRICE_BY_SIDE"}
2635
2635
  },
2636
2636
  },
2637
+ 'rollingWindowSize': 60000.0,
2637
2638
  });
2638
2639
  }
2639
2640
  isInverse(type, subType = undefined) {
@@ -3739,7 +3740,7 @@ export default class binance extends Exchange {
3739
3740
  * @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
3740
3741
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the balance for a portfolio margin account
3741
3742
  * @param {string} [params.subType] 'linear' or 'inverse'
3742
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
3743
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
3743
3744
  */
3744
3745
  async fetchBalance(params = {}) {
3745
3746
  await this.loadMarkets();
@@ -4008,7 +4009,7 @@ export default class binance extends Exchange {
4008
4009
  * @param {int} [limit] the maximum amount of order book entries to return
4009
4010
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4010
4011
  * @param {boolean} [params.rpi] *future only* set to true to use the RPI endpoint
4011
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
4012
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
4012
4013
  */
4013
4014
  async fetchOrderBook(symbol, limit = undefined, params = {}) {
4014
4015
  await this.loadMarkets();
@@ -4276,7 +4277,7 @@ export default class binance extends Exchange {
4276
4277
  * @description the latest known information on the availability of the exchange API
4277
4278
  * @see https://developers.binance.com/docs/wallet/others/system-status
4278
4279
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4279
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
4280
+ * @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
4280
4281
  */
4281
4282
  async fetchStatus(params = {}) {
4282
4283
  const response = await this.sapiGetSystemStatus(params);
@@ -4307,7 +4308,7 @@ export default class binance extends Exchange {
4307
4308
  * @param {string} symbol unified symbol of the market to fetch the ticker for
4308
4309
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4309
4310
  * @param {boolean} [params.rolling] (spot only) default false, if true, uses the rolling 24 hour ticker endpoint /api/v3/ticker
4310
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
4311
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
4311
4312
  */
4312
4313
  async fetchTicker(symbol, params = {}) {
4313
4314
  await this.loadMarkets();
@@ -4351,7 +4352,7 @@ export default class binance extends Exchange {
4351
4352
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
4352
4353
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4353
4354
  * @param {string} [params.subType] "linear" or "inverse"
4354
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
4355
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
4355
4356
  */
4356
4357
  async fetchBidsAsks(symbols = undefined, params = {}) {
4357
4358
  await this.loadMarkets();
@@ -4496,7 +4497,7 @@ export default class binance extends Exchange {
4496
4497
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4497
4498
  * @param {string} [params.subType] "linear" or "inverse"
4498
4499
  * @param {string} [params.type] 'spot', 'option', use params["subType"] for swap and future markets
4499
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
4500
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
4500
4501
  */
4501
4502
  async fetchTickers(symbols = undefined, params = {}) {
4502
4503
  await this.loadMarkets();
@@ -4561,7 +4562,7 @@ export default class binance extends Exchange {
4561
4562
  * @param {string} symbol unified symbol of the market to fetch the ticker for
4562
4563
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4563
4564
  * @param {string} [params.subType] "linear" or "inverse"
4564
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
4565
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
4565
4566
  */
4566
4567
  async fetchMarkPrice(symbol, params = {}) {
4567
4568
  await this.loadMarkets();
@@ -4597,7 +4598,7 @@ export default class binance extends Exchange {
4597
4598
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
4598
4599
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4599
4600
  * @param {string} [params.subType] "linear" or "inverse"
4600
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
4601
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
4601
4602
  */
4602
4603
  async fetchMarkPrices(symbols = undefined, params = {}) {
4603
4604
  await this.loadMarkets();
@@ -5119,7 +5120,7 @@ export default class binance extends Exchange {
5119
5120
  *
5120
5121
  * EXCHANGE SPECIFIC PARAMETERS
5121
5122
  * @param {int} [params.fromId] trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
5122
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
5123
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
5123
5124
  */
5124
5125
  async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
5125
5126
  await this.loadMarkets();
@@ -5252,7 +5253,7 @@ export default class binance extends Exchange {
5252
5253
  * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
5253
5254
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5254
5255
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
5255
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
5256
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
5256
5257
  */
5257
5258
  async editSpotOrder(id, symbol, type, side, amount, price = undefined, params = {}) {
5258
5259
  await this.loadMarkets();
@@ -5478,7 +5479,7 @@ export default class binance extends Exchange {
5478
5479
  * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
5479
5480
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5480
5481
  * @param {boolean} [params.portfolioMargin] set to true if you would like to edit an order in a portfolio margin account
5481
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
5482
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
5482
5483
  */
5483
5484
  async editContractOrder(id, symbol, type, side, amount, price = undefined, params = {}) {
5484
5485
  await this.loadMarkets();
@@ -5551,7 +5552,7 @@ export default class binance extends Exchange {
5551
5552
  * @param {float} amount how much of currency you want to trade in units of base currency
5552
5553
  * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
5553
5554
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5554
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
5555
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
5555
5556
  */
5556
5557
  async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
5557
5558
  await this.loadMarkets();
@@ -5574,7 +5575,7 @@ export default class binance extends Exchange {
5574
5575
  * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders
5575
5576
  * @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
5576
5577
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5577
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
5578
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
5578
5579
  */
5579
5580
  async editOrders(orders, params = {}) {
5580
5581
  await this.loadMarkets();
@@ -6290,7 +6291,7 @@ export default class binance extends Exchange {
6290
6291
  * @see https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
6291
6292
  * @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
6292
6293
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6293
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
6294
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
6294
6295
  */
6295
6296
  async createOrders(orders, params = {}) {
6296
6297
  await this.loadMarkets();
@@ -6401,7 +6402,7 @@ export default class binance extends Exchange {
6401
6402
  * @param {string} [params.stopLossOrTakeProfit] 'stopLoss' or 'takeProfit', required for spot trailing orders
6402
6403
  * @param {string} [params.positionSide] *swap and portfolio margin only* "BOTH" for one-way mode, "LONG" for buy side of hedged mode, "SHORT" for sell side of hedged mode
6403
6404
  * @param {bool} [params.hedged] *swap and portfolio margin only* true for hedged mode, false for one way mode, default is false
6404
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
6405
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
6405
6406
  */
6406
6407
  async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
6407
6408
  await this.loadMarkets();
@@ -6852,7 +6853,7 @@ export default class binance extends Exchange {
6852
6853
  * @param {string} side 'buy' or 'sell'
6853
6854
  * @param {float} cost how much you want to trade in units of the quote currency
6854
6855
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6855
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
6856
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
6856
6857
  */
6857
6858
  async createMarketOrderWithCost(symbol, side, cost, params = {}) {
6858
6859
  await this.loadMarkets();
@@ -6873,7 +6874,7 @@ export default class binance extends Exchange {
6873
6874
  * @param {string} symbol unified symbol of the market to create an order in
6874
6875
  * @param {float} cost how much you want to trade in units of the quote currency
6875
6876
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6876
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
6877
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
6877
6878
  */
6878
6879
  async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
6879
6880
  await this.loadMarkets();
@@ -6894,7 +6895,7 @@ export default class binance extends Exchange {
6894
6895
  * @param {string} symbol unified symbol of the market to create an order in
6895
6896
  * @param {float} cost how much you want to trade in units of the quote currency
6896
6897
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6897
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
6898
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
6898
6899
  */
6899
6900
  async createMarketSellOrderWithCost(symbol, cost, params = {}) {
6900
6901
  await this.loadMarkets();
@@ -6923,7 +6924,7 @@ export default class binance extends Exchange {
6923
6924
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
6924
6925
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch an order in a portfolio margin account
6925
6926
  * @param {boolean} [params.trigger] set to true if you would like to fetch a trigger or conditional order
6926
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
6927
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
6927
6928
  */
6928
6929
  async fetchOrder(id, symbol = undefined, params = {}) {
6929
6930
  if (symbol === undefined) {
@@ -7024,7 +7025,7 @@ export default class binance extends Exchange {
7024
7025
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7025
7026
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
7026
7027
  * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
7027
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
7028
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
7028
7029
  */
7029
7030
  async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
7030
7031
  if (symbol === undefined) {
@@ -7308,7 +7309,7 @@ export default class binance extends Exchange {
7308
7309
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch open orders in the portfolio margin account
7309
7310
  * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account conditional orders
7310
7311
  * @param {string} [params.subType] "linear" or "inverse"
7311
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
7312
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
7312
7313
  */
7313
7314
  async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
7314
7315
  await this.loadMarkets();
@@ -7412,7 +7413,7 @@ export default class binance extends Exchange {
7412
7413
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7413
7414
  * @param {string} [params.trigger] set to true if you would like to fetch portfolio margin account stop or conditional orders
7414
7415
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch for a portfolio margin account
7415
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
7416
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
7416
7417
  */
7417
7418
  async fetchOpenOrder(id, symbol = undefined, params = {}) {
7418
7419
  if (symbol === undefined) {
@@ -7635,7 +7636,7 @@ export default class binance extends Exchange {
7635
7636
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7636
7637
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
7637
7638
  * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
7638
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
7639
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
7639
7640
  */
7640
7641
  async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
7641
7642
  if (symbol === undefined) {
@@ -7665,7 +7666,7 @@ export default class binance extends Exchange {
7665
7666
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7666
7667
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
7667
7668
  * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
7668
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
7669
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
7669
7670
  */
7670
7671
  async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
7671
7672
  if (symbol === undefined) {
@@ -7695,7 +7696,7 @@ export default class binance extends Exchange {
7695
7696
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
7696
7697
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
7697
7698
  * @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
7698
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
7699
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
7699
7700
  */
7700
7701
  async fetchCanceledAndClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
7701
7702
  if (symbol === undefined) {
@@ -7728,7 +7729,7 @@ export default class binance extends Exchange {
7728
7729
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7729
7730
  * @param {boolean} [params.portfolioMargin] set to true if you would like to cancel an order in a portfolio margin account
7730
7731
  * @param {boolean} [params.trigger] set to true if you would like to cancel a portfolio margin account conditional order
7731
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
7732
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
7732
7733
  */
7733
7734
  async cancelOrder(id, symbol = undefined, params = {}) {
7734
7735
  if (symbol === undefined) {
@@ -7846,7 +7847,7 @@ export default class binance extends Exchange {
7846
7847
  * @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
7847
7848
  * @param {boolean} [params.portfolioMargin] set to true if you would like to cancel orders in a portfolio margin account
7848
7849
  * @param {boolean} [params.trigger] set to true if you would like to cancel portfolio margin account conditional orders
7849
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
7850
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
7850
7851
  */
7851
7852
  async cancelAllOrders(symbol = undefined, params = {}) {
7852
7853
  if (symbol === undefined) {
@@ -8029,7 +8030,7 @@ export default class binance extends Exchange {
8029
8030
  * EXCHANGE SPECIFIC PARAMETERS
8030
8031
  * @param {string[]} [params.origClientOrderIdList] max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma
8031
8032
  * @param {int[]} [params.recvWindow]
8032
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
8033
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
8033
8034
  */
8034
8035
  async cancelOrders(ids, symbol = undefined, params = {}) {
8035
8036
  if (symbol === undefined) {
@@ -8109,7 +8110,7 @@ export default class binance extends Exchange {
8109
8110
  * @param {int} [since] the earliest time in ms to fetch trades for
8110
8111
  * @param {int} [limit] the maximum number of trades to retrieve
8111
8112
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8112
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
8113
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
8113
8114
  */
8114
8115
  async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
8115
8116
  if (symbol === undefined) {
@@ -8145,7 +8146,7 @@ export default class binance extends Exchange {
8145
8146
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
8146
8147
  * @param {int} [params.until] the latest time in ms to fetch entries for
8147
8148
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trades for a portfolio margin account
8148
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
8149
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
8149
8150
  */
8150
8151
  async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
8151
8152
  await this.loadMarkets();
@@ -8372,7 +8373,7 @@ export default class binance extends Exchange {
8372
8373
  * @param {int} [limit] the maximum number of dust trades to retrieve
8373
8374
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8374
8375
  * @param {string} [params.type] 'spot' or 'margin', default spot
8375
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
8376
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
8376
8377
  */
8377
8378
  async fetchMyDustTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
8378
8379
  //
@@ -8520,7 +8521,7 @@ export default class binance extends Exchange {
8520
8521
  * @param {bool} [params.fiat] if true, only fiat deposits will be returned
8521
8522
  * @param {int} [params.until] the latest time in ms to fetch entries for
8522
8523
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
8523
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
8524
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
8524
8525
  */
8525
8526
  async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
8526
8527
  await this.loadMarkets();
@@ -8633,7 +8634,7 @@ export default class binance extends Exchange {
8633
8634
  * @param {bool} [params.fiat] if true, only fiat withdrawals will be returned
8634
8635
  * @param {int} [params.until] the latest time in ms to fetch withdrawals for
8635
8636
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
8636
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
8637
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
8637
8638
  */
8638
8639
  async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
8639
8640
  await this.loadMarkets();
@@ -9069,7 +9070,7 @@ export default class binance extends Exchange {
9069
9070
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9070
9071
  * @param {string} [params.type] exchange specific transfer type
9071
9072
  * @param {string} [params.symbol] the unified symbol, required for isolated margin transfers
9072
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
9073
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
9073
9074
  */
9074
9075
  async transfer(code, amount, fromAccount, toAccount, params = {}) {
9075
9076
  await this.loadMarkets();
@@ -9175,7 +9176,7 @@ export default class binance extends Exchange {
9175
9176
  * @param {int} [params.until] the latest time in ms to fetch transfers for
9176
9177
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
9177
9178
  * @param {boolean} [params.internal] default false, when true will fetch pay trade history
9178
- * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
9179
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
9179
9180
  */
9180
9181
  async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
9181
9182
  await this.loadMarkets();
@@ -9316,7 +9317,7 @@ export default class binance extends Exchange {
9316
9317
  * @param {string} code unified currency code
9317
9318
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9318
9319
  * @param {string} [params.network] network for fetch deposit address
9319
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
9320
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
9320
9321
  */
9321
9322
  async fetchDepositAddress(code, params = {}) {
9322
9323
  await this.loadMarkets();
@@ -9386,7 +9387,7 @@ export default class binance extends Exchange {
9386
9387
  * @see https://developers.binance.com/docs/wallet/capital/all-coins-info
9387
9388
  * @param {string[]|undefined} codes not used by binance fetchTransactionFees ()
9388
9389
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9389
- * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
9390
+ * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
9390
9391
  */
9391
9392
  async fetchTransactionFees(codes = undefined, params = {}) {
9392
9393
  await this.loadMarkets();
@@ -9500,7 +9501,7 @@ export default class binance extends Exchange {
9500
9501
  * @see https://developers.binance.com/docs/wallet/capital/all-coins-info
9501
9502
  * @param {string[]|undefined} codes not used by binance fetchDepositWithdrawFees ()
9502
9503
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9503
- * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
9504
+ * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
9504
9505
  */
9505
9506
  async fetchDepositWithdrawFees(codes = undefined, params = {}) {
9506
9507
  await this.loadMarkets();
@@ -9627,7 +9628,7 @@ export default class binance extends Exchange {
9627
9628
  * @param {string} address the address to withdraw to
9628
9629
  * @param {string} tag
9629
9630
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9630
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
9631
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
9631
9632
  */
9632
9633
  async withdraw(code, amount, address, tag = undefined, params = {}) {
9633
9634
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
@@ -9697,7 +9698,7 @@ export default class binance extends Exchange {
9697
9698
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9698
9699
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trading fees in a portfolio margin account
9699
9700
  * @param {string} [params.subType] "linear" or "inverse"
9700
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
9701
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
9701
9702
  */
9702
9703
  async fetchTradingFee(symbol, params = {}) {
9703
9704
  await this.loadMarkets();
@@ -9767,7 +9768,7 @@ export default class binance extends Exchange {
9767
9768
  * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
9768
9769
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9769
9770
  * @param {string} [params.subType] "linear" or "inverse"
9770
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
9771
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
9771
9772
  */
9772
9773
  async fetchTradingFees(params = {}) {
9773
9774
  await this.loadMarkets();
@@ -9948,7 +9949,7 @@ export default class binance extends Exchange {
9948
9949
  * @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
9949
9950
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9950
9951
  * @param {float} params.recvWindow
9951
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=futures-transfer-structure}
9952
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=futures-transfer-structure}
9952
9953
  */
9953
9954
  async futuresTransfer(code, amount, type, params = {}) {
9954
9955
  if ((type < 1) || (type > 4)) {
@@ -9977,7 +9978,7 @@ export default class binance extends Exchange {
9977
9978
  * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
9978
9979
  * @param {string} symbol unified market symbol
9979
9980
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9980
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
9981
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
9981
9982
  */
9982
9983
  async fetchFundingRate(symbol, params = {}) {
9983
9984
  await this.loadMarkets();
@@ -10020,12 +10021,12 @@ export default class binance extends Exchange {
10020
10021
  * @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures
10021
10022
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
10022
10023
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
10023
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
10024
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
10024
10025
  * @param {object} [params] extra parameters specific to the exchange API endpoint
10025
10026
  * @param {int} [params.until] timestamp in ms of the latest funding rate
10026
10027
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
10027
10028
  * @param {string} [params.subType] "linear" or "inverse"
10028
- * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
10029
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
10029
10030
  */
10030
10031
  async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
10031
10032
  await this.loadMarkets();
@@ -10103,7 +10104,7 @@ export default class binance extends Exchange {
10103
10104
  * @param {string[]|undefined} symbols list of unified market symbols
10104
10105
  * @param {object} [params] extra parameters specific to the exchange API endpoint
10105
10106
  * @param {string} [params.subType] "linear" or "inverse"
10106
- * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
10107
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
10107
10108
  */
10108
10109
  async fetchFundingRates(symbols = undefined, params = {}) {
10109
10110
  await this.loadMarkets();
@@ -10784,7 +10785,7 @@ export default class binance extends Exchange {
10784
10785
  * @param {object} [params] extra parameters specific to the exchange API endpoint
10785
10786
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the leverage tiers for a portfolio margin account
10786
10787
  * @param {string} [params.subType] "linear" or "inverse"
10787
- * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
10788
+ * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
10788
10789
  */
10789
10790
  async fetchLeverageTiers(symbols = undefined, params = {}) {
10790
10791
  await this.loadMarkets();
@@ -10903,7 +10904,7 @@ export default class binance extends Exchange {
10903
10904
  * @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
10904
10905
  * @param {string} symbol unified market symbol of the market the position is held in
10905
10906
  * @param {object} [params] extra parameters specific to the exchange API endpoint
10906
- * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
10907
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
10907
10908
  */
10908
10909
  async fetchPosition(symbol, params = {}) {
10909
10910
  await this.loadMarkets();
@@ -10947,7 +10948,7 @@ export default class binance extends Exchange {
10947
10948
  * @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
10948
10949
  * @param {string[]|undefined} symbols list of unified market symbols
10949
10950
  * @param {object} [params] extra parameters specific to the exchange API endpoint
10950
- * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
10951
+ * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
10951
10952
  */
10952
10953
  async fetchOptionPositions(symbols = undefined, params = {}) {
10953
10954
  await this.loadMarkets();
@@ -11070,7 +11071,7 @@ export default class binance extends Exchange {
11070
11071
  * @param {object} [params.params] extra parameters specific to the exchange API endpoint
11071
11072
  * @param {string} [params.method] method name to call, "positionRisk", "account" or "option", default is "positionRisk"
11072
11073
  * @param {bool} [params.useV2] set to true if you want to use the obsolete endpoint, where some more additional fields were provided
11073
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
11074
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
11074
11075
  */
11075
11076
  async fetchPositions(symbols = undefined, params = {}) {
11076
11077
  let defaultMethod = undefined;
@@ -11424,7 +11425,7 @@ export default class binance extends Exchange {
11424
11425
  * @param {int} [params.until] timestamp in ms of the latest funding history entry
11425
11426
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the funding history for a portfolio margin account
11426
11427
  * @param {string} [params.subType] "linear" or "inverse"
11427
- * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
11428
+ * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
11428
11429
  */
11429
11430
  async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
11430
11431
  await this.loadMarkets();
@@ -11672,7 +11673,7 @@ export default class binance extends Exchange {
11672
11673
  * @param {string[]} [symbols] a list of unified market symbols
11673
11674
  * @param {object} [params] extra parameters specific to the exchange API endpoint
11674
11675
  * @param {string} [params.subType] "linear" or "inverse"
11675
- * @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/#/?id=leverage-structure}
11676
+ * @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
11676
11677
  */
11677
11678
  async fetchLeverages(symbols = undefined, params = {}) {
11678
11679
  await this.loadMarkets();
@@ -11751,7 +11752,7 @@ export default class binance extends Exchange {
11751
11752
  * @param {int} [since] timestamp in ms
11752
11753
  * @param {int} [limit] number of records, default 100, max 100
11753
11754
  * @param {object} [params] exchange specific params
11754
- * @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/#/?id=settlement-history-structure}
11755
+ * @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
11755
11756
  */
11756
11757
  async fetchSettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
11757
11758
  await this.loadMarkets();
@@ -11933,7 +11934,7 @@ export default class binance extends Exchange {
11933
11934
  * @param {string} id the identification number of the ledger entry
11934
11935
  * @param {string} code unified currency code
11935
11936
  * @param {object} [params] extra parameters specific to the exchange API endpoint
11936
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
11937
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
11937
11938
  */
11938
11939
  async fetchLedgerEntry(id, code = undefined, params = {}) {
11939
11940
  await this.loadMarkets();
@@ -11980,7 +11981,7 @@ export default class binance extends Exchange {
11980
11981
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
11981
11982
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the ledger for a portfolio margin account
11982
11983
  * @param {string} [params.subType] "linear" or "inverse"
11983
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
11984
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
11984
11985
  */
11985
11986
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
11986
11987
  await this.loadMarkets();
@@ -12568,7 +12569,7 @@ export default class binance extends Exchange {
12568
12569
  * @param {string} symbol unified market symbol
12569
12570
  * @param {float} amount the amount of margin to remove
12570
12571
  * @param {object} [params] extra parameters specific to the exchange API endpoint
12571
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
12572
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
12572
12573
  */
12573
12574
  async reduceMargin(symbol, amount, params = {}) {
12574
12575
  return await this.modifyMarginHelper(symbol, amount, 2, params);
@@ -12582,7 +12583,7 @@ export default class binance extends Exchange {
12582
12583
  * @param {string} symbol unified market symbol
12583
12584
  * @param {float} amount amount of margin to add
12584
12585
  * @param {object} [params] extra parameters specific to the exchange API endpoint
12585
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
12586
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
12586
12587
  */
12587
12588
  async addMargin(symbol, amount, params = {}) {
12588
12589
  return await this.modifyMarginHelper(symbol, amount, 1, params);
@@ -12594,7 +12595,7 @@ export default class binance extends Exchange {
12594
12595
  * @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
12595
12596
  * @param {string} code unified currency code
12596
12597
  * @param {object} [params] extra parameters specific to the exchange API endpoint
12597
- * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
12598
+ * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
12598
12599
  */
12599
12600
  async fetchCrossBorrowRate(code, params = {}) {
12600
12601
  await this.loadMarkets();
@@ -12627,7 +12628,7 @@ export default class binance extends Exchange {
12627
12628
  *
12628
12629
  * EXCHANGE SPECIFIC PARAMETERS
12629
12630
  * @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted
12630
- * @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure}
12631
+ * @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/?id=isolated-borrow-rate-structure}
12631
12632
  */
12632
12633
  async fetchIsolatedBorrowRate(symbol, params = {}) {
12633
12634
  const request = {
@@ -12646,7 +12647,7 @@ export default class binance extends Exchange {
12646
12647
  *
12647
12648
  * EXCHANGE SPECIFIC PARAMETERS
12648
12649
  * @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted
12649
- * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
12650
+ * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
12650
12651
  */
12651
12652
  async fetchIsolatedBorrowRates(params = {}) {
12652
12653
  await this.loadMarkets();
@@ -12688,9 +12689,9 @@ export default class binance extends Exchange {
12688
12689
  * @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
12689
12690
  * @param {string} code unified currency code
12690
12691
  * @param {int} [since] timestamp for the earliest borrow rate
12691
- * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} to retrieve
12692
+ * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} to retrieve
12692
12693
  * @param {object} [params] extra parameters specific to the exchange API endpoint
12693
- * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
12694
+ * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
12694
12695
  */
12695
12696
  async fetchBorrowRateHistory(code, since = undefined, limit = undefined, params = {}) {
12696
12697
  await this.loadMarkets();
@@ -12883,7 +12884,7 @@ export default class binance extends Exchange {
12883
12884
  * @param {int} [limit] the maximum number of structures to retrieve
12884
12885
  * @param {object} [params] extra parameters specific to the exchange API endpoint
12885
12886
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the borrow interest in a portfolio margin account
12886
- * @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
12887
+ * @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
12887
12888
  */
12888
12889
  async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
12889
12890
  await this.loadMarkets();
@@ -12982,7 +12983,7 @@ export default class binance extends Exchange {
12982
12983
  * @param {boolean} [params.portfolioMargin] set to true if you would like to repay margin in a portfolio margin account
12983
12984
  * @param {string} [params.repayCrossMarginMethod] *portfolio margin only* 'papiPostRepayLoan' (default), 'papiPostMarginRepayDebt' (alternative)
12984
12985
  * @param {string} [params.specifyRepayAssets] *portfolio margin papiPostMarginRepayDebt only* specific asset list to repay debt
12985
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
12986
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
12986
12987
  */
12987
12988
  async repayCrossMargin(code, amount, params = {}) {
12988
12989
  await this.loadMarkets();
@@ -13041,7 +13042,7 @@ export default class binance extends Exchange {
13041
13042
  * @param {string} code unified currency code of the currency to repay
13042
13043
  * @param {float} amount the amount to repay
13043
13044
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13044
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
13045
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
13045
13046
  */
13046
13047
  async repayIsolatedMargin(symbol, code, amount, params = {}) {
13047
13048
  await this.loadMarkets();
@@ -13073,7 +13074,7 @@ export default class binance extends Exchange {
13073
13074
  * @param {float} amount the amount to borrow
13074
13075
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13075
13076
  * @param {boolean} [params.portfolioMargin] set to true if you would like to borrow margin in a portfolio margin account
13076
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
13077
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
13077
13078
  */
13078
13079
  async borrowCrossMargin(code, amount, params = {}) {
13079
13080
  await this.loadMarkets();
@@ -13110,7 +13111,7 @@ export default class binance extends Exchange {
13110
13111
  * @param {string} code unified currency code of the currency to borrow
13111
13112
  * @param {float} amount the amount to borrow
13112
13113
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13113
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
13114
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
13114
13115
  */
13115
13116
  async borrowIsolatedMargin(symbol, code, amount, params = {}) {
13116
13117
  await this.loadMarkets();
@@ -13174,7 +13175,7 @@ export default class binance extends Exchange {
13174
13175
  * @param {object} [params] exchange specific parameters
13175
13176
  * @param {int} [params.until] the time(ms) of the latest record to retrieve as a unix timestamp
13176
13177
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
13177
- * @returns {object} an array of [open interest structure]{@link https://docs.ccxt.com/#/?id=open-interest-structure}
13178
+ * @returns {object} an array of [open interest structure]{@link https://docs.ccxt.com/?id=open-interest-structure}
13178
13179
  */
13179
13180
  async fetchOpenInterestHistory(symbol, timeframe = '5m', since = undefined, limit = undefined, params = {}) {
13180
13181
  if (timeframe === '1m') {
@@ -13243,7 +13244,7 @@ export default class binance extends Exchange {
13243
13244
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
13244
13245
  * @param {string} symbol unified CCXT market symbol
13245
13246
  * @param {object} [params] exchange specific parameters
13246
- * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
13247
+ * @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
13247
13248
  */
13248
13249
  async fetchOpenInterest(symbol, params = {}) {
13249
13250
  await this.loadMarkets();
@@ -13350,7 +13351,7 @@ export default class binance extends Exchange {
13350
13351
  * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch liquidations in a portfolio margin account
13351
13352
  * @param {string} [params.type] "spot"
13352
13353
  * @param {string} [params.subType] "linear" or "inverse"
13353
- * @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
13354
+ * @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
13354
13355
  */
13355
13356
  async fetchMyLiquidations(symbol = undefined, since = undefined, limit = undefined, params = {}) {
13356
13357
  await this.loadMarkets();
@@ -13590,7 +13591,7 @@ export default class binance extends Exchange {
13590
13591
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
13591
13592
  * @param {string} symbol unified symbol of the market to fetch greeks for
13592
13593
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13593
- * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
13594
+ * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
13594
13595
  */
13595
13596
  async fetchGreeks(symbol, params = {}) {
13596
13597
  await this.loadMarkets();
@@ -13625,7 +13626,7 @@ export default class binance extends Exchange {
13625
13626
  * @see https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
13626
13627
  * @param {string[]} [symbols] unified symbols of the markets to fetch greeks for, all markets are returned if not assigned
13627
13628
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13628
- * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
13629
+ * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
13629
13630
  */
13630
13631
  async fetchAllGreeks(symbols = undefined, params = {}) {
13631
13632
  await this.loadMarkets();
@@ -13761,7 +13762,7 @@ export default class binance extends Exchange {
13761
13762
  * @param {string[]} symbols unified market symbols
13762
13763
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13763
13764
  * @param {string} [params.subType] "linear" or "inverse"
13764
- * @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/#/?id=margin-mode-structure}
13765
+ * @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/?id=margin-mode-structure}
13765
13766
  */
13766
13767
  async fetchMarginModes(symbols = undefined, params = {}) {
13767
13768
  await this.loadMarkets();
@@ -13856,7 +13857,7 @@ export default class binance extends Exchange {
13856
13857
  * @param {string} symbol unified symbol of the market the order was made in
13857
13858
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13858
13859
  * @param {string} [params.subType] "linear" or "inverse"
13859
- * @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/#/?id=margin-mode-structure}
13860
+ * @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/?id=margin-mode-structure}
13860
13861
  */
13861
13862
  async fetchMarginMode(symbol, params = {}) {
13862
13863
  await this.loadMarkets();
@@ -13915,7 +13916,7 @@ export default class binance extends Exchange {
13915
13916
  * @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics
13916
13917
  * @param {string} symbol unified market symbol
13917
13918
  * @param {object} [params] extra parameters specific to the exchange API endpoint
13918
- * @returns {object} an [option chain structure]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
13919
+ * @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
13919
13920
  */
13920
13921
  async fetchOption(symbol, params = {}) {
13921
13922
  await this.loadMarkets();
@@ -14008,7 +14009,7 @@ export default class binance extends Exchange {
14008
14009
  * @param {int} [limit] the maximum amount of changes to fetch
14009
14010
  * @param {object} params extra parameters specific to the exchange api endpoint
14010
14011
  * @param {int} [params.until] timestamp in ms of the latest change to fetch
14011
- * @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
14012
+ * @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/?id=margin-loan-structure}
14012
14013
  */
14013
14014
  async fetchMarginAdjustmentHistory(symbol = undefined, type = undefined, since = undefined, limit = undefined, params = {}) {
14014
14015
  await this.loadMarkets();
@@ -14126,7 +14127,7 @@ export default class binance extends Exchange {
14126
14127
  * @param {float} amount how much you want to trade in units of the from currency
14127
14128
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14128
14129
  * @param {string} [params.walletType] either 'SPOT' or 'FUNDING', the default is 'SPOT'
14129
- * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
14130
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
14130
14131
  */
14131
14132
  async fetchConvertQuote(fromCode, toCode, amount = undefined, params = {}) {
14132
14133
  if (amount === undefined) {
@@ -14163,7 +14164,7 @@ export default class binance extends Exchange {
14163
14164
  * @param {string} toCode the currency that you want to buy and convert into
14164
14165
  * @param {float} [amount] how much you want to trade in units of the from currency
14165
14166
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14166
- * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
14167
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
14167
14168
  */
14168
14169
  async createConvertTrade(id, fromCode, toCode, amount = undefined, params = {}) {
14169
14170
  await this.loadMarkets();
@@ -14208,7 +14209,7 @@ export default class binance extends Exchange {
14208
14209
  * @param {string} id the id of the trade that you want to fetch
14209
14210
  * @param {string} [code] the unified currency code of the conversion trade
14210
14211
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14211
- * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
14212
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
14212
14213
  */
14213
14214
  async fetchConvertTrade(id, code = undefined, params = {}) {
14214
14215
  await this.loadMarkets();
@@ -14288,7 +14289,7 @@ export default class binance extends Exchange {
14288
14289
  * @param {int} [limit] the maximum number of conversion structures to retrieve
14289
14290
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14290
14291
  * @param {int} [params.until] timestamp in ms of the latest conversion to fetch
14291
- * @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/#/?id=conversion-structure}
14292
+ * @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
14292
14293
  */
14293
14294
  async fetchConvertTradeHistory(code = undefined, since = undefined, limit = undefined, params = {}) {
14294
14295
  await this.loadMarkets();
@@ -14477,7 +14478,7 @@ export default class binance extends Exchange {
14477
14478
  * @param {string[]} [symbols] list of unified market symbols
14478
14479
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14479
14480
  * @param {string} [params.subType] "linear" or "inverse"
14480
- * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
14481
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
14481
14482
  */
14482
14483
  async fetchFundingIntervals(symbols = undefined, params = {}) {
14483
14484
  await this.loadMarkets();
@@ -14524,7 +14525,7 @@ export default class binance extends Exchange {
14524
14525
  * @param {int} [limit] the maximum number of long short ratio structures to retrieve
14525
14526
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14526
14527
  * @param {int} [params.until] timestamp in ms of the latest ratio to fetch
14527
- * @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/#/?id=long-short-ratio-structure}
14528
+ * @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/?id=long-short-ratio-structure}
14528
14529
  */
14529
14530
  async fetchLongShortRatioHistory(symbol = undefined, timeframe = undefined, since = undefined, limit = undefined, params = {}) {
14530
14531
  await this.loadMarkets();