@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
@@ -117,7 +117,10 @@ import {
117
117
  type VaultLeading,
118
118
  VaultSummariesRequest,
119
119
  type VaultSummary,
120
+ type WebData2,
121
+ WebData2Request,
120
122
  } from "../schemas/mod.js";
123
+ import type * as v from "valibot";
121
124
 
122
125
  /** @see https://github.com/microsoft/TypeScript/issues/13923#issuecomment-2191862501 */
123
126
  type DeepImmutable<T> = {
@@ -131,101 +134,106 @@ export interface InfoClientParameters<T extends IRequestTransport = IRequestTran
131
134
  }
132
135
 
133
136
  /** Request parameters for the {@linkcode InfoClient.activeAssetData} method. */
134
- export type ActiveAssetDataParameters = Omit<ActiveAssetDataRequest, "type">;
137
+ export type ActiveAssetDataParameters = Omit<v.InferInput<typeof ActiveAssetDataRequest>, "type">;
135
138
  /** Request parameters for the {@linkcode InfoClient.allMids} method. */
136
- export type AllMidsParameters = Omit<AllMidsRequest, "type">;
139
+ export type AllMidsParameters = Omit<v.InferInput<typeof AllMidsRequest>, "type">;
137
140
  /** Request parameters for the {@linkcode InfoClient.blockDetails} method. */
138
- export type BlockDetailsParameters = Omit<BlockDetailsRequest, "type">;
141
+ export type BlockDetailsParameters = Omit<v.InferInput<typeof BlockDetailsRequest>, "type">;
139
142
  /** Request parameters for the {@linkcode InfoClient.candleSnapshot} method. */
140
- export type CandleSnapshotParameters = CandleSnapshotRequest["req"];
143
+ export type CandleSnapshotParameters = v.InferInput<typeof CandleSnapshotRequest>["req"];
141
144
  /** Request parameters for the {@linkcode InfoClient.clearinghouseState} method. */
142
- export type ClearinghouseStateParameters = Omit<ClearinghouseStateRequest, "type">;
145
+ export type ClearinghouseStateParameters = Omit<v.InferInput<typeof ClearinghouseStateRequest>, "type">;
143
146
  /** Request parameters for the {@linkcode InfoClient.delegations} method. */
144
- export type DelegationsParameters = Omit<DelegationsRequest, "type">;
147
+ export type DelegationsParameters = Omit<v.InferInput<typeof DelegationsRequest>, "type">;
145
148
  /** Request parameters for the {@linkcode InfoClient.delegatorHistory} method. */
146
- export type DelegatorHistoryParameters = Omit<DelegatorHistoryRequest, "type">;
149
+ export type DelegatorHistoryParameters = Omit<v.InferInput<typeof DelegatorHistoryRequest>, "type">;
147
150
  /** Request parameters for the {@linkcode InfoClient.delegatorRewards} method. */
148
- export type DelegatorRewardsParameters = Omit<DelegatorRewardsRequest, "type">;
151
+ export type DelegatorRewardsParameters = Omit<v.InferInput<typeof DelegatorRewardsRequest>, "type">;
149
152
  /** Request parameters for the {@linkcode InfoClient.delegatorSummary} method. */
150
- export type DelegatorSummaryParameters = Omit<DelegatorSummaryRequest, "type">;
153
+ export type DelegatorSummaryParameters = Omit<v.InferInput<typeof DelegatorSummaryRequest>, "type">;
151
154
  /** Request parameters for the {@linkcode InfoClient.extraAgents} method. */
152
- export type ExtraAgentsParameters = Omit<ExtraAgentsRequest, "type">;
155
+ export type ExtraAgentsParameters = Omit<v.InferInput<typeof ExtraAgentsRequest>, "type">;
153
156
  /** Request parameters for the {@linkcode InfoClient.frontendOpenOrders} method. */
154
- export type FrontendOpenOrdersParameters = Omit<FrontendOpenOrdersRequest, "type">;
157
+ export type FrontendOpenOrdersParameters = Omit<v.InferInput<typeof FrontendOpenOrdersRequest>, "type">;
155
158
  /** Request parameters for the {@linkcode InfoClient.fundingHistory} method. */
156
- export type FundingHistoryParameters = Omit<FundingHistoryRequest, "type">;
159
+ export type FundingHistoryParameters = Omit<v.InferInput<typeof FundingHistoryRequest>, "type">;
157
160
  /** Request parameters for the {@linkcode InfoClient.historicalOrders} method. */
158
- export type HistoricalOrdersParameters = Omit<HistoricalOrdersRequest, "type">;
161
+ export type HistoricalOrdersParameters = Omit<v.InferInput<typeof HistoricalOrdersRequest>, "type">;
159
162
  /** Request parameters for the {@linkcode InfoClient.isVip} method. */
160
- export type IsVipParameters = Omit<IsVipRequest, "type">;
163
+ export type IsVipParameters = Omit<v.InferInput<typeof IsVipRequest>, "type">;
161
164
  /** Request parameters for the {@linkcode InfoClient.l2Book} method. */
162
- export type L2BookParameters = Omit<L2BookRequest, "type">;
165
+ export type L2BookParameters = Omit<v.InferInput<typeof L2BookRequest>, "type">;
163
166
  /** Request parameters for the {@linkcode InfoClient.leadingVaults} method. */
164
- export type LeadingVaultsParameters = Omit<LeadingVaultsRequest, "type">;
167
+ export type LeadingVaultsParameters = Omit<v.InferInput<typeof LeadingVaultsRequest>, "type">;
165
168
  /** Request parameters for the {@linkcode InfoClient.legalCheck} method. */
