ccxt 4.5.28 → 4.5.29

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 (513) hide show
  1. package/README.md +21 -5
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/alpaca.js +21 -21
  5. package/dist/cjs/src/apex.js +20 -20
  6. package/dist/cjs/src/arkham.js +22 -22
  7. package/dist/cjs/src/ascendex.js +28 -28
  8. package/dist/cjs/src/backpack.js +22 -22
  9. package/dist/cjs/src/base/Exchange.js +48 -38
  10. package/dist/cjs/src/base/functions/throttle.js +54 -5
  11. package/dist/cjs/src/bigone.js +19 -19
  12. package/dist/cjs/src/binance.js +83 -82
  13. package/dist/cjs/src/bingx.js +46 -46
  14. package/dist/cjs/src/bit2c.js +11 -11
  15. package/dist/cjs/src/bitbank.js +49 -48
  16. package/dist/cjs/src/bitbns.js +13 -13
  17. package/dist/cjs/src/bitfinex.js +33 -33
  18. package/dist/cjs/src/bitflyer.js +17 -17
  19. package/dist/cjs/src/bitget.js +58 -57
  20. package/dist/cjs/src/bithumb.js +10 -10
  21. package/dist/cjs/src/bitmart.js +44 -44
  22. package/dist/cjs/src/bitmex.js +24 -24
  23. package/dist/cjs/src/bitopro.js +20 -20
  24. package/dist/cjs/src/bitrue.js +18 -18
  25. package/dist/cjs/src/bitso.js +20 -20
  26. package/dist/cjs/src/bitstamp.js +21 -21
  27. package/dist/cjs/src/bittrade.js +20 -20
  28. package/dist/cjs/src/bitvavo.js +19 -19
  29. package/dist/cjs/src/blockchaincom.js +20 -20
  30. package/dist/cjs/src/blofin.js +26 -26
  31. package/dist/cjs/src/btcalpha.js +35 -34
  32. package/dist/cjs/src/btcbox.js +10 -10
  33. package/dist/cjs/src/btcmarkets.js +16 -16
  34. package/dist/cjs/src/btcturk.js +10 -10
  35. package/dist/cjs/src/bullish.js +26 -26
  36. package/dist/cjs/src/bybit.js +67 -67
  37. package/dist/cjs/src/cex.js +18 -18
  38. package/dist/cjs/src/coinbase.js +40 -40
  39. package/dist/cjs/src/coinbaseexchange.js +22 -22
  40. package/dist/cjs/src/coinbaseinternational.js +22 -22
  41. package/dist/cjs/src/coincatch.js +39 -39
  42. package/dist/cjs/src/coincheck.js +11 -11
  43. package/dist/cjs/src/coinex.js +48 -48
  44. package/dist/cjs/src/coinmate.js +14 -14
  45. package/dist/cjs/src/coinmetro.js +14 -14
  46. package/dist/cjs/src/coinone.js +11 -11
  47. package/dist/cjs/src/coinsph.js +20 -20
  48. package/dist/cjs/src/coinspot.js +8 -8
  49. package/dist/cjs/src/cryptocom.js +32 -32
  50. package/dist/cjs/src/cryptomus.js +9 -9
  51. package/dist/cjs/src/deepcoin.js +33 -33
  52. package/dist/cjs/src/defx.js +23 -23
  53. package/dist/cjs/src/delta.js +29 -29
  54. package/dist/cjs/src/deribit.js +36 -36
  55. package/dist/cjs/src/derive.js +19 -19
  56. package/dist/cjs/src/digifinex.js +36 -36
  57. package/dist/cjs/src/dydx.js +22 -22
  58. package/dist/cjs/src/exmo.js +29 -29
  59. package/dist/cjs/src/foxbit.js +23 -23
  60. package/dist/cjs/src/gate.js +57 -57
  61. package/dist/cjs/src/gemini.js +16 -16
  62. package/dist/cjs/src/hashkey.js +35 -35
  63. package/dist/cjs/src/hibachi.js +24 -24
  64. package/dist/cjs/src/hitbtc.js +38 -38
  65. package/dist/cjs/src/hollaex.js +22 -22
  66. package/dist/cjs/src/htx.js +50 -50
  67. package/dist/cjs/src/hyperliquid.js +76 -42
  68. package/dist/cjs/src/independentreserve.js +13 -13
  69. package/dist/cjs/src/indodax.js +14 -14
  70. package/dist/cjs/src/kraken.js +30 -30
  71. package/dist/cjs/src/krakenfutures.js +21 -21
  72. package/dist/cjs/src/kucoin.js +44 -44
  73. package/dist/cjs/src/kucoinfutures.js +42 -40
  74. package/dist/cjs/src/latoken.js +16 -16
  75. package/dist/cjs/src/lbank.js +23 -23
  76. package/dist/cjs/src/luno.js +17 -17
  77. package/dist/cjs/src/mercado.js +11 -11
  78. package/dist/cjs/src/mexc.js +47 -47
  79. package/dist/cjs/src/modetrade.js +37 -35
  80. package/dist/cjs/src/ndax.js +19 -19
  81. package/dist/cjs/src/novadax.js +19 -19
  82. package/dist/cjs/src/oceanex.js +16 -16
  83. package/dist/cjs/src/okx.js +83 -83
  84. package/dist/cjs/src/onetrading.js +34 -33
  85. package/dist/cjs/src/oxfun.js +25 -25
  86. package/dist/cjs/src/p2b.js +11 -11
  87. package/dist/cjs/src/paradex.js +54 -54
  88. package/dist/cjs/src/paymium.js +20 -21
  89. package/dist/cjs/src/phemex.js +35 -35
  90. package/dist/cjs/src/poloniex.js +27 -27
  91. package/dist/cjs/src/pro/alpaca.js +5 -5
  92. package/dist/cjs/src/pro/apex.js +8 -8
  93. package/dist/cjs/src/pro/arkham.js +5 -5
  94. package/dist/cjs/src/pro/ascendex.js +5 -5
  95. package/dist/cjs/src/pro/backpack.js +16 -16
  96. package/dist/cjs/src/pro/binance.js +35 -35
  97. package/dist/cjs/src/pro/bingx.js +9 -9
  98. package/dist/cjs/src/pro/bitfinex.js +8 -8
  99. package/dist/cjs/src/pro/bitget.js +12 -12
  100. package/dist/cjs/src/pro/bithumb.js +3 -3
  101. package/dist/cjs/src/pro/bitmart.js +388 -31
  102. package/dist/cjs/src/pro/bitmex.js +9 -9
  103. package/dist/cjs/src/pro/bitopro.js +5 -5
  104. package/dist/cjs/src/pro/bitrue.js +2 -2
  105. package/dist/cjs/src/pro/bitstamp.js +3 -3
  106. package/dist/cjs/src/pro/bittrade.js +3 -3
  107. package/dist/cjs/src/pro/bitvavo.js +19 -19
  108. package/dist/cjs/src/pro/blockchaincom.js +5 -5
  109. package/dist/cjs/src/pro/blofin.js +10 -10
  110. package/dist/cjs/src/pro/bullish.js +6 -6
  111. package/dist/cjs/src/pro/bybit.js +19 -19
  112. package/dist/cjs/src/pro/cex.js +13 -13
  113. package/dist/cjs/src/pro/coinbase.js +13 -13
  114. package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
  115. package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
  116. package/dist/cjs/src/pro/coincatch.js +10 -10
  117. package/dist/cjs/src/pro/coincheck.js +2 -2
  118. package/dist/cjs/src/pro/coinex.js +10 -10
  119. package/dist/cjs/src/pro/coinone.js +3 -3
  120. package/dist/cjs/src/pro/cryptocom.js +20 -20
  121. package/dist/cjs/src/pro/deepcoin.js +8 -8
  122. package/dist/cjs/src/pro/defx.js +15 -15
  123. package/dist/cjs/src/pro/deribit.js +10 -10
  124. package/dist/cjs/src/pro/derive.js +6 -6
  125. package/dist/cjs/src/pro/dydx.js +3 -3
  126. package/dist/cjs/src/pro/exmo.js +7 -7
  127. package/dist/cjs/src/pro/gate.js +21 -59
  128. package/dist/cjs/src/pro/gemini.js +6 -6
  129. package/dist/cjs/src/pro/hashkey.js +6 -6
  130. package/dist/cjs/src/pro/hitbtc.js +8 -8
  131. package/dist/cjs/src/pro/hollaex.js +5 -5
  132. package/dist/cjs/src/pro/htx.js +9 -9
  133. package/dist/cjs/src/pro/hyperliquid.js +103 -14
  134. package/dist/cjs/src/pro/independentreserve.js +2 -2
  135. package/dist/cjs/src/pro/kraken.js +15 -15
  136. package/dist/cjs/src/pro/krakenfutures.js +10 -10
  137. package/dist/cjs/src/pro/kucoin.js +15 -15
  138. package/dist/cjs/src/pro/kucoinfutures.js +13 -13
  139. package/dist/cjs/src/pro/lbank.js +5 -5
  140. package/dist/cjs/src/pro/luno.js +2 -2
  141. package/dist/cjs/src/pro/mexc.js +13 -13
  142. package/dist/cjs/src/pro/modetrade.js +8 -8
  143. package/dist/cjs/src/pro/ndax.js +3 -3
  144. package/dist/cjs/src/pro/okx.js +25 -25
  145. package/dist/cjs/src/pro/onetrading.js +6 -6
  146. package/dist/cjs/src/pro/oxfun.js +13 -13
  147. package/dist/cjs/src/pro/p2b.js +5 -5
  148. package/dist/cjs/src/pro/paradex.js +8 -8
  149. package/dist/cjs/src/pro/phemex.js +7 -7
  150. package/dist/cjs/src/pro/poloniex.js +8 -8
  151. package/dist/cjs/src/pro/probit.js +6 -6
  152. package/dist/cjs/src/pro/toobit.js +9 -9
  153. package/dist/cjs/src/pro/upbit.js +9 -9
  154. package/dist/cjs/src/pro/whitebit.js +7 -7
  155. package/dist/cjs/src/pro/woo.js +13 -13
  156. package/dist/cjs/src/pro/woofipro.js +20 -20
  157. package/dist/cjs/src/pro/xt.js +2 -2
  158. package/dist/cjs/src/probit.js +18 -18
  159. package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
  160. package/dist/cjs/src/timex.js +16 -16
  161. package/dist/cjs/src/tokocrypto.js +17 -17
  162. package/dist/cjs/src/toobit.js +31 -29
  163. package/dist/cjs/src/upbit.js +23 -23
  164. package/dist/cjs/src/wavesexchange.js +86 -85
  165. package/dist/cjs/src/whitebit.js +44 -44
  166. package/dist/cjs/src/woo.js +51 -49
  167. package/dist/cjs/src/woofipro.js +104 -82
  168. package/dist/cjs/src/xt.js +17 -12
  169. package/dist/cjs/src/yobit.js +15 -15
  170. package/dist/cjs/src/zaif.js +38 -9
  171. package/dist/cjs/src/zebpay.js +35 -20
  172. package/dist/cjs/src/zonda.js +14 -14
  173. package/js/ccxt.d.ts +1 -1
  174. package/js/ccxt.js +1 -1
  175. package/js/src/alpaca.d.ts +21 -21
  176. package/js/src/alpaca.js +21 -21
  177. package/js/src/apex.d.ts +20 -20
  178. package/js/src/apex.js +20 -20
  179. package/js/src/arkham.d.ts +22 -22
  180. package/js/src/arkham.js +22 -22
  181. package/js/src/ascendex.d.ts +28 -28
  182. package/js/src/ascendex.js +28 -28
  183. package/js/src/backpack.d.ts +21 -21
  184. package/js/src/backpack.js +22 -22
  185. package/js/src/base/Exchange.d.ts +6 -3
  186. package/js/src/base/Exchange.js +48 -38
  187. package/js/src/base/functions/throttle.d.ts +22 -0
  188. package/js/src/base/functions/throttle.js +54 -5
  189. package/js/src/bigone.d.ts +19 -19
  190. package/js/src/bigone.js +19 -19
  191. package/js/src/binance.d.ts +82 -82
  192. package/js/src/binance.js +83 -82
  193. package/js/src/bingx.d.ts +46 -46
  194. package/js/src/bingx.js +46 -46
  195. package/js/src/bit2c.d.ts +11 -11
  196. package/js/src/bit2c.js +11 -11
  197. package/js/src/bitbank.d.ts +12 -12
  198. package/js/src/bitbank.js +49 -48
  199. package/js/src/bitbns.d.ts +13 -13
  200. package/js/src/bitbns.js +13 -13
  201. package/js/src/bitfinex.d.ts +33 -33
  202. package/js/src/bitfinex.js +33 -33
  203. package/js/src/bitflyer.d.ts +17 -17
  204. package/js/src/bitflyer.js +17 -17
  205. package/js/src/bitget.d.ts +57 -57
  206. package/js/src/bitget.js +58 -57
  207. package/js/src/bithumb.d.ts +10 -10
  208. package/js/src/bithumb.js +10 -10
  209. package/js/src/bitmart.d.ts +42 -42
  210. package/js/src/bitmart.js +44 -44
  211. package/js/src/bitmex.d.ts +24 -24
  212. package/js/src/bitmex.js +24 -24
  213. package/js/src/bitopro.d.ts +20 -20
  214. package/js/src/bitopro.js +20 -20
  215. package/js/src/bitrue.d.ts +18 -18
  216. package/js/src/bitrue.js +18 -18
  217. package/js/src/bitso.d.ts +20 -20
  218. package/js/src/bitso.js +20 -20
  219. package/js/src/bitstamp.d.ts +21 -21
  220. package/js/src/bitstamp.js +21 -21
  221. package/js/src/bittrade.d.ts +20 -20
  222. package/js/src/bittrade.js +20 -20
  223. package/js/src/bitvavo.d.ts +19 -19
  224. package/js/src/bitvavo.js +19 -19
  225. package/js/src/blockchaincom.d.ts +20 -20
  226. package/js/src/blockchaincom.js +20 -20
  227. package/js/src/blofin.d.ts +26 -26
  228. package/js/src/blofin.js +26 -26
  229. package/js/src/btcalpha.d.ts +14 -14
  230. package/js/src/btcalpha.js +35 -34
  231. package/js/src/btcbox.d.ts +10 -10
  232. package/js/src/btcbox.js +10 -10
  233. package/js/src/btcmarkets.d.ts +16 -16
  234. package/js/src/btcmarkets.js +16 -16
  235. package/js/src/btcturk.d.ts +10 -10
  236. package/js/src/btcturk.js +10 -10
  237. package/js/src/bullish.d.ts +26 -26
  238. package/js/src/bullish.js +26 -26
  239. package/js/src/bybit.d.ts +66 -66
  240. package/js/src/bybit.js +67 -67
  241. package/js/src/cex.d.ts +18 -18
  242. package/js/src/cex.js +18 -18
  243. package/js/src/coinbase.d.ts +40 -40
  244. package/js/src/coinbase.js +40 -40
  245. package/js/src/coinbaseexchange.d.ts +22 -22
  246. package/js/src/coinbaseexchange.js +22 -22
  247. package/js/src/coinbaseinternational.d.ts +22 -22
  248. package/js/src/coinbaseinternational.js +22 -22
  249. package/js/src/coincatch.d.ts +39 -39
  250. package/js/src/coincatch.js +39 -39
  251. package/js/src/coincheck.d.ts +11 -11
  252. package/js/src/coincheck.js +11 -11
  253. package/js/src/coinex.d.ts +48 -48
  254. package/js/src/coinex.js +48 -48
  255. package/js/src/coinmate.d.ts +14 -14
  256. package/js/src/coinmate.js +14 -14
  257. package/js/src/coinmetro.d.ts +14 -14
  258. package/js/src/coinmetro.js +14 -14
  259. package/js/src/coinone.d.ts +11 -11
  260. package/js/src/coinone.js +11 -11
  261. package/js/src/coinsph.d.ts +20 -20
  262. package/js/src/coinsph.js +20 -20
  263. package/js/src/coinspot.d.ts +8 -8
  264. package/js/src/coinspot.js +8 -8
  265. package/js/src/cryptocom.d.ts +32 -32
  266. package/js/src/cryptocom.js +32 -32
  267. package/js/src/cryptomus.d.ts +9 -9
  268. package/js/src/cryptomus.js +9 -9
  269. package/js/src/deepcoin.d.ts +33 -33
  270. package/js/src/deepcoin.js +33 -33
  271. package/js/src/defx.d.ts +23 -23
  272. package/js/src/defx.js +23 -23
  273. package/js/src/delta.d.ts +29 -29
  274. package/js/src/delta.js +29 -29
  275. package/js/src/deribit.d.ts +36 -36
  276. package/js/src/deribit.js +36 -36
  277. package/js/src/derive.d.ts +19 -19
  278. package/js/src/derive.js +19 -19
  279. package/js/src/digifinex.d.ts +36 -36
  280. package/js/src/digifinex.js +36 -36
  281. package/js/src/dydx.d.ts +22 -22
  282. package/js/src/dydx.js +22 -22
  283. package/js/src/exmo.d.ts +29 -29
  284. package/js/src/exmo.js +29 -29
  285. package/js/src/foxbit.d.ts +23 -23
  286. package/js/src/foxbit.js +23 -23
  287. package/js/src/gate.d.ts +57 -57
  288. package/js/src/gate.js +57 -57
  289. package/js/src/gemini.d.ts +16 -16
  290. package/js/src/gemini.js +16 -16
  291. package/js/src/hashkey.d.ts +35 -35
  292. package/js/src/hashkey.js +35 -35
  293. package/js/src/hibachi.d.ts +24 -24
  294. package/js/src/hibachi.js +24 -24
  295. package/js/src/hitbtc.d.ts +38 -38
  296. package/js/src/hitbtc.js +38 -38
  297. package/js/src/hollaex.d.ts +22 -22
  298. package/js/src/hollaex.js +22 -22
  299. package/js/src/htx.d.ts +50 -50
  300. package/js/src/htx.js +50 -50
  301. package/js/src/hyperliquid.d.ts +46 -36
  302. package/js/src/hyperliquid.js +76 -42
  303. package/js/src/independentreserve.d.ts +13 -13
  304. package/js/src/independentreserve.js +13 -13
  305. package/js/src/indodax.d.ts +14 -14
  306. package/js/src/indodax.js +14 -14
  307. package/js/src/kraken.d.ts +30 -30
  308. package/js/src/kraken.js +30 -30
  309. package/js/src/krakenfutures.d.ts +21 -21
  310. package/js/src/krakenfutures.js +21 -21
  311. package/js/src/kucoin.d.ts +44 -44
  312. package/js/src/kucoin.js +44 -44
  313. package/js/src/kucoinfutures.d.ts +35 -35
  314. package/js/src/kucoinfutures.js +42 -40
  315. package/js/src/latoken.d.ts +16 -16
  316. package/js/src/latoken.js +16 -16
  317. package/js/src/lbank.d.ts +23 -23
  318. package/js/src/lbank.js +23 -23
  319. package/js/src/luno.d.ts +17 -17
  320. package/js/src/luno.js +17 -17
  321. package/js/src/mercado.d.ts +11 -11
  322. package/js/src/mercado.js +11 -11
  323. package/js/src/mexc.d.ts +47 -47
  324. package/js/src/mexc.js +47 -47
  325. package/js/src/modetrade.d.ts +31 -31
  326. package/js/src/modetrade.js +37 -35
  327. package/js/src/ndax.d.ts +19 -19
  328. package/js/src/ndax.js +19 -19
  329. package/js/src/novadax.d.ts +19 -19
  330. package/js/src/novadax.js +19 -19
  331. package/js/src/oceanex.d.ts +16 -16
  332. package/js/src/oceanex.js +16 -16
  333. package/js/src/okx.d.ts +74 -74
  334. package/js/src/okx.js +83 -83
  335. package/js/src/onetrading.d.ts +34 -33
  336. package/js/src/onetrading.js +34 -33
  337. package/js/src/oxfun.d.ts +25 -25
  338. package/js/src/oxfun.js +25 -25
  339. package/js/src/p2b.d.ts +11 -11
  340. package/js/src/p2b.js +11 -11
  341. package/js/src/paradex.d.ts +54 -54
  342. package/js/src/paradex.js +54 -54
  343. package/js/src/paymium.d.ts +20 -21
  344. package/js/src/paymium.js +20 -21
  345. package/js/src/phemex.d.ts +30 -30
  346. package/js/src/phemex.js +35 -35
  347. package/js/src/poloniex.d.ts +26 -26
  348. package/js/src/poloniex.js +27 -27
  349. package/js/src/pro/alpaca.d.ts +5 -5
  350. package/js/src/pro/alpaca.js +5 -5
  351. package/js/src/pro/apex.d.ts +8 -8
  352. package/js/src/pro/apex.js +8 -8
  353. package/js/src/pro/arkham.d.ts +5 -5
  354. package/js/src/pro/arkham.js +5 -5
  355. package/js/src/pro/ascendex.d.ts +5 -5
  356. package/js/src/pro/ascendex.js +5 -5
  357. package/js/src/pro/backpack.d.ts +16 -16
  358. package/js/src/pro/backpack.js +16 -16
  359. package/js/src/pro/binance.d.ts +35 -35
  360. package/js/src/pro/binance.js +35 -35
  361. package/js/src/pro/bingx.d.ts +9 -9
  362. package/js/src/pro/bingx.js +9 -9
  363. package/js/src/pro/bitfinex.d.ts +8 -8
  364. package/js/src/pro/bitfinex.js +8 -8
  365. package/js/src/pro/bitget.d.ts +12 -12
  366. package/js/src/pro/bitget.js +12 -12
  367. package/js/src/pro/bithumb.d.ts +3 -3
  368. package/js/src/pro/bithumb.js +3 -3
  369. package/js/src/pro/bitmart.d.ts +120 -9
  370. package/js/src/pro/bitmart.js +388 -31
  371. package/js/src/pro/bitmex.d.ts +9 -9
  372. package/js/src/pro/bitmex.js +9 -9
  373. package/js/src/pro/bitopro.d.ts +5 -5
  374. package/js/src/pro/bitopro.js +5 -5
  375. package/js/src/pro/bitrue.d.ts +2 -2
  376. package/js/src/pro/bitrue.js +2 -2
  377. package/js/src/pro/bitstamp.d.ts +3 -3
  378. package/js/src/pro/bitstamp.js +3 -3
  379. package/js/src/pro/bittrade.d.ts +3 -3
  380. package/js/src/pro/bittrade.js +3 -3
  381. package/js/src/pro/bitvavo.d.ts +19 -19
  382. package/js/src/pro/bitvavo.js +19 -19
  383. package/js/src/pro/blockchaincom.d.ts +5 -5
  384. package/js/src/pro/blockchaincom.js +5 -5
  385. package/js/src/pro/blofin.d.ts +10 -10
  386. package/js/src/pro/blofin.js +10 -10
  387. package/js/src/pro/bullish.d.ts +6 -6
  388. package/js/src/pro/bullish.js +6 -6
  389. package/js/src/pro/bybit.d.ts +19 -19
  390. package/js/src/pro/bybit.js +19 -19
  391. package/js/src/pro/cex.d.ts +13 -13
  392. package/js/src/pro/cex.js +13 -13
  393. package/js/src/pro/coinbase.d.ts +13 -13
  394. package/js/src/pro/coinbase.js +13 -13
  395. package/js/src/pro/coinbaseexchange.d.ts +10 -10
  396. package/js/src/pro/coinbaseexchange.js +10 -10
  397. package/js/src/pro/coinbaseinternational.d.ts +8 -8
  398. package/js/src/pro/coinbaseinternational.js +8 -8
  399. package/js/src/pro/coincatch.d.ts +10 -10
  400. package/js/src/pro/coincatch.js +10 -10
  401. package/js/src/pro/coincheck.d.ts +2 -2
  402. package/js/src/pro/coincheck.js +2 -2
  403. package/js/src/pro/coinex.d.ts +10 -10
  404. package/js/src/pro/coinex.js +10 -10
  405. package/js/src/pro/coinone.d.ts +3 -3
  406. package/js/src/pro/coinone.js +3 -3
  407. package/js/src/pro/cryptocom.d.ts +20 -20
  408. package/js/src/pro/cryptocom.js +20 -20
  409. package/js/src/pro/deepcoin.d.ts +8 -8
  410. package/js/src/pro/deepcoin.js +8 -8
  411. package/js/src/pro/defx.d.ts +15 -15
  412. package/js/src/pro/defx.js +15 -15
  413. package/js/src/pro/deribit.d.ts +10 -10
  414. package/js/src/pro/deribit.js +10 -10
  415. package/js/src/pro/derive.d.ts +6 -6
  416. package/js/src/pro/derive.js +6 -6
  417. package/js/src/pro/dydx.d.ts +3 -3
  418. package/js/src/pro/dydx.js +3 -3
  419. package/js/src/pro/exmo.d.ts +7 -7
  420. package/js/src/pro/exmo.js +7 -7
  421. package/js/src/pro/gate.d.ts +22 -23
  422. package/js/src/pro/gate.js +21 -59
  423. package/js/src/pro/gemini.d.ts +6 -6
  424. package/js/src/pro/gemini.js +6 -6
  425. package/js/src/pro/hashkey.d.ts +6 -6
  426. package/js/src/pro/hashkey.js +6 -6
  427. package/js/src/pro/hitbtc.d.ts +8 -8
  428. package/js/src/pro/hitbtc.js +8 -8
  429. package/js/src/pro/hollaex.d.ts +5 -5
  430. package/js/src/pro/hollaex.js +5 -5
  431. package/js/src/pro/htx.d.ts +9 -9
  432. package/js/src/pro/htx.js +9 -9
  433. package/js/src/pro/hyperliquid.d.ts +38 -14
  434. package/js/src/pro/hyperliquid.js +103 -14
  435. package/js/src/pro/independentreserve.d.ts +2 -2
  436. package/js/src/pro/independentreserve.js +2 -2
  437. package/js/src/pro/kraken.d.ts +15 -15
  438. package/js/src/pro/kraken.js +15 -15
  439. package/js/src/pro/krakenfutures.d.ts +10 -10
  440. package/js/src/pro/krakenfutures.js +10 -10
  441. package/js/src/pro/kucoin.d.ts +15 -15
  442. package/js/src/pro/kucoin.js +15 -15
  443. package/js/src/pro/kucoinfutures.d.ts +13 -13
  444. package/js/src/pro/kucoinfutures.js +13 -13
  445. package/js/src/pro/lbank.d.ts +5 -5
  446. package/js/src/pro/lbank.js +5 -5
  447. package/js/src/pro/luno.d.ts +2 -2
  448. package/js/src/pro/luno.js +2 -2
  449. package/js/src/pro/mexc.d.ts +13 -13
  450. package/js/src/pro/mexc.js +13 -13
  451. package/js/src/pro/modetrade.d.ts +8 -8
  452. package/js/src/pro/modetrade.js +8 -8
  453. package/js/src/pro/ndax.d.ts +3 -3
  454. package/js/src/pro/ndax.js +3 -3
  455. package/js/src/pro/okx.d.ts +25 -25
  456. package/js/src/pro/okx.js +25 -25
  457. package/js/src/pro/onetrading.d.ts +6 -6
  458. package/js/src/pro/onetrading.js +6 -6
  459. package/js/src/pro/oxfun.d.ts +13 -13
  460. package/js/src/pro/oxfun.js +13 -13
  461. package/js/src/pro/p2b.d.ts +5 -5
  462. package/js/src/pro/p2b.js +5 -5
  463. package/js/src/pro/paradex.d.ts +8 -8
  464. package/js/src/pro/paradex.js +8 -8
  465. package/js/src/pro/phemex.d.ts +7 -7
  466. package/js/src/pro/phemex.js +7 -7
  467. package/js/src/pro/poloniex.d.ts +8 -8
  468. package/js/src/pro/poloniex.js +8 -8
  469. package/js/src/pro/probit.d.ts +6 -6
  470. package/js/src/pro/probit.js +6 -6
  471. package/js/src/pro/toobit.d.ts +9 -9
  472. package/js/src/pro/toobit.js +9 -9
  473. package/js/src/pro/upbit.d.ts +9 -9
  474. package/js/src/pro/upbit.js +9 -9
  475. package/js/src/pro/whitebit.d.ts +7 -7
  476. package/js/src/pro/whitebit.js +7 -7
  477. package/js/src/pro/woo.d.ts +13 -13
  478. package/js/src/pro/woo.js +13 -13
  479. package/js/src/pro/woofipro.d.ts +20 -20
  480. package/js/src/pro/woofipro.js +20 -20
  481. package/js/src/pro/xt.d.ts +2 -2
  482. package/js/src/pro/xt.js +2 -2
  483. package/js/src/probit.d.ts +18 -18
  484. package/js/src/probit.js +18 -18
  485. package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
  486. package/js/src/static_dependencies/ethers/utils/index.js +8 -1
  487. package/js/src/timex.d.ts +16 -16
  488. package/js/src/timex.js +16 -16
  489. package/js/src/tokocrypto.d.ts +17 -17
  490. package/js/src/tokocrypto.js +17 -17
  491. package/js/src/toobit.d.ts +27 -27
  492. package/js/src/toobit.js +31 -29
  493. package/js/src/upbit.d.ts +23 -23
  494. package/js/src/upbit.js +23 -23
  495. package/js/src/wavesexchange.d.ts +15 -15
  496. package/js/src/wavesexchange.js +86 -85
  497. package/js/src/whitebit.d.ts +44 -44
  498. package/js/src/whitebit.js +44 -44
  499. package/js/src/woo.d.ts +45 -45
  500. package/js/src/woo.js +51 -49
  501. package/js/src/woofipro.d.ts +77 -77
  502. package/js/src/woofipro.js +104 -82
  503. package/js/src/xt.d.ts +12 -12
  504. package/js/src/xt.js +17 -12
  505. package/js/src/yobit.d.ts +15 -15
  506. package/js/src/yobit.js +15 -15
  507. package/js/src/zaif.d.ts +9 -9
  508. package/js/src/zaif.js +38 -9
  509. package/js/src/zebpay.d.ts +20 -20
  510. package/js/src/zebpay.js +35 -20
  511. package/js/src/zonda.d.ts +14 -14
  512. package/js/src/zonda.js +14 -14
  513. package/package.json +1 -1
