@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
@@ -14,10 +14,10 @@ export type WebData2Request = v.InferOutput<typeof WebData2Request>;
14
14
  export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
15
15
  readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
16
16
  readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
17
- 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.">]>;
18
- 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.">]>;
19
- 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.">]>;
20
- 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.">]>;
17
+ 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.">]>;
18
+ 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.">]>;
19
+ 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.">]>;
20
+ 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.">]>;
21
21
  }, undefined>, v.DescriptionAction<{
22
22
  accountValue: string;
23
23
  totalNtlPos: string;
@@ -25,30 +25,30 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
25
25
  totalMarginUsed: string;
26
26
  }, "Margin summary details.">]>;
27
27
  readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
28
- 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.">]>;
29
- 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.">]>;
30
- 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.">]>;
31
- 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.">]>;
28
+ 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.">]>;
29
+ 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.">]>;
30
+ 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.">]>;
31
+ 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.">]>;
32
32
  }, undefined>, v.DescriptionAction<{
33
33
  accountValue: string;
34
34
  totalNtlPos: string;
35
35
  totalRawUsd: string;
36
36
  totalMarginUsed: string;
37
37
  }, "Cross-margin summary details.">]>;
38
- 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.">]>;
39
- 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.">]>;
38
+ 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.">]>;
39
+ 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.">]>;
40
40
  readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
41
41
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
42
42
  readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
43
43
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
44
- 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.">]>;
44
+ 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.">]>;
45
45
  readonly leverage: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
46
46
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
47
- 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.">]>;
48
- 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).">]>;
47
+ 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.">]>;
48
+ 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).">]>;
49
49
  }, undefined>, v.ObjectSchema<{
50
50
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
51
- 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 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.">]>;
52
52
  }, undefined>], undefined>, v.DescriptionAction<{
53
53
  type: "isolated";
54
54
  value: number;
@@ -57,17 +57,17 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
57
57
  type: "cross";
58
58
  value: number;
59
59
  }, "Leverage details.">]>;
60
- 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.">]>;
61
- 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.">]>;
62
- 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.">]>;
63
- 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.">]>;
64
- 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.">]>;
65
- 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.">]>;
66
- 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.">]>;
60
+ 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.">]>;
61
+ 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.">]>;
62
+ 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.">]>;
63
+ 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.">]>;
64
+ 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.">]>;
65
+ 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.">]>;
66
+ 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.">]>;
67
67
  readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
68
- 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.">]>;
69
- 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.">]>;
70
- 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.">]>;
68
+ 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.">]>;
69
+ 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.">]>;
70
+ 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.">]>;
71
71
  }, undefined>, v.DescriptionAction<{
72
72
  allTime: string;
73
73
  sinceOpen: string;
@@ -124,7 +124,7 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
124
124
  };
125
125
  };
126
126
  }[], "Array of asset positions.">]>;
127
- 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).">]>;
127
+ 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).">]>;
128
128
  }, undefined>, v.DescriptionAction<{
129
129
  marginSummary: {
130
130
  accountValue: string;
@@ -222,18 +222,18 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
222
222
  address: `0x${string}`;
223
223
  name: string;
224
224
  }[], "Array of leading vaults for a user.">]>;
225
- readonly totalVaultEquity: 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 equity in vaults.">]>;
225
+ readonly totalVaultEquity: 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 equity in vaults.">]>;
226
226
  readonly openOrders: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
227
227
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
228
228
  readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["B", "A"], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
229
- readonly limitPx: 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, "Limit price.">]>;
230
- 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, "Size.">]>;
231
- readonly oid: 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, "Order ID.">]>;
232
- readonly timestamp: 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 the order was placed (in ms since epoch).">]>;
233
- readonly origSz: 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, "Original size at order placement.">]>;
229
+ readonly limitPx: 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, "Limit price.">]>;
230
+ 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, "Size.">]>;
231
+ readonly oid: 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, "Order ID.">]>;
232
+ readonly timestamp: 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 the order was placed (in ms since epoch).">]>;
233
+ readonly origSz: 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, "Original size at order placement.">]>;
234
234
  readonly triggerCondition: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Condition for triggering the order.">]>;
