@nktkas/hyperliquid 0.30.0 → 0.30.2

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 (376) hide show
  1. package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts +93 -0
  2. package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts.map +1 -0
  3. package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js +137 -0
  4. package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js.map +1 -0
  5. package/esm/src/api/_schemas.d.ts +4 -4
  6. package/esm/src/api/_schemas.d.ts.map +1 -1
  7. package/esm/src/api/_schemas.js +8 -4
  8. package/esm/src/api/_schemas.js.map +1 -1
  9. package/esm/src/api/exchange/_methods/_base/_nonce.d.ts +3 -2
  10. package/esm/src/api/exchange/_methods/_base/_nonce.d.ts.map +1 -1
  11. package/esm/src/api/exchange/_methods/_base/_nonce.js +3 -2
  12. package/esm/src/api/exchange/_methods/_base/_nonce.js.map +1 -1
  13. package/esm/src/api/exchange/_methods/_base/_semaphore.d.ts +7 -6
  14. package/esm/src/api/exchange/_methods/_base/_semaphore.d.ts.map +1 -1
  15. package/esm/src/api/exchange/_methods/_base/_semaphore.js +34 -47
  16. package/esm/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
  17. package/esm/src/api/exchange/_methods/_base/execute.js +3 -3
  18. package/esm/src/api/exchange/_methods/_base/execute.js.map +1 -1
  19. package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +2 -2
  20. package/esm/src/api/exchange/_methods/approveAgent.d.ts +4 -4
  21. package/esm/src/api/exchange/_methods/approveBuilderFee.d.ts +4 -4
  22. package/esm/src/api/exchange/_methods/batchModify.d.ts +27 -27
  23. package/esm/src/api/exchange/_methods/cDeposit.d.ts +7 -7
  24. package/esm/src/api/exchange/_methods/cSignerAction.d.ts +2 -2
  25. package/esm/src/api/exchange/_methods/cValidatorAction.d.ts +11 -11
  26. package/esm/src/api/exchange/_methods/cWithdraw.d.ts +7 -7
  27. package/esm/src/api/exchange/_methods/cancel.d.ts +8 -8
  28. package/esm/src/api/exchange/_methods/cancelByCloid.d.ts +5 -5
  29. package/esm/src/api/exchange/_methods/claimRewards.d.ts +2 -2
  30. package/esm/src/api/exchange/_methods/convertToMultiSigUser.d.ts +10 -10
  31. package/esm/src/api/exchange/_methods/createSubAccount.d.ts +2 -2
  32. package/esm/src/api/exchange/_methods/createVault.d.ts +8 -8
  33. package/esm/src/api/exchange/_methods/evmUserModify.d.ts +2 -2
  34. package/esm/src/api/exchange/_methods/linkStakingUser.d.ts +4 -4
  35. package/esm/src/api/exchange/_methods/modify.d.ts +17 -17
  36. package/esm/src/api/exchange/_methods/noop.d.ts +2 -2
  37. package/esm/src/api/exchange/_methods/order.d.ts +31 -31
  38. package/esm/src/api/exchange/_methods/order.d.ts.map +1 -1
  39. package/esm/src/api/exchange/_methods/order.js +4 -2
  40. package/esm/src/api/exchange/_methods/order.js.map +1 -1
  41. package/esm/src/api/exchange/_methods/perpDeploy.d.ts +53 -53
  42. package/esm/src/api/exchange/_methods/registerReferrer.d.ts +2 -2
  43. package/esm/src/api/exchange/_methods/reserveRequestWeight.d.ts +5 -5
  44. package/esm/src/api/exchange/_methods/scheduleCancel.d.ts +5 -5
  45. package/esm/src/api/exchange/_methods/sendAsset.d.ts +7 -7
  46. package/esm/src/api/exchange/_methods/setDisplayName.d.ts +2 -2
  47. package/esm/src/api/exchange/_methods/setReferrer.d.ts +2 -2
  48. package/esm/src/api/exchange/_methods/spotDeploy.d.ts +53 -53
  49. package/esm/src/api/exchange/_methods/spotSend.d.ts +7 -7
  50. package/esm/src/api/exchange/_methods/spotUser.d.ts +2 -2
  51. package/esm/src/api/exchange/_methods/subAccountModify.d.ts +2 -2
  52. package/esm/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +5 -5
  53. package/esm/src/api/exchange/_methods/subAccountTransfer.d.ts +5 -5
  54. package/esm/src/api/exchange/_methods/tokenDelegate.d.ts +7 -7
  55. package/esm/src/api/exchange/_methods/twapCancel.d.ts +8 -8
  56. package/esm/src/api/exchange/_methods/twapOrder.d.ts +12 -12
  57. package/esm/src/api/exchange/_methods/updateIsolatedMargin.d.ts +8 -8
  58. package/esm/src/api/exchange/_methods/updateLeverage.d.ts +8 -8
  59. package/esm/src/api/exchange/_methods/usdClassTransfer.d.ts +7 -7
  60. package/esm/src/api/exchange/_methods/usdSend.d.ts +7 -7
  61. package/esm/src/api/exchange/_methods/userDexAbstraction.d.ts +4 -4
  62. package/esm/src/api/exchange/_methods/validatorL1Stream.d.ts +5 -5
  63. package/esm/src/api/exchange/_methods/vaultDistribute.d.ts +5 -5
  64. package/esm/src/api/exchange/_methods/vaultModify.d.ts +2 -2
  65. package/esm/src/api/exchange/_methods/vaultTransfer.d.ts +5 -5
  66. package/esm/src/api/exchange/_methods/withdraw3.d.ts +7 -7
  67. package/esm/src/api/info/_methods/_base/commonSchemas.d.ts +43 -43
  68. package/esm/src/api/info/_methods/activeAssetData.d.ts +6 -6
  69. package/esm/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +5 -5
  70. package/esm/src/api/info/_methods/allMids.d.ts +1 -1
  71. package/esm/src/api/info/_methods/allPerpMetas.d.ts +7 -7
  72. package/esm/src/api/info/_methods/blockDetails.d.ts +6 -6
  73. package/esm/src/api/info/_methods/candleSnapshot.d.ts +10 -10
  74. package/esm/src/api/info/_methods/clearinghouseState.d.ts +25 -25
  75. package/esm/src/api/info/_methods/delegations.d.ts +2 -2
  76. package/esm/src/api/info/_methods/delegatorHistory.d.ts +4 -4
  77. package/esm/src/api/info/_methods/delegatorRewards.d.ts +2 -2
  78. package/esm/src/api/info/_methods/delegatorSummary.d.ts +4 -4
  79. package/esm/src/api/info/_methods/exchangeStatus.d.ts +1 -1
  80. package/esm/src/api/info/_methods/extraAgents.d.ts +1 -1
  81. package/esm/src/api/info/_methods/frontendOpenOrders.d.ts +6 -6
  82. package/esm/src/api/info/_methods/fundingHistory.d.ts +5 -5
  83. package/esm/src/api/info/_methods/historicalOrders.d.ts +7 -7
  84. package/esm/src/api/info/_methods/l2Book.d.ts +7 -7
  85. package/esm/src/api/info/_methods/marginTable.d.ts +3 -3
  86. package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts +1 -1
  87. package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
  88. package/esm/src/api/info/_methods/meta.d.ts +7 -7
  89. package/esm/src/api/info/_methods/metaAndAssetCtxs.d.ts +16 -16
  90. package/esm/src/api/info/_methods/openOrders.d.ts +5 -5
  91. package/esm/src/api/info/_methods/orderStatus.d.ts +8 -8
  92. package/esm/src/api/info/_methods/perpDeployAuctionStatus.d.ts +5 -5
  93. package/esm/src/api/info/_methods/perpDexLimits.d.ts +4 -4
  94. package/esm/src/api/info/_methods/perpDexStatus.d.ts +1 -1
  95. package/esm/src/api/info/_methods/perpDexs.d.ts +1 -1
  96. package/esm/src/api/info/_methods/portfolio.d.ts +24 -24
  97. package/esm/src/api/info/_methods/preTransferCheck.d.ts +1 -1
  98. package/esm/src/api/info/_methods/predictedFundings.d.ts +3 -3
  99. package/esm/src/api/info/_methods/recentTrades.d.ts +4 -4
  100. package/esm/src/api/info/_methods/referral.d.ts +23 -23
  101. package/esm/src/api/info/_methods/spotClearinghouseState.d.ts +6 -6
  102. package/esm/src/api/info/_methods/spotDeployState.d.ts +15 -15
  103. package/esm/src/api/info/_methods/spotMeta.d.ts +7 -7
  104. package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +14 -14
  105. package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +5 -5
  106. package/esm/src/api/info/_methods/subAccounts.d.ts +31 -31
  107. package/esm/src/api/info/_methods/subAccounts2.d.ts +31 -31
  108. package/esm/src/api/info/_methods/tokenDetails.d.ts +12 -12
  109. package/esm/src/api/info/_methods/twapHistory.d.ts +7 -7
  110. package/esm/src/api/info/_methods/txDetails.d.ts +2 -2
  111. package/esm/src/api/info/_methods/userDetails.d.ts +2 -2
  112. package/esm/src/api/info/_methods/userFees.d.ts +25 -25
  113. package/esm/src/api/info/_methods/userFills.d.ts +10 -10
  114. package/esm/src/api/info/_methods/userFillsByTime.d.ts +12 -12
  115. package/esm/src/api/info/_methods/userFunding.d.ts +9 -9
  116. package/esm/src/api/info/_methods/userFunding.js +2 -2
  117. package/esm/src/api/info/_methods/userFunding.js.map +1 -1
  118. package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +36 -36
  119. package/esm/src/api/info/_methods/userRateLimit.d.ts +4 -4
  120. package/esm/src/api/info/_methods/userToMultiSigSigners.d.ts +1 -1
  121. package/esm/src/api/info/_methods/userTwapSliceFills.d.ts +10 -10
  122. package/esm/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +12 -12
  123. package/esm/src/api/info/_methods/userVaultEquities.d.ts +2 -2
  124. package/esm/src/api/info/_methods/validatorL1Votes.d.ts +1 -1
  125. package/esm/src/api/info/_methods/validatorSummaries.d.ts +9 -9
  126. package/esm/src/api/info/_methods/vaultDetails.d.ts +36 -36
  127. package/esm/src/api/info/_methods/vaultSummaries.d.ts +2 -2
  128. package/esm/src/api/info/_methods/webData2.d.ts +70 -70
  129. package/esm/src/api/subscription/_methods/activeAssetCtx.d.ts +9 -9
  130. package/esm/src/api/subscription/_methods/activeAssetData.d.ts +6 -6
  131. package/esm/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +7 -7
  132. package/esm/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +9 -9
  133. package/esm/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +25 -25
  134. package/esm/src/api/subscription/_methods/allMids.d.ts +1 -1
  135. package/esm/src/api/subscription/_methods/assetCtxs.d.ts +11 -9
  136. package/esm/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
  137. package/esm/src/api/subscription/_methods/assetCtxs.js.map +1 -1
  138. package/esm/src/api/subscription/_methods/bbo.d.ts +7 -7
  139. package/esm/src/api/subscription/_methods/candle.d.ts +8 -8
  140. package/esm/src/api/subscription/_methods/clearinghouseState.d.ts +27 -25
  141. package/esm/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
  142. package/esm/src/api/subscription/_methods/clearinghouseState.js +2 -0
  143. package/esm/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
  144. package/esm/src/api/subscription/_methods/explorerBlock.d.ts +5 -3
  145. package/esm/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
  146. package/esm/src/api/subscription/_methods/explorerBlock.js +2 -0
  147. package/esm/src/api/subscription/_methods/explorerBlock.js.map +1 -1
  148. package/esm/src/api/subscription/_methods/explorerTxs.d.ts +4 -2
  149. package/esm/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
  150. package/esm/src/api/subscription/_methods/explorerTxs.js +2 -0
  151. package/esm/src/api/subscription/_methods/explorerTxs.js.map +1 -1
  152. package/esm/src/api/subscription/_methods/l2Book.d.ts +9 -9
  153. package/esm/src/api/subscription/_methods/openOrders.d.ts +6 -6
  154. package/esm/src/api/subscription/_methods/orderUpdates.d.ts +6 -6
  155. package/esm/src/api/subscription/_methods/spotAssetCtxs.d.ts +7 -7
  156. package/esm/src/api/subscription/_methods/spotState.d.ts +6 -6
  157. package/esm/src/api/subscription/_methods/trades.d.ts +4 -4
  158. package/esm/src/api/subscription/_methods/twapStates.d.ts +11 -6
  159. package/esm/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
  160. package/esm/src/api/subscription/_methods/twapStates.js +6 -1
  161. package/esm/src/api/subscription/_methods/twapStates.js.map +1 -1
  162. package/esm/src/api/subscription/_methods/userEvents.d.ts +35 -35
  163. package/esm/src/api/subscription/_methods/userFills.d.ts +10 -10
  164. package/esm/src/api/subscription/_methods/userFundings.d.ts +5 -5
  165. package/esm/src/api/subscription/_methods/userHistoricalOrders.d.ts +7 -7
  166. package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +34 -34
  167. package/esm/src/api/subscription/_methods/userTwapHistory.d.ts +7 -7
  168. package/esm/src/api/subscription/_methods/userTwapSliceFills.d.ts +10 -10
  169. package/esm/src/api/subscription/_methods/webData2.d.ts +70 -70
  170. package/esm/src/api/subscription/_methods/webData3.d.ts +4 -4
  171. package/esm/src/signing/mod.js +1 -1
  172. package/esm/src/signing/mod.js.map +1 -1
  173. package/package.json +2 -2
  174. package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts +93 -0
  175. package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts.map +1 -0
  176. package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js +141 -0
  177. package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js.map +1 -0
  178. package/script/src/api/_schemas.d.ts +4 -4
  179. package/script/src/api/_schemas.d.ts.map +1 -1
  180. package/script/src/api/_schemas.js +8 -4
  181. package/script/src/api/_schemas.js.map +1 -1
  182. package/script/src/api/exchange/_methods/_base/_nonce.d.ts +3 -2
  183. package/script/src/api/exchange/_methods/_base/_nonce.d.ts.map +1 -1
  184. package/script/src/api/exchange/_methods/_base/_nonce.js +4 -3
  185. package/script/src/api/exchange/_methods/_base/_nonce.js.map +1 -1
  186. package/script/src/api/exchange/_methods/_base/_semaphore.d.ts +7 -6
  187. package/script/src/api/exchange/_methods/_base/_semaphore.d.ts.map +1 -1
  188. package/script/src/api/exchange/_methods/_base/_semaphore.js +35 -50
  189. package/script/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
  190. package/script/src/api/exchange/_methods/_base/execute.js +2 -2
  191. package/script/src/api/exchange/_methods/_base/execute.js.map +1 -1
  192. package/script/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +2 -2
  193. package/script/src/api/exchange/_methods/approveAgent.d.ts +4 -4
  194. package/script/src/api/exchange/_methods/approveBuilderFee.d.ts +4 -4
  195. package/script/src/api/exchange/_methods/batchModify.d.ts +27 -27
  196. package/script/src/api/exchange/_methods/cDeposit.d.ts +7 -7
  197. package/script/src/api/exchange/_methods/cSignerAction.d.ts +2 -2
  198. package/script/src/api/exchange/_methods/cValidatorAction.d.ts +11 -11
  199. package/script/src/api/exchange/_methods/cWithdraw.d.ts +7 -7
  200. package/script/src/api/exchange/_methods/cancel.d.ts +8 -8
  201. package/script/src/api/exchange/_methods/cancelByCloid.d.ts +5 -5
  202. package/script/src/api/exchange/_methods/claimRewards.d.ts +2 -2
  203. package/script/src/api/exchange/_methods/convertToMultiSigUser.d.ts +10 -10
  204. package/script/src/api/exchange/_methods/createSubAccount.d.ts +2 -2
  205. package/script/src/api/exchange/_methods/createVault.d.ts +8 -8
  206. package/script/src/api/exchange/_methods/evmUserModify.d.ts +2 -2
  207. package/script/src/api/exchange/_methods/linkStakingUser.d.ts +4 -4
  208. package/script/src/api/exchange/_methods/modify.d.ts +17 -17
  209. package/script/src/api/exchange/_methods/noop.d.ts +2 -2
  210. package/script/src/api/exchange/_methods/order.d.ts +31 -31
  211. package/script/src/api/exchange/_methods/order.d.ts.map +1 -1
  212. package/script/src/api/exchange/_methods/order.js +4 -2
  213. package/script/src/api/exchange/_methods/order.js.map +1 -1
  214. package/script/src/api/exchange/_methods/perpDeploy.d.ts +53 -53
  215. package/script/src/api/exchange/_methods/registerReferrer.d.ts +2 -2
  216. package/script/src/api/exchange/_methods/reserveRequestWeight.d.ts +5 -5
  217. package/script/src/api/exchange/_methods/scheduleCancel.d.ts +5 -5
  218. package/script/src/api/exchange/_methods/sendAsset.d.ts +7 -7
  219. package/script/src/api/exchange/_methods/setDisplayName.d.ts +2 -2
  220. package/script/src/api/exchange/_methods/setReferrer.d.ts +2 -2
  221. package/script/src/api/exchange/_methods/spotDeploy.d.ts +53 -53
  222. package/script/src/api/exchange/_methods/spotSend.d.ts +7 -7
  223. package/script/src/api/exchange/_methods/spotUser.d.ts +2 -2
  224. package/script/src/api/exchange/_methods/subAccountModify.d.ts +2 -2
  225. package/script/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +5 -5
  226. package/script/src/api/exchange/_methods/subAccountTransfer.d.ts +5 -5
  227. package/script/src/api/exchange/_methods/tokenDelegate.d.ts +7 -7
  228. package/script/src/api/exchange/_methods/twapCancel.d.ts +8 -8
  229. package/script/src/api/exchange/_methods/twapOrder.d.ts +12 -12
  230. package/script/src/api/exchange/_methods/updateIsolatedMargin.d.ts +8 -8
  231. package/script/src/api/exchange/_methods/updateLeverage.d.ts +8 -8
  232. package/script/src/api/exchange/_methods/usdClassTransfer.d.ts +7 -7
  233. package/script/src/api/exchange/_methods/usdSend.d.ts +7 -7
  234. package/script/src/api/exchange/_methods/userDexAbstraction.d.ts +4 -4
  235. package/script/src/api/exchange/_methods/validatorL1Stream.d.ts +5 -5
  236. package/script/src/api/exchange/_methods/vaultDistribute.d.ts +5 -5
  237. package/script/src/api/exchange/_methods/vaultModify.d.ts +2 -2
  238. package/script/src/api/exchange/_methods/vaultTransfer.d.ts +5 -5
  239. package/script/src/api/exchange/_methods/withdraw3.d.ts +7 -7
  240. package/script/src/api/info/_methods/_base/commonSchemas.d.ts +43 -43
  241. package/script/src/api/info/_methods/activeAssetData.d.ts +6 -6
  242. package/script/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +5 -5
  243. package/script/src/api/info/_methods/allMids.d.ts +1 -1
  244. package/script/src/api/info/_methods/allPerpMetas.d.ts +7 -7
  245. package/script/src/api/info/_methods/blockDetails.d.ts +6 -6
  246. package/script/src/api/info/_methods/candleSnapshot.d.ts +10 -10
  247. package/script/src/api/info/_methods/clearinghouseState.d.ts +25 -25
  248. package/script/src/api/info/_methods/delegations.d.ts +2 -2
  249. package/script/src/api/info/_methods/delegatorHistory.d.ts +4 -4
  250. package/script/src/api/info/_methods/delegatorRewards.d.ts +2 -2
  251. package/script/src/api/info/_methods/delegatorSummary.d.ts +4 -4
  252. package/script/src/api/info/_methods/exchangeStatus.d.ts +1 -1
  253. package/script/src/api/info/_methods/extraAgents.d.ts +1 -1
  254. package/script/src/api/info/_methods/frontendOpenOrders.d.ts +6 -6
  255. package/script/src/api/info/_methods/fundingHistory.d.ts +5 -5
  256. package/script/src/api/info/_methods/historicalOrders.d.ts +7 -7
  257. package/script/src/api/info/_methods/l2Book.d.ts +7 -7
  258. package/script/src/api/info/_methods/marginTable.d.ts +3 -3
  259. package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts +1 -1
  260. package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
  261. package/script/src/api/info/_methods/meta.d.ts +7 -7
  262. package/script/src/api/info/_methods/metaAndAssetCtxs.d.ts +16 -16
  263. package/script/src/api/info/_methods/openOrders.d.ts +5 -5
  264. package/script/src/api/info/_methods/orderStatus.d.ts +8 -8
  265. package/script/src/api/info/_methods/perpDeployAuctionStatus.d.ts +5 -5
  266. package/script/src/api/info/_methods/perpDexLimits.d.ts +4 -4
  267. package/script/src/api/info/_methods/perpDexStatus.d.ts +1 -1
  268. package/script/src/api/info/_methods/perpDexs.d.ts +1 -1
  269. package/script/src/api/info/_methods/portfolio.d.ts +24 -24
  270. package/script/src/api/info/_methods/preTransferCheck.d.ts +1 -1
  271. package/script/src/api/info/_methods/predictedFundings.d.ts +3 -3
  272. package/script/src/api/info/_methods/recentTrades.d.ts +4 -4
  273. package/script/src/api/info/_methods/referral.d.ts +23 -23
  274. package/script/src/api/info/_methods/spotClearinghouseState.d.ts +6 -6
  275. package/script/src/api/info/_methods/spotDeployState.d.ts +15 -15
  276. package/script/src/api/info/_methods/spotMeta.d.ts +7 -7
  277. package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +14 -14
  278. package/script/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +5 -5
  279. package/script/src/api/info/_methods/subAccounts.d.ts +31 -31
  280. package/script/src/api/info/_methods/subAccounts2.d.ts +31 -31
  281. package/script/src/api/info/_methods/tokenDetails.d.ts +12 -12
  282. package/script/src/api/info/_methods/twapHistory.d.ts +7 -7
  283. package/script/src/api/info/_methods/txDetails.d.ts +2 -2
  284. package/script/src/api/info/_methods/userDetails.d.ts +2 -2
  285. package/script/src/api/info/_methods/userFees.d.ts +25 -25
  286. package/script/src/api/info/_methods/userFills.d.ts +10 -10
  287. package/script/src/api/info/_methods/userFillsByTime.d.ts +12 -12
  288. package/script/src/api/info/_methods/userFunding.d.ts +9 -9
  289. package/script/src/api/info/_methods/userFunding.js +2 -2
  290. package/script/src/api/info/_methods/userFunding.js.map +1 -1
  291. package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +36 -36
  292. package/script/src/api/info/_methods/userRateLimit.d.ts +4 -4
  293. package/script/src/api/info/_methods/userToMultiSigSigners.d.ts +1 -1
  294. package/script/src/api/info/_methods/userTwapSliceFills.d.ts +10 -10
  295. package/script/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +12 -12
  296. package/script/src/api/info/_methods/userVaultEquities.d.ts +2 -2
  297. package/script/src/api/info/_methods/validatorL1Votes.d.ts +1 -1
  298. package/script/src/api/info/_methods/validatorSummaries.d.ts +9 -9
  299. package/script/src/api/info/_methods/vaultDetails.d.ts +36 -36
  300. package/script/src/api/info/_methods/vaultSummaries.d.ts +2 -2
  301. package/script/src/api/info/_methods/webData2.d.ts +70 -70
  302. package/script/src/api/subscription/_methods/activeAssetCtx.d.ts +9 -9
  303. package/script/src/api/subscription/_methods/activeAssetData.d.ts +6 -6
  304. package/script/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +7 -7
  305. package/script/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +9 -9
  306. package/script/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +25 -25
  307. package/script/src/api/subscription/_methods/allMids.d.ts +1 -1
  308. package/script/src/api/subscription/_methods/assetCtxs.d.ts +11 -9
  309. package/script/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
  310. package/script/src/api/subscription/_methods/assetCtxs.js.map +1 -1
  311. package/script/src/api/subscription/_methods/bbo.d.ts +7 -7
  312. package/script/src/api/subscription/_methods/candle.d.ts +8 -8
  313. package/script/src/api/subscription/_methods/clearinghouseState.d.ts +27 -25
  314. package/script/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
  315. package/script/src/api/subscription/_methods/clearinghouseState.js +2 -0
  316. package/script/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
  317. package/script/src/api/subscription/_methods/explorerBlock.d.ts +5 -3
  318. package/script/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
  319. package/script/src/api/subscription/_methods/explorerBlock.js +2 -0
  320. package/script/src/api/subscription/_methods/explorerBlock.js.map +1 -1
  321. package/script/src/api/subscription/_methods/explorerTxs.d.ts +4 -2
  322. package/script/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
  323. package/script/src/api/subscription/_methods/explorerTxs.js +2 -0
  324. package/script/src/api/subscription/_methods/explorerTxs.js.map +1 -1
  325. package/script/src/api/subscription/_methods/l2Book.d.ts +9 -9
  326. package/script/src/api/subscription/_methods/openOrders.d.ts +6 -6
  327. package/script/src/api/subscription/_methods/orderUpdates.d.ts +6 -6
  328. package/script/src/api/subscription/_methods/spotAssetCtxs.d.ts +7 -7
  329. package/script/src/api/subscription/_methods/spotState.d.ts +6 -6
  330. package/script/src/api/subscription/_methods/trades.d.ts +4 -4
  331. package/script/src/api/subscription/_methods/twapStates.d.ts +11 -6
  332. package/script/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
  333. package/script/src/api/subscription/_methods/twapStates.js +6 -1
  334. package/script/src/api/subscription/_methods/twapStates.js.map +1 -1
  335. package/script/src/api/subscription/_methods/userEvents.d.ts +35 -35
  336. package/script/src/api/subscription/_methods/userFills.d.ts +10 -10
  337. package/script/src/api/subscription/_methods/userFundings.d.ts +5 -5
  338. package/script/src/api/subscription/_methods/userHistoricalOrders.d.ts +7 -7
  339. package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +34 -34
  340. package/script/src/api/subscription/_methods/userTwapHistory.d.ts +7 -7
  341. package/script/src/api/subscription/_methods/userTwapSliceFills.d.ts +10 -10
  342. package/script/src/api/subscription/_methods/webData2.d.ts +70 -70
  343. package/script/src/api/subscription/_methods/webData3.d.ts +4 -4
  344. package/script/src/signing/mod.js +2 -2
  345. package/script/src/signing/mod.js.map +1 -1
  346. package/src/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.ts +146 -0
  347. package/src/src/api/_schemas.ts +4 -0
  348. package/src/src/api/exchange/_methods/_base/_nonce.ts +3 -2
  349. package/src/src/api/exchange/_methods/_base/_semaphore.ts +34 -59
  350. package/src/src/api/exchange/_methods/_base/execute.ts +3 -3
  351. package/src/src/api/exchange/_methods/order.ts +5 -3
  352. package/src/src/api/info/_methods/userFunding.ts +2 -2
  353. package/src/src/api/subscription/_methods/assetCtxs.ts +2 -0
  354. package/src/src/api/subscription/_methods/clearinghouseState.ts +2 -0
  355. package/src/src/api/subscription/_methods/explorerBlock.ts +2 -0
  356. package/src/src/api/subscription/_methods/explorerTxs.ts +2 -0
  357. package/src/src/api/subscription/_methods/twapStates.ts +9 -1
  358. package/src/src/signing/mod.ts +1 -1
  359. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts +0 -21
  360. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts.map +0 -1
  361. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.js +0 -292
  362. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.js.map +0 -1
  363. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts +0 -44
  364. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts.map +0 -1
  365. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.js +0 -46
  366. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.js.map +0 -1
  367. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts +0 -21
  368. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts.map +0 -1
  369. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.js +0 -295
  370. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.js.map +0 -1
  371. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts +0 -44
  372. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts.map +0 -1
  373. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.js +0 -62
  374. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.js.map +0 -1
  375. package/src/deps/jsr.io/@std/msgpack/1.0.3/decode.ts +0 -391
  376. package/src/deps/jsr.io/@std/msgpack/1.0.3/mod.ts +0 -47
