@nktkas/hyperliquid 0.25.0-beta.2 → 0.25.0-beta.4

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 (329) hide show
  1. package/README.md +114 -106
  2. package/esm/bin/_utils.d.ts +80 -0
  3. package/esm/bin/_utils.d.ts.map +1 -0
  4. package/esm/bin/_utils.js +112 -0
  5. package/esm/bin/_utils.js.map +1 -0
  6. package/esm/bin/cli.d.ts +3 -0
  7. package/esm/bin/cli.d.ts.map +1 -0
  8. package/esm/bin/cli.js +334 -0
  9. package/esm/bin/cli.js.map +1 -0
  10. package/esm/src/{errors.d.ts → _errors.d.ts} +1 -1
  11. package/esm/src/_errors.d.ts.map +1 -0
  12. package/esm/src/{errors.js → _errors.js} +1 -1
  13. package/esm/src/_errors.js.map +1 -0
  14. package/esm/src/clients/exchange.d.ts +91 -91
  15. package/esm/src/clients/exchange.d.ts.map +1 -1
  16. package/esm/src/clients/exchange.js +61 -56
  17. package/esm/src/clients/exchange.js.map +1 -1
  18. package/esm/src/clients/info.d.ts +134 -112
  19. package/esm/src/clients/info.d.ts.map +1 -1
  20. package/esm/src/clients/info.js +95 -72
  21. package/esm/src/clients/info.js.map +1 -1
  22. package/esm/src/clients/multiSign.d.ts +2 -2
  23. package/esm/src/clients/multiSign.d.ts.map +1 -1
  24. package/esm/src/clients/multiSign.js +3 -1
  25. package/esm/src/clients/multiSign.js.map +1 -1
  26. package/esm/src/clients/subscription.d.ts +23 -23
  27. package/esm/src/clients/subscription.d.ts.map +1 -1
  28. package/esm/src/clients/subscription.js +8 -11
  29. package/esm/src/clients/subscription.js.map +1 -1
  30. package/esm/src/mod.d.ts +21 -0
  31. package/esm/src/mod.d.ts.map +1 -0
  32. package/esm/src/mod.js +14 -0
  33. package/esm/src/mod.js.map +1 -0
  34. package/esm/src/schemas/_base.d.ts +8 -6
  35. package/esm/src/schemas/_base.d.ts.map +1 -1
  36. package/esm/src/schemas/_base.js +6 -4
  37. package/esm/src/schemas/_base.js.map +1 -1
  38. package/esm/src/schemas/exchange/requests.d.ts +332 -313
  39. package/esm/src/schemas/exchange/requests.d.ts.map +1 -1
  40. package/esm/src/schemas/exchange/requests.js +52 -61
  41. package/esm/src/schemas/exchange/requests.js.map +1 -1
  42. package/esm/src/schemas/exchange/responses.d.ts +10 -10
  43. package/esm/src/schemas/exchange/responses.js +3 -3
  44. package/esm/src/schemas/exchange/responses.js.map +1 -1
  45. package/esm/src/schemas/explorer/requests.d.ts +1 -1
  46. package/esm/src/schemas/explorer/requests.js +2 -2
  47. package/esm/src/schemas/explorer/requests.js.map +1 -1
  48. package/esm/src/schemas/explorer/responses.d.ts +16 -16
  49. package/esm/src/schemas/explorer/responses.js +3 -3
  50. package/esm/src/schemas/explorer/responses.js.map +1 -1
  51. package/esm/src/schemas/info/accounts.d.ts +975 -229
  52. package/esm/src/schemas/info/accounts.d.ts.map +1 -1
  53. package/esm/src/schemas/info/accounts.js +65 -21
  54. package/esm/src/schemas/info/accounts.js.map +1 -1
  55. package/esm/src/schemas/info/assets.d.ts +110 -110
  56. package/esm/src/schemas/info/assets.js +9 -9
  57. package/esm/src/schemas/info/assets.js.map +1 -1
  58. package/esm/src/schemas/info/markets.d.ts +25 -25
  59. package/esm/src/schemas/info/markets.js +3 -3
  60. package/esm/src/schemas/info/markets.js.map +1 -1
  61. package/esm/src/schemas/info/orders.d.ts +175 -175
  62. package/esm/src/schemas/info/orders.js +3 -3
  63. package/esm/src/schemas/info/orders.js.map +1 -1
  64. package/esm/src/schemas/info/requests.d.ts +31 -16
  65. package/esm/src/schemas/info/requests.d.ts.map +1 -1
  66. package/esm/src/schemas/info/requests.js +51 -40
  67. package/esm/src/schemas/info/requests.js.map +1 -1
  68. package/esm/src/schemas/info/validators.d.ts +30 -30
  69. package/esm/src/schemas/info/validators.d.ts.map +1 -1
  70. package/esm/src/schemas/info/validators.js +8 -8
  71. package/esm/src/schemas/info/validators.js.map +1 -1
  72. package/esm/src/schemas/info/vaults.d.ts +46 -46
  73. package/esm/src/schemas/info/vaults.js +10 -10
  74. package/esm/src/schemas/info/vaults.js.map +1 -1
  75. package/esm/src/schemas/mod.d.ts +3 -3
  76. package/esm/src/schemas/mod.d.ts.map +1 -1
  77. package/esm/src/schemas/mod.js +3 -3
  78. package/esm/src/schemas/mod.js.map +1 -1
  79. package/esm/src/schemas/subscriptions/requests.d.ts +4 -4
  80. package/esm/src/schemas/subscriptions/requests.d.ts.map +1 -1
  81. package/esm/src/schemas/subscriptions/requests.js +17 -17
  82. package/esm/src/schemas/subscriptions/requests.js.map +1 -1
  83. package/esm/src/schemas/subscriptions/responses.d.ts +618 -618
  84. package/esm/src/schemas/subscriptions/responses.js +14 -14
  85. package/esm/src/schemas/subscriptions/responses.js.map +1 -1
  86. package/esm/src/signing/mod.d.ts +1 -1
  87. package/esm/src/signing/mod.d.ts.map +1 -1
  88. package/esm/src/signing/mod.js +6 -6
  89. package/esm/src/signing/mod.js.map +1 -1
  90. package/esm/src/signing/signTypedData/ethers.d.ts.map +1 -0
  91. package/esm/src/signing/signTypedData/ethers.js.map +1 -0
  92. package/esm/src/signing/signTypedData/mod.d.ts.map +1 -0
  93. package/esm/src/signing/signTypedData/mod.js.map +1 -0
  94. package/esm/src/signing/signTypedData/private_key.d.ts.map +1 -0
  95. package/esm/src/signing/{_signTypedData → signTypedData}/private_key.js +18 -17
  96. package/esm/src/signing/signTypedData/private_key.js.map +1 -0
  97. package/esm/src/signing/signTypedData/viem.d.ts.map +1 -0
  98. package/esm/src/signing/signTypedData/viem.js.map +1 -0
  99. package/esm/src/transports/_polyfills.d.ts +12 -0
  100. package/esm/src/transports/_polyfills.d.ts.map +1 -0
  101. package/esm/src/transports/_polyfills.js +40 -0
  102. package/esm/src/transports/_polyfills.js.map +1 -0
  103. package/esm/src/transports/base.d.ts +8 -8
  104. package/esm/src/transports/base.d.ts.map +1 -1
  105. package/esm/src/transports/base.js +2 -2
  106. package/esm/src/transports/base.js.map +1 -1
  107. package/esm/src/transports/http/http_transport.d.ts +11 -4
  108. package/esm/src/transports/http/http_transport.d.ts.map +1 -1
  109. package/esm/src/transports/http/http_transport.js +17 -6
  110. package/esm/src/transports/http/http_transport.js.map +1 -1
  111. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts +8 -7
  112. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
  113. package/esm/src/transports/websocket/_hyperliquid_event_target.js +14 -33
  114. package/esm/src/transports/websocket/_hyperliquid_event_target.js.map +1 -1
  115. package/esm/src/transports/websocket/_reconnecting_websocket.d.ts +26 -29
  116. package/esm/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -1
  117. package/esm/src/transports/websocket/_reconnecting_websocket.js +82 -76
  118. package/esm/src/transports/websocket/_reconnecting_websocket.js.map +1 -1
  119. package/esm/src/transports/websocket/_websocket_async_request.d.ts +6 -0
  120. package/esm/src/transports/websocket/_websocket_async_request.d.ts.map +1 -1
  121. package/esm/src/transports/websocket/_websocket_async_request.js +49 -41
  122. package/esm/src/transports/websocket/_websocket_async_request.js.map +1 -1
  123. package/esm/src/transports/websocket/websocket_transport.d.ts +48 -70
  124. package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  125. package/esm/src/transports/websocket/websocket_transport.js +90 -103
  126. package/esm/src/transports/websocket/websocket_transport.js.map +1 -1
  127. package/package.json +12 -8
  128. package/script/bin/_utils.d.ts +80 -0
  129. package/script/bin/_utils.d.ts.map +1 -0
  130. package/script/bin/_utils.js +116 -0
  131. package/script/bin/_utils.js.map +1 -0
  132. package/script/bin/cli.d.ts +3 -0
  133. package/script/bin/cli.d.ts.map +1 -0
  134. package/script/bin/cli.js +369 -0
  135. package/script/bin/cli.js.map +1 -0
  136. package/script/src/{errors.d.ts → _errors.d.ts} +1 -1
  137. package/script/src/_errors.d.ts.map +1 -0
  138. package/script/src/{errors.js → _errors.js} +1 -1
  139. package/script/src/_errors.js.map +1 -0
  140. package/script/src/clients/exchange.d.ts +91 -91
  141. package/script/src/clients/exchange.d.ts.map +1 -1
  142. package/script/src/clients/exchange.js +61 -56
  143. package/script/src/clients/exchange.js.map +1 -1
  144. package/script/src/clients/info.d.ts +134 -112
  145. package/script/src/clients/info.d.ts.map +1 -1
  146. package/script/src/clients/info.js +94 -71
  147. package/script/src/clients/info.js.map +1 -1
  148. package/script/src/clients/multiSign.d.ts +2 -2
  149. package/script/src/clients/multiSign.d.ts.map +1 -1
  150. package/script/src/clients/multiSign.js +9 -7
  151. package/script/src/clients/multiSign.js.map +1 -1
  152. package/script/src/clients/subscription.d.ts +23 -23
  153. package/script/src/clients/subscription.d.ts.map +1 -1
  154. package/script/src/clients/subscription.js +8 -11
  155. package/script/src/clients/subscription.js.map +1 -1
  156. package/script/src/mod.d.ts +21 -0
  157. package/script/src/mod.d.ts.map +1 -0
  158. package/script/{mod.js → src/mod.js} +12 -8
  159. package/script/src/mod.js.map +1 -0
  160. package/script/src/schemas/_base.d.ts +8 -6
  161. package/script/src/schemas/_base.d.ts.map +1 -1
  162. package/script/src/schemas/_base.js +7 -5
  163. package/script/src/schemas/_base.js.map +1 -1
  164. package/script/src/schemas/exchange/requests.d.ts +332 -313
  165. package/script/src/schemas/exchange/requests.d.ts.map +1 -1
  166. package/script/src/schemas/exchange/requests.js +51 -60
  167. package/script/src/schemas/exchange/requests.js.map +1 -1
  168. package/script/src/schemas/exchange/responses.d.ts +10 -10
  169. package/script/src/schemas/exchange/responses.js +2 -2
  170. package/script/src/schemas/exchange/responses.js.map +1 -1
  171. package/script/src/schemas/explorer/requests.d.ts +1 -1
  172. package/script/src/schemas/explorer/requests.js +1 -1
  173. package/script/src/schemas/explorer/requests.js.map +1 -1
  174. package/script/src/schemas/explorer/responses.d.ts +16 -16
  175. package/script/src/schemas/explorer/responses.js +2 -2
  176. package/script/src/schemas/explorer/responses.js.map +1 -1
  177. package/script/src/schemas/info/accounts.d.ts +975 -229
  178. package/script/src/schemas/info/accounts.d.ts.map +1 -1
  179. package/script/src/schemas/info/accounts.js +65 -21
  180. package/script/src/schemas/info/accounts.js.map +1 -1
  181. package/script/src/schemas/info/assets.d.ts +110 -110
  182. package/script/src/schemas/info/assets.js +8 -8
  183. package/script/src/schemas/info/assets.js.map +1 -1
  184. package/script/src/schemas/info/markets.d.ts +25 -25
  185. package/script/src/schemas/info/markets.js +2 -2
  186. package/script/src/schemas/info/markets.js.map +1 -1
  187. package/script/src/schemas/info/orders.d.ts +175 -175
  188. package/script/src/schemas/info/orders.js +2 -2
  189. package/script/src/schemas/info/orders.js.map +1 -1
  190. package/script/src/schemas/info/requests.d.ts +31 -16
  191. package/script/src/schemas/info/requests.d.ts.map +1 -1
  192. package/script/src/schemas/info/requests.js +51 -40
  193. package/script/src/schemas/info/requests.js.map +1 -1
  194. package/script/src/schemas/info/validators.d.ts +30 -30
  195. package/script/src/schemas/info/validators.d.ts.map +1 -1
  196. package/script/src/schemas/info/validators.js +7 -7
  197. package/script/src/schemas/info/validators.js.map +1 -1
  198. package/script/src/schemas/info/vaults.d.ts +46 -46
  199. package/script/src/schemas/info/vaults.js +9 -9
  200. package/script/src/schemas/info/vaults.js.map +1 -1
  201. package/script/src/schemas/mod.d.ts +3 -3
  202. package/script/src/schemas/mod.d.ts.map +1 -1
  203. package/script/src/schemas/mod.js +4 -4
  204. package/script/src/schemas/mod.js.map +1 -1
  205. package/script/src/schemas/subscriptions/requests.d.ts +4 -4
  206. package/script/src/schemas/subscriptions/requests.d.ts.map +1 -1
  207. package/script/src/schemas/subscriptions/requests.js +16 -16
  208. package/script/src/schemas/subscriptions/requests.js.map +1 -1
  209. package/script/src/schemas/subscriptions/responses.d.ts +618 -618
  210. package/script/src/schemas/subscriptions/responses.js +13 -13
  211. package/script/src/schemas/subscriptions/responses.js.map +1 -1
  212. package/script/src/signing/mod.d.ts +1 -1
  213. package/script/src/signing/mod.d.ts.map +1 -1
  214. package/script/src/signing/mod.js +40 -7
  215. package/script/src/signing/mod.js.map +1 -1
  216. package/script/src/signing/signTypedData/ethers.d.ts.map +1 -0
  217. package/script/src/signing/signTypedData/ethers.js.map +1 -0
  218. package/script/src/signing/signTypedData/mod.d.ts.map +1 -0
  219. package/script/src/signing/signTypedData/mod.js.map +1 -0
  220. package/script/src/signing/signTypedData/private_key.d.ts.map +1 -0
  221. package/script/src/signing/{_signTypedData → signTypedData}/private_key.js +55 -21
  222. package/script/src/signing/signTypedData/private_key.js.map +1 -0
  223. package/script/src/signing/signTypedData/viem.d.ts.map +1 -0
  224. package/script/src/signing/signTypedData/viem.js.map +1 -0
  225. package/script/src/transports/_polyfills.d.ts +12 -0
  226. package/script/src/transports/_polyfills.d.ts.map +1 -0
  227. package/script/src/transports/_polyfills.js +43 -0
  228. package/script/src/transports/_polyfills.js.map +1 -0
  229. package/script/src/transports/base.d.ts +8 -8
  230. package/script/src/transports/base.d.ts.map +1 -1
  231. package/script/src/transports/base.js +3 -3
  232. package/script/src/transports/base.js.map +1 -1
  233. package/script/src/transports/http/http_transport.d.ts +11 -4
  234. package/script/src/transports/http/http_transport.d.ts.map +1 -1
  235. package/script/src/transports/http/http_transport.js +17 -6
  236. package/script/src/transports/http/http_transport.js.map +1 -1
  237. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts +8 -7
  238. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
  239. package/script/src/transports/websocket/_hyperliquid_event_target.js +47 -33
  240. package/script/src/transports/websocket/_hyperliquid_event_target.js.map +1 -1
  241. package/script/src/transports/websocket/_reconnecting_websocket.d.ts +26 -29
  242. package/script/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -1
  243. package/script/src/transports/websocket/_reconnecting_websocket.js +82 -76
  244. package/script/src/transports/websocket/_reconnecting_websocket.js.map +1 -1
  245. package/script/src/transports/websocket/_websocket_async_request.d.ts +6 -0
  246. package/script/src/transports/websocket/_websocket_async_request.d.ts.map +1 -1
  247. package/script/src/transports/websocket/_websocket_async_request.js +52 -43
  248. package/script/src/transports/websocket/_websocket_async_request.js.map +1 -1
  249. package/script/src/transports/websocket/websocket_transport.d.ts +48 -70
  250. package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
  251. package/script/src/transports/websocket/websocket_transport.js +92 -105
  252. package/script/src/transports/websocket/websocket_transport.js.map +1 -1
  253. package/src/bin/_utils.ts +185 -0
  254. package/src/bin/cli.ts +359 -0
  255. package/src/src/clients/exchange.ts +155 -144
  256. package/src/src/clients/info.ts +158 -124
  257. package/src/src/clients/multiSign.ts +13 -11
  258. package/src/src/clients/subscription.ts +32 -32
  259. package/src/src/mod.ts +29 -0
  260. package/src/src/schemas/_base.ts +25 -8
  261. package/src/src/schemas/exchange/requests.ts +59 -61
  262. package/src/src/schemas/exchange/responses.ts +3 -3
  263. package/src/src/schemas/explorer/requests.ts +2 -2
  264. package/src/src/schemas/explorer/responses.ts +3 -3
  265. package/src/src/schemas/info/accounts.ts +129 -21
  266. package/src/src/schemas/info/assets.ts +9 -9
  267. package/src/src/schemas/info/markets.ts +3 -3
  268. package/src/src/schemas/info/orders.ts +3 -3
  269. package/src/src/schemas/info/requests.ts +72 -40
  270. package/src/src/schemas/info/validators.ts +22 -24
  271. package/src/src/schemas/info/vaults.ts +10 -10
  272. package/src/src/schemas/mod.ts +3 -3
  273. package/src/src/schemas/subscriptions/requests.ts +27 -17
  274. package/src/src/schemas/subscriptions/responses.ts +14 -14
  275. package/src/src/signing/mod.ts +6 -6
  276. package/src/src/signing/{_signTypedData → signTypedData}/private_key.ts +22 -17
  277. package/src/src/transports/_polyfills.ts +41 -0
  278. package/src/src/transports/base.ts +8 -8
  279. package/src/src/transports/http/http_transport.ts +25 -14
  280. package/src/src/transports/websocket/_hyperliquid_event_target.ts +24 -51
  281. package/src/src/transports/websocket/_reconnecting_websocket.ts +107 -119
  282. package/src/src/transports/websocket/_websocket_async_request.ts +57 -59
  283. package/src/src/transports/websocket/websocket_transport.ts +126 -167
  284. package/esm/mod.d.ts +0 -20
  285. package/esm/mod.d.ts.map +0 -1
  286. package/esm/mod.js +0 -12
  287. package/esm/mod.js.map +0 -1
  288. package/esm/src/errors.d.ts.map +0 -1
  289. package/esm/src/errors.js.map +0 -1
  290. package/esm/src/signing/_signTypedData/ethers.d.ts.map +0 -1
  291. package/esm/src/signing/_signTypedData/ethers.js.map +0 -1
  292. package/esm/src/signing/_signTypedData/mod.d.ts.map +0 -1
  293. package/esm/src/signing/_signTypedData/mod.js.map +0 -1
  294. package/esm/src/signing/_signTypedData/private_key.d.ts.map +0 -1
  295. package/esm/src/signing/_signTypedData/private_key.js.map +0 -1
  296. package/esm/src/signing/_signTypedData/viem.d.ts.map +0 -1
  297. package/esm/src/signing/_signTypedData/viem.js.map +0 -1
  298. package/script/mod.d.ts +0 -20
  299. package/script/mod.d.ts.map +0 -1
  300. package/script/mod.js.map +0 -1
  301. package/script/src/errors.d.ts.map +0 -1
  302. package/script/src/errors.js.map +0 -1
  303. package/script/src/signing/_signTypedData/ethers.d.ts.map +0 -1
  304. package/script/src/signing/_signTypedData/ethers.js.map +0 -1
  305. package/script/src/signing/_signTypedData/mod.d.ts.map +0 -1
  306. package/script/src/signing/_signTypedData/mod.js.map +0 -1
  307. package/script/src/signing/_signTypedData/private_key.d.ts.map +0 -1
  308. package/script/src/signing/_signTypedData/private_key.js.map +0 -1
  309. package/script/src/signing/_signTypedData/viem.d.ts.map +0 -1
  310. package/script/src/signing/_signTypedData/viem.js.map +0 -1
  311. package/src/mod.ts +0 -28
  312. /package/esm/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
  313. /package/esm/src/signing/{_signTypedData → signTypedData}/ethers.js +0 -0
  314. /package/esm/src/signing/{_signTypedData → signTypedData}/mod.d.ts +0 -0
  315. /package/esm/src/signing/{_signTypedData → signTypedData}/mod.js +0 -0
  316. /package/esm/src/signing/{_signTypedData → signTypedData}/private_key.d.ts +0 -0
  317. /package/esm/src/signing/{_signTypedData → signTypedData}/viem.d.ts +0 -0
  318. /package/esm/src/signing/{_signTypedData → signTypedData}/viem.js +0 -0
  319. /package/script/src/signing/{_signTypedData → signTypedData}/ethers.d.ts +0 -0
  320. /package/script/src/signing/{_signTypedData → signTypedData}/ethers.js +0 -0
  321. /package/script/src/signing/{_signTypedData → signTypedData}/mod.d.ts +0 -0
  322. /package/script/src/signing/{_signTypedData → signTypedData}/mod.js +0 -0
  323. /package/script/src/signing/{_signTypedData → signTypedData}/private_key.d.ts +0 -0
  324. /package/script/src/signing/{_signTypedData → signTypedData}/viem.d.ts +0 -0
  325. /package/script/src/signing/{_signTypedData → signTypedData}/viem.js +0 -0
  326. /package/src/src/{errors.ts → _errors.ts} +0 -0
  327. /package/src/src/signing/{_signTypedData → signTypedData}/ethers.ts +0 -0
  328. /package/src/src/signing/{_signTypedData → signTypedData}/mod.ts +0 -0
  329. /package/src/src/signing/{_signTypedData → signTypedData}/viem.ts +0 -0