166
- export type LegalCheckParameters = Omit<LegalCheckRequest, "type">;
169
+ export type LegalCheckParameters = Omit<v.InferInput<typeof LegalCheckRequest>, "type">;
167
170
  /** Request parameters for the {@linkcode InfoClient.marginTable} method. */
168
- export type MarginTableParameters = Omit<MarginTableRequest, "type">;
171
+ export type MarginTableParameters = Omit<v.InferInput<typeof MarginTableRequest>, "type">;
169
172
  /** Request parameters for the {@linkcode InfoClient.maxBuilderFee} method. */
170
- export type MaxBuilderFeeParameters = Omit<MaxBuilderFeeRequest, "type">;
173
+ export type MaxBuilderFeeParameters = Omit<v.InferInput<typeof MaxBuilderFeeRequest>, "type">;
171
174
  /** Request parameters for the {@linkcode InfoClient.meta} method. */
172
- export type MetaParameters = Omit<MetaRequest, "type">;
175
+ export type MetaParameters = Omit<v.InferInput<typeof MetaRequest>, "type">;
173
176
  /** Request parameters for the {@linkcode InfoClient.metaAndAssetCtxs} method. */
174
- export type MetaAndAssetCtxsParameters = Omit<MetaAndAssetCtxsRequest, "type">;
177
+ export type MetaAndAssetCtxsParameters = Omit<v.InferInput<typeof MetaAndAssetCtxsRequest>, "type">;
175
178
  /** Request parameters for the {@linkcode InfoClient.openOrders} method. */
176
- export type OpenOrdersParameters = Omit<OpenOrdersRequest, "type">;
179
+ export type OpenOrdersParameters = Omit<v.InferInput<typeof OpenOrdersRequest>, "type">;
177
180
  /** Request parameters for the {@linkcode InfoClient.orderStatus} method. */
178
- export type OrderStatusParameters = Omit<OrderStatusRequest, "type">;
181
+ export type OrderStatusParameters = Omit<v.InferInput<typeof OrderStatusRequest>, "type">;
179
182
  /** Request parameters for the {@linkcode InfoClient.perpDexLimits} method. */
180
- export type PerpDexLimitsParameters = Omit<PerpDexLimitsRequest, "type">;
183
+ export type PerpDexLimitsParameters = Omit<v.InferInput<typeof PerpDexLimitsRequest>, "type">;
181
184
  /** Request parameters for the {@linkcode InfoClient.perpsAtOpenInterestCap} method. */
182
- export type PerpsAtOpenInterestCapParameters = Omit<PerpsAtOpenInterestCapRequest, "type">;
185
+ export type PerpsAtOpenInterestCapParameters = Omit<v.InferInput<typeof PerpsAtOpenInterestCapRequest>, "type">;
183
186
  /** Request parameters for the {@linkcode InfoClient.portfolio} method. */
184
- export type PortfolioParameters = Omit<PortfolioRequest, "type">;
187
+ export type PortfolioParameters = Omit<v.InferInput<typeof PortfolioRequest>, "type">;
185
188
  /** Request parameters for the {@linkcode InfoClient.preTransferCheck} method. */
186
- export type PreTransferCheckParameters = Omit<PreTransferCheckRequest, "type">;
189
+ export type PreTransferCheckParameters = Omit<v.InferInput<typeof PreTransferCheckRequest>, "type">;
187
190
  /** Request parameters for the {@linkcode InfoClient.recentTrades} method. */
188
- export type RecentTradesParameters = Omit<RecentTradesRequest, "type">;
191
+ export type RecentTradesParameters = Omit<v.InferInput<typeof RecentTradesRequest>, "type">;
189
192
  /** Request parameters for the {@linkcode InfoClient.referral} method. */
190
- export type ReferralParameters = Omit<ReferralRequest, "type">;
193
+ export type ReferralParameters = Omit<v.InferInput<typeof ReferralRequest>, "type">;
191
194
  /** Request parameters for the {@linkcode InfoClient.spotClearinghouseState} method. */
192
- export type SpotClearinghouseStateParameters = Omit<SpotClearinghouseStateRequest, "type">;
195
+ export type SpotClearinghouseStateParameters = Omit<v.InferInput<typeof SpotClearinghouseStateRequest>, "type">;
193
196
  /** Request parameters for the {@linkcode InfoClient.spotDeployState} method. */
194
- export type SpotDeployStateParameters = Omit<SpotDeployStateRequest, "type">;
197
+ export type SpotDeployStateParameters = Omit<v.InferInput<typeof SpotDeployStateRequest>, "type">;
195
198
  /** Request parameters for the {@linkcode InfoClient.subAccounts} method. */
196
- export type SubAccountsParameters = Omit<SubAccountsRequest, "type">;
199
+ export type SubAccountsParameters = Omit<v.InferInput<typeof SubAccountsRequest>, "type">;
197
200
  /** Request parameters for the {@linkcode InfoClient.tokenDetails} method. */
198
- export type TokenDetailsParameters = Omit<TokenDetailsRequest, "type">;
201
+ export type TokenDetailsParameters = Omit<v.InferInput<typeof TokenDetailsRequest>, "type">;
199
202
  /** Request parameters for the {@linkcode InfoClient.twapHistory} method. */
200
- export type TwapHistoryParameters = Omit<TwapHistoryRequest, "type">;
203
+ export type TwapHistoryParameters = Omit<v.InferInput<typeof TwapHistoryRequest>, "type">;
201
204
  /** Request parameters for the {@linkcode InfoClient.txDetails} method. */