235
235
  readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
236
- readonly triggerPx: 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, "Trigger price.">]>;
236
+ readonly triggerPx: 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, "Trigger price.">]>;
237
237
  readonly children: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnknownSchema, undefined>, v.DescriptionAction<unknown[], "Child orders associated with this order.">]>;
238
238
  readonly isPositionTpsl: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a position TP/SL order.">]>;
239
239
  readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates whether the order is reduce-only.">]>;
@@ -293,14 +293,14 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
293
293
  cloid: `0x${string}` | null;
294
294
  }[], "Array of open orders with additional display information.">]>;
295
295
  readonly agentAddress: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | null, "Agent address if one exists.">]>;
296
- readonly agentValidUntil: v.SchemaWithPipe<readonly [v.NullableSchema<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>]>, undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
297
- readonly cumLedger: 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, "Cumulative ledger value.">]>;
296
+ readonly agentValidUntil: v.SchemaWithPipe<readonly [v.NullableSchema<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>]>, undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
297
+ readonly cumLedger: 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, "Cumulative ledger value.">]>;
298
298
  readonly meta: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
299
299
  readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
300
- readonly szDecimals: 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, "Minimum decimal places for order sizes.">]>;
300
+ readonly szDecimals: 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, "Minimum decimal places for order sizes.">]>;
301
301
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
302
- 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.">]>;
303
- readonly marginTableId: 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, "Unique identifier for the margin requirements table.">]>;
302
+ 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.">]>;
303
+ readonly marginTableId: 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, "Unique identifier for the margin requirements table.">]>;
304
304
  readonly onlyIsolated: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if only isolated margin trading is allowed.">]>;
305
305
  readonly isDelisted: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if the universe is delisted.">]>;
306
306
  readonly marginMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<["strictIsolated", "noCross"], undefined>, undefined>, v.DescriptionAction<"strictIsolated" | "noCross" | undefined, "Trading margin mode constraint.">]>;
@@ -317,11 +317,11 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
317
317
  growthMode?: "enabled" | undefined;
318
318
  lastGrowthModeChangeTime?: string | undefined;
319
319
  }[], "Trading universes available for perpetual trading.">]>;
320
- readonly marginTables: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[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.SchemaWithPipe<readonly [v.ObjectSchema<{
320
+ readonly marginTables: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[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.SchemaWithPipe<readonly [v.ObjectSchema<{
321
321
  readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Description of the margin table.">]>;
322
322
  readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
323
- readonly lowerBound: 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, "Lower position size boundary for this tier.">]>;
324
- 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 for this tier.">]>;
323
+ readonly lowerBound: 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, "Lower position size boundary for this tier.">]>;
324
+ 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 for this tier.">]>;
325
325
  }, undefined>, undefined>, v.DescriptionAction<{
326
326
  lowerBound: string;
327
327
  maxLeverage: number;
@@ -339,7 +339,7 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
339
339
  maxLeverage: number;
340
340
  }[];
341
341
  }][], "Margin requirement tables for different leverage tiers.">]>;
342
- readonly collateralToken: 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, "Collateral token index.">]>;
342
+ readonly collateralToken: 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, "Collateral token index.">]>;
343
343
  }, undefined>, v.DescriptionAction<{
344
344
  universe: {
345
345
  szDecimals: number;
@@ -382,16 +382,16 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
382
382
  collateralToken: number;
383
383
  }, "Metadata for perpetual assets.">]>;
384
384
  readonly assetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