@@ -1,5 +1,6 @@
1
1
  import type { IRequestTransport } from "../transports/base.js";
2
- import { type ActiveAssetData, ActiveAssetDataRequest, type AllMids, AllMidsRequest, type BlockDetails, BlockDetailsRequest, type Book, type Candle, CandleSnapshotRequest, ClearinghouseStateRequest, type Delegation, DelegationsRequest, DelegatorHistoryRequest, type DelegatorReward, DelegatorRewardsRequest, type DelegatorSummary, DelegatorSummaryRequest, type DelegatorUpdate, type DeployAuctionStatus, type ExchangeStatus, type ExtraAgent, ExtraAgentsRequest, type Fill, FrontendOpenOrdersRequest, type FrontendOrder, type FrontendOrderStatus, type FundingHistory, FundingHistoryRequest, type GossipRootIps, HistoricalOrdersRequest, IsVipRequest, L2BookRequest, LeadingVaultsRequest, type LegalCheck, LegalCheckRequest, type MarginTable, MarginTableRequest, MaxBuilderFeeRequest, MetaAndAssetCtxsRequest, MetaRequest, type MultiSigSigners, OpenOrdersRequest, type Order, type OrderLookup, OrderStatusRequest, type PerpDex, type PerpDexLimits, PerpDexLimitsRequest, PerpsAtOpenInterestCapRequest, type PerpsClearinghouseState, type PerpsMeta, type PerpsMetaAndAssetCtxs, type PortfolioPeriods, PortfolioRequest, type PredictedFunding, type PreTransferCheck, PreTransferCheckRequest, RecentTradesRequest, type Referral, ReferralRequest, type SpotClearinghouseState, SpotClearinghouseStateRequest, type SpotDeployState, SpotDeployStateRequest, type SpotMeta, type SpotMetaAndAssetCtxs, type SubAccount, SubAccountsRequest, type TokenDetails, TokenDetailsRequest, type Trade, type TwapHistory, TwapHistoryRequest, type TwapSliceFill, type TxDetails, TxDetailsRequest, UserDetailsRequest, type UserFees, UserFeesRequest, UserFillsByTimeRequest, UserFillsRequest, UserFundingRequest, type UserFundingUpdate, type UserNonFundingLedgerUpdate, UserNonFundingLedgerUpdatesRequest, type UserRateLimit, UserRateLimitRequest, type UserRole, UserRoleRequest, UserToMultiSigSignersRequest, UserTwapSliceFillsByTimeRequest, UserTwapSliceFillsRequest, UserVaultEquitiesRequest, type ValidatorL1Vote, type ValidatorSummary, type VaultDetails, VaultDetailsRequest, type VaultEquity, type VaultLeading, type VaultSummary } from "../schemas/mod.js";
2
+ import { type ActiveAssetData, ActiveAssetDataRequest, type AllMids, AllMidsRequest, type BlockDetails, BlockDetailsRequest, type Book, type Candle, CandleSnapshotRequest, ClearinghouseStateRequest, type Delegation, DelegationsRequest, DelegatorHistoryRequest, type DelegatorReward, DelegatorRewardsRequest, type DelegatorSummary, DelegatorSummaryRequest, type DelegatorUpdate, type DeployAuctionStatus, type ExchangeStatus, type ExtraAgent, ExtraAgentsRequest, type Fill, FrontendOpenOrdersRequest, type FrontendOrder, type FrontendOrderStatus, type FundingHistory, FundingHistoryRequest, type GossipRootIps, HistoricalOrdersRequest, IsVipRequest, L2BookRequest, LeadingVaultsRequest, type LegalCheck, LegalCheckRequest, type MarginTable, MarginTableRequest, MaxBuilderFeeRequest, MetaAndAssetCtxsRequest, MetaRequest, type MultiSigSigners, OpenOrdersRequest, type Order, type OrderLookup, OrderStatusRequest, type PerpDex, type PerpDexLimits, PerpDexLimitsRequest, PerpsAtOpenInterestCapRequest, type PerpsClearinghouseState, type PerpsMeta, type PerpsMetaAndAssetCtxs, type PortfolioPeriods, PortfolioRequest, type PredictedFunding, type PreTransferCheck, PreTransferCheckRequest, RecentTradesRequest, type Referral, ReferralRequest, type SpotClearinghouseState, SpotClearinghouseStateRequest, type SpotDeployState, SpotDeployStateRequest, type SpotMeta, type SpotMetaAndAssetCtxs, type SubAccount, SubAccountsRequest, type TokenDetails, TokenDetailsRequest, type Trade, type TwapHistory, TwapHistoryRequest, type TwapSliceFill, type TxDetails, TxDetailsRequest, UserDetailsRequest, type UserFees, UserFeesRequest, UserFillsByTimeRequest, UserFillsRequest, UserFundingRequest, type UserFundingUpdate, type UserNonFundingLedgerUpdate, UserNonFundingLedgerUpdatesRequest, type UserRateLimit, UserRateLimitRequest, type UserRole, UserRoleRequest, UserToMultiSigSignersRequest, UserTwapSliceFillsByTimeRequest, UserTwapSliceFillsRequest, UserVaultEquitiesRequest, type ValidatorL1Vote, type ValidatorSummary, type VaultDetails, VaultDetailsRequest, type VaultEquity, type VaultLeading, type VaultSummary, type WebData2, WebData2Request } from "../schemas/mod.js";
3
+ import type * as v from "valibot";
3
4
  /** @see https://github.com/microsoft/TypeScript/issues/13923#issuecomment-2191862501 */