202
- export type TxDetailsParameters = Omit<TxDetailsRequest, "type">;
205
+ export type TxDetailsParameters = Omit<v.InferInput<typeof TxDetailsRequest>, "type">;
203
206
  /** Request parameters for the {@linkcode InfoClient.userDetails} method. */
204
- export type UserDetailsParameters = Omit<UserDetailsRequest, "type">;
207
+ export type UserDetailsParameters = Omit<v.InferInput<typeof UserDetailsRequest>, "type">;
205
208
  /** Request parameters for the {@linkcode InfoClient.userFees} method. */
206
- export type UserFeesParameters = Omit<UserFeesRequest, "type">;
209
+ export type UserFeesParameters = Omit<v.InferInput<typeof UserFeesRequest>, "type">;
207
210
  /** Request parameters for the {@linkcode InfoClient.userFills} method. */
208
- export type UserFillsParameters = Omit<UserFillsRequest, "type">;
211
+ export type UserFillsParameters = Omit<v.InferInput<typeof UserFillsRequest>, "type">;
209
212
  /** Request parameters for the {@linkcode InfoClient.userFillsByTime} method. */
210
- export type UserFillsByTimeParameters = Omit<UserFillsByTimeRequest, "type">;
213
+ export type UserFillsByTimeParameters = Omit<v.InferInput<typeof UserFillsByTimeRequest>, "type">;
211
214
  /** Request parameters for the {@linkcode InfoClient.userFunding} method. */
212
- export type UserFundingParameters = Omit<UserFundingRequest, "type">;
215
+ export type UserFundingParameters = Omit<v.InferInput<typeof UserFundingRequest>, "type">;
213
216
  /** Request parameters for the {@linkcode InfoClient.userNonFundingLedgerUpdates} method. */
214
- export type UserNonFundingLedgerUpdatesParameters = Omit<UserNonFundingLedgerUpdatesRequest, "type">;
217
+ export type UserNonFundingLedgerUpdatesParameters = Omit<
218
+ v.InferInput<typeof UserNonFundingLedgerUpdatesRequest>,
219
+ "type"
220
+ >;
215
221
  /** Request parameters for the {@linkcode InfoClient.userRateLimit} method. */
216
- export type UserRateLimitParameters = Omit<UserRateLimitRequest, "type">;
222
+ export type UserRateLimitParameters = Omit<v.InferInput<typeof UserRateLimitRequest>, "type">;
217
223
  /** Request parameters for the {@linkcode InfoClient.userRole} method. */
218
- export type UserRoleParameters = Omit<UserRoleRequest, "type">;
224
+ export type UserRoleParameters = Omit<v.InferInput<typeof UserRoleRequest>, "type">;
219
225
  /** Request parameters for the {@linkcode InfoClient.userToMultiSigSigners} method. */
220
- export type UserToMultiSigSignersParameters = Omit<UserToMultiSigSignersRequest, "type">;
226
+ export type UserToMultiSigSignersParameters = Omit<v.InferInput<typeof UserToMultiSigSignersRequest>, "type">;
221
227
  /** Request parameters for the {@linkcode InfoClient.userTwapSliceFills} method. */
222
- export type UserTwapSliceFillsParameters = Omit<UserTwapSliceFillsRequest, "type">;
228
+ export type UserTwapSliceFillsParameters = Omit<v.InferInput<typeof UserTwapSliceFillsRequest>, "type">;
223
229
  /** Request parameters for the {@linkcode InfoClient.userTwapSliceFillsByTime} method. */
224
- export type UserTwapSliceFillsByTimeParameters = Omit<UserTwapSliceFillsByTimeRequest, "type">;
230
+ export type UserTwapSliceFillsByTimeParameters = Omit<v.InferInput<typeof UserTwapSliceFillsByTimeRequest>, "type">;
225
231
  /** Request parameters for the {@linkcode InfoClient.userVaultEquities} method. */
226
- export type UserVaultEquitiesParameters = Omit<UserVaultEquitiesRequest, "type">;
232
+ export type UserVaultEquitiesParameters = Omit<v.InferInput<typeof UserVaultEquitiesRequest>, "type">;
227
233
  /** Request parameters for the {@linkcode InfoClient.vaultDetails} method. */
228
- export type VaultDetailsParameters = Omit<VaultDetailsRequest, "type">;
234
+ export type VaultDetailsParameters = Omit<v.InferInput<typeof VaultDetailsRequest>, "type">;
235
+ /** Request parameters for the {@linkcode InfoClient.webData2} method. */
236
+ export type WebData2Parameters = Omit<v.InferInput<typeof WebData2Request>, "type">;
229
237
 
230
238
  /**
231
239
  * Info client for interacting with the Hyperliquid API.
@@ -233,7 +241,7 @@ export type VaultDetailsParameters = Omit<VaultDetailsRequest, "type">;
233
241
  */
234
242
  export class InfoClient<
235
243
  T extends IRequestTransport = IRequestTransport,