385
- 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.">]>;
386
- 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.">]>;
387
- 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.">]>;
388
- 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.">]>;
389
- 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.">]>;
390
- 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.">]>;
391
- 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.">]>;
392
- 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.">]>;
385
+ 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.">]>;
386
+ 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.">]>;
387
+ 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.">]>;
388
+ 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.">]>;
389
+ 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.">]>;
390
+ 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.">]>;
391
+ 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.">]>;
392
+ 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.">]>;
393
393
  readonly impactPxs: v.SchemaWithPipe<readonly [v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.DescriptionAction<string[] | null, "Array of impact prices.">]>;
394
- 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.">]>;
394
+ 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.">]>;
395
395
  }, undefined>, v.DescriptionAction<{
396
396
  prevDayPx: string;
397
397
  dayNtlVlm: string;
@@ -415,19 +415,19 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
415
415
  impactPxs: string[] | null;
416
416
  dayBaseVlm: string;
417
417
  }[], "Array of contexts for each perpetual asset.">]>;
418
- readonly serverTime: 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, "Server timestamp (in ms since epoch).">]>;
418
+ readonly serverTime: 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, "Server timestamp (in ms since epoch).">]>;
419
419
  readonly isVault: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether this account is a vault.">]>;
420
420
  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}`, "User address.">]>;
421
- readonly twapStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[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.SchemaWithPipe<readonly [v.ObjectSchema<{
421
+ readonly twapStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[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.SchemaWithPipe<readonly [v.ObjectSchema<{
422
422
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
423
- readonly executedNtl: 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, "Executed notional value.">]>;
424
- readonly executedSz: 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, "Executed size.">]>;
425
- readonly minutes: 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, "Duration in minutes.">]>;
423
+ readonly executedNtl: 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, "Executed notional value.">]>;
424
+ readonly executedSz: 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, "Executed size.">]>;
425
+ readonly minutes: 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, "Duration in minutes.">]>;
426
426
  readonly randomize: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the TWAP randomizes execution.">]>;
427
427
  readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is reduce-only.">]>;
428
428
  readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["B", "A"], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
429
- 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, "Order size.">]>;
430
- readonly timestamp: 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, "Start time of the TWAP order (in ms since epoch).">]>;
429
+ 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, "Order size.">]>;
430
+ readonly timestamp: 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, "Start time of the TWAP order (in ms since epoch).">]>;
431
431
  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}`, "User address.">]>;
432
432
  }, undefined>, v.DescriptionAction<{
433
433
  coin: string;
@@ -455,10 +455,10 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
455
455
  readonly spotState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
456
456
  readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
457
457
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
458
- readonly token: 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, "Unique identifier for the token.">]>;
459
- readonly total: 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 balance.">]>;
460
- readonly hold: 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 on hold.">]>;
461
- readonly entryNtl: 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, "Entry notional value.">]>;
458
+ readonly token: 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, "Unique identifier for the token.">]>;
459
+ readonly total: 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 balance.">]>;
460
+ readonly hold: 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 on hold.">]>;
461
+ readonly entryNtl: 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, "Entry notional value.">]>;
462
462
  }, undefined>, undefined>, v.DescriptionAction<{
463
463
  coin: string;
464
464
  token: number;
@@ -468,8 +468,8 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
468
468
  }[], "Array of available token balances.">]>;
469
469
  readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
470
470
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
471
- readonly token: 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, "Unique identifier for the token.">]>;
472
- readonly total: 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 balance.">]>;
471
+ readonly token: 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, "Unique identifier for the token.">]>;
472
+ readonly total: 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 balance.">]>;
473
473
  }, undefined>, undefined>, undefined>, v.DescriptionAction<{
474
474
  coin: string;
475
475
  token: number;
@@ -503,14 +503,14 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
503
503
  }[] | undefined;
504
504
  } | undefined, "Account summary for spot trading.">]>;
505
505
  readonly spotAssetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