@@ -17,10 +17,10 @@ export declare const AllDexsClearinghouseStateEvent: v.SchemaWithPipe<readonly [
17
17
  /** Array of tuples of dex names and clearinghouse states. */
18
18
  readonly clearinghouseStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
19
19
  readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
20
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
21
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
22
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
23
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
20
+ readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
21
+ readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
22
+ readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
23
+ readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
24
24
  }, undefined>, v.DescriptionAction<{
25
25
  accountValue: string;
26
26
  totalNtlPos: string;
@@ -28,30 +28,30 @@ export declare const AllDexsClearinghouseStateEvent: v.SchemaWithPipe<readonly [
28
28
  totalMarginUsed: string;
29
29
  }, "Margin summary details.">]>;
30
30
  readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
31
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
32
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
33
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
34
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
31
+ readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
32
+ readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
33
+ readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
34
+ readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
35
35
  }, undefined>, v.DescriptionAction<{
36
36
  accountValue: string;
37
37
  totalNtlPos: string;
38
38
  totalRawUsd: string;
39
39
  totalMarginUsed: string;
40
40
  }, "Cross-margin summary details.">]>;
41
- readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
42
- readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
41
+ readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
42
+ readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
43
43
  readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
44
44
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
45
45
  readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
46
46
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
47
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Signed position size.">]>;
47
+ readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Signed position size.">]>;
48
48
  readonly leverage: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