4
5
  type DeepImmutable<T> = {
5
6
  readonly [K in keyof T]: DeepImmutable<T[K]>;
@@ -10,106 +11,108 @@ export interface InfoClientParameters<T extends IRequestTransport = IRequestTran
10
11
  transport: T;
11
12
  }
12
13
  /** Request parameters for the {@linkcode InfoClient.activeAssetData} method. */
13
- export type ActiveAssetDataParameters = Omit<ActiveAssetDataRequest, "type">;
14
+ export type ActiveAssetDataParameters = Omit<v.InferInput<typeof ActiveAssetDataRequest>, "type">;
14
15
  /** Request parameters for the {@linkcode InfoClient.allMids} method. */
15
- export type AllMidsParameters = Omit<AllMidsRequest, "type">;
16
+ export type AllMidsParameters = Omit<v.InferInput<typeof AllMidsRequest>, "type">;
16
17
  /** Request parameters for the {@linkcode InfoClient.blockDetails} method. */
17
- export type BlockDetailsParameters = Omit<BlockDetailsRequest, "type">;
18
+ export type BlockDetailsParameters = Omit<v.InferInput<typeof BlockDetailsRequest>, "type">;
18
19
  /** Request parameters for the {@linkcode InfoClient.candleSnapshot} method. */
