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
@@ -1487,7 +1487,7 @@ class okx extends okx$1["default"] {
1487
1487
  * @description the latest known information on the availability of the exchange API
1488
1488
  * @see https://www.okx.com/docs-v5/en/#status-get-status
1489
1489
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1490
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
1490
+ * @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
1491
1491
  */
1492
1492
  async fetchStatus(params = {}) {
1493
1493
  const response = await this.publicGetSystemStatus(params);
@@ -1569,7 +1569,7 @@ class okx extends okx$1["default"] {
1569
1569
  * @description fetch all the accounts associated with a profile
1570
1570
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-account-configuration
1571
1571
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1572
- * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
1572
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
1573
1573
  */
1574
1574
  async fetchAccounts(params = {}) {
1575
1575
  const response = await this.privateGetAccountConfig(params);
@@ -2028,7 +2028,7 @@ class okx extends okx$1["default"] {
2028
2028
  * @param {int} [limit] the maximum amount of order book entries to return
2029
2029
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2030
2030
  * @param {string} [params.method] 'publicGetMarketBooksFull' or 'publicGetMarketBooks' default is 'publicGetMarketBooks'
2031
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
2031
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
2032
2032
  */
2033
2033
  async fetchOrderBook(symbol, limit = undefined, params = {}) {
2034
2034
  await this.loadMarkets();
@@ -2159,7 +2159,7 @@ class okx extends okx$1["default"] {
2159
2159
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-ticker
2160
2160
  * @param {string} symbol unified symbol of the market to fetch the ticker for
2161
2161
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2162
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2162
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
2163
2163
  */
2164
2164
  async fetchTicker(symbol, params = {}) {
2165
2165
  await this.loadMarkets();
@@ -2205,7 +2205,7 @@ class okx extends okx$1["default"] {
2205
2205
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-tickers
2206
2206
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
2207
2207
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2208
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2208
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
2209
2209
  */
2210
2210
  async fetchTickers(symbols = undefined, params = {}) {
2211
2211
  await this.loadMarkets();
@@ -2263,7 +2263,7 @@ class okx extends okx$1["default"] {
2263
2263
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-mark-price
2264
2264
  * @param {string} symbol unified symbol of the market to fetch the ticker for
2265
2265
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2266
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2266
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
2267
2267
  */
2268
2268
  async fetchMarkPrice(symbol, params = {}) {
2269
2269
  await this.loadMarkets();
@@ -2296,7 +2296,7 @@ class okx extends okx$1["default"] {
2296
2296
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-mark-price
2297
2297
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
2298
2298
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2299
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2299
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
2300
2300
  */
2301
2301
  async fetchMarkPrices(symbols = undefined, params = {}) {
2302
2302
  await this.loadMarkets();
@@ -2426,7 +2426,7 @@ class okx extends okx$1["default"] {
2426
2426
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2427
2427
  * @param {string} [params.method] 'publicGetMarketTrades' or 'publicGetMarketHistoryTrades' default is 'publicGetMarketTrades'
2428
2428
  * @param {boolean} [params.paginate] *only applies to publicGetMarketHistoryTrades* default false, when true will automatically paginate by calling this endpoint multiple times
2429
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
2429
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
2430
2430
  */
2431
2431
  async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
2432
2432
  await this.loadMarkets();
@@ -2647,10 +2647,10 @@ class okx extends okx$1["default"] {
2647
2647
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate-history
2648
2648
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
2649
2649
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
2650
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
2650
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
2651
2651
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2652
2652
  * @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)
2653
- * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
2653
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
2654
2654
  */
2655
2655
  async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
2656
2656
  if (symbol === undefined) {
@@ -2794,7 +2794,7 @@ class okx extends okx$1["default"] {
2794
2794
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-fee-rates
2795
2795
  * @param {string} symbol unified market symbol
2796
2796
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2797
- * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
2797
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
2798
2798
  */
2799
2799
  async fetchTradingFee(symbol, params = {}) {
2800
2800
  await this.loadMarkets();
@@ -2845,7 +2845,7 @@ class okx extends okx$1["default"] {
2845
2845
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-balance
2846
2846
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2847
2847
  * @param {string} [params.type] wallet type, ['funding' or 'trading'] default is 'trading'
2848
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
2848
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
2849
2849
  */
2850
2850
  async fetchBalance(params = {}) {
2851
2851
  await this.loadMarkets();
@@ -2972,7 +2972,7 @@ class okx extends okx$1["default"] {
2972
2972
  * @param {string} symbol unified symbol of the market to create an order in
2973
2973
  * @param {float} cost how much you want to trade in units of the quote currency
2974
2974
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2975
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2975
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
2976
2976
  */
2977
2977
  async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
2978
2978
  await this.loadMarkets();
@@ -2994,7 +2994,7 @@ class okx extends okx$1["default"] {
2994
2994
  * @param {string} symbol unified symbol of the market to create an order in
2995
2995
  * @param {float} cost how much you want to trade in units of the quote currency
2996
2996
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2997
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2997
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
2998
2998
  */
2999
2999
  async createMarketSellOrderWithCost(symbol, cost, params = {}) {
3000
3000
  await this.loadMarkets();
@@ -3048,9 +3048,9 @@ class okx extends okx$1["default"] {
3048
3048
  const slTriggerPxType = this.safeString(params, 'slTriggerPxType', 'last');
3049
3049
  const clientOrderId = this.safeString2(params, 'clOrdId', 'clientOrderId');
3050
3050
  const stopLoss = this.safeValue(params, 'stopLoss');
3051
- const stopLossDefined = (stopLoss !== undefined);
3052
3051
  const takeProfit = this.safeValue(params, 'takeProfit');
3053
- const takeProfitDefined = (takeProfit !== undefined);
3052
+ const hasStopLoss = (stopLoss !== undefined);
3053
+ const hasTakeProfit = (takeProfit !== undefined);
3054
3054
  const trailingPercent = this.safeString2(params, 'trailingPercent', 'callbackRatio');
3055
3055
  const isTrailingPercentOrder = trailingPercent !== undefined;
3056
3056
  const trailingPrice = this.safeString2(params, 'trailingPrice', 'callbackSpread');
@@ -3175,9 +3175,9 @@ class okx extends okx$1["default"] {
3175
3175
  request['callbackSpread'] = trailingPrice;
3176
3176
  request['ordType'] = 'move_order_stop';
3177
3177
  }
3178
- else if (stopLossDefined || takeProfitDefined) {
3178
+ else if (hasStopLoss || hasTakeProfit) {
3179
3179
  let attachAlgoOrd = {};
3180
- if (stopLossDefined) {
3180
+ if (hasStopLoss) {
3181
3181
  const stopLossTriggerPrice = this.safeValueN(stopLoss, ['triggerPrice', 'stopPrice', 'slTriggerPx']);
3182
3182
  if (stopLossTriggerPrice === undefined) {
3183
3183
  throw new errors.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');
@@ -3220,7 +3220,7 @@ class okx extends okx$1["default"] {
3220
3220
  }
3221
3221
  attachAlgoOrd = this.extend(attachAlgoOrd, slOrder);
3222
3222
  }
3223
- if (takeProfitDefined) {
3223
+ if (hasTakeProfit) {
3224
3224
  const takeProfitTriggerPrice = this.safeValueN(takeProfit, ['triggerPrice', 'stopPrice', 'tpTriggerPx']);
3225
3225
  if (takeProfitTriggerPrice === undefined) {
3226
3226
  throw new errors.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');
@@ -3353,7 +3353,7 @@ class okx extends okx$1["default"] {
3353
3353
  * @param {string} [params.tpOrdKind] 'condition' or 'limit', the default is 'condition'
3354
3354
  * @param {bool} [params.hedged] *swap and future only* true for hedged mode, false for one way mode
3355
3355
  * @param {string} [params.marginMode] 'cross' or 'isolated', the default is 'cross'
3356
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3356
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
3357
3357
  */
3358
3358
  async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
3359
3359
  await this.loadMarkets();
@@ -3397,7 +3397,7 @@ class okx extends okx$1["default"] {
3397
3397
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-post-place-multiple-orders
3398
3398
  * @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
3399
3399
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3400
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3400
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
3401
3401
  */
3402
3402
  async createOrders(orders, params = {}) {
3403
3403
  await this.loadMarkets();
@@ -3474,8 +3474,8 @@ class okx extends okx$1["default"] {
3474
3474
  const takeProfitTriggerPriceType = this.safeString(params, 'newTpTriggerPxType', 'last');
3475
3475
  const stopLoss = this.safeValue(params, 'stopLoss');
3476
3476
  const takeProfit = this.safeValue(params, 'takeProfit');
3477
- const stopLossDefined = (stopLoss !== undefined);
3478
- const takeProfitDefined = (takeProfit !== undefined);
3477
+ const hasStopLoss = (stopLoss !== undefined);
3478
+ const hasTakeProfit = (takeProfit !== undefined);
3479
3479
  if (isAlgoOrder) {
3480
3480
  if ((stopLossTriggerPrice === undefined) && (takeProfitTriggerPrice === undefined)) {
3481
3481
  throw new errors.BadRequest(this.id + ' editOrder() requires a stopLossPrice or takeProfitPrice parameter for editing an algo order');
@@ -3508,7 +3508,7 @@ class okx extends okx$1["default"] {
3508
3508
  request['newTpOrdPx'] = (type === 'market') ? '-1' : this.priceToPrecision(symbol, takeProfitPrice);
3509
3509
  request['newTpTriggerPxType'] = takeProfitTriggerPriceType;
3510
3510
  }
3511
- if (stopLossDefined) {
3511
+ if (hasStopLoss) {
3512
3512
  stopLossTriggerPrice = this.safeValue(stopLoss, 'triggerPrice');
3513
3513
  stopLossPrice = this.safeValue(stopLoss, 'price');
3514
3514
  const stopLossType = this.safeString(stopLoss, 'type');
@@ -3516,7 +3516,7 @@ class okx extends okx$1["default"] {
3516
3516
  request['newSlOrdPx'] = (stopLossType === 'market') ? '-1' : this.priceToPrecision(symbol, stopLossPrice);
3517
3517
  request['newSlTriggerPxType'] = stopLossTriggerPriceType;
3518
3518
  }
3519
- if (takeProfitDefined) {
3519
+ if (hasTakeProfit) {
3520
3520
  takeProfitTriggerPrice = this.safeValue(takeProfit, 'triggerPrice');
3521
3521
  takeProfitPrice = this.safeValue(takeProfit, 'price');
3522
3522
  const takeProfitType = this.safeString(takeProfit, 'type');
@@ -3566,7 +3566,7 @@ class okx extends okx$1["default"] {
3566
3566
  * @param {float} [params.takeProfit.price] used for take profit limit orders, not used for take profit market price orders
3567
3567
  * @param {string} [params.takeProfit.type] 'market' or 'limit' used to specify the take profit price type
3568
3568
  * @param {string} [params.newTpOrdKind] 'condition' or 'limit', the default is 'condition'
3569
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3569
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
3570
3570
  */
3571
3571
  async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
3572
3572
  await this.loadMarkets();
@@ -3616,7 +3616,7 @@ class okx extends okx$1["default"] {
3616
3616
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3617
3617
  * @param {boolean} [params.trigger] true if trigger orders
3618
3618
  * @param {boolean} [params.trailing] set to true if you want to cancel a trailing order
3619
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
3619
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
3620
3620
  */
3621
3621
  async cancelOrder(id, symbol = undefined, params = {}) {
3622
3622
  if (symbol === undefined) {
@@ -3675,7 +3675,7 @@ class okx extends okx$1["default"] {
3675
3675
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3676
3676
  * @param {boolean} [params.trigger] whether the order is a stop/trigger order
3677
3677
  * @param {boolean} [params.trailing] set to true if you want to cancel trailing orders
3678
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3678
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
3679
3679
  */
3680
3680
  async cancelOrders(ids, symbol = undefined, params = {}) {
3681
3681
  // 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.
@@ -3785,7 +3785,7 @@ class okx extends okx$1["default"] {
3785
3785
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3786
3786
  * @param {boolean} [params.trigger] whether the order is a stop/trigger order
3787
3787
  * @param {boolean} [params.trailing] set to true if you want to cancel trailing orders
3788
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
3788
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
3789
3789
  */
3790
3790
  async cancelOrdersForSymbols(orders, params = {}) {
3791
3791
  await this.loadMarkets();
@@ -4197,7 +4197,7 @@ class okx extends okx$1["default"] {
4197
4197
  * @param {string} symbol unified market symbol
4198
4198
  * @param {object} [params] extra and exchange specific parameters
4199
4199
  * @param {boolean} [params.trigger] true if fetching trigger orders
4200
- * @returns [an order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
4200
+ * @returns [an order structure]{@link https://docs.ccxt.com/?id=order-structure}
4201
4201
  */
4202
4202
  async fetchOrder(id, symbol = undefined, params = {}) {
4203
4203
  if (symbol === undefined) {
@@ -4356,7 +4356,7 @@ class okx extends okx$1["default"] {
4356
4356
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
4357
4357
  * @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)
4358
4358
  * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
4359
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4359
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
4360
4360
  */
4361
4361
  async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4362
4362
  await this.loadMarkets();
@@ -4520,7 +4520,7 @@ class okx extends okx$1["default"] {
4520
4520
  * @param {string} [params.algoId] Algo ID "'433845797218942976'"
4521
4521
  * @param {int} [params.until] timestamp in ms to fetch orders for
4522
4522
  * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
4523
- * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4523
+ * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
4524
4524
  */
4525
4525
  async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4526
4526
  await this.loadMarkets();
@@ -4710,7 +4710,7 @@ class okx extends okx$1["default"] {
4710
4710
  * @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)
4711
4711
  * @param {string} [params.method] method to be used, either 'privateGetTradeOrdersHistory', 'privateGetTradeOrdersHistoryArchive' or 'privateGetTradeOrdersAlgoHistory' default is 'privateGetTradeOrdersHistory'
4712
4712
  * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
4713
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
4713
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
4714
4714
  */
4715
4715
  async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4716
4716
  await this.loadMarkets();
@@ -4892,7 +4892,7 @@ class okx extends okx$1["default"] {
4892
4892
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4893
4893
  * @param {int} [params.until] Timestamp in ms of the latest time to retrieve trades for
4894
4894
  * @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)
4895
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4895
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
4896
4896
  */
4897
4897
  async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4898
4898
  await this.loadMarkets();
@@ -4963,7 +4963,7 @@ class okx extends okx$1["default"] {
4963
4963
  * @param {int} [since] the earliest time in ms to fetch trades for
4964
4964
  * @param {int} [limit] the maximum number of trades to retrieve
4965
4965
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4966
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
4966
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
4967
4967
  */
4968
4968
  async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
4969
4969
  const request = {
@@ -4989,7 +4989,7 @@ class okx extends okx$1["default"] {
4989
4989
  * @param {string} [params.marginMode] 'cross' or 'isolated'
4990
4990
  * @param {int} [params.until] the latest time in ms to fetch entries for
4991
4991
  * @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)
4992
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
4992
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
4993
4993
  */
4994
4994
  async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
4995
4995
  await this.loadMarkets();
@@ -5288,7 +5288,7 @@ class okx extends okx$1["default"] {
5288
5288
  * @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
5289
5289
  * @param {string} code unified currency code of the currency for the deposit address
5290
5290
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5291
- * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
5291
+ * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
5292
5292
  */
5293
5293
  async fetchDepositAddressesByNetwork(code, params = {}) {
5294
5294
  await this.loadMarkets();
@@ -5331,7 +5331,7 @@ class okx extends okx$1["default"] {
5331
5331
  * @param {string} code unified currency code
5332
5332
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5333
5333
  * @param {string} [params.network] the network name for the deposit address
5334
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
5334
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
5335
5335
  */
5336
5336
  async fetchDepositAddress(code, params = {}) {
5337
5337
  await this.loadMarkets();
@@ -5366,7 +5366,7 @@ class okx extends okx$1["default"] {
5366
5366
  * @param {string} address the address to withdraw to
5367
5367
  * @param {string} tag
5368
5368
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5369
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5369
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
5370
5370
  */
5371
5371
  async withdraw(code, amount, address, tag = undefined, params = {}) {
5372
5372
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
@@ -5430,7 +5430,7 @@ class okx extends okx$1["default"] {
5430
5430
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5431
5431
  * @param {int} [params.until] the latest time in ms to fetch entries for
5432
5432
  * @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)
5433
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5433
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
5434
5434
  */
5435
5435
  async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
5436
5436
  await this.loadMarkets();
@@ -5508,7 +5508,7 @@ class okx extends okx$1["default"] {
5508
5508
  * @param {string} id deposit id
5509
5509
  * @param {string} code filter by currency code
5510
5510
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5511
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5511
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
5512
5512
  */
5513
5513
  async fetchDeposit(id, code = undefined, params = {}) {
5514
5514
  await this.loadMarkets();
@@ -5536,7 +5536,7 @@ class okx extends okx$1["default"] {
5536
5536
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5537
5537
  * @param {int} [params.until] the latest time in ms to fetch entries for
5538
5538
  * @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)
5539
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5539
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
5540
5540
  */
5541
5541
  async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
5542
5542
  await this.loadMarkets();
@@ -5606,7 +5606,7 @@ class okx extends okx$1["default"] {
5606
5606
  * @param {string} id withdrawal id
5607
5607
  * @param {string} code unified currency code of the currency withdrawn, default is undefined
5608
5608
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5609
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
5609
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
5610
5610
  */
5611
5611
  async fetchWithdrawal(id, code = undefined, params = {}) {
5612
5612
  await this.loadMarkets();
@@ -5794,7 +5794,7 @@ class okx extends okx$1["default"] {
5794
5794
  * @param {string} symbol unified market symbol
5795
5795
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5796
5796
  * @param {string} [params.marginMode] 'cross' or 'isolated'
5797
- * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
5797
+ * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
5798
5798
  */
5799
5799
  async fetchLeverage(symbol, params = {}) {
5800
5800
  await this.loadMarkets();
@@ -5866,7 +5866,7 @@ class okx extends okx$1["default"] {
5866
5866
  * @param {string} symbol unified market symbol of the market the position is held in, default is undefined
5867
5867
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5868
5868
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
5869
- * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
5869
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
5870
5870
  */
5871
5871
  async fetchPosition(symbol, params = {}) {
5872
5872
  await this.loadMarkets();
@@ -5943,7 +5943,7 @@ class okx extends okx$1["default"] {
5943
5943
  * @param {string[]|undefined} symbols list of unified market symbols
5944
5944
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5945
5945
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
5946
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
5946
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
5947
5947
  */
5948
5948
  async fetchPositions(symbols = undefined, params = {}) {
5949
5949
  await this.loadMarkets();
@@ -6034,7 +6034,7 @@ class okx extends okx$1["default"] {
6034
6034
  * @param {string} symbol unified market symbol
6035
6035
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6036
6036
  * @param {string} [params.instType] MARGIN (if needed)
6037
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
6037
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
6038
6038
  */
6039
6039
  async fetchPositionsForSymbol(symbol, params = {}) {
6040
6040
  return await this.fetchPositions([symbol], params);
@@ -6222,7 +6222,7 @@ class okx extends okx$1["default"] {
6222
6222
  * @param {string} fromAccount account to transfer from
6223
6223
  * @param {string} toAccount account to transfer to
6224
6224
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6225
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
6225
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
6226
6226
  */
6227
6227
  async transfer(code, amount, fromAccount, toAccount, params = {}) {
6228
6228
  await this.loadMarkets();
@@ -6396,7 +6396,7 @@ class okx extends okx$1["default"] {
6396
6396
  * @param {int} [since] the earliest time in ms to fetch transfers for
6397
6397
  * @param {int} [limit] the maximum number of transfers structures to retrieve
6398
6398
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6399
- * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
6399
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
6400
6400
  */
6401
6401
  async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
6402
6402
  await this.loadMarkets();
@@ -6591,7 +6591,7 @@ class okx extends okx$1["default"] {
6591
6591
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate
6592
6592
  * @param {string} symbol unified market symbol
6593
6593
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6594
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
6594
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
6595
6595
  */
6596
6596
  async fetchFundingInterval(symbol, params = {}) {
6597
6597
  return await this.fetchFundingRate(symbol, params);
@@ -6603,7 +6603,7 @@ class okx extends okx$1["default"] {
6603
6603
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate
6604
6604
  * @param {string} symbol unified market symbol
6605
6605
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6606
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
6606
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
6607
6607
  */
6608
6608
  async fetchFundingRate(symbol, params = {}) {
6609
6609
  await this.loadMarkets();
@@ -6642,7 +6642,7 @@ class okx extends okx$1["default"] {
6642
6642
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-funding-rate
6643
6643
  * @param {string[]} symbols unified market symbols
6644
6644
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6645
- * @returns {object} a dictionary of [funding rates structure]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}
6645
+ * @returns {object} a dictionary of [funding rates structure]{@link https://docs.ccxt.com/?id=funding-rates-structure}
6646
6646
  */
6647
6647
  async fetchFundingRates(symbols = undefined, params = {}) {
6648
6648
  await this.loadMarkets();
@@ -6677,7 +6677,7 @@ class okx extends okx$1["default"] {
6677
6677
  * @param {int} [since] the earliest time in ms to fetch funding history for
6678
6678
  * @param {int} [limit] the maximum number of funding history structures to retrieve
6679
6679
  * @param {object} [params] extra parameters specific to the exchange API endpoint
6680
- * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
6680
+ * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
6681
6681
  */
6682
6682
  async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
6683
6683
  await this.loadMarkets();
@@ -7014,7 +7014,7 @@ class okx extends okx$1["default"] {
7014
7014
  * @description fetch the borrow interest rates of all currencies
7015
7015
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-interest-rate
7016
7016
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7017
- * @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
7017
+ * @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
7018
7018
  */
7019
7019
  async fetchCrossBorrowRates(params = {}) {
7020
7020
  await this.loadMarkets();
@@ -7045,7 +7045,7 @@ class okx extends okx$1["default"] {
7045
7045
  * @see https://www.okx.com/docs-v5/en/#trading-account-rest-api-get-interest-rate
7046
7046
  * @param {string} code unified currency code
7047
7047
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7048
- * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
7048
+ * @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
7049
7049
  */
7050
7050
  async fetchCrossBorrowRate(code, params = {}) {
7051
7051
  await this.loadMarkets();
@@ -7132,7 +7132,7 @@ class okx extends okx$1["default"] {
7132
7132
  * @param {int} [since] timestamp in ms of the earliest borrowRate, default is undefined
7133
7133
  * @param {int} [limit] max number of borrow rate prices to return, default is undefined
7134
7134
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7135
- * @returns {object} a dictionary of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} indexed by the market symbol
7135
+ * @returns {object} a dictionary of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} indexed by the market symbol
7136
7136
  */
7137
7137
  async fetchBorrowRateHistories(codes = undefined, since = undefined, limit = undefined, params = {}) {
7138
7138
  await this.loadMarkets();
@@ -7173,9 +7173,9 @@ class okx extends okx$1["default"] {
7173
7173
  * @see https://www.okx.com/docs-v5/en/#financial-product-savings-get-public-borrow-history-public
7174
7174
  * @param {string} code unified currency code
7175
7175
  * @param {int} [since] timestamp for the earliest borrow rate
7176
- * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} to retrieve
7176
+ * @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} to retrieve
7177
7177
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7178
- * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
7178
+ * @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
7179
7179
  */
7180
7180
  async fetchBorrowRateHistory(code, since = undefined, limit = undefined, params = {}) {
7181
7181
  await this.loadMarkets();
@@ -7326,7 +7326,7 @@ class okx extends okx$1["default"] {
7326
7326
  * @param {string} symbol unified market symbol
7327
7327
  * @param {float} amount the amount of margin to remove
7328
7328
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7329
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
7329
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
7330
7330
  */
7331
7331
  async reduceMargin(symbol, amount, params = {}) {
7332
7332
  return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
@@ -7339,7 +7339,7 @@ class okx extends okx$1["default"] {
7339
7339
  * @param {string} symbol unified market symbol
7340
7340
  * @param {float} amount amount of margin to add
7341
7341
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7342
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
7342
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
7343
7343
  */
7344
7344
  async addMargin(symbol, amount, params = {}) {
7345
7345
  return await this.modifyMarginHelper(symbol, amount, 'add', params);
@@ -7352,7 +7352,7 @@ class okx extends okx$1["default"] {
7352
7352
  * @param {string} symbol unified market symbol
7353
7353
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7354
7354
  * @param {string} [params.marginMode] 'cross' or 'isolated'
7355
- * @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
7355
+ * @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}
7356
7356
  */
7357
7357
  async fetchMarketLeverageTiers(symbol, params = {}) {
7358
7358
  await this.loadMarkets();
@@ -7452,11 +7452,11 @@ class okx extends okx$1["default"] {
7452
7452
  * @param {string} code the unified currency code for the currency of the interest
7453
7453
  * @param {string} symbol the market symbol of an isolated margin market, if undefined, the interest for cross margin markets is returned
7454
7454
  * @param {int} [since] timestamp in ms of the earliest time to receive interest records for
7455
- * @param {int} [limit] the number of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure} to retrieve
7455
+ * @param {int} [limit] the number of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure} to retrieve
7456
7456
  * @param {object} [params] exchange specific parameters
7457
7457
  * @param {int} [params.type] Loan type 1 - VIP loans 2 - Market loans *Default is Market loans*
7458
7458
  * @param {string} [params.marginMode] 'cross' or 'isolated'
7459
- * @returns {object[]} An list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
7459
+ * @returns {object[]} An list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
7460
7460
  */
7461
7461
  async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
7462
7462
  await this.loadMarkets();
@@ -7533,7 +7533,7 @@ class okx extends okx$1["default"] {
7533
7533
  * @param {string} code unified currency code of the currency to borrow
7534
7534
  * @param {float} amount the amount to borrow
7535
7535
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7536
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
7536
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
7537
7537
  */
7538
7538
  async borrowCrossMargin(code, amount, params = {}) {
7539
7539
  await this.loadMarkets();
@@ -7572,7 +7572,7 @@ class okx extends okx$1["default"] {
7572
7572
  * @param {float} amount the amount to repay
7573
7573
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7574
7574
  * @param {string} [params.id] the order ID of borrowing, it is necessary while repaying
7575
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
7575
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
7576
7576
  */
7577
7577
  async repayCrossMargin(code, amount, params = {}) {
7578
7578
  await this.loadMarkets();
@@ -7638,7 +7638,7 @@ class okx extends okx$1["default"] {
7638
7638
  * @see https://www.okx.com/docs-v5/en/#rest-api-public-data-get-open-interest
7639
7639
  * @param {string} symbol Unified CCXT market symbol
7640
7640
  * @param {object} [params] exchange specific parameters
7641
- * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
7641
+ * @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
7642
7642
  */
7643
7643
  async fetchOpenInterest(symbol, params = {}) {
7644
7644
  await this.loadMarkets();
@@ -7682,7 +7682,7 @@ class okx extends okx$1["default"] {
7682
7682
  * @param {string} params.instType Instrument type, options: 'SWAP', 'FUTURES', 'OPTION', default to 'SWAP'
7683
7683
  * @param {string} params.uly Underlying, Applicable to FUTURES/SWAP/OPTION, if instType is 'OPTION', either uly or instFamily is required
7684
7684
  * @param {string} params.instFamily Instrument family, Applicable to FUTURES/SWAP/OPTION, if instType is 'OPTION', either uly or instFamily is required
7685
- * @returns {object} an dictionary of [open interest structures]{@link https://docs.ccxt.com/#/?id=open-interest-structure}
7685
+ * @returns {object} an dictionary of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
7686
7686
  */
7687
7687
  async fetchOpenInterests(symbols = undefined, params = {}) {
7688
7688
  await this.loadMarkets();
@@ -7743,7 +7743,7 @@ class okx extends okx$1["default"] {
7743
7743
  * @param {int} [limit] Not used by okx, but parsed internally by CCXT
7744
7744
  * @param {object} [params] Exchange specific parameters
7745
7745
  * @param {int} [params.until] The time in ms of the latest record to retrieve as a unix timestamp
7746
- * @returns An array of [open interest structures]{@link https://docs.ccxt.com/#/?id=open-interest-structure}
7746
+ * @returns An array of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
7747
7747
  */
7748
7748
  async fetchOpenInterestHistory(symbol, timeframe = '1d', since = undefined, limit = undefined, params = {}) {
7749
7749
  const options = this.safeDict(this.options, 'fetchOpenInterestHistory', {});
@@ -7875,7 +7875,7 @@ class okx extends okx$1["default"] {
7875
7875
  * @see https://www.okx.com/docs-v5/en/#rest-api-funding-get-currencies
7876
7876
  * @param {string[]|undefined} codes list of unified currency codes
7877
7877
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7878
- * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
7878
+ * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/?id=fee-structure}
7879
7879
  */
7880
7880
  async fetchDepositWithdrawFees(codes = undefined, params = {}) {
7881
7881
  await this.loadMarkets();
@@ -8004,7 +8004,7 @@ class okx extends okx$1["default"] {
8004
8004
  * @param {int} [since] timestamp in ms
8005
8005
  * @param {int} [limit] number of records
8006
8006
  * @param {object} [params] exchange specific params
8007
- * @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/#/?id=settlement-history-structure}
8007
+ * @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
8008
8008
  */
8009
8009
  async fetchSettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
8010
8010
  if (symbol === undefined) {
@@ -8103,7 +8103,7 @@ class okx extends okx$1["default"] {
8103
8103
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-underlying
8104
8104
  * @param {object} [params] exchange specific params
8105
8105
  * @param {string} [params.type] the contract market type, 'option', 'swap' or 'future', the default is 'option'
8106
- * @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/#/?id=underlying-assets-structure}
8106
+ * @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/?id=underlying-assets-structure}
8107
8107
  */
8108
8108
  async fetchUnderlyingAssets(params = {}) {
8109
8109
  await this.loadMarkets();
@@ -8141,7 +8141,7 @@ class okx extends okx$1["default"] {
8141
8141
  * @see https://www.okx.com/docs-v5/en/#public-data-rest-api-get-option-market-data
8142
8142
  * @param {string} symbol unified symbol of the market to fetch greeks for
8143
8143
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8144
- * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
8144
+ * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
8145
8145
  */
8146
8146
  async fetchGreeks(symbol, params = {}) {
8147
8147
  await this.loadMarkets();
@@ -8202,7 +8202,7 @@ class okx extends okx$1["default"] {
8202
8202
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8203
8203
  * @param {string} params.uly Underlying, either uly or instFamily is required
8204
8204
  * @param {string} params.instFamily Instrument family, either uly or instFamily is required
8205
- * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
8205
+ * @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
8206
8206
  */
8207
8207
  async fetchAllGreeks(symbols = undefined, params = {}) {
8208
8208
  await this.loadMarkets();
@@ -8334,7 +8334,7 @@ class okx extends okx$1["default"] {
8334
8334
  * EXCHANGE SPECIFIC PARAMETERS
8335
8335
  * @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
8336
8336
  * @param {string} [params.tag] order tag a combination of case-sensitive alphanumerics, all numbers, or all letters of up to 16 characters
8337
- * @returns {object[]} [A list of position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
8337
+ * @returns {object[]} [A list of position structures]{@link https://docs.ccxt.com/?id=position-structure}
8338
8338
  */
8339
8339
  async closePosition(symbol, side = undefined, params = {}) {
8340
8340
  await this.loadMarkets();
@@ -8394,7 +8394,7 @@ class okx extends okx$1["default"] {
8394
8394
  * @see https://www.okx.com/docs-v5/en/#order-book-trading-market-data-get-ticker
8395
8395
  * @param {string} symbol unified market symbol
8396
8396
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8397
- * @returns {object} an [option chain structure]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
8397
+ * @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
8398
8398
  */
8399
8399
  async fetchOption(symbol, params = {}) {
8400
8400
  await this.loadMarkets();
@@ -8441,7 +8441,7 @@ class okx extends okx$1["default"] {
8441
8441
  * @param {string} code base currency to fetch an option chain for
8442
8442
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8443
8443
  * @param {string} [params.uly] the underlying asset, can be obtained from fetchUnderlyingAssets ()
8444
- * @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
8444
+ * @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/?id=option-chain-structure}
8445
8445
  */
8446
8446
  async fetchOptionChain(code, params = {}) {
8447
8447
  await this.loadMarkets();
@@ -8533,7 +8533,7 @@ class okx extends okx$1["default"] {
8533
8533
  * @param {string} toCode the currency that you want to buy and convert into
8534
8534
  * @param {float} [amount] how much you want to trade in units of the from currency
8535
8535
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8536
- * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
8536
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
8537
8537
  */
8538
8538
  async fetchConvertQuote(fromCode, toCode, amount = undefined, params = {}) {
8539
8539
  await this.loadMarkets();
@@ -8586,7 +8586,7 @@ class okx extends okx$1["default"] {
8586
8586
  * @param {string} toCode the currency that you want to buy and convert into
8587
8587
  * @param {float} [amount] how much you want to trade in units of the from currency
8588
8588
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8589
- * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
8589
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
8590
8590
  */
8591
8591
  async createConvertTrade(id, fromCode, toCode, amount = undefined, params = {}) {
8592
8592
  await this.loadMarkets();
@@ -8637,7 +8637,7 @@ class okx extends okx$1["default"] {
8637
8637
  * @param {string} id the id of the trade that you want to fetch
8638
8638
  * @param {string} [code] the unified currency code of the conversion trade
8639
8639
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8640
- * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
8640
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
8641
8641
  */
8642
8642
  async fetchConvertTrade(id, code = undefined, params = {}) {
8643
8643
  await this.loadMarkets();
@@ -8690,7 +8690,7 @@ class okx extends okx$1["default"] {
8690
8690
  * @param {int} [limit] the maximum number of conversion structures to retrieve
8691
8691
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8692
8692
  * @param {int} [params.until] timestamp in ms of the latest conversion to fetch
8693
- * @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/#/?id=conversion-structure}
8693
+ * @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
8694
8694
  */
8695
8695
  async fetchConvertTradeHistory(code = undefined, since = undefined, limit = undefined, params = {}) {
8696
8696
  await this.loadMarkets();
@@ -8911,7 +8911,7 @@ class okx extends okx$1["default"] {
8911
8911
  * @param {int} [limit] the maximum number of entries to retrieve
8912
8912
  * @param {object} params extra parameters specific to the exchange api endpoint
8913
8913
  * @param {boolean} [params.auto] true if fetching auto margin increases
8914
- * @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
8914
+ * @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/?id=margin-loan-structure}
8915
8915
  */
8916
8916
  async fetchMarginAdjustmentHistory(symbol = undefined, type = undefined, since = undefined, limit = undefined, params = {}) {
8917
8917
  await this.loadMarkets();
@@ -9020,7 +9020,7 @@ class okx extends okx$1["default"] {
9020
9020
  * @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
9021
9021
  * @param {string} [params.before] timestamp in ms of the earliest position to fetch based on the last update time of the position
9022
9022
  * @param {string} [params.after] timestamp in ms of the latest position to fetch based on the last update time of the position
9023
- * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
9023
+ * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
9024
9024
  */
9025
9025
  async fetchPositionsHistory(symbols = undefined, since = undefined, limit = undefined, params = {}) {
9026
9026
  await this.loadMarkets();
@@ -9095,7 +9095,7 @@ class okx extends okx$1["default"] {
9095
9095
  * @param {int} [limit] the maximum number of long short ratio structures to retrieve
9096
9096
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9097
9097
  * @param {int} [params.until] timestamp in ms of the latest ratio to fetch
9098
- * @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/#/?id=long-short-ratio-structure}
9098
+ * @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/?id=long-short-ratio-structure}
9099
9099
  */
9100
9100
  async fetchLongShortRatioHistory(symbol = undefined, timeframe = undefined, since = undefined, limit = undefined, params = {}) {
9101
9101
  await this.loadMarkets();