49
49
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
50
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
51
- readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount of USD used (1 = $1).">]>;
50
+ readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
51
+ readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount of USD used (1 = $1).">]>;
52
52
  }, undefined>, v.ObjectSchema<{
53
53
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
54
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
54
+ readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
55
55
  }, undefined>], undefined>, v.DescriptionAction<{
56
56
  type: "isolated";
57
57
  value: number;
@@ -60,17 +60,17 @@ export declare const AllDexsClearinghouseStateEvent: v.SchemaWithPipe<readonly [
60
60
  type: "cross";
61
61
  value: number;
62
62
  }, "Leverage details.">]>;
63
- readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Average entry price.">]>;
64
- readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Position value.">]>;
65
- readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
66
- readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Return on equity.">]>;
67
- readonly liquidationPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
68
- readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Margin used.">]>;
69
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
63
+ readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Average entry price.">]>;
64
+ readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Position value.">]>;
65
+ readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
66
+ readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Return on equity.">]>;
67
+ readonly liquidationPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
68
+ readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Margin used.">]>;
69
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
70
70
  readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
71
- readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
72
- readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
73
- readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
71
+ readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
72
+ readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
73
+ readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
74
74
  }, undefined>, v.DescriptionAction<{
75
75
  allTime: string;
76
76
  sinceOpen: string;
@@ -127,7 +127,7 @@ export declare const AllDexsClearinghouseStateEvent: v.SchemaWithPipe<readonly [
127
127
  };
128
128
  };