19
- export type CandleSnapshotParameters = CandleSnapshotRequest["req"];
20
+ export type CandleSnapshotParameters = v.InferInput<typeof CandleSnapshotRequest>["req"];
20
21
  /** Request parameters for the {@linkcode InfoClient.clearinghouseState} method. */
21
- export type ClearinghouseStateParameters = Omit<ClearinghouseStateRequest, "type">;
22
+ export type ClearinghouseStateParameters = Omit<v.InferInput<typeof ClearinghouseStateRequest>, "type">;
22
23
  /** Request parameters for the {@linkcode InfoClient.delegations} method. */
23
- export type DelegationsParameters = Omit<DelegationsRequest, "type">;
24
+ export type DelegationsParameters = Omit<v.InferInput<typeof DelegationsRequest>, "type">;
24
25
  /** Request parameters for the {@linkcode InfoClient.delegatorHistory} method. */
25
- export type DelegatorHistoryParameters = Omit<DelegatorHistoryRequest, "type">;
26
+ export type DelegatorHistoryParameters = Omit<v.InferInput<typeof DelegatorHistoryRequest>, "type">;
26
27
  /** Request parameters for the {@linkcode InfoClient.delegatorRewards} method. */
27
- export type DelegatorRewardsParameters = Omit<DelegatorRewardsRequest, "type">;
28
+ export type DelegatorRewardsParameters = Omit<v.InferInput<typeof DelegatorRewardsRequest>, "type">;
28
29
  /** Request parameters for the {@linkcode InfoClient.delegatorSummary} method. */
29
- export type DelegatorSummaryParameters = Omit<DelegatorSummaryRequest, "type">;
30
+ export type DelegatorSummaryParameters = Omit<v.InferInput<typeof DelegatorSummaryRequest>, "type">;
30
31
  /** Request parameters for the {@linkcode InfoClient.extraAgents} method. */
31
- export type ExtraAgentsParameters = Omit<ExtraAgentsRequest, "type">;
32
+ export type ExtraAgentsParameters = Omit<v.InferInput<typeof ExtraAgentsRequest>, "type">;
32
33
  /** Request parameters for the {@linkcode InfoClient.frontendOpenOrders} method. */
33
- export type FrontendOpenOrdersParameters = Omit<FrontendOpenOrdersRequest, "type">;
34
+ export type FrontendOpenOrdersParameters = Omit<v.InferInput<typeof FrontendOpenOrdersRequest>, "type">;
34
35
  /** Request parameters for the {@linkcode InfoClient.fundingHistory} method. */
35
- export type FundingHistoryParameters = Omit<FundingHistoryRequest, "type">;
36
+ export type FundingHistoryParameters = Omit<v.InferInput<typeof FundingHistoryRequest>, "type">;
36
37
  /** Request parameters for the {@linkcode InfoClient.historicalOrders} method. */
37
- export type HistoricalOrdersParameters = Omit<HistoricalOrdersRequest, "type">;
38
+ export type HistoricalOrdersParameters = Omit<v.InferInput<typeof HistoricalOrdersRequest>, "type">;
38
39
  /** Request parameters for the {@linkcode InfoClient.isVip} method. */