package/js/src/okx.js CHANGED
@@ -1488,7 +1488,7 @@ export default class okx extends Exchange {
1488
1488
  * @description the latest known information on the availability of the exchange API
1489
1489
  * @see https://www.okx.com/docs-v5/en/#status-get-status
1490
1490
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1491
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
1491
+ * @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
1492
1492
  */
1493
1493
  async fetchStatus(params = {}) {
1494
1494
  const response = await this.publicGetSystemStatus(params);
@@ -1570,7 +1570,7 @@ export default class okx extends Exchange {
1570
1570
  * @description fetch all the accounts associated with a profile
1571
1571
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-account-configuration
1572
1572
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1573
- * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
1573
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
1574
1574
  */
1575
1575
  async fetchAccounts(params = {}) {
1576
1576
  const response = await this.privateGetAccountConfig(params);
@@ -2029,7 +2029,7 @@ export default class okx extends Exchange {
2029
2029
  * @param {int} [limit] the maximum amount of order book entries to return
2030
2030
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2031
2031
  * @param {string} [params.method] 'publicGetMarketBooksFull' or 'publicGetMarketBooks' default is 'publicGetMarketBooks'
2032
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
2032
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
2033
2033
  */
2034
2034
  async fetchOrderBook(symbol, limit = undefined, params = {}) {
2035
2035
  await this.loadMarkets();
@@ -2160,7 +2160,7 @@ export default class okx extends Exchange {
2160
2160
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-ticker
2161
2161
  * @param {string} symbol unified symbol of the market to fetch the ticker for
2162
2162
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2163
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2163
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
2164
2164
  */
2165
2165
  async fetchTicker(symbol, params = {}) {
2166
2166
  await this.loadMarkets();
@@ -2206,7 +2206,7 @@ export default class okx extends Exchange {
2206
2206
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-tickers
2207
2207
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
2208
2208
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2209
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2209
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
2210
2210
  */
2211
2211
  async fetchTickers(symbols = undefined, params = {}) {
2212
2212
  await this.loadMarkets();
@@ -2264,7 +2264,7 @@ export default class okx extends Exchange {
2264
2264
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-mark-price
2265
2265
  * @param {string} symbol unified symbol of the market to fetch the ticker for
2266
2266
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2267
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2267
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
2268
2268
  */
2269
2269
  async fetchMarkPrice(symbol, params = {}) {
2270
2270
  await this.loadMarkets();
@@ -2297,7 +2297,7 @@ export default class okx extends Exchange {
2297
2297
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-mark-price
2298
2298
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
2299
2299
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2300
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2300
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
2301
2301
  */
2302
2302
  async fetchMarkPrices(symbols = undefined, params = {}) {
2303
2303
  await this.loadMarkets();
@@ -2427,7 +2427,7 @@ export default class okx extends Exchange {
2427
2427
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2428
2428
  * @param {string} [params.method] 'publicGetMarketTrades' or 'publicGetMarketHistoryTrades' default is 'publicGetMarketTrades'
2429
2429
  * @param {boolean} [params.paginate] *only applies to publicGetMarketHistoryTrades* default false, when true will automatically paginate by calling this endpoint multiple times
2430
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
2430
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
2431
2431
  */
2432
2432
  async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
2433
2433
  await this.loadMarkets();
@@ -2648,10 +2648,10 @@ export default class okx extends Exchange {
2648
2648
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate-history
2649
2649
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
2650
2650
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
2651
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
2651
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
2652
2652
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2653
2653
  * @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)
2654
- * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
2654
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
2655
2655
  */
2656
2656
  async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
2657
2657
  if (symbol === undefined) {
@@ -2795,7 +2795,7 @@ export default class okx extends Exchange {
2795
2795
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-fee-rates
2796
2796
  * @param {string} symbol unified market symbol
2797
2797
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2798
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
2798
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
2799
2799
  */
2800
2800
  async fetchTradingFee(symbol, params = {}) {
2801
2801
  await this.loadMarkets();
@@ -2846,7 +2846,7 @@ export default class okx extends Exchange {
2846
2846
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-balance
2847
2847
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2848
2848
  * @param {string} [params.type] wallet type, ['funding' or 'trading'] default is 'trading'
2849
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
2849
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
2850
2850
  */
2851
2851
  async fetchBalance(params = {}) {
2852
2852
  await this.loadMarkets();
@@ -2973,7 +2973,7 @@ export default class okx extends Exchange {
2973
2973
  * @param {string} symbol unified symbol of the market to create an order in
2974
2974
  * @param {float} cost how much you want to trade in units of the quote currency
2975
2975
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2976
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2976
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
2977
2977
  */
2978
2978
  async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
2979
2979
  await this.loadMarkets();
@@ -2995,7 +2995,7 @@ export default class okx extends Exchange {
2995
2995
  * @param {string} symbol unified symbol of the market to create an order in
2996
2996
  * @param {float} cost how much you want to trade in units of the quote currency
2997
2997
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2998
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2998
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
2999
2999
  */
3000
3000
  async createMarketSellOrderWithCost(symbol, cost, params = {}) {
3001
3001
  await this.loadMarkets();
@@ -3049,9 +3049,9 @@ export default class okx extends Exchange {
3049
3049
  const slTriggerPxType = this.safeString(params, 'slTriggerPxType', 'last');
3050
3050
  const clientOrderId = this.safeString2(params, 'clOrdId', 'clientOrderId');
3051
3051
  const stopLoss = this.safeValue(params, 'stopLoss');
3052
- const stopLossDefined = (stopLoss !== undefined);
3053
3052
  const takeProfit = this.safeValue(params, 'takeProfit');
3054
- const takeProfitDefined = (takeProfit !== undefined);
3053
+ const hasStopLoss = (stopLoss !== undefined);
3054
+ const hasTakeProfit = (takeProfit !== undefined);
3055
3055
  const trailingPercent = this.safeString2(params, 'trailingPercent', 'callbackRatio');
3056
3056
  const isTrailingPercentOrder = trailingPercent !== undefined;
3057
3057
  const trailingPrice = this.safeString2(params, 'trailingPrice', 'callbackSpread');
@@ -3176,9 +3176,9 @@ export default class okx extends Exchange {
3176
3176
  request['callbackSpread'] = trailingPrice;
3177
3177
  request['ordType'] = 'move_order_stop';
3178
3178
  }
3179
- else if (stopLossDefined || takeProfitDefined) {
3179
+ else if (hasStopLoss || hasTakeProfit) {
3180
3180
  let attachAlgoOrd = {};
3181
- if (stopLossDefined) {
3181
+ if (hasStopLoss) {
3182
3182
  const stopLossTriggerPrice = this.safeValueN(stopLoss, ['triggerPrice', 'stopPrice', 'slTriggerPx']);
3183
3183
  if (stopLossTriggerPrice === undefined) {
3184
3184
  throw new InvalidOrder(this.id + ' createOrder() requires a trigger price in params["stopLoss"]["triggerPrice"], or params["stopLoss"]["stopPrice"], or params["stopLoss"]["slTriggerPx"] for a stop loss order');
@@ -3221,7 +3221,7 @@ export default class okx extends Exchange {
3221
3221
  }
3222
3222
  attachAlgoOrd = this.extend(attachAlgoOrd, slOrder);
3223
3223
  }
3224
- if (takeProfitDefined) {
3224
+ if (hasTakeProfit) {
3225
3225
  const takeProfitTriggerPrice = this.safeValueN(takeProfit, ['triggerPrice', 'stopPrice', 'tpTriggerPx']);
3226
3226
  if (takeProfitTriggerPrice === undefined) {
3227
3227
  throw new InvalidOrder(this.id + ' createOrder() requires a trigger price in params["takeProfit"]["triggerPrice"], or params["takeProfit"]["stopPrice"], or params["takeProfit"]["tpTriggerPx"] for a take profit order');
@@ -3354,7 +3354,7 @@ export default class okx extends Exchange {
3354
3354
  * @param {string} [params.tpOrdKind] 'condition' or 'limit', the default is 'condition'
3355
3355
  * @param {bool} [params.hedged] *swap and future only* true for hedged mode, false for one way mode
3356
3356
  * @param {string} [params.marginMode] 'cross' or 'isolated', the default is 'cross'
3357
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3357
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
3358
3358
  */
3359
3359
  async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
3360
3360
  await this.loadMarkets();
@@ -3398,7 +3398,7 @@ export default class okx extends Exchange {
3398
3398
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-post-place-multiple-orders
3399
3399
  * @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
3400
3400
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3401
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3401
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
3402
3402
  */
3403
3403
  async createOrders(orders, params = {}) {
3404
3404
  await this.loadMarkets();
@@ -3475,8 +3475,8 @@ export default class okx extends Exchange {
3475
3475
  const takeProfitTriggerPriceType = this.safeString(params, 'newTpTriggerPxType', 'last');
3476
3476
  const stopLoss = this.safeValue(params, 'stopLoss');
3477
3477
  const takeProfit = this.safeValue(params, 'takeProfit');
3478
- const stopLossDefined = (stopLoss !== undefined);
3479
- const takeProfitDefined = (takeProfit !== undefined);
3478
+ const hasStopLoss = (stopLoss !== undefined);
3479
+ const hasTakeProfit = (takeProfit !== undefined);
3480
3480
  if (isAlgoOrder) {
3481
3481
  if ((stopLossTriggerPrice === undefined) && (takeProfitTriggerPrice === undefined)) {
3482
3482
  throw new BadRequest(this.id + ' editOrder() requires a stopLossPrice or takeProfitPrice parameter for editing an algo order');
@@ -3509,7 +3509,7 @@ export default class okx extends Exchange {
3509
3509
  request['newTpOrdPx'] = (type === 'market') ? '-1' : this.priceToPrecision(symbol, takeProfitPrice);
3510
3510
  request['newTpTriggerPxType'] = takeProfitTriggerPriceType;
3511
3511
  }
3512
- if (stopLossDefined) {
3512
+ if (hasStopLoss) {
3513
3513
  stopLossTriggerPrice = this.safeValue(stopLoss, 'triggerPrice');
3514
3514
  stopLossPrice = this.safeValue(stopLoss, 'price');
3515
3515
  const stopLossType = this.safeString(stopLoss, 'type');
@@ -3517,7 +3517,7 @@ export default class okx extends Exchange {
3517
3517
  request['newSlOrdPx'] = (stopLossType === 'market') ? '-1' : this.priceToPrecision(symbol, stopLossPrice);
3518
3518
  request['newSlTriggerPxType'] = stopLossTriggerPriceType;
3519
3519
  }
3520
- if (takeProfitDefined) {
3520
+ if (hasTakeProfit) {
3521
3521
  takeProfitTriggerPrice = this.safeValue(takeProfit, 'triggerPrice');
3522
3522
  takeProfitPrice = this.safeValue(takeProfit, 'price');
3523
3523
  const takeProfitType = this.safeString(takeProfit, 'type');
@@ -3567,7 +3567,7 @@ export default class okx extends Exchange {
3567
3567
  * @param {float} [params.takeProfit.price] used for take profit limit orders, not used for take profit market price orders
3568
3568
  * @param {string} [params.takeProfit.type] 'market' or 'limit' used to specify the take profit price type
3569
3569
  * @param {string} [params.newTpOrdKind] 'condition' or 'limit', the default is 'condition'
3570
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3570
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
3571
3571
  */
3572
3572
  async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
3573
3573
  await this.loadMarkets();
@@ -3617,7 +3617,7 @@ export default class okx extends Exchange {
3617
3617
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3618
3618
  * @param {boolean} [params.trigger] true if trigger orders
3619
3619
  * @param {boolean} [params.trailing] set to true if you want to cancel a trailing order
3620
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3620
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
3621
3621
  */
3622
3622
  async cancelOrder(id, symbol = undefined, params = {}) {
3623
3623
  if (symbol === undefined) {
@@ -3676,7 +3676,7 @@ export default class okx extends Exchange {
3676
3676
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3677
3677
  * @param {boolean} [params.trigger] whether the order is a stop/trigger order
3678
3678
  * @param {boolean} [params.trailing] set to true if you want to cancel trailing orders
3679
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3679
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
3680
3680
  */
3681
3681
  async cancelOrders(ids, symbol = undefined, params = {}) {
3682
3682
  // TODO : the original endpoint signature differs, according to that you can skip individual symbol and assign ids in batch. At this moment, `params` is not being used too.
@@ -3786,7 +3786,7 @@ export default class okx extends Exchange {
3786
3786
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3787
3787
  * @param {boolean} [params.trigger] whether the order is a stop/trigger order
3788
3788
  * @param {boolean} [params.trailing] set to true if you want to cancel trailing orders
3789
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3789
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
3790
3790
  */
3791
3791
  async cancelOrdersForSymbols(orders, params = {}) {
3792
3792
  await this.loadMarkets();
@@ -4198,7 +4198,7 @@ export default class okx extends Exchange {
4198
4198
  * @param {string} symbol unified market symbol
4199
4199
  * @param {object} [params] extra and exchange specific parameters
4200
4200
  * @param {boolean} [params.trigger] true if fetching trigger orders
4201
- * @returns [an order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
4201
+ * @returns [an order structure]{@link https://docs.ccxt.com/?id=order-structure}
4202
4202
  */
4203
4203
  async fetchOrder(id, symbol = undefined, params = {}) {
4204
4204
  if (symbol === undefined) {
@@ -4357,7 +4357,7 @@ export default class okx extends Exchange {
4357
4357
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
4358
4358
  * @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)
4359
4359
  * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
4360
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4360
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
4361
4361
  */
4362
4362
  async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4363
4363
  await this.loadMarkets();
@@ -4521,7 +4521,7 @@ export default class okx extends Exchange {
4521
4521
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
4522
4522
  * @param {int} [params.until] timestamp in ms to fetch orders for
4523
4523
  * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
4524
- * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4524
+ * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
4525
4525
  */
4526
4526
  async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4527
4527
  await this.loadMarkets();
@@ -4711,7 +4711,7 @@ export default class okx extends Exchange {
4711
4711
  * @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)
4712
4712
  * @param {string} [params.method] method to be used, either 'privateGetTradeOrdersHistory', 'privateGetTradeOrdersHistoryArchive' or 'privateGetTradeOrdersAlgoHistory' default is 'privateGetTradeOrdersHistory'
4713
4713
  * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
4714
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4714
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
4715
4715
  */
4716
4716
  async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4717
4717
  await this.loadMarkets();
@@ -4893,7 +4893,7 @@ export default class okx extends Exchange {
4893
4893
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4894
4894
  * @param {int} [params.until] Timestamp in ms of the latest time to retrieve trades for
4895
4895
  * @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)
4896
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4896
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
4897
4897
  */
4898
4898
  async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4899
4899
  await this.loadMarkets();
@@ -4964,7 +4964,7 @@ export default class okx extends Exchange {
4964
4964
  * @param {int} [since] the earliest time in ms to fetch trades for
4965
4965
  * @param {int} [limit] the maximum number of trades to retrieve
4966
4966
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4967
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4967
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
4968
4968
  */
4969
4969
  async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
4970
4970
  const request = {
@@ -4990,7 +4990,7 @@ export default class okx extends Exchange {
4990
4990
  * @param {string} [params.marginMode] 'cross' or 'isolated'
4991
4991
  * @param {int} [params.until] the latest time in ms to fetch entries for
4992
4992
  * @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)
4993
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
4993
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
4994
4994
  */
4995
4995
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
4996
4996
  await this.loadMarkets();
@@ -5289,7 +5289,7 @@ export default class okx extends Exchange {
5289
5289
  * @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
5290
5290
  * @param {string} code unified currency code of the currency for the deposit address
5291
5291
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5292
- * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
5292
+ * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
5293
5293
  */
5294
5294
  async fetchDepositAddressesByNetwork(code, params = {}) {
5295
5295
  await this.loadMarkets();
@@ -5332,7 +5332,7 @@ export default class okx extends Exchange {
5332
5332
  * @param {string} code unified currency code
5333
5333
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5334
5334
  * @param {string} [params.network] the network name for the deposit address
5335
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
5335
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
5336
5336
  */
5337
5337
  async fetchDepositAddress(code, params = {}) {
5338
5338
  await this.loadMarkets();
@@ -5367,7 +5367,7 @@ export default class okx extends Exchange {
5367
5367
  * @param {string} address the address to withdraw to
5368
5368
  * @param {string} tag
5369
5369
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5370
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5370
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
5371
5371
  */
5372
5372
  async withdraw(code, amount, address, tag = undefined, params = {}) {
5373
5373
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
@@ -5431,7 +5431,7 @@ export default class okx extends Exchange {
5431
5431
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5432
5432
  * @param {int} [params.until] the latest time in ms to fetch entries for
5433
5433
  * @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)
5434
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5434
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
5435
5435
  */
5436
5436
  async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
5437
5437
  await this.loadMarkets();
@@ -5509,7 +5509,7 @@ export default class okx extends Exchange {
5509
5509
  * @param {string} id deposit id
5510
5510
  * @param {string} code filter by currency code
5511
5511
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5512
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5512
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
5513
5513
  */
5514
5514
  async fetchDeposit(id, code = undefined, params = {}) {
5515
5515
  await this.loadMarkets();
@@ -5537,7 +5537,7 @@ export default class okx extends Exchange {
5537
5537
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5538
5538
  * @param {int} [params.until] the latest time in ms to fetch entries for
5539
5539
  * @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)
5540
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5540
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
5541
5541
  */
5542
5542
  async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
5543
5543
  await this.loadMarkets();
@@ -5607,7 +5607,7 @@ export default class okx extends Exchange {
5607
5607
  * @param {string} id withdrawal id
5608
5608
  * @param {string} code unified currency code of the currency withdrawn, default is undefined
5609
5609
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5610
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5610
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
5611
5611
  */
5612
5612
  async fetchWithdrawal(id, code = undefined, params = {}) {
5613
5613
  await this.loadMarkets();
@@ -5795,7 +5795,7 @@ export default class okx extends Exchange {
5795
5795
  * @param {string} symbol unified market symbol
5796
5796
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5797
5797
  * @param {string} [params.marginMode] 'cross' or 'isolated'
5798
- * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
5798
+ * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
5799
5799
  */
5800
5800
  async fetchLeverage(symbol, params = {}) {
5801
5801
  await this.loadMarkets();
@@ -5867,7 +5867,7 @@ export default class okx extends Exchange {
5867
5867
  * @param {string} symbol unified market symbol of the market the position is held in, default is undefined
5868
5868
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5869
5869
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
5870
- * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
5870
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
5871
5871
  */
5872
5872
  async fetchPosition(symbol, params = {}) {
5873
5873
  await this.loadMarkets();
@@ -5944,7 +5944,7 @@ export default class okx extends Exchange {
5944
5944
  * @param {string[]|undefined} symbols list of unified market symbols
5945
5945
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5946
5946
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
5947
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
5947
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
5948
5948
  */
5949
5949
  async fetchPositions(symbols = undefined, params = {}) {
5950
5950
  await this.loadMarkets();
@@ -6035,7 +6035,7 @@ export default class okx extends Exchange {
6035
6035
  * @param {string} symbol unified market symbol
6036
6036
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6037
6037
  * @param {string} [params.instType] MARGIN (if needed)
6038
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
6038
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
6039
6039
  */
6040
6040
  async fetchPositionsForSymbol(symbol, params = {}) {
6041
6041
  return await this.fetchPositions([symbol], params);
@@ -6223,7 +6223,7 @@ export default class okx extends Exchange {
6223
6223
  * @param {string} fromAccount account to transfer from
6224
6224
  * @param {string} toAccount account to transfer to
6225
6225
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6226
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
6226
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
6227
6227
  */
6228
6228
  async transfer(code, amount, fromAccount, toAccount, params = {}) {
6229
6229
  await this.loadMarkets();
@@ -6397,7 +6397,7 @@ export default class okx extends Exchange {
6397
6397
  * @param {int} [since] the earliest time in ms to fetch transfers for
6398
6398
  * @param {int} [limit] the maximum number of transfers structures to retrieve
6399
6399
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6400
- * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
6400
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
6401
6401
  */
6402
6402
  async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
6403
6403
  await this.loadMarkets();
@@ -6592,7 +6592,7 @@ export default class okx extends Exchange {
6592
6592
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate
6593
6593
  * @param {string} symbol unified market symbol
6594
6594
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6595
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
6595
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
6596
6596
  */
6597
6597
  async fetchFundingInterval(symbol, params = {}) {
6598
6598
  return await this.fetchFundingRate(symbol, params);
@@ -6604,7 +6604,7 @@ export default class okx extends Exchange {
6604
6604
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate
6605
6605
  * @param {string} symbol unified market symbol
6606
6606
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6607
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
6607
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
6608
6608
  */
6609
6609
  async fetchFundingRate(symbol, params = {}) {
6610
6610
  await this.loadMarkets();
@@ -6643,7 +6643,7 @@ export default class okx extends Exchange {
6643
6643
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate
6644
6644
  * @param {string[]} symbols unified market symbols
6645
6645
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6646
- * @returns {object} a dictionary of [funding rates structure]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}
6646
+ * @returns {object} a dictionary of [funding rates structure]{@link https://docs.ccxt.com/?id=funding-rates-structure}
6647
6647
  */
6648
6648
  async fetchFundingRates(symbols = undefined, params = {}) {
6649
6649
  await this.loadMarkets();
@@ -6678,7 +6678,7 @@ export default class okx extends Exchange {
6678
6678
  * @param {int} [since] the earliest time in ms to fetch funding history for
6679
6679
  * @param {int} [limit] the maximum number of funding history structures to retrieve
6680
6680
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6681
- * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
6681
+ * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
6682
6682
  */
6683
6683
  async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
6684
6684
  await this.loadMarkets();
@@ -7015,7 +7015,7 @@ export default class okx extends Exchange {
7015
7015
  * @description fetch the borrow interest rates of all currencies
7016
7016
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-interest-rate
7017
7017
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7018
- * @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
7018
+ * @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
7019
7019
  */
7020
7020
  async fetchCrossBorrowRates(params = {}) {
7021
7021
  await this.loadMarkets();
@@ -7046,7 +7046,7 @@ export default class okx extends Exchange {
7046
7046
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-interest-rate
7047
7047
  * @param {string} code unified currency code
7048
7048
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7049
- * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
7049
+ * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
7050
7050
  */
7051
7051
  async fetchCrossBorrowRate(code, params = {}) {
7052
7052
  await this.loadMarkets();
@@ -7133,7 +7133,7 @@ export default class okx extends Exchange {
7133
7133
  * @param {int} [since] timestamp in ms of the earliest borrowRate, default is undefined
7134
7134
  * @param {int} [limit] max number of borrow rate prices to return, default is undefined
7135
7135
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7136
- * @returns {object} a dictionary of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} indexed by the market symbol
7136
+ * @returns {object} a dictionary of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} indexed by the market symbol
7137
7137
  */
7138
7138
  async fetchBorrowRateHistories(codes = undefined, since = undefined, limit = undefined, params = {}) {
7139
7139
  await this.loadMarkets();
@@ -7174,9 +7174,9 @@ export default class okx extends Exchange {
7174
7174
  * @see https://www.okx.com/docs-v5/en/#financial-product-savings-get-public-borrow-history-public
7175
7175
  * @param {string} code unified currency code
7176
7176
  * @param {int} [since] timestamp for the earliest borrow rate
7177
- * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} to retrieve
7177
+ * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} to retrieve
7178
7178
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7179
- * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
7179
+ * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
7180
7180
  */
7181
7181
  async fetchBorrowRateHistory(code, since = undefined, limit = undefined, params = {}) {
7182
7182
  await this.loadMarkets();
@@ -7327,7 +7327,7 @@ export default class okx extends Exchange {
7327
7327
  * @param {string} symbol unified market symbol
7328
7328
  * @param {float} amount the amount of margin to remove
7329
7329
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7330
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
7330
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
7331
7331
  */
7332
7332
  async reduceMargin(symbol, amount, params = {}) {
7333
7333
  return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
@@ -7340,7 +7340,7 @@ export default class okx extends Exchange {
7340
7340
  * @param {string} symbol unified market symbol
7341
7341
  * @param {float} amount amount of margin to add
7342
7342
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7343
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
7343
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
7344
7344
  */
7345
7345
  async addMargin(symbol, amount, params = {}) {
7346
7346
  return await this.modifyMarginHelper(symbol, amount, 'add', params);
@@ -7353,7 +7353,7 @@ export default class okx extends Exchange {
7353
7353
  * @param {string} symbol unified market symbol
7354
7354
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7355
7355
  * @param {string} [params.marginMode] 'cross' or 'isolated'
7356
- * @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
7356
+ * @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}
7357
7357
  */
7358
7358
  async fetchMarketLeverageTiers(symbol, params = {}) {
7359
7359
  await this.loadMarkets();
@@ -7453,11 +7453,11 @@ export default class okx extends Exchange {
7453
7453
  * @param {string} code the unified currency code for the currency of the interest
7454
7454
  * @param {string} symbol the market symbol of an isolated margin market, if undefined, the interest for cross margin markets is returned
7455
7455
  * @param {int} [since] timestamp in ms of the earliest time to receive interest records for
7456
- * @param {int} [limit] the number of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure} to retrieve
7456
+ * @param {int} [limit] the number of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure} to retrieve
7457
7457
  * @param {object} [params] exchange specific parameters
7458
7458
  * @param {int} [params.type] Loan type 1 - VIP loans 2 - Market loans *Default is Market loans*
7459
7459
  * @param {string} [params.marginMode] 'cross' or 'isolated'
7460
- * @returns {object[]} An list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
7460
+ * @returns {object[]} An list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
7461
7461
  */
7462
7462
  async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
7463
7463
  await this.loadMarkets();
@@ -7534,7 +7534,7 @@ export default class okx extends Exchange {
7534
7534
  * @param {string} code unified currency code of the currency to borrow
7535
7535
  * @param {float} amount the amount to borrow
7536
7536
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7537
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
7537
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
7538
7538
  */
7539
7539
  async borrowCrossMargin(code, amount, params = {}) {
7540
7540
  await this.loadMarkets();
@@ -7573,7 +7573,7 @@ export default class okx extends Exchange {
7573
7573
  * @param {float} amount the amount to repay
7574
7574
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7575
7575
  * @param {string} [params.id] the order ID of borrowing, it is necessary while repaying
7576
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
7576
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
7577
7577
  */
7578
7578
  async repayCrossMargin(code, amount, params = {}) {
7579
7579
  await this.loadMarkets();
@@ -7639,7 +7639,7 @@ export default class okx extends Exchange {
7639
7639
  * @see https://www.okx.com/docs-v5/en/#rest-api-public-data-get-open-interest
7640
7640
  * @param {string} symbol Unified CCXT market symbol
7641
7641
  * @param {object} [params] exchange specific parameters
7642
- * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
7642
+ * @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
7643
7643
  */
7644
7644
  async fetchOpenInterest(symbol, params = {}) {
7645
7645
  await this.loadMarkets();
@@ -7683,7 +7683,7 @@ export default class okx extends Exchange {
7683
7683
  * @param {string} params.instType Instrument type, options: 'SWAP', 'FUTURES', 'OPTION', default to 'SWAP'
7684
7684
  * @param {string} params.uly Underlying, Applicable to FUTURES/SWAP/OPTION, if instType is 'OPTION', either uly or instFamily is required
7685
7685
  * @param {string} params.instFamily Instrument family, Applicable to FUTURES/SWAP/OPTION, if instType is 'OPTION', either uly or instFamily is required
7686
- * @returns {object} an dictionary of [open interest structures]{@link https://docs.ccxt.com/#/?id=open-interest-structure}
7686
+ * @returns {object} an dictionary of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
7687
7687
  */
7688
7688
  async fetchOpenInterests(symbols = undefined, params = {}) {
7689
7689
  await this.loadMarkets();
@@ -7744,7 +7744,7 @@ export default class okx extends Exchange {
7744
7744
  * @param {int} [limit] Not used by okx, but parsed internally by CCXT
7745
7745
  * @param {object} [params] Exchange specific parameters
7746
7746
  * @param {int} [params.until] The time in ms of the latest record to retrieve as a unix timestamp
7747
- * @returns An array of [open interest structures]{@link https://docs.ccxt.com/#/?id=open-interest-structure}
7747
+ * @returns An array of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
7748
7748
  */
7749
7749
  async fetchOpenInterestHistory(symbol, timeframe = '1d', since = undefined, limit = undefined, params = {}) {
7750
7750
  const options = this.safeDict(this.options, 'fetchOpenInterestHistory', {});
@@ -7876,7 +7876,7 @@ export default class okx extends Exchange {
7876
7876
  * @see https://www.okx.com/docs-v5/en/#rest-api-funding-get-currencies
7877
7877
  * @param {string[]|undefined} codes list of unified currency codes
7878
7878
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7879
- * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
7879
+ * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/?id=fee-structure}
7880
7880
  */
7881
7881
  async fetchDepositWithdrawFees(codes = undefined, params = {}) {
7882
7882
  await this.loadMarkets();
@@ -8005,7 +8005,7 @@ export default class okx extends Exchange {
8005
8005
  * @param {int} [since] timestamp in ms
8006
8006
  * @param {int} [limit] number of records
8007
8007
  * @param {object} [params] exchange specific params
8008
- * @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/#/?id=settlement-history-structure}
8008
+ * @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
8009
8009
  */
8010
8010
  async fetchSettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
8011
8011
  if (symbol === undefined) {
@@ -8104,7 +8104,7 @@ export default class okx extends Exchange {
8104
8104
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-underlying
8105
8105
  * @param {object} [params] exchange specific params
8106
8106
  * @param {string} [params.type] the contract market type, 'option', 'swap' or 'future', the default is 'option'
8107
- * @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/#/?id=underlying-assets-structure}
8107
+ * @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/?id=underlying-assets-structure}
8108
8108
  */
8109
8109
  async fetchUnderlyingAssets(params = {}) {
8110
8110
  await this.loadMarkets();
@@ -8142,7 +8142,7 @@ export default class okx extends Exchange {
8142
8142
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-option-market-data
8143
8143
  * @param {string} symbol unified symbol of the market to fetch greeks for
8144
8144
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8145
- * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
8145
+ * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
8146
8146
  */
8147
8147
  async fetchGreeks(symbol, params = {}) {
8148
8148
  await this.loadMarkets();
@@ -8203,7 +8203,7 @@ export default class okx extends Exchange {
8203
8203
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8204
8204
  * @param {string} params.uly Underlying, either uly or instFamily is required
8205
8205
  * @param {string} params.instFamily Instrument family, either uly or instFamily is required
8206
- * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
8206
+ * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
8207
8207
  */
8208
8208
  async fetchAllGreeks(symbols = undefined, params = {}) {
8209
8209
  await this.loadMarkets();
@@ -8335,7 +8335,7 @@ export default class okx extends Exchange {
8335
8335
  * EXCHANGE SPECIFIC PARAMETERS
8336
8336
  * @param {boolean} [params.autoCxl] whether any pending orders for closing out needs to be automatically canceled when close position via a market order. false or true, the default is false
8337
8337
  * @param {string} [params.tag] order tag a combination of case-sensitive alphanumerics, all numbers, or all letters of up to 16 characters
8338
- * @returns {object[]} [A list of position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
8338
+ * @returns {object[]} [A list of position structures]{@link https://docs.ccxt.com/?id=position-structure}
8339
8339
  */
8340
8340
  async closePosition(symbol, side = undefined, params = {}) {
8341
8341
  await this.loadMarkets();
@@ -8395,7 +8395,7 @@ export default class okx extends Exchange {
8395
8395
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-ticker
8396
8396
  * @param {string} symbol unified market symbol
8397
8397
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8398
- * @returns {object} an [option chain structure]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
8398
+ * @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
8399
8399
  */
8400
8400
  async fetchOption(symbol, params = {}) {
8401
8401
  await this.loadMarkets();
@@ -8442,7 +8442,7 @@ export default class okx extends Exchange {
8442
8442
  * @param {string} code base currency to fetch an option chain for
8443
8443
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8444
8444
  * @param {string} [params.uly] the underlying asset, can be obtained from fetchUnderlyingAssets ()
8445
- * @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
8445
+ * @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/?id=option-chain-structure}
8446
8446
  */
8447
8447
  async fetchOptionChain(code, params = {}) {
8448
8448
  await this.loadMarkets();
@@ -8534,7 +8534,7 @@ export default class okx extends Exchange {
8534
8534
  * @param {string} toCode the currency that you want to buy and convert into
8535
8535
  * @param {float} [amount] how much you want to trade in units of the from currency
8536
8536
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8537
- * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
8537
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
8538
8538
  */
8539
8539
  async fetchConvertQuote(fromCode, toCode, amount = undefined, params = {}) {
8540
8540
  await this.loadMarkets();
@@ -8587,7 +8587,7 @@ export default class okx extends Exchange {
8587
8587
  * @param {string} toCode the currency that you want to buy and convert into
8588
8588
  * @param {float} [amount] how much you want to trade in units of the from currency
8589
8589
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8590
- * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
8590
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
8591
8591
  */
8592
8592
  async createConvertTrade(id, fromCode, toCode, amount = undefined, params = {}) {
8593
8593
  await this.loadMarkets();
@@ -8638,7 +8638,7 @@ export default class okx extends Exchange {
8638
8638
  * @param {string} id the id of the trade that you want to fetch
8639
8639
  * @param {string} [code] the unified currency code of the conversion trade
8640
8640
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8641
- * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
8641
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
8642
8642
  */
8643
8643
  async fetchConvertTrade(id, code = undefined, params = {}) {
8644
8644
  await this.loadMarkets();
@@ -8691,7 +8691,7 @@ export default class okx extends Exchange {
8691
8691
  * @param {int} [limit] the maximum number of conversion structures to retrieve
8692
8692
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8693
8693
  * @param {int} [params.until] timestamp in ms of the latest conversion to fetch
8694
- * @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/#/?id=conversion-structure}
8694
+ * @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
8695
8695
  */
8696
8696
  async fetchConvertTradeHistory(code = undefined, since = undefined, limit = undefined, params = {}) {
8697
8697
  await this.loadMarkets();
@@ -8912,7 +8912,7 @@ export default class okx extends Exchange {
8912
8912
  * @param {int} [limit] the maximum number of entries to retrieve
8913
8913
  * @param {object} params extra parameters specific to the exchange api endpoint
8914
8914
  * @param {boolean} [params.auto] true if fetching auto margin increases
8915
- * @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
8915
+ * @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/?id=margin-loan-structure}
8916
8916
  */
8917
8917
  async fetchMarginAdjustmentHistory(symbol = undefined, type = undefined, since = undefined, limit = undefined, params = {}) {
8918
8918
  await this.loadMarkets();
@@ -9021,7 +9021,7 @@ export default class okx extends Exchange {
9021
9021
  * @param {string} [params.posId] position id, there is attribute expiration, the posid will be expired if it is more than 30 days after the last full close position, then position will use new posid
9022
9022
  * @param {string} [params.before] timestamp in ms of the earliest position to fetch based on the last update time of the position
9023
9023
  * @param {string} [params.after] timestamp in ms of the latest position to fetch based on the last update time of the position
9024
- * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
9024
+ * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
9025
9025
  */
9026
9026
  async fetchPositionsHistory(symbols = undefined, since = undefined, limit = undefined, params = {}) {
9027
9027
  await this.loadMarkets();
@@ -9096,7 +9096,7 @@ export default class okx extends Exchange {
9096
9096
  * @param {int} [limit] the maximum number of long short ratio structures to retrieve
9097
9097
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9098
9098
  * @param {int} [params.until] timestamp in ms of the latest ratio to fetch
9099
- * @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/#/?id=long-short-ratio-structure}
9099
+ * @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/?id=long-short-ratio-structure}
9100
9100
  */
9101
9101
  async fetchLongShortRatioHistory(symbol = undefined, timeframe = undefined, since = undefined, limit = undefined, params = {}) {
9102
9102
  await this.loadMarkets();