506
- 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.">]>;
507
- 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.">]>;
508
- 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.">]>;
509
- 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.">]>;
510
- readonly circulatingSupply: 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, "Circulating supply.">]>;
506
+ 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.">]>;
507
+ 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.">]>;
508
+ 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.">]>;
509
+ 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.">]>;
510
+ readonly circulatingSupply: 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, "Circulating supply.">]>;
511
511
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
512
- readonly totalSupply: 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 supply.">]>;
513
- 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.">]>;
512
+ readonly totalSupply: 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 supply.">]>;
513
+ 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.">]>;
514
514
  }, undefined>, v.DescriptionAction<{
515
515
  prevDayPx: string;
516
516
  dayNtlVlm: string;
@@ -17,11 +17,11 @@ export declare const WebData3Event: v.SchemaWithPipe<readonly [v.ObjectSchema<{
17
17
  /** Agent address if one exists. */
18
18
  readonly agentAddress: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | null, "Agent address if one exists.">]>;
19
19
  /** Timestamp until which the agent is valid. */
20
- readonly agentValidUntil: v.SchemaWithPipe<readonly [v.NullableSchema<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>]>, undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
20
+ readonly agentValidUntil: v.SchemaWithPipe<readonly [v.NullableSchema<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>]>, undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
21
21
  /** Cumulative ledger value. */
22
- readonly cumLedger: 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, "Cumulative ledger value.">]>;
22
+ readonly cumLedger: 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, "Cumulative ledger value.">]>;
23
23
  /** Server timestamp (in ms since epoch). */
24
- readonly serverTime: 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, "Server timestamp (in ms since epoch).">]>;
24
+ readonly serverTime: 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, "Server timestamp (in ms since epoch).">]>;
25
25
  /** Whether this account is a vault. */
26
26
  readonly isVault: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether this account is a vault.">]>;
27
27
  /** User address. */
@@ -46,7 +46,7 @@ export declare const WebData3Event: v.SchemaWithPipe<readonly [v.ObjectSchema<{
46
46
  /** Array of perpetual DEX states. */
47
47
  readonly perpDexStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
48
48
  /** Total equity in vaults. */
49
- readonly totalVaultEquity: 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 equity in vaults.">]>;
49
+ readonly totalVaultEquity: 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 equity in vaults.">]>;
50
50
  /** Assets currently at their open interest cap. */
51
51
  readonly perpsAtOpenInterestCap: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string[], "Array of perpetuals at open interest caps.">]>, undefined>, v.DescriptionAction<string[] | undefined, "Assets currently at their open interest cap.">]>;
52
52
  /** Array of leading vaults. */
@@ -62,7 +62,7 @@
62
62
  */
63
63
  import { keccak_256 } from "@noble/hashes/sha3.js";
64
64
  import { bytesToHex, concatBytes, hexToBytes } from "@noble/hashes/utils.js";
65
- import { encode as encodeMsgpack } from "../../deps/jsr.io/@std/msgpack/1.0.3/mod.js";
65
+ import { encode as encodeMsgpack } from "../../deps/jsr.io/@std/msgpack/1.0.3/encode.js";
66
66
  import { signTypedData } from "./_abstractWallet.js";
67
67
  export { AbstractWalletError, getWalletAddress, getWalletChainId, } from "./_abstractWallet.js";
68
68
  export { PrivateKeySigner } from "./_privateKeySigner.js";