39
- export type IsVipParameters = Omit<IsVipRequest, "type">;
40
+ export type IsVipParameters = Omit<v.InferInput<typeof IsVipRequest>, "type">;
40
41
  /** Request parameters for the {@linkcode InfoClient.l2Book} method. */
41
- export type L2BookParameters = Omit<L2BookRequest, "type">;
42
+ export type L2BookParameters = Omit<v.InferInput<typeof L2BookRequest>, "type">;
42
43
  /** Request parameters for the {@linkcode InfoClient.leadingVaults} method. */
43
- export type LeadingVaultsParameters = Omit<LeadingVaultsRequest, "type">;
44
+ export type LeadingVaultsParameters = Omit<v.InferInput<typeof LeadingVaultsRequest>, "type">;
44
45
  /** Request parameters for the {@linkcode InfoClient.legalCheck} method. */
45
- export type LegalCheckParameters = Omit<LegalCheckRequest, "type">;
46
+ export type LegalCheckParameters = Omit<v.InferInput<typeof LegalCheckRequest>, "type">;
46
47
  /** Request parameters for the {@linkcode InfoClient.marginTable} method. */
47
- export type MarginTableParameters = Omit<MarginTableRequest, "type">;
48
+ export type MarginTableParameters = Omit<v.InferInput<typeof MarginTableRequest>, "type">;
48
49
  /** Request parameters for the {@linkcode InfoClient.maxBuilderFee} method. */
49
- export type MaxBuilderFeeParameters = Omit<MaxBuilderFeeRequest, "type">;
50
+ export type MaxBuilderFeeParameters = Omit<v.InferInput<typeof MaxBuilderFeeRequest>, "type">;
50
51
  /** Request parameters for the {@linkcode InfoClient.meta} method. */
51
- export type MetaParameters = Omit<MetaRequest, "type">;
52
+ export type MetaParameters = Omit<v.InferInput<typeof MetaRequest>, "type">;
52
53
  /** Request parameters for the {@linkcode InfoClient.metaAndAssetCtxs} method. */
53
- export type MetaAndAssetCtxsParameters = Omit<MetaAndAssetCtxsRequest, "type">;
54
+ export type MetaAndAssetCtxsParameters = Omit<v.InferInput<typeof MetaAndAssetCtxsRequest>, "type">;
54
55
  /** Request parameters for the {@linkcode InfoClient.openOrders} method. */
55
- export type OpenOrdersParameters = Omit<OpenOrdersRequest, "type">;
56
+ export type OpenOrdersParameters = Omit<v.InferInput<typeof OpenOrdersRequest>, "type">;
56
57
  /** Request parameters for the {@linkcode InfoClient.orderStatus} method. */
57
- export type OrderStatusParameters = Omit<OrderStatusRequest, "type">;
58
+ export type OrderStatusParameters = Omit<v.InferInput<typeof OrderStatusRequest>, "type">;
58
59
  /** Request parameters for the {@linkcode InfoClient.perpDexLimits} method. */
59
- export type PerpDexLimitsParameters = Omit<PerpDexLimitsRequest, "type">;
60
+ export type PerpDexLimitsParameters = Omit<v.InferInput<typeof PerpDexLimitsRequest>, "type">;
60
61
  /** Request parameters for the {@linkcode InfoClient.perpsAtOpenInterestCap} method. */
61
- export type PerpsAtOpenInterestCapParameters = Omit<PerpsAtOpenInterestCapRequest, "type">;
62
+ export type PerpsAtOpenInterestCapParameters = Omit<v.InferInput<typeof PerpsAtOpenInterestCapRequest>, "type">;
62
63
  /** Request parameters for the {@linkcode InfoClient.portfolio} method. */
63
- export type PortfolioParameters = Omit<PortfolioRequest, "type">;
64
+ export type PortfolioParameters = Omit<v.InferInput<typeof PortfolioRequest>, "type">;
64
65
  /** Request parameters for the {@linkcode InfoClient.preTransferCheck} method. */
65
- export type PreTransferCheckParameters = Omit<PreTransferCheckRequest, "type">;
66
+ export type PreTransferCheckParameters = Omit<v.InferInput<typeof PreTransferCheckRequest>, "type">;
66
67
  /** Request parameters for the {@linkcode InfoClient.recentTrades} method. */
67
- export type RecentTradesParameters = Omit<RecentTradesRequest, "type">;
68
+ export type RecentTradesParameters = Omit<v.InferInput<typeof RecentTradesRequest>, "type">;
68
69
  /** Request parameters for the {@linkcode InfoClient.referral} method. */
69
- export type ReferralParameters = Omit<ReferralRequest, "type">;
70
+ export type ReferralParameters = Omit<v.InferInput<typeof ReferralRequest>, "type">;
70
71
  /** Request parameters for the {@linkcode InfoClient.spotClearinghouseState} method. */
71
- export type SpotClearinghouseStateParameters = Omit<SpotClearinghouseStateRequest, "type">;
72
+ export type SpotClearinghouseStateParameters = Omit<v.InferInput<typeof SpotClearinghouseStateRequest>, "type">;
72
73
  /** Request parameters for the {@linkcode InfoClient.spotDeployState} method. */
73
- export type SpotDeployStateParameters = Omit<SpotDeployStateRequest, "type">;
74
+ export type SpotDeployStateParameters = Omit<v.InferInput<typeof SpotDeployStateRequest>, "type">;
74
75
  /** Request parameters for the {@linkcode InfoClient.subAccounts} method. */
75
- export type SubAccountsParameters = Omit<SubAccountsRequest, "type">;
76
+ export type SubAccountsParameters = Omit<v.InferInput<typeof SubAccountsRequest>, "type">;
76
77
  /** Request parameters for the {@linkcode InfoClient.tokenDetails} method. */
77
- export type TokenDetailsParameters = Omit<TokenDetailsRequest, "type">;
78
+ export type TokenDetailsParameters = Omit<v.InferInput<typeof TokenDetailsRequest>, "type">;
78
79
  /** Request parameters for the {@linkcode InfoClient.twapHistory} method. */
79
- export type TwapHistoryParameters = Omit<TwapHistoryRequest, "type">;
80
+ export type TwapHistoryParameters = Omit<v.InferInput<typeof TwapHistoryRequest>, "type">;
80
81
  /** Request parameters for the {@linkcode InfoClient.txDetails} method. */
81
- export type TxDetailsParameters = Omit<TxDetailsRequest, "type">;
82
+ export type TxDetailsParameters = Omit<v.InferInput<typeof TxDetailsRequest>, "type">;
82
83
  /** Request parameters for the {@linkcode InfoClient.userDetails} method. */
83
- export type UserDetailsParameters = Omit<UserDetailsRequest, "type">;
84
+ export type UserDetailsParameters = Omit<v.InferInput<typeof UserDetailsRequest>, "type">;
84
85
  /** Request parameters for the {@linkcode InfoClient.userFees} method. */
85
- export type UserFeesParameters = Omit<UserFeesRequest, "type">;
86
+ export type UserFeesParameters = Omit<v.InferInput<typeof UserFeesRequest>, "type">;
86
87
  /** Request parameters for the {@linkcode InfoClient.userFills} method. */
87
- export type UserFillsParameters = Omit<UserFillsRequest, "type">;
88
+ export type UserFillsParameters = Omit<v.InferInput<typeof UserFillsRequest>, "type">;
88
89
  /** Request parameters for the {@linkcode InfoClient.userFillsByTime} method. */
89
- export type UserFillsByTimeParameters = Omit<UserFillsByTimeRequest, "type">;
90
+ export type UserFillsByTimeParameters = Omit<v.InferInput<typeof UserFillsByTimeRequest>, "type">;
90
91
  /** Request parameters for the {@linkcode InfoClient.userFunding} method. */
91
- export type UserFundingParameters = Omit<UserFundingRequest, "type">;
92
+ export type UserFundingParameters = Omit<v.InferInput<typeof UserFundingRequest>, "type">;
92
93
  /** Request parameters for the {@linkcode InfoClient.userNonFundingLedgerUpdates} method. */