236
- > implements InfoClientParameters<T>, AsyncDisposable {
244
+ > implements InfoClientParameters<T> {
237
245
  transport: T;
238
246
 
239
247
  /**
@@ -255,7 +263,7 @@ export class InfoClient<
255
263
  /**
256
264
  * Request user active asset data.
257
265
  * @param params - An optional request-specific parameters.
258
- * @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}.
266
+ * @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).
259
267
  * @returns User active asset data.
260
268
  *
261
269
  * @throws {TransportError} When the transport layer throws an error.
@@ -285,7 +293,7 @@ export class InfoClient<
285
293
  /**
286
294
  * Request mid coin prices.
287
295
  * @param params - An optional request-specific parameters.
288
- * @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}.
296
+ * @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).
289
297
  * @returns Mapping of coin symbols to mid prices.
290
298
  *
291
299
  * @throws {TransportError} When the transport layer throws an error.
@@ -304,11 +312,11 @@ export class InfoClient<
304
312
  allMids(params?: DeepImmutable<AllMidsParameters>, signal?: AbortSignal): Promise<AllMids>;
305
313
  allMids(signal?: AbortSignal): Promise<AllMids>;
306
314
  allMids(
307
- params_or_signal?: DeepImmutable<AllMidsParameters> | AbortSignal,
315
+ paramsOrSignal?: DeepImmutable<AllMidsParameters> | AbortSignal,
308
316
  maybeSignal?: AbortSignal,
309
317
  ): Promise<AllMids> {
310
- const params = params_or_signal instanceof AbortSignal ? {} : params_or_signal;
311
- const signal = params_or_signal instanceof AbortSignal ? params_or_signal : maybeSignal;
318
+ const params = paramsOrSignal instanceof AbortSignal ? {} : paramsOrSignal;
319
+ const signal = paramsOrSignal instanceof AbortSignal ? paramsOrSignal : maybeSignal;
312
320
 
313
321
  const request = parser(AllMidsRequest)({
314
322
  type: "allMids",
@@ -320,7 +328,7 @@ export class InfoClient<
320
328
  /**
321
329
  * Block details by block height.
322
330
  * @param params - Request-specific parameters.
323
- * @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}.
331
+ * @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).
324
332
  * @returns Block details.
325
333
  *
326
334
  * @throws {TransportError} When the transport layer throws an error.
@@ -353,7 +361,7 @@ export class InfoClient<
353
361
  /**
354
362
  * Request candlestick snapshots.
355
363
  * @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}.
364
+ * @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
365
  * @returns Array of candlestick data points.
358
366
  *
359
367
  * @throws {TransportError} When the transport layer throws an error.
@@ -387,7 +395,7 @@ export class InfoClient<
387
395
  /**
388
396
  * Request clearinghouse state.
389
397
  * @param params - Request-specific parameters.
390
- * @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}.
398
+ * @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).
391
399
  * @returns Account summary for perpetual trading.
392
400
  *
393
401
  * @throws {TransportError} When the transport layer throws an error.
@@ -417,7 +425,7 @@ export class InfoClient<
417
425
  /**
418
426
  * Request user staking delegations.
419
427
  * @param params - Request-specific parameters.
420
- * @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}.
428
+ * @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).
421
429
  * @returns Array of user's delegations to validators.
422
430
  *
423
431
  * @throws {TransportError} When the transport layer throws an error.
@@ -447,7 +455,7 @@ export class InfoClient<
447
455
  /**
448
456
  * Request user staking history.
449
457
  * @param params - Request-specific parameters.
450
- * @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}.
458
+ * @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).
451
459
  * @returns Array of user's staking updates.
452
460
  *
453
461
  * @throws {TransportError} When the transport layer throws an error.
@@ -477,7 +485,7 @@ export class InfoClient<
477
485
  /**
478
486
  * Request user staking rewards.
479
487
  * @param params - Request-specific parameters.
480
- * @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}.
488
+ * @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).
481
489
  * @returns Array of user's staking rewards.
482
490
  *
483
491
  * @throws {TransportError} When the transport layer throws an error.
@@ -507,7 +515,7 @@ export class InfoClient<
507
515
  /**
508
516
  * Request user staking summary.
509
517
  * @param params - Request-specific parameters.
510
- * @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}.
518
+ * @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).
511
519
  * @returns Summary of a user's staking delegations.
512
520
  *
513
521
  * @throws {TransportError} When the transport layer throws an error.
@@ -536,7 +544,7 @@ export class InfoClient<
536
544
 
537
545
  /**
538
546
  * Request exchange status information.
539
- * @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}.
547
+ * @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).
540
548
  * @returns Exchange system status information.
541
549
  *
542
550
  * @throws {TransportError} When the transport layer throws an error.
@@ -562,7 +570,7 @@ export class InfoClient<
562
570
  /**
563
571
  * Request user's extra agents.
564
572
  * @param params - Request-specific parameters.
565
- * @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}.
573
+ * @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).
566
574
  * @returns User's extra agents.
567
575
  *
568
576
  * @throws {TransportError} When the transport layer throws an error.
@@ -592,7 +600,7 @@ export class InfoClient<
592
600
  /**
593
601
  * Request frontend open orders.
594
602
  * @param params - Request-specific parameters.
595
- * @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}.
603
+ * @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).
596
604
  * @returns Array of open orders with additional frontend information.
597
605
  *
598
606
  * @throws {TransportError} When the transport layer throws an error.
@@ -622,7 +630,7 @@ export class InfoClient<
622
630
  /**
623
631
  * Request funding history.
624
632
  * @param params - Request-specific parameters.
625
- * @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}.
633
+ * @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).
626
634
  * @returns Array of historical funding rate data for an asset.
627
635
  *
628
636
  * @throws {TransportError} When the transport layer throws an error.
@@ -654,7 +662,7 @@ export class InfoClient<
654
662
 
655
663
  /**
656
664
  * Request gossip root IPs.
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}.
665
+ * @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
666
  * @returns Array of gossip root IPs.
659
667
  *
660
668
  * @throws {TransportError} When the transport layer throws an error.
@@ -682,7 +690,7 @@ export class InfoClient<
682
690
  /**
683
691
  * Request user's historical orders.
684
692
  * @param params - Request-specific parameters.
685
- * @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}.
693
+ * @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).
686
694
  * @returns Array of user's historical orders.
687
695
  *
688
696
  * @throws {TransportError} When the transport layer throws an error.
@@ -712,7 +720,7 @@ export class InfoClient<
712
720
  /**
713
721
  * Request to check if a user is a VIP.
714
722
  * @param params - Request-specific parameters.
715
- * @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}.
723
+ * @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).
716
724
  * @returns Boolean indicating user's VIP status.
717
725
  *
718
726
  * @throws {TransportError} When the transport layer throws an error.
@@ -742,7 +750,7 @@ export class InfoClient<
742
750
  /**
743
751
  * Request L2 order book.
744
752
  * @param params - Request-specific parameters.
745
- * @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}.
753
+ * @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).
746
754
  * @returns L2 order book snapshot.
747
755
  *
748
756
  * @throws {TransportError} When the transport layer throws an error.
@@ -772,7 +780,7 @@ export class InfoClient<
772
780
  /**
773
781
  * Request leading vaults for a user.
774
782
  * @param params - Request-specific parameters.
775
- * @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}.
783
+ * @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).
776
784
  * @returns
777
785
  *
778
786
  * @throws {TransportError} When the transport layer throws an error.
@@ -802,7 +810,7 @@ export class InfoClient<
802
810
  /**
803
811
  * Request legal verification status of a user.
804
812
  * @param params - Request-specific parameters.
805
- * @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}.
813
+ * @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).
806
814
  * @returns Legal verification status for a user.
807
815
  *
808
816
  * @throws {TransportError} When the transport layer throws an error.
@@ -831,7 +839,7 @@ export class InfoClient<
831
839
 
832
840
  /**
833
841
  * Request liquidatable.
834
- * @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}.
842
+ * @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).
835
843
  * @returns
836
844
  *
837
845
  * @throws {TransportError} When the transport layer throws an error.
@@ -857,7 +865,7 @@ export class InfoClient<
857
865
  /**
858
866
  * Request margin table data.
859
867
  * @param params - Request-specific parameters.
860
- * @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}.
868
+ * @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).
861
869
  * @returns Margin requirements table with multiple tiers.
862
870
  *
863
871
  * @throws {TransportError} When the transport layer throws an error.
@@ -887,7 +895,7 @@ export class InfoClient<
887
895
  /**
888
896
  * Request builder fee approval.
889
897
  * @param params - Request-specific parameters.
890
- * @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}.
898
+ * @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).
891
899
  * @returns Maximum builder fee approval.
892
900
  *
893
901
  * @throws {TransportError} When the transport layer throws an error.
@@ -916,7 +924,7 @@ export class InfoClient<
916
924
 
917
925
  /**
918
926
  * Request maximum market order notionals.
919
- * @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}.
927
+ * @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).
920
928
  * @returns
921
929
  *
922
930
  * @throws {TransportError} When the transport layer throws an error.
@@ -942,7 +950,7 @@ export class InfoClient<
942
950
  /**
943
951
  * Request trading metadata.
944
952
  * @param params - An optional request-specific parameters.
945
- * @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).
946
954
  * @returns Metadata for perpetual assets.
947
955
  *
948
956
  * @throws {TransportError} When the transport layer throws an error.
@@ -961,11 +969,11 @@ export class InfoClient<
961
969
  meta(params?: DeepImmutable<MetaParameters>, signal?: AbortSignal): Promise<PerpsMeta>;
962
970
  meta(signal?: AbortSignal): Promise<PerpsMeta>;
963
971
  meta(
964
- params_or_signal?: DeepImmutable<MetaParameters> | AbortSignal,
972
+ paramsOrSignal?: DeepImmutable<MetaParameters> | AbortSignal,
965
973
  maybeSignal?: AbortSignal,
966
974
  ): Promise<PerpsMeta> {
967
- const params = params_or_signal instanceof AbortSignal ? {} : params_or_signal;
968
- const signal = params_or_signal instanceof AbortSignal ? params_or_signal : maybeSignal;
975
+ const params = paramsOrSignal instanceof AbortSignal ? {} : paramsOrSignal;
976
+ const signal = paramsOrSignal instanceof AbortSignal ? paramsOrSignal : maybeSignal;
969
977
 
970
978
  const request = parser(MetaRequest)({
971
979
  type: "meta",
@@ -976,7 +984,7 @@ export class InfoClient<
976
984
 
977
985
  /**
978
986
  * Request metadata and asset contexts.
979
- * @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}.
987
+ * @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).
980
988
  * @returns Metadata and context for perpetual assets.
981
989
  *
982
990
  * @throws {TransportError} When the transport layer throws an error.
@@ -998,11 +1006,11 @@ export class InfoClient<
998
1006
  ): Promise<PerpsMetaAndAssetCtxs>;
999
1007
  metaAndAssetCtxs(signal?: AbortSignal): Promise<PerpsMetaAndAssetCtxs>;
1000
1008
  metaAndAssetCtxs(
1001
- params_or_signal?: DeepImmutable<MetaAndAssetCtxsParameters> | AbortSignal,
1009
+ paramsOrSignal?: DeepImmutable<MetaAndAssetCtxsParameters> | AbortSignal,
1002
1010
  maybeSignal?: AbortSignal,
1003
1011
  ): Promise<PerpsMetaAndAssetCtxs> {
1004
- const params = params_or_signal instanceof AbortSignal ? {} : params_or_signal;
1005
- const signal = params_or_signal instanceof AbortSignal ? params_or_signal : maybeSignal;
1012
+ const params = paramsOrSignal instanceof AbortSignal ? {} : paramsOrSignal;
1013
+ const signal = paramsOrSignal instanceof AbortSignal ? paramsOrSignal : maybeSignal;
1006
1014
 
1007
1015
  const request = parser(MetaAndAssetCtxsRequest)({
1008
1016
  type: "metaAndAssetCtxs",
@@ -1014,7 +1022,7 @@ export class InfoClient<
1014
1022
  /**
1015
1023
  * Request open orders.
1016
1024
  * @param params - Request-specific parameters.
1017
- * @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}.
1025
+ * @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).
1018
1026
  * @returns Array of open order.
1019
1027
  *
1020
1028
  * @throws {TransportError} When the transport layer throws an error.
@@ -1044,7 +1052,7 @@ export class InfoClient<
1044
1052
  /**
1045
1053
  * Request order status.
1046
1054
  * @param params - Request-specific parameters.
1047
- * @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}.
1055
+ * @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).
1048
1056
  * @returns Result of an order status lookup.
1049
1057
  *
1050
1058
  * @throws {TransportError} When the transport layer throws an error.
@@ -1073,7 +1081,7 @@ export class InfoClient<
1073
1081
 
1074
1082
  /**
1075
1083
  * Request for the status of the perpetual deploy auction.
1076
- * @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}.
1084
+ * @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).
1077
1085
  * @returns Status of the perpetual deploy auction.
1078
1086
  *
1079
1087
  * @throws {TransportError} When the transport layer throws an error.
@@ -1098,7 +1106,7 @@ export class InfoClient<
1098
1106
 
1099
1107
  /**
1100
1108
  * Request builder deployed perpetual market limits.
1101
- * @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}.
1109
+ * @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).
1102
1110
  * @returns Status of the perpetual deploy auction.
1103
1111
  *
1104
1112
  * @throws {TransportError} When the transport layer throws an error.
@@ -1127,7 +1135,7 @@ export class InfoClient<
1127
1135
 
1128
1136
  /**
1129
1137
  * Request all perpetual dexs.
1130
- * @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}.
1138
+ * @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).
1131
1139
  * @returns Array of perpetual dexes (null is main dex).
1132
1140
  *
1133
1141
  * @throws {TransportError} When the transport layer throws an error.
@@ -1152,7 +1160,7 @@ export class InfoClient<
1152
1160
 
1153
1161
  /**
1154
1162
  * Request perpetuals at open interest cap.
1155
- * @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}.
1163
+ * @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).
1156
1164
  * @returns Array of perpetuals at open interest caps.
1157
1165
  *
1158
1166
  * @throws {TransportError} When the transport layer throws an error.
@@ -1174,11 +1182,11 @@ export class InfoClient<
1174
1182
  ): Promise<string[]>;
1175
1183
  perpsAtOpenInterestCap(signal?: AbortSignal): Promise<string[]>;
1176
1184
  perpsAtOpenInterestCap(
1177
- params_or_signal?: DeepImmutable<PerpsAtOpenInterestCapParameters> | AbortSignal,
1185
+ paramsOrSignal?: DeepImmutable<PerpsAtOpenInterestCapParameters> | AbortSignal,
1178
1186
  maybeSignal?: AbortSignal,
1179
1187
  ): Promise<string[]> {
1180
- const params = params_or_signal instanceof AbortSignal ? {} : params_or_signal;
1181
- const signal = params_or_signal instanceof AbortSignal ? params_or_signal : maybeSignal;
1188
+ const params = paramsOrSignal instanceof AbortSignal ? {} : paramsOrSignal;
1189
+ const signal = paramsOrSignal instanceof AbortSignal ? paramsOrSignal : maybeSignal;
1182
1190
 
1183
1191
  const request = parser(PerpsAtOpenInterestCapRequest)({
1184
1192
  type: "perpsAtOpenInterestCap",
@@ -1190,7 +1198,7 @@ export class InfoClient<
1190
1198
  /**
1191
1199
  * Request user portfolio.
1192
1200
  * @param params - Request-specific parameters.
1193
- * @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}.
1201
+ * @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).
1194
1202
  * @returns Portfolio metrics grouped by time periods.
1195
1203
  *
1196
1204
  * @throws {TransportError} When the transport layer throws an error.
@@ -1219,7 +1227,7 @@ export class InfoClient<
1219
1227
 
1220
1228
  /**
1221
1229
  * Request predicted funding rates.
1222
- * @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}.
1230
+ * @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).
1223
1231
  * @returns Array of predicted funding rates.
1224
1232
  *
1225
1233
  * @throws {TransportError} When the transport layer throws an error.
@@ -1245,7 +1253,7 @@ export class InfoClient<
1245
1253
  /**
1246
1254
  * Request user's existence check before transfer.
1247
1255
  * @param params - Request-specific parameters.
1248
- * @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}.
1256
+ * @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).
1249
1257
  * @returns Pre-transfer user existence check result.
1250
1258
  *
1251
1259
  * @throws {TransportError} When the transport layer throws an error.
@@ -1275,7 +1283,7 @@ export class InfoClient<
1275
1283
  /**
1276
1284
  * Request recent trades.
1277
1285
  * @param params - Request-specific parameters.
1278
- * @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}.
1286
+ * @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).
1279
1287
  * @returns Array of recent trades.
1280
1288
  *
1281
1289
  * @throws {TransportError} When the transport layer throws an error.
@@ -1305,7 +1313,7 @@ export class InfoClient<
1305
1313
  /**
1306
1314
  * Request user referral.
1307
1315
  * @param params - Request-specific parameters.
1308
- * @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}.
1316
+ * @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).
1309
1317
  * @returns Referral information for a user.
1310
1318
  *
1311
1319
  * @throws {TransportError} When the transport layer throws an error.
@@ -1335,7 +1343,7 @@ export class InfoClient<
1335
1343
  /**
1336
1344
  * Request spot clearinghouse state.
1337
1345
  * @param params - Request-specific parameters.
1338
- * @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).
1339
1347
  * @returns Account summary for spot trading.
1340
1348
  *
1341
1349
  * @throws {TransportError} When the transport layer throws an error.
@@ -1365,7 +1373,7 @@ export class InfoClient<
1365
1373
  /**
1366
1374
  * Request spot deploy state.
1367
1375
  * @param params - Request-specific parameters.
1368
- * @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}.
1376
+ * @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).
1369
1377
  * @returns Deploy state for spot tokens.
1370
1378
  *
1371
1379
  * @throws {TransportError} When the transport layer throws an error.
@@ -1394,7 +1402,7 @@ export class InfoClient<
1394
1402
 
1395
1403
  /**
1396
1404
  * Request spot trading metadata.
1397
- * @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}.
1405
+ * @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).
1398
1406
  * @returns Metadata for spot assets.
1399
1407
  *
1400
1408
  * @throws {TransportError} When the transport layer throws an error.
@@ -1419,7 +1427,7 @@ export class InfoClient<
1419
1427
 
1420
1428
  /**
1421
1429
  * Request spot metadata and asset contexts.
1422
- * @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}.
1430
+ * @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).
1423
1431
  * @returns Metadata and context for spot assets.
1424
1432
  *
1425
1433
  * @throws {TransportError} When the transport layer throws an error.
@@ -1444,7 +1452,7 @@ export class InfoClient<
1444
1452
 
1445
1453
  /**
1446
1454
  * Request for the status of the spot deploy auction.
1447
- * @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}.
1455
+ * @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).
1448
1456
  * @returns Status of the spot deploy auction.
1449
1457
  *
1450
1458
  * @throws {TransportError} When the transport layer throws an error.
@@ -1470,7 +1478,7 @@ export class InfoClient<
1470
1478
  /**
1471
1479
  * Request user sub-accounts.
1472
1480
  * @param params - Request-specific parameters.
1473
- * @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}.
1481
+ * @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).
1474
1482
  * @returns Array of user sub-account or null if the user does not have any sub-accounts.
1475
1483
  *
1476
1484
  * @throws {TransportError} When the transport layer throws an error.
@@ -1500,7 +1508,7 @@ export class InfoClient<
1500
1508
  /**
1501
1509
  * Request token details.
1502
1510
  * @param params - Request-specific parameters.
1503
- * @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}.
1511
+ * @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).
1504
1512
  * @returns Details of a token.
1505
1513
  *
1506
1514
  * @throws {TransportError} When the transport layer throws an error.
@@ -1530,7 +1538,7 @@ export class InfoClient<
1530
1538
  /**
1531
1539
  * Request twap history of a user.
1532
1540
  * @param params - Request-specific parameters.
1533
- * @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}.
1541
+ * @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).
1534
1542
  * @returns Array of user's TWAP history.
1535
1543
  *
1536
1544
  * @throws {TransportError} When the transport layer throws an error.
@@ -1560,7 +1568,7 @@ export class InfoClient<
1560
1568
  /**
1561
1569
  * Request transaction details by transaction hash.
1562
1570
  * @param params - Request-specific parameters.
1563
- * @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}.
1571
+ * @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).
1564
1572
  * @returns Transaction details.
1565
1573
  *
1566
1574
  * @throws {TransportError} When the transport layer throws an error.
@@ -1593,7 +1601,7 @@ export class InfoClient<
1593
1601
  /**
1594
1602
  * Request user details by user's address.
1595
1603
  * @param params - Request-specific parameters.
1596
- * @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}.
1604
+ * @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).
1597
1605
  * @returns User details.
1598
1606
  *
1599
1607
  * @throws {TransportError} When the transport layer throws an error.
@@ -1626,7 +1634,7 @@ export class InfoClient<
1626
1634
  /**
1627
1635
  * Request user fees.
1628
1636
  * @param params - Request-specific parameters.
1629
- * @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}.
1637
+ * @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).
1630
1638
  * @returns User fees.
1631
1639
  *
1632
1640
  * @throws {TransportError} When the transport layer throws an error.
@@ -1656,7 +1664,7 @@ export class InfoClient<
1656
1664
  /**
1657
1665
  * Request user fills.
1658
1666
  * @param params - Request-specific parameters.
1659
- * @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}.
1667
+ * @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).
1660
1668
  * @returns Array of user's trade fill.
1661
1669
  *
1662
1670
  * @throws {TransportError} When the transport layer throws an error.
@@ -1686,7 +1694,7 @@ export class InfoClient<
1686
1694
  /**
1687
1695
  * Request user fills by time.
1688
1696
  * @param params - Request-specific parameters.
1689
- * @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}.
1697
+ * @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).
1690
1698
  * @returns Array of user's trade fill.
1691
1699
  *
1692
1700
  * @throws {TransportError} When the transport layer throws an error.
@@ -1719,7 +1727,7 @@ export class InfoClient<
1719
1727
  /**
1720
1728
  * Request user funding.
1721
1729
  * @param params - Request-specific parameters.
1722
- * @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}.
1730
+ * @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).
1723
1731
  * @returns Array of user's funding ledger update.
1724
1732
  *
1725
1733
  * @throws {TransportError} When the transport layer throws an error.
@@ -1752,7 +1760,7 @@ export class InfoClient<
1752
1760
  /**
1753
1761
  * Request user non-funding ledger updates.
1754
1762
  * @param params - Request-specific parameters.
1755
- * @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}.
1763
+ * @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).
1756
1764
  * @returns Array of user's non-funding ledger update.
1757
1765
  *
1758
1766
  * @throws {TransportError} When the transport layer throws an error.
@@ -1785,7 +1793,7 @@ export class InfoClient<
1785
1793
  /**
1786
1794
  * Request user rate limits.
1787
1795
  * @param params - Request-specific parameters.
1788
- * @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}.
1796
+ * @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).
1789
1797
  * @returns User's rate limits.
1790
1798
  *
1791
1799
  * @throws {TransportError} When the transport layer throws an error.
@@ -1815,7 +1823,7 @@ export class InfoClient<
1815
1823
  /**
1816
1824
  * Request user role.
1817
1825
  * @param params - Request-specific parameters.
1818
- * @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}.
1826
+ * @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).
1819
1827
  * @returns User's role.
1820
1828
  *
1821
1829
  * @throws {TransportError} When the transport layer throws an error.
@@ -1845,7 +1853,7 @@ export class InfoClient<
1845
1853
  /**
1846
1854
  * Request multi-sig signers for a user.
1847
1855
  * @param params - Request-specific parameters.
1848
- * @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}.
1856
+ * @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).
1849
1857
  * @returns Multi-sig signers for a user or null if the user does not have any multi-sig signers.
1850
1858
  *
1851
1859
  * @throws {TransportError} When the transport layer throws an error.
@@ -1875,7 +1883,7 @@ export class InfoClient<
1875
1883
  /**
1876
1884
  * Request user twap slice fills.
1877
1885
  * @param params - Request-specific parameters.
1878
- * @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}.
1886
+ * @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).
1879
1887
  * @returns Array of user's twap slice fill.
1880
1888
  *
1881
1889
  * @throws {TransportError} When the transport layer throws an error.
@@ -1905,7 +1913,7 @@ export class InfoClient<
1905
1913
  /**
1906
1914
  * Request user twap slice fills by time.
1907
1915
  * @param params - Request-specific parameters.
1908
- * @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}.
1916
+ * @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).
1909
1917
  * @returns Array of user's twap slice fill.
1910
1918
  *
1911
1919
  * @throws {TransportError} When the transport layer throws an error.
@@ -1938,7 +1946,7 @@ export class InfoClient<
1938
1946
  /**
1939
1947
  * Request user vault deposits.
1940
1948
  * @param params - Request-specific parameters.
1941
- * @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}.
1949
+ * @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).
1942
1950
  * @returns Array of user's vault deposits.
1943
1951
  *
1944
1952
  * @throws {TransportError} When the transport layer throws an error.
@@ -1967,7 +1975,7 @@ export class InfoClient<
1967
1975
 
1968
1976
  /**
1969
1977
  * Request validator L1 votes.
1970
- * @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}.
1978
+ * @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).
1971
1979
  * @returns
1972
1980
  *
1973
1981
  * @throws {TransportError} When the transport layer throws an error.
@@ -1992,7 +2000,7 @@ export class InfoClient<
1992
2000
 
1993
2001
  /**
1994
2002
  * Request validator summaries.
1995
- * @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}.
2003
+ * @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).
1996
2004
  * @returns Array of validator summaries.
1997
2005
  *
1998
2006
  * @throws {TransportError} When the transport layer throws an error.
@@ -2018,7 +2026,7 @@ export class InfoClient<
2018
2026
  /**
2019
2027
  * Request details of a vault.
2020
2028
  * @param params - Request-specific parameters.
2021
- * @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}.
2029
+ * @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).
2022
2030
  * @returns Details of a vault or null if the vault does not exist.
2023
2031
  *
2024
2032
  * @throws {TransportError} When the transport layer throws an error.
@@ -2047,7 +2055,7 @@ export class InfoClient<
2047
2055
 
2048
2056
  /**
2049
2057
  * Request a list of vaults less than 2 hours old.
2050
- * @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}.
2058
+ * @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).
2051
2059
  * @returns Array of vault summaries.
2052
2060
  *
2053
2061
  * @throws {TransportError} When the transport layer throws an error.
@@ -2070,7 +2078,33 @@ export class InfoClient<
2070
2078
  return this.transport.request("info", request, signal);
2071
2079
  }
2072
2080
 
2073
- async [Symbol.asyncDispose](): Promise<void> {
2074
- await this.transport[Symbol.asyncDispose]?.();
2081
+ /**
2082
+ * Request comprehensive user and market data.
2083
+ * @param params - Request-specific parameters.
2084
+ * @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).
2085
+ * @returns Comprehensive user and market data.
2086
+ *
2087
+ * @throws {TransportError} When the transport layer throws an error.
2088
+ *
2089
+ * @see null
2090
+ * @example
2091
+ * ```ts
2092
+ * import * as hl from "@nktkas/hyperliquid";
2093
+ *
2094
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
2095
+ * const infoClient = new hl.InfoClient({ transport });
2096
+ *
2097
+ * const data = await infoClient.webData2({ user: "0x..." });
2098
+ * ```
2099
+ */
2100
+ webData2(
2101
+ params: DeepImmutable<WebData2Parameters>,
2102
+ signal?: AbortSignal,
2103
+ ): Promise<WebData2> {
2104
+ const request = parser(WebData2Request)({
2105
+ type: "webData2",
2106
+ ...params,
2107
+ });
2108
+ return this.transport.request("info", request, signal);
2075
2109
  }
2076
2110
  }