129
129
  }[], "Array of asset positions.">]>;
130
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
130
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
131
131
  }, undefined>, v.DescriptionAction<{
132
132
  marginSummary: {
133
133
  accountValue: string;
@@ -13,7 +13,7 @@ export type AllMidsRequest = v.InferOutput<typeof AllMidsRequest>;
13
13
  /** Event of mid prices for all assets. */
14
14
  export declare const AllMidsEvent: v.SchemaWithPipe<readonly [v.ObjectSchema<{
15
15
  /** Mapping of coin symbols to mid prices. */
16
- readonly mids: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<{
16
+ readonly mids: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<{
17
17
  [x: string]: string;
18
18
  }, "Mapping of coin symbols to mid prices.">]>, v.DescriptionAction<{
19
19
  [x: string]: string;
@@ -16,16 +16,16 @@ export declare const AssetCtxsEvent: v.SchemaWithPipe<readonly [v.ObjectSchema<{
16
16
  readonly dex: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "DEX name (empty string for main dex).">]>;
17
17
  /** Array of context information for each perpetual asset. */
18
18
  readonly ctxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
19
- readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
20
- readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
21
- readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Mark price.">]>;
22
- readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
23
- readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding rate.">]>;
24
- readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total open interest.">]>;
25
- readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
26
- readonly oraclePx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Oracle price.">]>;
19
+ readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
20
+ readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
21
+ readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Mark price.">]>;
22
+ readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
23
+ readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding rate.">]>;
24
+ readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total open interest.">]>;
25
+ readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
26
+ readonly oraclePx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Oracle price.">]>;
27
27
  readonly impactPxs: v.SchemaWithPipe<readonly [v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.DescriptionAction<string[] | null, "Array of impact prices.">]>;
28
- readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
28
+ readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
29
29
  }, undefined>, v.DescriptionAction<{
30
30
  prevDayPx: string;
31
31
  dayNtlVlm: string;
@@ -93,6 +93,8 @@ export type AssetCtxsParameters = Omit<v.InferInput<typeof AssetCtxsRequest>, "t
93
93
  * (data) => console.log(data),
94
94
  * );
95
95
  * ```
96
+ *
97
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
96
98
  */
97
99
  export declare function assetCtxs(config: SubscriptionConfig, listener: (data: AssetCtxsEvent) => void): Promise<ISubscription>;
98
100
  export declare function assetCtxs(config: SubscriptionConfig, params: AssetCtxsParameters, listener: (data: AssetCtxsEvent) => void): Promise<ISubscription>;
@@ -1 +1 @@
1
- {"version":3,"file":"assetCtxs.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/assetCtxs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAQ7B,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB;IAGvB,4BAA4B;;IAK5B,4CAA4C;;;;;gEAQ9C,CAAC;AACL,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtE,2EAA2E;AAC3E,eAAO,MAAM,cAAc;IAGrB,4CAA4C;;IAK5C,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAQ/D,CAAC;AACL,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAMlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,iEAAiE;AACjE,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,cAAc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U,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,aAAc,CAAC;IAE5F,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,gBAAgB,EAAE;QACxC,IAAI,EAAE,WAAW;QACjB,GAAG,MAAM;QACT,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,EAAE,EAAE,4BAA4B;KACpD,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAAiB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QAC7E,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,EAAE,CAAC;YACjC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -15,26 +15,26 @@ export declare const BboEvent: v.SchemaWithPipe<readonly [v.ObjectSchema<{
15
15
  /** Asset symbol (e.g., BTC). */
16
16
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
17
17
  /** Time of the BBO update (in ms since epoch). */
18
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Time of the BBO update (in ms since epoch).">]>;
18
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Time of the BBO update (in ms since epoch).">]>;
19
19
  /** Best bid and offer tuple [bid, offer], either can be undefined if unavailable. */
20
20
  readonly bbo: v.SchemaWithPipe<readonly [v.TupleSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
21
21
  /** Price. */
22
- readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Price.">]>;
22
+ readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Price.">]>;
23
23
  /** Total size. */
24
- readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total size.">]>;
24
+ readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total size.">]>;
25
25
  /** Number of individual orders. */
26
- readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
26
+ readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
27
27
  }, undefined>, v.DescriptionAction<{
28
28
  px: string;
29
29
  sz: string;
30
30
  n: number;
31
31
  }, "L2 order book level.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
32
32
  /** Price. */
33
- readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Price.">]>;
33
+ readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Price.">]>;
34
34
  /** Total size. */
35
- readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total size.">]>;
35
+ readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total size.">]>;
36
36
  /** Number of individual orders. */
37
- readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
37
+ readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
38
38
  }, undefined>, v.DescriptionAction<{
39
39
  px: string;
40
40
  sz: string;
@@ -16,25 +16,25 @@ export type CandleRequest = v.InferOutput<typeof CandleRequest>;
16
16
  /** Event of candlestick data point. */
17
17
  export declare const CandleEvent: v.SchemaWithPipe<readonly [v.ObjectSchema<{
18
18
  /** Opening timestamp (ms since epoch). */
19
- readonly t: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Opening timestamp (ms since epoch).">]>;
19
+ readonly t: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Opening timestamp (ms since epoch).">]>;
20
20
  /** Closing timestamp (ms since epoch). */
21
- readonly T: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Closing timestamp (ms since epoch).">]>;
21
+ readonly T: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Closing timestamp (ms since epoch).">]>;
22
22
  /** Asset symbol. */
23
23
  readonly s: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
24
24
  /** Time interval. */
25
25
  readonly i: v.SchemaWithPipe<readonly [v.PicklistSchema<["1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "8h", "12h", "1d", "3d", "1w", "1M"], undefined>, v.DescriptionAction<"1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1M", "Time interval.">]>;
26
26
  /** Opening price. */
27
- readonly o: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Opening price.">]>;
27
+ readonly o: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Opening price.">]>;
28
28
  /** Closing price. */
29
- readonly c: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Closing price.">]>;
29
+ readonly c: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Closing price.">]>;
30
30
  /** Highest price. */
31
- readonly h: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Highest price.">]>;
31
+ readonly h: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Highest price.">]>;
32
32
  /** Lowest price. */
33
- readonly l: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Lowest price.">]>;
33
+ readonly l: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Lowest price.">]>;
34
34
  /** Total volume traded in base currency. */
35
- readonly v: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total volume traded in base currency.">]>;
35
+ readonly v: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total volume traded in base currency.">]>;
36
36
  /** Number of trades executed. */
37
- readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of trades executed.">]>;
37
+ readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of trades executed.">]>;
38
38
  }, undefined>, v.DescriptionAction<{
39
39
  t: number;
40
40
  T: number;
@@ -22,10 +22,10 @@ export declare const ClearinghouseStateEvent: v.SchemaWithPipe<readonly [v.Objec
22
22
  /** Account summary for perpetual trading. */
23
23
  readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
24
24
  readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
25
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
26
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
27
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
28
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
25
+ readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
26
+ readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
27
+ readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
28
+ readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
29
29
  }, undefined>, v.DescriptionAction<{
30
30
  accountValue: string;
31
31
  totalNtlPos: string;
@@ -33,30 +33,30 @@ export declare const ClearinghouseStateEvent: v.SchemaWithPipe<readonly [v.Objec
33
33
  totalMarginUsed: string;
34
34
  }, "Margin summary details.">]>;
35
35
  readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
36
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
37
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
38
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
39
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
36
+ readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
37
+ readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
38
+ readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
39
+ readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
40
40
  }, undefined>, v.DescriptionAction<{
41
41
  accountValue: string;
42
42
  totalNtlPos: string;
43
43
  totalRawUsd: string;
44
44
  totalMarginUsed: string;
45
45
  }, "Cross-margin summary details.">]>;
46
- readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
47
- readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
46
+ readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
47
+ readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
48
48
  readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
49
49
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
50
50
  readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
51
51
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
52
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Signed position size.">]>;
52
+ readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Signed position size.">]>;
53
53
  readonly leverage: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
54
54
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
55
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
56
- readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount of USD used (1 = $1).">]>;
55
+ readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
56
+ readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount of USD used (1 = $1).">]>;
57
57
  }, undefined>, v.ObjectSchema<{
58
58
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
59
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
59
+ readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
60
60
  }, undefined>], undefined>, v.DescriptionAction<{
61
61
  type: "isolated";
62
62
  value: number;
@@ -65,17 +65,17 @@ export declare const ClearinghouseStateEvent: v.SchemaWithPipe<readonly [v.Objec
65
65
  type: "cross";
66
66
  value: number;
67
67
  }, "Leverage details.">]>;
68
- readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Average entry price.">]>;
69
- readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Position value.">]>;
70
- readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
71
- readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Return on equity.">]>;
72
- readonly liquidationPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
73
- readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Margin used.">]>;
74
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
68
+ readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Average entry price.">]>;
69
+ readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Position value.">]>;
70
+ readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
71
+ readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Return on equity.">]>;
72
+ readonly liquidationPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
73
+ readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Margin used.">]>;
74
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
75
75
  readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
76
- readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
77
- readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
78
- readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
76
+ readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
77
+ readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
78
+ readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
79
79
  }, undefined>, v.DescriptionAction<{
80
80
  allTime: string;
81
81
  sinceOpen: string;
@@ -132,7 +132,7 @@ export declare const ClearinghouseStateEvent: v.SchemaWithPipe<readonly [v.Objec
132
132
  };
133
133
  };
134
134
  }[], "Array of asset positions.">]>;
135
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
135
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
136
136
  }, undefined>, v.DescriptionAction<{
137
137
  marginSummary: {
138
138
  accountValue: string;
@@ -298,6 +298,8 @@ export type ClearinghouseStateParameters = Omit<v.InferInput<typeof Clearinghous
298
298
  * (data) => console.log(data),
299
299
  * );
300
300
  * ```
301
+ *
302
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
301
303
  */
302
304
  export declare function clearinghouseState(config: SubscriptionConfig, params: ClearinghouseStateParameters, listener: (data: ClearinghouseStateEvent) => void): Promise<ISubscription>;
303
305
  //# sourceMappingURL=clearinghouseState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clearinghouseState.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/clearinghouseState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAS7B,sEAAsE;AACtE,eAAO,MAAM,yBAAyB;IAGhC,4BAA4B;;IAK5B,oBAAoB;;IAKpB,4CAA4C;;;;;;uEAQ9C,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAExF,wDAAwD;AACxD,eAAO,MAAM,uBAAuB;IAG9B,4CAA4C;;IAK5C,oBAAoB;;IAKpB,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAQ/C,CAAC;AAC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;;;;;;;;;;;;;;;;;;;;;;;;;yDAQ/C,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,0EAA0E;AAC1E,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,EAAE,MAAM,CAAC,CAAC;AAExG;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,4BAA4B,EACpC,QAAQ,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,IAAI,GAChD,OAAO,CAAC,aAAa,CAAC,CAWxB"}
@@ -51,6 +51,8 @@ export const ClearinghouseStateEvent = /* @__PURE__ */ (() => {
51
51
  * (data) => console.log(data),
52
52
  * );
53
53
  * ```
54
+ *
55
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
54
56
  */
55
57
  export function clearinghouseState(config, params, listener) {
56
58
  const payload = v.parse(ClearinghouseStateRequest, {
@@ -1 +1 @@
1
- {"version":3,"file":"clearinghouseState.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/clearinghouseState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAEvF,sEAAsE;AACtE,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IAC7D,OAAO,CAAC,CAA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MAAoC,EACpC,QAAiD;IAEjD,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,yBAAyB,EAAE;QACjD,IAAI,EAAE,oBAAoB;QAC1B,GAAG,MAAM;QACT,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,EAAE,EAAE,4BAA4B;KACpD,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAA0B,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QACtF,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,EAAE,CAAC;YACnE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"clearinghouseState.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/clearinghouseState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAEvF,sEAAsE;AACtE,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IAC7D,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,4BAA4B;QAC5B,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAC/B,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC,CACvC;QACD,oBAAoB;QACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CA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AO,EAAE,CAAC,CAAC,EAAE,EAAE;QACtF,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,EAAE,CAAC;YACnE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -10,13 +10,13 @@ export type ExplorerBlockRequest = v.InferOutput<typeof ExplorerBlockRequest>;
10
10
  /** Event of array of block details. */
11
11
  export declare const ExplorerBlockEvent: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
12
12
  /** Block creation timestamp. */
13
- readonly blockTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block creation timestamp.">]>;
13
+ readonly blockTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block creation timestamp.">]>;
14
14
  /** Block hash. */
15
15
  readonly hash: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "Block hash.">]>;
16
16
  /** Block height in chain. */
17
- readonly height: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block height in chain.">]>;
17
+ readonly height: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block height in chain.">]>;
18
18
  /** Total transactions in block. */
19
- readonly numTxs: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total transactions in block.">]>;
19
+ readonly numTxs: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total transactions in block.">]>;
20
20
  /** Block proposer address. */
21
21
  readonly proposer: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Block proposer address.">]>;
22
22
  }, undefined>, undefined>, v.DescriptionAction<{
@@ -52,6 +52,8 @@ import type { ISubscription } from "../../../transport/mod.js";
52
52
  * (data) => console.log(data),
53
53
  * );
54
54
  * ```
55
+ *
56
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
55
57
  */
56
58
  export declare function explorerBlock(config: SubscriptionConfig, listener: (data: ExplorerBlockEvent) => void): Promise<ISubscription>;
57
59
  //# sourceMappingURL=explorerBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"explorerBlock.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAQ7B,6CAA6C;AAC7C,eAAO,MAAM,oBAAoB;IAG3B,4BAA4B;;;;8CAQ9B,CAAC;AACL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE9E,uCAAuC;AACvC,eAAO,MAAM,kBAAkB;IAIvB,gCAAgC;;IAKhC,kBAAkB;;IAMlB,6BAA6B;;IAK7B,mCAAmC;;IAKnC,8BAA8B;;;;;;;;0CASlC,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,GAC3C,OAAO,CAAC,aAAa,CAAC,CAKxB"}
1
+ {"version":3,"file":"explorerBlock.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAQ7B,6CAA6C;AAC7C,eAAO,MAAM,oBAAoB;IAG3B,4BAA4B;;;;8CAQ9B,CAAC;AACL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE9E,uCAAuC;AACvC,eAAO,MAAM,kBAAkB;IAIvB,gCAAgC;;IAKhC,kBAAkB;;IAMlB,6BAA6B;;IAK7B,mCAAmC;;IAKnC,8BAA8B;;;;;;;;0CASlC,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,GAC3C,OAAO,CAAC,aAAa,CAAC,CAKxB"}
@@ -48,6 +48,8 @@ export const ExplorerBlockEvent = /* @__PURE__ */ (() => {
48
48
  * (data) => console.log(data),
49
49
  * );
50
50
  * ```
51
+ *
52
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
51
53
  */
52
54
  export function explorerBlock(config, listener) {
53
55
  const payload = v.parse(ExplorerBlockRequest, { type: "explorerBlock" });
@@ -1 +1 @@
1
- {"version":3,"file":"explorerBlock.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAElE,6CAA6C;AAC7C,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IACxD,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,4BAA4B;QAC5B,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,EAC1B,CAAC,CAAC,WAAW,CA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AAgB,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QACrF,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"explorerBlock.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAElE,6CAA6C;AAC7C,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IACxD,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,4BAA4B;QAC5B,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,EAC1B,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC,CACvC;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,wCAAwC,CAAC,CACxD,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAGL,uCAAuC;AACvC,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IACtD,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,KAAK,CACL,CAAC,CAAC,MAAM,CAAC;QACP,gCAAgC;QAChC,SAAS,EAAE,CAAC,CAAC,IAAI,CACf,eAAe,EACf,CAAC,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAC3C;QACD,kBAAkB;QAClB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,GAAG,EACH,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EACZ,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAC7B;QACD,6BAA6B;QAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,CACZ,eAAe,EACf,CAAC,CAAC,WAAW,CAAC,wBAAwB,CAAC,CACxC;QACD,mCAAmC;QACnC,MAAM,EAAE,CAAC,CAAC,IAAI,CACZ,eAAe,EACf,CAAC,CAAC,WAAW,CAAC,8BAA8B,CAAC,CAC9C;QACD,8BAA8B;QAC9B,QAAQ,EAAE,CAAC,CAAC,IAAI,CACd,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,yBAAyB,CAAC,CACzC;KACF,CAAC,CACH,EACD,CAAC,CAAC,WAAW,CAAC,kCAAkC,CAAC,CAClD,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAUL;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,aAAa,CAC3B,MAA0B,EAC1B,QAA4C;IAE5C,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAAqB,gBAAgB,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QACrF,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -16,10 +16,10 @@ export declare const ExplorerTxsEvent: v.SchemaWithPipe<readonly [v.ArraySchema<
16
16
  } & {
17
17
  [key: string]: unknown;
18
18
  }, "Action performed in transaction.">]>;
19
- readonly block: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block number where transaction was included.">]>;
19
+ readonly block: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block number where transaction was included.">]>;
20
20
  readonly error: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Error message if transaction failed.">]>;
21
21
  readonly hash: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "Transaction hash.">]>;
22
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Transaction creation timestamp.">]>;
22
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Transaction creation timestamp.">]>;
23
23
  readonly user: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Creator's address.">]>;
24
24
  }, undefined>, v.DescriptionAction<{
25
25
  action: {
@@ -69,6 +69,8 @@ import type { ISubscription } from "../../../transport/mod.js";
69
69
  * (data) => console.log(data),
70
70
  * );
71
71
  * ```
72
+ *
73
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
72
74
  */
73
75
  export declare function explorerTxs(config: SubscriptionConfig, listener: (data: ExplorerTxsEvent) => void): Promise<ISubscription>;
74
76
  //# sourceMappingURL=explorerTxs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"explorerTxs.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerTxs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAQ7B,mDAAmD;AACnD,eAAO,MAAM,kBAAkB;IAGzB,4BAA4B;;;;oDAQ9B,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE1E,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAKzB,CAAC;AACL,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAMtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,GACzC,OAAO,CAAC,aAAa,CAAC,CAKxB"}
1
+ {"version":3,"file":"explorerTxs.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerTxs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAQ7B,mDAAmD;AACnD,eAAO,MAAM,kBAAkB;IAGzB,4BAA4B;;;;oDAQ9B,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE1E,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAKzB,CAAC;AACL,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAMtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,GACzC,OAAO,CAAC,aAAa,CAAC,CAKxB"}
@@ -36,6 +36,8 @@ export const ExplorerTxsEvent = /* @__PURE__ */ (() => {
36
36
  * (data) => console.log(data),
37
37
  * );
38
38
  * ```
39
+ *
40
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
39
41
  */
40
42
  export function explorerTxs(config, listener) {
41
43
  const payload = v.parse(ExplorerTxsRequest, { type: "explorerTxs" });
@@ -1 +1 @@
1
- {"version":3,"file":"explorerTxs.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerTxs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,mDAAmD;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IACtD,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,4BAA4B;QAC5B,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,EACxB,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC,CACvC;KACF,CAAC,EACF,CAAC,CAAC,WAAW,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