93
- export type UserNonFundingLedgerUpdatesParameters = Omit<UserNonFundingLedgerUpdatesRequest, "type">;
94
+ export type UserNonFundingLedgerUpdatesParameters = Omit<v.InferInput<typeof UserNonFundingLedgerUpdatesRequest>, "type">;
94
95
  /** Request parameters for the {@linkcode InfoClient.userRateLimit} method. */
95
- export type UserRateLimitParameters = Omit<UserRateLimitRequest, "type">;
96
+ export type UserRateLimitParameters = Omit<v.InferInput<typeof UserRateLimitRequest>, "type">;
96
97
  /** Request parameters for the {@linkcode InfoClient.userRole} method. */
97
- export type UserRoleParameters = Omit<UserRoleRequest, "type">;
98
+ export type UserRoleParameters = Omit<v.InferInput<typeof UserRoleRequest>, "type">;
98
99
  /** Request parameters for the {@linkcode InfoClient.userToMultiSigSigners} method. */
99
- export type UserToMultiSigSignersParameters = Omit<UserToMultiSigSignersRequest, "type">;
100
+ export type UserToMultiSigSignersParameters = Omit<v.InferInput<typeof UserToMultiSigSignersRequest>, "type">;
100
101
  /** Request parameters for the {@linkcode InfoClient.userTwapSliceFills} method. */
101
- export type UserTwapSliceFillsParameters = Omit<UserTwapSliceFillsRequest, "type">;
102
+ export type UserTwapSliceFillsParameters = Omit<v.InferInput<typeof UserTwapSliceFillsRequest>, "type">;
102
103
  /** Request parameters for the {@linkcode InfoClient.userTwapSliceFillsByTime} method. */
103
- export type UserTwapSliceFillsByTimeParameters = Omit<UserTwapSliceFillsByTimeRequest, "type">;
104
+ export type UserTwapSliceFillsByTimeParameters = Omit<v.InferInput<typeof UserTwapSliceFillsByTimeRequest>, "type">;
104
105
  /** Request parameters for the {@linkcode InfoClient.userVaultEquities} method. */
105
- export type UserVaultEquitiesParameters = Omit<UserVaultEquitiesRequest, "type">;
106
+ export type UserVaultEquitiesParameters = Omit<v.InferInput<typeof UserVaultEquitiesRequest>, "type">;
106
107
  /** Request parameters for the {@linkcode InfoClient.vaultDetails} method. */
107
- export type VaultDetailsParameters = Omit<VaultDetailsRequest, "type">;
108
+ export type VaultDetailsParameters = Omit<v.InferInput<typeof VaultDetailsRequest>, "type">;
109
+ /** Request parameters for the {@linkcode InfoClient.webData2} method. */
110
+ export type WebData2Parameters = Omit<v.InferInput<typeof WebData2Request>, "type">;
108
111
  /**
109
112
  * Info client for interacting with the Hyperliquid API.
110
113
  * @typeParam T The type of transport used to connect to the Hyperliquid API.
111
114
  */