@@ -1 +1 @@
1
- {"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/src/signing/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,MAAM,IAA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;YACN,IAAI,EAAE,4BAA4B;YAClC,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC;YAC1C,iBAAiB,EAAE,4CAA4C;SAChE;QACD,KAAK,EAAE;YACL,qCAAqC,EAAE;gBACrC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC5C,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC/C,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;aAClC;SACF;QACD,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE;YACP,gBAAgB,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;YACnD,kBAAkB,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;YACrF,KAAK;SACN;KACF,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nktkas/hyperliquid",
3
- "version": "0.30.0",
3
+ "version": "0.30.2",
4
4
  "description": "Hyperliquid API SDK for all major JS runtimes, written in TypeScript.",
5
5
  "keywords": [
6
6
  "api",
@@ -67,7 +67,7 @@
67
67
  "node": ">=20.19.0"
68
68
  },
69
69
  "dependencies": {
70
- "@nktkas/rews": "^1.2.2",
70
+ "@nktkas/rews": "^1.2.3",
71
71
  "@noble/hashes": "^2.0.1",
72
72
  "micro-eth-signer": "^0.18.1",
73
73
  "valibot": "1.2.0"
@@ -0,0 +1,93 @@
1
+ /**
2
+ * A counting semaphore for limiting concurrent access to a resource.
3
+ *
4
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
5
+ *
6
+ * @example Usage
7
+ * ```ts
8
+ * import { Semaphore } from "@std/async/unstable-semaphore";
9
+ *
10
+ * const sem = new Semaphore(2);
11
+ * {
12
+ * using _permit = await sem.acquire();
13
+ * // critical section
14
+ * } // permit is automatically released when exiting the block
15
+ * ```
16
+ */
17
+ export declare class Semaphore {
18
+ #private;
19
+ /**
20
+ * Creates a new semaphore with the specified number of permits.
21
+ *
22
+ * @param max Maximum concurrent permits. Defaults to 1 (mutex).
23
+ */
24
+ constructor(max?: number);
25
+ /**
26
+ * Acquires a permit, waiting if none are available.
27
+ *
28
+ * @example Usage
29
+ * ```ts no-assert
30
+ * import { Semaphore } from "@std/async/unstable-semaphore";
31
+ *
32
+ * const sem = new Semaphore(1);
33
+ * await sem.acquire();
34
+ * try {
35
+ * // critical section
36
+ * } finally {
37
+ * sem.release();
38
+ * }
39
+ * ```
40
+ *
41
+ * @example Using `using` statement
42
+ * ```ts no-assert
43
+ * import { Semaphore } from "@std/async/unstable-semaphore";
44
+ *
45
+ * const sem = new Semaphore(1);
46
+ * {
47
+ * using _permit = await sem.acquire();
48
+ * // critical section
49
+ * } // permit is automatically released when exiting the block
50
+ * ```
51
+ *
52
+ * @returns A promise that resolves to a {@linkcode Disposable} when a permit is acquired.
53
+ */
54
+ acquire(): Promise<Disposable>;
55
+ /**
56
+ * Tries to acquire a permit without waiting.
57
+ *
58
+ * @example Usage
59
+ * ```ts no-assert
60
+ * import { Semaphore } from "@std/async/unstable-semaphore";
61
+ *
62
+ * const sem = new Semaphore(1);
63
+ * const permit = sem.tryAcquire();
64
+ * if (permit) {
65
+ * using _ = permit;
66
+ * // critical section
67
+ * } else {
68
+ * // resource is busy
69
+ * }
70
+ * ```
71
+ *
72
+ * @returns A {@linkcode Disposable} if a permit was acquired, `undefined` otherwise.
73
+ */
74
+ tryAcquire(): Disposable | undefined;
75
+ /**
76
+ * Releases a permit, allowing the next waiter to proceed.
77
+ *
78
+ * @example Usage
79
+ * ```ts no-assert
80
+ * import { Semaphore } from "@std/async/unstable-semaphore";
81
+ *
82
+ * const sem = new Semaphore(1);
83
+ * await sem.acquire();
84
+ * try {
85
+ * // critical section
86
+ * } finally {
87
+ * sem.release();
88
+ * }
89
+ * ```
90
+ */
91
+ release(): void;
92
+ }
93
+ //# sourceMappingURL=unstable_semaphore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unstable_semaphore.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,SAAS;;IASpB;;;;OAIG;gBACS,GAAG,GAAE,MAAU;IAS3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC;IAgB9B;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,IAAI,UAAU,GAAG,SAAS;IAQpC;;;;;;;;;;;;;;;OAeG;IACH,OAAO,IAAI,IAAI;CAShB"}