112
- export declare class InfoClient<T extends IRequestTransport = IRequestTransport> implements InfoClientParameters<T>, AsyncDisposable {
115
+ export declare class InfoClient<T extends IRequestTransport = IRequestTransport> implements InfoClientParameters<T> {
113
116
  transport: T;
114
117
  /**
115
118
  * Initialises a new instance.
@@ -127,7 +130,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
127
130
  /**
128
131
  * Request user active asset data.
129
132
  * @param params - An optional request-specific parameters.
130
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
133
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
131
134
  * @returns User active asset data.
132
135
  *
133
136
  * @throws {TransportError} When the transport layer throws an error.
@@ -147,7 +150,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
147
150
  /**
148
151
  * Request mid coin prices.
149
152
  * @param params - An optional request-specific parameters.
150
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
153
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
151
154
  * @returns Mapping of coin symbols to mid prices.
152
155
  *
153
156
  * @throws {TransportError} When the transport layer throws an error.
@@ -168,7 +171,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
168
171
  /**
169
172
  * Block details by block height.
170
173
  * @param params - Request-specific parameters.
171
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
174
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
172
175
  * @returns Block details.
173
176
  *
174
177
  * @throws {TransportError} When the transport layer throws an error.
@@ -190,7 +193,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
190
193
  /**
191
194
  * Request candlestick snapshots.
192
195
  * @param params - Request-specific parameters.
193
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
196
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
194
197
  * @returns Array of candlestick data points.
195
198
  *
196
199
  * @throws {TransportError} When the transport layer throws an error.
@@ -214,7 +217,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
214
217
  /**
215
218
  * Request clearinghouse state.
216
219
  * @param params - Request-specific parameters.
217
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
220
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
218
221
  * @returns Account summary for perpetual trading.
219
222
  *
220
223
  * @throws {TransportError} When the transport layer throws an error.
@@ -234,7 +237,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
234
237
  /**
235
238
  * Request user staking delegations.
236
239
  * @param params - Request-specific parameters.
237
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
240
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
238
241
  * @returns Array of user's delegations to validators.
239
242
  *
240
243
  * @throws {TransportError} When the transport layer throws an error.
@@ -254,7 +257,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
254
257
  /**
255
258
  * Request user staking history.
256
259
  * @param params - Request-specific parameters.
257
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
260
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
258
261
  * @returns Array of user's staking updates.
259
262
  *
260
263
  * @throws {TransportError} When the transport layer throws an error.
@@ -274,7 +277,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
274
277
  /**
275
278
  * Request user staking rewards.
276
279
  * @param params - Request-specific parameters.
277
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
280
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
278
281
  * @returns Array of user's staking rewards.
279
282
  *
280
283
  * @throws {TransportError} When the transport layer throws an error.
@@ -294,7 +297,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
294
297
  /**
295
298
  * Request user staking summary.
296
299
  * @param params - Request-specific parameters.
297
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
300
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
298
301
  * @returns Summary of a user's staking delegations.
299
302
  *
300
303
  * @throws {TransportError} When the transport layer throws an error.
@@ -313,7 +316,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
313
316
  delegatorSummary(params: DeepImmutable<DelegatorSummaryParameters>, signal?: AbortSignal): Promise<DelegatorSummary>;
314
317
  /**
315
318
  * Request exchange status information.
316
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
319
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
317
320
  * @returns Exchange system status information.
318
321
  *
319
322
  * @throws {TransportError} When the transport layer throws an error.
@@ -333,7 +336,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
333
336
  /**
334
337
  * Request user's extra agents.
335
338
  * @param params - Request-specific parameters.
336
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
339
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
337
340
  * @returns User's extra agents.
338
341
  *
339
342
  * @throws {TransportError} When the transport layer throws an error.
@@ -353,7 +356,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
353
356
  /**
354
357
  * Request frontend open orders.
355
358
  * @param params - Request-specific parameters.
356
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
359
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
357
360
  * @returns Array of open orders with additional frontend information.
358
361
  *
359
362
  * @throws {TransportError} When the transport layer throws an error.
@@ -373,7 +376,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
373
376
  /**
374
377
  * Request funding history.
375
378
  * @param params - Request-specific parameters.
376
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
379
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
377
380
  * @returns Array of historical funding rate data for an asset.
378
381
  *
379
382
  * @throws {TransportError} When the transport layer throws an error.
@@ -395,7 +398,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
395
398
  fundingHistory(params: DeepImmutable<FundingHistoryParameters>, signal?: AbortSignal): Promise<FundingHistory[]>;
396
399
  /**
397
400
  * Request gossip root IPs.
398
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
401
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
399
402
  * @returns Array of gossip root IPs.
400
403
  *
401
404
  * @throws {TransportError} When the transport layer throws an error.
@@ -415,7 +418,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
415
418
  /**
416
419
  * Request user's historical orders.
417
420
  * @param params - Request-specific parameters.
418
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
421
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
419
422
  * @returns Array of user's historical orders.
420
423
  *
421
424
  * @throws {TransportError} When the transport layer throws an error.
@@ -435,7 +438,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
435
438
  /**
436
439
  * Request to check if a user is a VIP.
437
440
  * @param params - Request-specific parameters.
438
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
441
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
439
442
  * @returns Boolean indicating user's VIP status.
440
443
  *
441
444
  * @throws {TransportError} When the transport layer throws an error.
@@ -455,7 +458,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
455
458
  /**
456
459
  * Request L2 order book.
457
460
  * @param params - Request-specific parameters.
458
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
461
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
459
462
  * @returns L2 order book snapshot.
460
463
  *
461
464
  * @throws {TransportError} When the transport layer throws an error.
@@ -475,7 +478,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
475
478
  /**
476
479
  * Request leading vaults for a user.
477
480
  * @param params - Request-specific parameters.
478
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
481
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
479
482
  * @returns
480
483
  *
481
484
  * @throws {TransportError} When the transport layer throws an error.
@@ -495,7 +498,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
495
498
  /**
496
499
  * Request legal verification status of a user.
497
500
  * @param params - Request-specific parameters.
498
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
501
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
499
502
  * @returns Legal verification status for a user.
500
503
  *
501
504
  * @throws {TransportError} When the transport layer throws an error.
@@ -514,7 +517,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
514
517
  legalCheck(params: DeepImmutable<LegalCheckParameters>, signal?: AbortSignal): Promise<LegalCheck>;
515
518
  /**
516
519
  * Request liquidatable.
517
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
520
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
518
521
  * @returns
519
522
  *
520
523
  * @throws {TransportError} When the transport layer throws an error.
@@ -534,7 +537,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
534
537
  /**
535
538
  * Request margin table data.
536
539
  * @param params - Request-specific parameters.
537
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
540
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
538
541
  * @returns Margin requirements table with multiple tiers.
539
542
  *
540
543
  * @throws {TransportError} When the transport layer throws an error.
@@ -554,7 +557,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
554
557
  /**
555
558
  * Request builder fee approval.
556
559
  * @param params - Request-specific parameters.
557
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
560
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
558
561
  * @returns Maximum builder fee approval.
559
562
  *
560
563
  * @throws {TransportError} When the transport layer throws an error.
@@ -573,7 +576,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
573
576
  maxBuilderFee(params: DeepImmutable<MaxBuilderFeeParameters>, signal?: AbortSignal): Promise<number>;
574
577
  /**
575
578
  * Request maximum market order notionals.
576
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
579
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
577
580
  * @returns
578
581
  *
579
582
  * @throws {TransportError} When the transport layer throws an error.
@@ -593,7 +596,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
593
596
  /**
594
597
  * Request trading metadata.
595
598
  * @param params - An optional request-specific parameters.
596
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
599
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
597
600
  * @returns Metadata for perpetual assets.
598
601
  *
599
602
  * @throws {TransportError} When the transport layer throws an error.
@@ -613,7 +616,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
613
616
  meta(signal?: AbortSignal): Promise<PerpsMeta>;
614
617
  /**
615
618
  * Request metadata and asset contexts.
616
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
619
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
617
620
  * @returns Metadata and context for perpetual assets.
618
621
  *
619
622
  * @throws {TransportError} When the transport layer throws an error.
@@ -634,7 +637,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
634
637
  /**
635
638
  * Request open orders.
636
639
  * @param params - Request-specific parameters.
637
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
640
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
638
641
  * @returns Array of open order.
639
642
  *
640
643
  * @throws {TransportError} When the transport layer throws an error.
@@ -654,7 +657,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
654
657
  /**
655
658
  * Request order status.
656
659
  * @param params - Request-specific parameters.
657
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
660
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
658
661
  * @returns Result of an order status lookup.
659
662
  *
660
663
  * @throws {TransportError} When the transport layer throws an error.
@@ -673,7 +676,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
673
676
  orderStatus(params: DeepImmutable<OrderStatusParameters>, signal?: AbortSignal): Promise<OrderLookup>;
674
677
  /**
675
678
  * Request for the status of the perpetual deploy auction.
676
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
679
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
677
680
  * @returns Status of the perpetual deploy auction.
678
681
  *
679
682
  * @throws {TransportError} When the transport layer throws an error.
@@ -692,7 +695,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
692
695
  perpDeployAuctionStatus(signal?: AbortSignal): Promise<DeployAuctionStatus>;
693
696
  /**
694
697
  * Request builder deployed perpetual market limits.
695
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
698
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
696
699
  * @returns Status of the perpetual deploy auction.
697
700
  *
698
701
  * @throws {TransportError} When the transport layer throws an error.
@@ -711,7 +714,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
711
714
  perpDexLimits(params: DeepImmutable<PerpDexLimitsParameters>, signal?: AbortSignal): Promise<PerpDexLimits | null>;
712
715
  /**
713
716
  * Request all perpetual dexs.
714
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
717
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
715
718
  * @returns Array of perpetual dexes (null is main dex).
716
719
  *
717
720
  * @throws {TransportError} When the transport layer throws an error.
@@ -730,7 +733,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
730
733
  perpDexs(signal?: AbortSignal): Promise<(PerpDex | null)[]>;
731
734
  /**
732
735
  * Request perpetuals at open interest cap.
733
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
736
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
734
737
  * @returns Array of perpetuals at open interest caps.
735
738
  *
736
739
  * @throws {TransportError} When the transport layer throws an error.
@@ -751,7 +754,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
751
754
  /**
752
755
  * Request user portfolio.
753
756
  * @param params - Request-specific parameters.
754
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
757
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
755
758
  * @returns Portfolio metrics grouped by time periods.
756
759
  *
757
760
  * @throws {TransportError} When the transport layer throws an error.
@@ -770,7 +773,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
770
773
  portfolio(params: DeepImmutable<PortfolioParameters>, signal?: AbortSignal): Promise<PortfolioPeriods>;
771
774
  /**
772
775
  * Request predicted funding rates.
773
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
776
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
774
777
  * @returns Array of predicted funding rates.
775
778
  *
776
779
  * @throws {TransportError} When the transport layer throws an error.
@@ -790,7 +793,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
790
793
  /**
791
794
  * Request user's existence check before transfer.
792
795
  * @param params - Request-specific parameters.
793
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
796
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
794
797
  * @returns Pre-transfer user existence check result.
795
798
  *
796
799
  * @throws {TransportError} When the transport layer throws an error.
@@ -810,7 +813,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
810
813
  /**
811
814
  * Request recent trades.
812
815
  * @param params - Request-specific parameters.
813
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
816
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
814
817
  * @returns Array of recent trades.
815
818
  *
816
819
  * @throws {TransportError} When the transport layer throws an error.
@@ -830,7 +833,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
830
833
  /**
831
834
  * Request user referral.
832
835
  * @param params - Request-specific parameters.
833
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
836
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
834
837
  * @returns Referral information for a user.
835
838
  *
836
839
  * @throws {TransportError} When the transport layer throws an error.
@@ -850,7 +853,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
850
853
  /**
851
854
  * Request spot clearinghouse state.
852
855
  * @param params - Request-specific parameters.
853
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
856
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
854
857
  * @returns Account summary for spot trading.
855
858
  *
856
859
  * @throws {TransportError} When the transport layer throws an error.
@@ -870,7 +873,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
870
873
  /**
871
874
  * Request spot deploy state.
872
875
  * @param params - Request-specific parameters.
873
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
876
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
874
877
  * @returns Deploy state for spot tokens.
875
878
  *
876
879
  * @throws {TransportError} When the transport layer throws an error.
@@ -889,7 +892,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
889
892
  spotDeployState(params: DeepImmutable<SpotDeployStateParameters>, signal?: AbortSignal): Promise<SpotDeployState>;
890
893
  /**
891
894
  * Request spot trading metadata.
892
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
895
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
893
896
  * @returns Metadata for spot assets.
894
897
  *
895
898
  * @throws {TransportError} When the transport layer throws an error.
@@ -908,7 +911,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
908
911
  spotMeta(signal?: AbortSignal): Promise<SpotMeta>;
909
912
  /**
910
913
  * Request spot metadata and asset contexts.
911
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
914
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
912
915
  * @returns Metadata and context for spot assets.
913
916
  *
914
917
  * @throws {TransportError} When the transport layer throws an error.
@@ -927,7 +930,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
927
930
  spotMetaAndAssetCtxs(signal?: AbortSignal): Promise<SpotMetaAndAssetCtxs>;
928
931
  /**
929
932
  * Request for the status of the spot deploy auction.
930
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
933
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
931
934
  * @returns Status of the spot deploy auction.
932
935
  *
933
936
  * @throws {TransportError} When the transport layer throws an error.
@@ -947,7 +950,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
947
950
  /**
948
951
  * Request user sub-accounts.
949
952
  * @param params - Request-specific parameters.
950
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
953
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
951
954
  * @returns Array of user sub-account or null if the user does not have any sub-accounts.
952
955
  *
953
956
  * @throws {TransportError} When the transport layer throws an error.
@@ -967,7 +970,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
967
970
  /**
968
971
  * Request token details.
969
972
  * @param params - Request-specific parameters.
970
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
973
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
971
974
  * @returns Details of a token.
972
975
  *
973
976
  * @throws {TransportError} When the transport layer throws an error.
@@ -987,7 +990,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
987
990
  /**
988
991
  * Request twap history of a user.
989
992
  * @param params - Request-specific parameters.
990
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
993
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
991
994
  * @returns Array of user's TWAP history.
992
995
  *
993
996
  * @throws {TransportError} When the transport layer throws an error.
@@ -1007,7 +1010,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1007
1010
  /**
1008
1011
  * Request transaction details by transaction hash.
1009
1012
  * @param params - Request-specific parameters.
1010
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1013
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1011
1014
  * @returns Transaction details.
1012
1015
  *
1013
1016
  * @throws {TransportError} When the transport layer throws an error.
@@ -1029,7 +1032,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1029
1032
  /**
1030
1033
  * Request user details by user's address.
1031
1034
  * @param params - Request-specific parameters.
1032
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1035
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1033
1036
  * @returns User details.
1034
1037
  *
1035
1038
  * @throws {TransportError} When the transport layer throws an error.
@@ -1051,7 +1054,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1051
1054
  /**
1052
1055
  * Request user fees.
1053
1056
  * @param params - Request-specific parameters.
1054
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1057
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1055
1058
  * @returns User fees.
1056
1059
  *
1057
1060
  * @throws {TransportError} When the transport layer throws an error.
@@ -1071,7 +1074,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1071
1074
  /**
1072
1075
  * Request user fills.
1073
1076
  * @param params - Request-specific parameters.
1074
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1077
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1075
1078
  * @returns Array of user's trade fill.
1076
1079
  *
1077
1080
  * @throws {TransportError} When the transport layer throws an error.
@@ -1091,7 +1094,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1091
1094
  /**
1092
1095
  * Request user fills by time.
1093
1096
  * @param params - Request-specific parameters.
1094
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1097
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1095
1098
  * @returns Array of user's trade fill.
1096
1099
  *
1097
1100
  * @throws {TransportError} When the transport layer throws an error.
@@ -1114,7 +1117,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1114
1117
  /**
1115
1118
  * Request user funding.
1116
1119
  * @param params - Request-specific parameters.
1117
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1120
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1118
1121
  * @returns Array of user's funding ledger update.
1119
1122
  *
1120
1123
  * @throws {TransportError} When the transport layer throws an error.
@@ -1137,7 +1140,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1137
1140
  /**
1138
1141
  * Request user non-funding ledger updates.
1139
1142
  * @param params - Request-specific parameters.
1140
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1143
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1141
1144
  * @returns Array of user's non-funding ledger update.
1142
1145
  *
1143
1146
  * @throws {TransportError} When the transport layer throws an error.
@@ -1160,7 +1163,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1160
1163
  /**
1161
1164
  * Request user rate limits.
1162
1165
  * @param params - Request-specific parameters.
1163
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1166
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1164
1167
  * @returns User's rate limits.
1165
1168
  *
1166
1169
  * @throws {TransportError} When the transport layer throws an error.
@@ -1180,7 +1183,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1180
1183
  /**
1181
1184
  * Request user role.
1182
1185
  * @param params - Request-specific parameters.
1183
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1186
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1184
1187
  * @returns User's role.
1185
1188
  *
1186
1189
  * @throws {TransportError} When the transport layer throws an error.
@@ -1200,7 +1203,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1200
1203
  /**
1201
1204
  * Request multi-sig signers for a user.
1202
1205
  * @param params - Request-specific parameters.
1203
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1206
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1204
1207
  * @returns Multi-sig signers for a user or null if the user does not have any multi-sig signers.
1205
1208
  *
1206
1209
  * @throws {TransportError} When the transport layer throws an error.
@@ -1220,7 +1223,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1220
1223
  /**
1221
1224
  * Request user twap slice fills.
1222
1225
  * @param params - Request-specific parameters.
1223
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1226
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1224
1227
  * @returns Array of user's twap slice fill.
1225
1228
  *
1226
1229
  * @throws {TransportError} When the transport layer throws an error.
@@ -1240,7 +1243,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1240
1243
  /**
1241
1244
  * Request user twap slice fills by time.
1242
1245
  * @param params - Request-specific parameters.
1243
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1246
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1244
1247
  * @returns Array of user's twap slice fill.
1245
1248
  *
1246
1249
  * @throws {TransportError} When the transport layer throws an error.
@@ -1263,7 +1266,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1263
1266
  /**
1264
1267
  * Request user vault deposits.
1265
1268
  * @param params - Request-specific parameters.
1266
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1269
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1267
1270
  * @returns Array of user's vault deposits.
1268
1271
  *
1269
1272
  * @throws {TransportError} When the transport layer throws an error.
@@ -1282,7 +1285,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1282
1285
  userVaultEquities(params: DeepImmutable<UserVaultEquitiesParameters>, signal?: AbortSignal): Promise<VaultEquity[]>;
1283
1286
  /**
1284
1287
  * Request validator L1 votes.
1285
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1288
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1286
1289
  * @returns
1287
1290
  *
1288
1291
  * @throws {TransportError} When the transport layer throws an error.
@@ -1301,7 +1304,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1301
1304
  validatorL1Votes(signal?: AbortSignal): Promise<ValidatorL1Vote[]>;
1302
1305
  /**
1303
1306
  * Request validator summaries.
1304
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1307
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1305
1308
  * @returns Array of validator summaries.
1306
1309
  *
1307
1310
  * @throws {TransportError} When the transport layer throws an error.
@@ -1321,7 +1324,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1321
1324
  /**
1322
1325
  * Request details of a vault.
1323
1326
  * @param params - Request-specific parameters.
1324
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1327
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1325
1328
  * @returns Details of a vault or null if the vault does not exist.
1326
1329
  *
1327
1330
  * @throws {TransportError} When the transport layer throws an error.
@@ -1340,7 +1343,7 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1340
1343
  vaultDetails(params: DeepImmutable<VaultDetailsParameters>, signal?: AbortSignal): Promise<VaultDetails | null>;
1341
1344
  /**
1342
1345
  * Request a list of vaults less than 2 hours old.
1343
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
1346
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1344
1347
  * @returns Array of vault summaries.
1345
1348
  *
1346
1349
  * @throws {TransportError} When the transport layer throws an error.
@@ -1357,7 +1360,26 @@ export declare class InfoClient<T extends IRequestTransport = IRequestTransport>
1357
1360
  * ```
1358
1361
  */
1359
1362
  vaultSummaries(signal?: AbortSignal): Promise<VaultSummary[]>;
1360
- [Symbol.asyncDispose](): Promise<void>;
1363
+ /**
1364
+ * Request comprehensive user and market data.
1365
+ * @param params - Request-specific parameters.
1366
+ * @param signal - An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) can be used to cancel the request by calling [`abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) on the corresponding [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
1367
+ * @returns Comprehensive user and market data.
1368
+ *
1369
+ * @throws {TransportError} When the transport layer throws an error.
1370
+ *
1371
+ * @see null
1372
+ * @example
1373
+ * ```ts
1374
+ * import * as hl from "@nktkas/hyperliquid";
1375
+ *
1376
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1377
+ * const infoClient = new hl.InfoClient({ transport });
1378
+ *
1379
+ * const data = await infoClient.webData2({ user: "0x..." });
1380
+ * ```
1381
+ */
1382
+ webData2(params: DeepImmutable<WebData2Parameters>, signal?: AbortSignal): Promise<WebData2>;
1361
1383
  }
1362
1384
  export {};
1363
1385
  //# sourceMappingURL=info.d.ts.map