@nktkas/hyperliquid 0.30.0 → 0.30.3

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 (514) hide show
  1. package/README.md +83 -19
  2. package/esm/bin/cli.js +10 -0
  3. package/esm/bin/cli.js.map +1 -1
  4. package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts +94 -0
  5. package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts.map +1 -0
  6. package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js +138 -0
  7. package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js.map +1 -0
  8. package/esm/src/api/_schemas.d.ts +4 -4
  9. package/esm/src/api/_schemas.d.ts.map +1 -1
  10. package/esm/src/api/_schemas.js +8 -4
  11. package/esm/src/api/_schemas.js.map +1 -1
  12. package/esm/src/api/exchange/_methods/_base/_nonce.d.ts +3 -2
  13. package/esm/src/api/exchange/_methods/_base/_nonce.d.ts.map +1 -1
  14. package/esm/src/api/exchange/_methods/_base/_nonce.js +3 -2
  15. package/esm/src/api/exchange/_methods/_base/_nonce.js.map +1 -1
  16. package/esm/src/api/exchange/_methods/_base/_semaphore.d.ts +7 -6
  17. package/esm/src/api/exchange/_methods/_base/_semaphore.d.ts.map +1 -1
  18. package/esm/src/api/exchange/_methods/_base/_semaphore.js +34 -47
  19. package/esm/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
  20. package/esm/src/api/exchange/_methods/_base/execute.js +3 -3
  21. package/esm/src/api/exchange/_methods/_base/execute.js.map +1 -1
  22. package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +2 -2
  23. package/esm/src/api/exchange/_methods/approveAgent.d.ts +24 -13
  24. package/esm/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
  25. package/esm/src/api/exchange/_methods/approveAgent.js +21 -3
  26. package/esm/src/api/exchange/_methods/approveAgent.js.map +1 -1
  27. package/esm/src/api/exchange/_methods/approveBuilderFee.d.ts +4 -4
  28. package/esm/src/api/exchange/_methods/batchModify.d.ts +29 -29
  29. package/esm/src/api/exchange/_methods/borrowLend.d.ts +173 -0
  30. package/esm/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
  31. package/esm/src/api/exchange/_methods/borrowLend.js +75 -0
  32. package/esm/src/api/exchange/_methods/borrowLend.js.map +1 -0
  33. package/esm/src/api/exchange/_methods/cDeposit.d.ts +7 -7
  34. package/esm/src/api/exchange/_methods/cSignerAction.d.ts +2 -2
  35. package/esm/src/api/exchange/_methods/cValidatorAction.d.ts +11 -11
  36. package/esm/src/api/exchange/_methods/cWithdraw.d.ts +7 -7
  37. package/esm/src/api/exchange/_methods/cancel.d.ts +8 -8
  38. package/esm/src/api/exchange/_methods/cancelByCloid.d.ts +5 -5
  39. package/esm/src/api/exchange/_methods/claimRewards.d.ts +2 -2
  40. package/esm/src/api/exchange/_methods/convertToMultiSigUser.d.ts +10 -10
  41. package/esm/src/api/exchange/_methods/createSubAccount.d.ts +2 -2
  42. package/esm/src/api/exchange/_methods/createVault.d.ts +8 -8
  43. package/esm/src/api/exchange/_methods/evmUserModify.d.ts +2 -2
  44. package/esm/src/api/exchange/_methods/linkStakingUser.d.ts +4 -4
  45. package/esm/src/api/exchange/_methods/modify.d.ts +19 -19
  46. package/esm/src/api/exchange/_methods/noop.d.ts +2 -2
  47. package/esm/src/api/exchange/_methods/order.d.ts +31 -31
  48. package/esm/src/api/exchange/_methods/order.d.ts.map +1 -1
  49. package/esm/src/api/exchange/_methods/order.js +4 -2
  50. package/esm/src/api/exchange/_methods/order.js.map +1 -1
  51. package/esm/src/api/exchange/_methods/perpDeploy.d.ts +53 -53
  52. package/esm/src/api/exchange/_methods/registerReferrer.d.ts +2 -2
  53. package/esm/src/api/exchange/_methods/reserveRequestWeight.d.ts +5 -5
  54. package/esm/src/api/exchange/_methods/scheduleCancel.d.ts +5 -5
  55. package/esm/src/api/exchange/_methods/sendAsset.d.ts +17 -17
  56. package/esm/src/api/exchange/_methods/setDisplayName.d.ts +2 -2
  57. package/esm/src/api/exchange/_methods/setReferrer.d.ts +2 -2
  58. package/esm/src/api/exchange/_methods/spotDeploy.d.ts +53 -53
  59. package/esm/src/api/exchange/_methods/spotSend.d.ts +12 -12
  60. package/esm/src/api/exchange/_methods/spotUser.d.ts +2 -2
  61. package/esm/src/api/exchange/_methods/subAccountModify.d.ts +2 -2
  62. package/esm/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +5 -5
  63. package/esm/src/api/exchange/_methods/subAccountTransfer.d.ts +5 -5
  64. package/esm/src/api/exchange/_methods/tokenDelegate.d.ts +7 -7
  65. package/esm/src/api/exchange/_methods/twapCancel.d.ts +8 -8
  66. package/esm/src/api/exchange/_methods/twapOrder.d.ts +12 -12
  67. package/esm/src/api/exchange/_methods/updateIsolatedMargin.d.ts +8 -8
  68. package/esm/src/api/exchange/_methods/updateLeverage.d.ts +8 -8
  69. package/esm/src/api/exchange/_methods/usdClassTransfer.d.ts +7 -7
  70. package/esm/src/api/exchange/_methods/usdSend.d.ts +12 -12
  71. package/esm/src/api/exchange/_methods/userDexAbstraction.d.ts +4 -4
  72. package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts +193 -0
  73. package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
  74. package/esm/src/api/exchange/_methods/userPortfolioMargin.js +92 -0
  75. package/esm/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
  76. package/esm/src/api/exchange/_methods/validatorL1Stream.d.ts +5 -5
  77. package/esm/src/api/exchange/_methods/vaultDistribute.d.ts +5 -5
  78. package/esm/src/api/exchange/_methods/vaultModify.d.ts +2 -2
  79. package/esm/src/api/exchange/_methods/vaultTransfer.d.ts +5 -5
  80. package/esm/src/api/exchange/_methods/withdraw3.d.ts +12 -12
  81. package/esm/src/api/exchange/client.d.ts +8 -0
  82. package/esm/src/api/exchange/client.d.ts.map +1 -1
  83. package/esm/src/api/exchange/client.js +10 -0
  84. package/esm/src/api/exchange/client.js.map +1 -1
  85. package/esm/src/api/exchange/mod.d.ts +2 -0
  86. package/esm/src/api/exchange/mod.d.ts.map +1 -1
  87. package/esm/src/api/exchange/mod.js +2 -0
  88. package/esm/src/api/exchange/mod.js.map +1 -1
  89. package/esm/src/api/info/_methods/_base/commonSchemas.d.ts +43 -43
  90. package/esm/src/api/info/_methods/activeAssetData.d.ts +6 -6
  91. package/esm/src/api/info/_methods/activeAssetData.js +2 -2
  92. package/esm/src/api/info/_methods/activeAssetData.js.map +1 -1
  93. package/esm/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +5 -5
  94. package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts +71 -0
  95. package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
  96. package/esm/src/api/info/_methods/allBorrowLendReserveStates.js +56 -0
  97. package/esm/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
  98. package/esm/src/api/info/_methods/allMids.d.ts +1 -1
  99. package/esm/src/api/info/_methods/allPerpMetas.d.ts +7 -7
  100. package/esm/src/api/info/_methods/blockDetails.d.ts +6 -6
  101. package/esm/src/api/info/_methods/borrowLendReserveState.d.ts +79 -0
  102. package/esm/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
  103. package/esm/src/api/info/_methods/borrowLendReserveState.js +76 -0
  104. package/esm/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
  105. package/esm/src/api/info/_methods/borrowLendUserState.d.ts +103 -0
  106. package/esm/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
  107. package/esm/src/api/info/_methods/borrowLendUserState.js +85 -0
  108. package/esm/src/api/info/_methods/borrowLendUserState.js.map +1 -0
  109. package/esm/src/api/info/_methods/candleSnapshot.d.ts +10 -10
  110. package/esm/src/api/info/_methods/clearinghouseState.d.ts +25 -25
  111. package/esm/src/api/info/_methods/clearinghouseState.js +3 -3
  112. package/esm/src/api/info/_methods/clearinghouseState.js.map +1 -1
  113. package/esm/src/api/info/_methods/delegations.d.ts +2 -2
  114. package/esm/src/api/info/_methods/delegatorHistory.d.ts +4 -4
  115. package/esm/src/api/info/_methods/delegatorRewards.d.ts +2 -2
  116. package/esm/src/api/info/_methods/delegatorSummary.d.ts +4 -4
  117. package/esm/src/api/info/_methods/exchangeStatus.d.ts +1 -1
  118. package/esm/src/api/info/_methods/extraAgents.d.ts +1 -1
  119. package/esm/src/api/info/_methods/frontendOpenOrders.d.ts +6 -6
  120. package/esm/src/api/info/_methods/fundingHistory.d.ts +5 -5
  121. package/esm/src/api/info/_methods/historicalOrders.d.ts +7 -7
  122. package/esm/src/api/info/_methods/l2Book.d.ts +7 -7
  123. package/esm/src/api/info/_methods/marginTable.d.ts +3 -3
  124. package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts +1 -1
  125. package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
  126. package/esm/src/api/info/_methods/meta.d.ts +7 -7
  127. package/esm/src/api/info/_methods/metaAndAssetCtxs.d.ts +16 -16
  128. package/esm/src/api/info/_methods/openOrders.d.ts +5 -5
  129. package/esm/src/api/info/_methods/orderStatus.d.ts +8 -8
  130. package/esm/src/api/info/_methods/perpDeployAuctionStatus.d.ts +5 -5
  131. package/esm/src/api/info/_methods/perpDexLimits.d.ts +4 -4
  132. package/esm/src/api/info/_methods/perpDexStatus.d.ts +1 -1
  133. package/esm/src/api/info/_methods/perpDexs.d.ts +6 -2
  134. package/esm/src/api/info/_methods/perpDexs.d.ts.map +1 -1
  135. package/esm/src/api/info/_methods/perpDexs.js +3 -1
  136. package/esm/src/api/info/_methods/perpDexs.js.map +1 -1
  137. package/esm/src/api/info/_methods/portfolio.d.ts +24 -24
  138. package/esm/src/api/info/_methods/preTransferCheck.d.ts +1 -1
  139. package/esm/src/api/info/_methods/predictedFundings.d.ts +3 -3
  140. package/esm/src/api/info/_methods/recentTrades.d.ts +4 -4
  141. package/esm/src/api/info/_methods/referral.d.ts +23 -23
  142. package/esm/src/api/info/_methods/spotClearinghouseState.d.ts +6 -6
  143. package/esm/src/api/info/_methods/spotDeployState.d.ts +15 -15
  144. package/esm/src/api/info/_methods/spotMeta.d.ts +43 -7
  145. package/esm/src/api/info/_methods/spotMeta.d.ts.map +1 -1
  146. package/esm/src/api/info/_methods/spotMeta.js +16 -0
  147. package/esm/src/api/info/_methods/spotMeta.js.map +1 -1
  148. package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +52 -14
  149. package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
  150. package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +5 -5
  151. package/esm/src/api/info/_methods/subAccounts.d.ts +31 -31
  152. package/esm/src/api/info/_methods/subAccounts2.d.ts +31 -31
  153. package/esm/src/api/info/_methods/tokenDetails.d.ts +12 -12
  154. package/esm/src/api/info/_methods/twapHistory.d.ts +7 -7
  155. package/esm/src/api/info/_methods/txDetails.d.ts +2 -2
  156. package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts +73 -0
  157. package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
  158. package/esm/src/api/info/_methods/userBorrowLendInterest.js +72 -0
  159. package/esm/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
  160. package/esm/src/api/info/_methods/userDetails.d.ts +2 -2
  161. package/esm/src/api/info/_methods/userFees.d.ts +25 -25
  162. package/esm/src/api/info/_methods/userFills.d.ts +10 -10
  163. package/esm/src/api/info/_methods/userFillsByTime.d.ts +12 -12
  164. package/esm/src/api/info/_methods/userFunding.d.ts +9 -9
  165. package/esm/src/api/info/_methods/userFunding.js +2 -2
  166. package/esm/src/api/info/_methods/userFunding.js.map +1 -1
  167. package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +93 -36
  168. package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  169. package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js +33 -0
  170. package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
  171. package/esm/src/api/info/_methods/userRateLimit.d.ts +4 -4
  172. package/esm/src/api/info/_methods/userToMultiSigSigners.d.ts +1 -1
  173. package/esm/src/api/info/_methods/userTwapSliceFills.d.ts +10 -10
  174. package/esm/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +12 -12
  175. package/esm/src/api/info/_methods/userVaultEquities.d.ts +2 -2
  176. package/esm/src/api/info/_methods/validatorL1Votes.d.ts +1 -1
  177. package/esm/src/api/info/_methods/validatorSummaries.d.ts +9 -9
  178. package/esm/src/api/info/_methods/vaultDetails.d.ts +36 -36
  179. package/esm/src/api/info/_methods/vaultSummaries.d.ts +2 -2
  180. package/esm/src/api/info/_methods/webData2.d.ts +70 -70
  181. package/esm/src/api/info/client.d.ts +16 -0
  182. package/esm/src/api/info/client.d.ts.map +1 -1
  183. package/esm/src/api/info/client.js +20 -0
  184. package/esm/src/api/info/client.js.map +1 -1
  185. package/esm/src/api/info/mod.d.ts +4 -0
  186. package/esm/src/api/info/mod.d.ts.map +1 -1
  187. package/esm/src/api/info/mod.js +4 -0
  188. package/esm/src/api/info/mod.js.map +1 -1
  189. package/esm/src/api/subscription/_methods/activeAssetCtx.d.ts +9 -9
  190. package/esm/src/api/subscription/_methods/activeAssetData.d.ts +6 -6
  191. package/esm/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +7 -7
  192. package/esm/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +9 -9
  193. package/esm/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +25 -25
  194. package/esm/src/api/subscription/_methods/allMids.d.ts +1 -1
  195. package/esm/src/api/subscription/_methods/assetCtxs.d.ts +11 -9
  196. package/esm/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
  197. package/esm/src/api/subscription/_methods/assetCtxs.js.map +1 -1
  198. package/esm/src/api/subscription/_methods/bbo.d.ts +7 -7
  199. package/esm/src/api/subscription/_methods/candle.d.ts +8 -8
  200. package/esm/src/api/subscription/_methods/clearinghouseState.d.ts +27 -25
  201. package/esm/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
  202. package/esm/src/api/subscription/_methods/clearinghouseState.js +2 -0
  203. package/esm/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
  204. package/esm/src/api/subscription/_methods/explorerBlock.d.ts +5 -3
  205. package/esm/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
  206. package/esm/src/api/subscription/_methods/explorerBlock.js +2 -0
  207. package/esm/src/api/subscription/_methods/explorerBlock.js.map +1 -1
  208. package/esm/src/api/subscription/_methods/explorerTxs.d.ts +4 -2
  209. package/esm/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
  210. package/esm/src/api/subscription/_methods/explorerTxs.js +2 -0
  211. package/esm/src/api/subscription/_methods/explorerTxs.js.map +1 -1
  212. package/esm/src/api/subscription/_methods/l2Book.d.ts +9 -9
  213. package/esm/src/api/subscription/_methods/openOrders.d.ts +6 -6
  214. package/esm/src/api/subscription/_methods/orderUpdates.d.ts +6 -6
  215. package/esm/src/api/subscription/_methods/spotAssetCtxs.d.ts +7 -7
  216. package/esm/src/api/subscription/_methods/spotState.d.ts +6 -6
  217. package/esm/src/api/subscription/_methods/trades.d.ts +4 -4
  218. package/esm/src/api/subscription/_methods/twapStates.d.ts +11 -6
  219. package/esm/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
  220. package/esm/src/api/subscription/_methods/twapStates.js +6 -1
  221. package/esm/src/api/subscription/_methods/twapStates.js.map +1 -1
  222. package/esm/src/api/subscription/_methods/userEvents.d.ts +35 -35
  223. package/esm/src/api/subscription/_methods/userFills.d.ts +10 -10
  224. package/esm/src/api/subscription/_methods/userFundings.d.ts +5 -5
  225. package/esm/src/api/subscription/_methods/userHistoricalOrders.d.ts +7 -7
  226. package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +109 -34
  227. package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  228. package/esm/src/api/subscription/_methods/userTwapHistory.d.ts +7 -7
  229. package/esm/src/api/subscription/_methods/userTwapSliceFills.d.ts +10 -10
  230. package/esm/src/api/subscription/_methods/webData2.d.ts +70 -70
  231. package/esm/src/api/subscription/_methods/webData3.d.ts +4 -4
  232. package/esm/src/signing/mod.js +1 -1
  233. package/esm/src/signing/mod.js.map +1 -1
  234. package/package.json +2 -2
  235. package/script/bin/cli.js +10 -0
  236. package/script/bin/cli.js.map +1 -1
  237. package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts +94 -0
  238. package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts.map +1 -0
  239. package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js +142 -0
  240. package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js.map +1 -0
  241. package/script/src/api/_schemas.d.ts +4 -4
  242. package/script/src/api/_schemas.d.ts.map +1 -1
  243. package/script/src/api/_schemas.js +8 -4
  244. package/script/src/api/_schemas.js.map +1 -1
  245. package/script/src/api/exchange/_methods/_base/_nonce.d.ts +3 -2
  246. package/script/src/api/exchange/_methods/_base/_nonce.d.ts.map +1 -1
  247. package/script/src/api/exchange/_methods/_base/_nonce.js +4 -3
  248. package/script/src/api/exchange/_methods/_base/_nonce.js.map +1 -1
  249. package/script/src/api/exchange/_methods/_base/_semaphore.d.ts +7 -6
  250. package/script/src/api/exchange/_methods/_base/_semaphore.d.ts.map +1 -1
  251. package/script/src/api/exchange/_methods/_base/_semaphore.js +35 -50
  252. package/script/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
  253. package/script/src/api/exchange/_methods/_base/execute.js +2 -2
  254. package/script/src/api/exchange/_methods/_base/execute.js.map +1 -1
  255. package/script/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +2 -2
  256. package/script/src/api/exchange/_methods/approveAgent.d.ts +24 -13
  257. package/script/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
  258. package/script/src/api/exchange/_methods/approveAgent.js +21 -3
  259. package/script/src/api/exchange/_methods/approveAgent.js.map +1 -1
  260. package/script/src/api/exchange/_methods/approveBuilderFee.d.ts +4 -4
  261. package/script/src/api/exchange/_methods/batchModify.d.ts +29 -29
  262. package/script/src/api/exchange/_methods/borrowLend.d.ts +173 -0
  263. package/script/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
  264. package/script/src/api/exchange/_methods/borrowLend.js +112 -0
  265. package/script/src/api/exchange/_methods/borrowLend.js.map +1 -0
  266. package/script/src/api/exchange/_methods/cDeposit.d.ts +7 -7
  267. package/script/src/api/exchange/_methods/cSignerAction.d.ts +2 -2
  268. package/script/src/api/exchange/_methods/cValidatorAction.d.ts +11 -11
  269. package/script/src/api/exchange/_methods/cWithdraw.d.ts +7 -7
  270. package/script/src/api/exchange/_methods/cancel.d.ts +8 -8
  271. package/script/src/api/exchange/_methods/cancelByCloid.d.ts +5 -5
  272. package/script/src/api/exchange/_methods/claimRewards.d.ts +2 -2
  273. package/script/src/api/exchange/_methods/convertToMultiSigUser.d.ts +10 -10
  274. package/script/src/api/exchange/_methods/createSubAccount.d.ts +2 -2
  275. package/script/src/api/exchange/_methods/createVault.d.ts +8 -8
  276. package/script/src/api/exchange/_methods/evmUserModify.d.ts +2 -2
  277. package/script/src/api/exchange/_methods/linkStakingUser.d.ts +4 -4
  278. package/script/src/api/exchange/_methods/modify.d.ts +19 -19
  279. package/script/src/api/exchange/_methods/noop.d.ts +2 -2
  280. package/script/src/api/exchange/_methods/order.d.ts +31 -31
  281. package/script/src/api/exchange/_methods/order.d.ts.map +1 -1
  282. package/script/src/api/exchange/_methods/order.js +4 -2
  283. package/script/src/api/exchange/_methods/order.js.map +1 -1
  284. package/script/src/api/exchange/_methods/perpDeploy.d.ts +53 -53
  285. package/script/src/api/exchange/_methods/registerReferrer.d.ts +2 -2
  286. package/script/src/api/exchange/_methods/reserveRequestWeight.d.ts +5 -5
  287. package/script/src/api/exchange/_methods/scheduleCancel.d.ts +5 -5
  288. package/script/src/api/exchange/_methods/sendAsset.d.ts +17 -17
  289. package/script/src/api/exchange/_methods/setDisplayName.d.ts +2 -2
  290. package/script/src/api/exchange/_methods/setReferrer.d.ts +2 -2
  291. package/script/src/api/exchange/_methods/spotDeploy.d.ts +53 -53
  292. package/script/src/api/exchange/_methods/spotSend.d.ts +12 -12
  293. package/script/src/api/exchange/_methods/spotUser.d.ts +2 -2
  294. package/script/src/api/exchange/_methods/subAccountModify.d.ts +2 -2
  295. package/script/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +5 -5
  296. package/script/src/api/exchange/_methods/subAccountTransfer.d.ts +5 -5
  297. package/script/src/api/exchange/_methods/tokenDelegate.d.ts +7 -7
  298. package/script/src/api/exchange/_methods/twapCancel.d.ts +8 -8
  299. package/script/src/api/exchange/_methods/twapOrder.d.ts +12 -12
  300. package/script/src/api/exchange/_methods/updateIsolatedMargin.d.ts +8 -8
  301. package/script/src/api/exchange/_methods/updateLeverage.d.ts +8 -8
  302. package/script/src/api/exchange/_methods/usdClassTransfer.d.ts +7 -7
  303. package/script/src/api/exchange/_methods/usdSend.d.ts +12 -12
  304. package/script/src/api/exchange/_methods/userDexAbstraction.d.ts +4 -4
  305. package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts +193 -0
  306. package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
  307. package/script/src/api/exchange/_methods/userPortfolioMargin.js +129 -0
  308. package/script/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
  309. package/script/src/api/exchange/_methods/validatorL1Stream.d.ts +5 -5
  310. package/script/src/api/exchange/_methods/vaultDistribute.d.ts +5 -5
  311. package/script/src/api/exchange/_methods/vaultModify.d.ts +2 -2
  312. package/script/src/api/exchange/_methods/vaultTransfer.d.ts +5 -5
  313. package/script/src/api/exchange/_methods/withdraw3.d.ts +12 -12
  314. package/script/src/api/exchange/client.d.ts +8 -0
  315. package/script/src/api/exchange/client.d.ts.map +1 -1
  316. package/script/src/api/exchange/client.js +10 -0
  317. package/script/src/api/exchange/client.js.map +1 -1
  318. package/script/src/api/exchange/mod.d.ts +2 -0
  319. package/script/src/api/exchange/mod.d.ts.map +1 -1
  320. package/script/src/api/exchange/mod.js +2 -0
  321. package/script/src/api/exchange/mod.js.map +1 -1
  322. package/script/src/api/info/_methods/_base/commonSchemas.d.ts +43 -43
  323. package/script/src/api/info/_methods/activeAssetData.d.ts +6 -6
  324. package/script/src/api/info/_methods/activeAssetData.js +1 -1
  325. package/script/src/api/info/_methods/activeAssetData.js.map +1 -1
  326. package/script/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +5 -5
  327. package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts +71 -0
  328. package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
  329. package/script/src/api/info/_methods/allBorrowLendReserveStates.js +93 -0
  330. package/script/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
  331. package/script/src/api/info/_methods/allMids.d.ts +1 -1
  332. package/script/src/api/info/_methods/allPerpMetas.d.ts +7 -7
  333. package/script/src/api/info/_methods/blockDetails.d.ts +6 -6
  334. package/script/src/api/info/_methods/borrowLendReserveState.d.ts +79 -0
  335. package/script/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
  336. package/script/src/api/info/_methods/borrowLendReserveState.js +113 -0
  337. package/script/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
  338. package/script/src/api/info/_methods/borrowLendUserState.d.ts +103 -0
  339. package/script/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
  340. package/script/src/api/info/_methods/borrowLendUserState.js +122 -0
  341. package/script/src/api/info/_methods/borrowLendUserState.js.map +1 -0
  342. package/script/src/api/info/_methods/candleSnapshot.d.ts +10 -10
  343. package/script/src/api/info/_methods/clearinghouseState.d.ts +25 -25
  344. package/script/src/api/info/_methods/clearinghouseState.js +3 -3
  345. package/script/src/api/info/_methods/clearinghouseState.js.map +1 -1
  346. package/script/src/api/info/_methods/delegations.d.ts +2 -2
  347. package/script/src/api/info/_methods/delegatorHistory.d.ts +4 -4
  348. package/script/src/api/info/_methods/delegatorRewards.d.ts +2 -2
  349. package/script/src/api/info/_methods/delegatorSummary.d.ts +4 -4
  350. package/script/src/api/info/_methods/exchangeStatus.d.ts +1 -1
  351. package/script/src/api/info/_methods/extraAgents.d.ts +1 -1
  352. package/script/src/api/info/_methods/frontendOpenOrders.d.ts +6 -6
  353. package/script/src/api/info/_methods/fundingHistory.d.ts +5 -5
  354. package/script/src/api/info/_methods/historicalOrders.d.ts +7 -7
  355. package/script/src/api/info/_methods/l2Book.d.ts +7 -7
  356. package/script/src/api/info/_methods/marginTable.d.ts +3 -3
  357. package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts +1 -1
  358. package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
  359. package/script/src/api/info/_methods/meta.d.ts +7 -7
  360. package/script/src/api/info/_methods/metaAndAssetCtxs.d.ts +16 -16
  361. package/script/src/api/info/_methods/openOrders.d.ts +5 -5
  362. package/script/src/api/info/_methods/orderStatus.d.ts +8 -8
  363. package/script/src/api/info/_methods/perpDeployAuctionStatus.d.ts +5 -5
  364. package/script/src/api/info/_methods/perpDexLimits.d.ts +4 -4
  365. package/script/src/api/info/_methods/perpDexStatus.d.ts +1 -1
  366. package/script/src/api/info/_methods/perpDexs.d.ts +6 -2
  367. package/script/src/api/info/_methods/perpDexs.d.ts.map +1 -1
  368. package/script/src/api/info/_methods/perpDexs.js +3 -1
  369. package/script/src/api/info/_methods/perpDexs.js.map +1 -1
  370. package/script/src/api/info/_methods/portfolio.d.ts +24 -24
  371. package/script/src/api/info/_methods/preTransferCheck.d.ts +1 -1
  372. package/script/src/api/info/_methods/predictedFundings.d.ts +3 -3
  373. package/script/src/api/info/_methods/recentTrades.d.ts +4 -4
  374. package/script/src/api/info/_methods/referral.d.ts +23 -23
  375. package/script/src/api/info/_methods/spotClearinghouseState.d.ts +6 -6
  376. package/script/src/api/info/_methods/spotDeployState.d.ts +15 -15
  377. package/script/src/api/info/_methods/spotMeta.d.ts +43 -7
  378. package/script/src/api/info/_methods/spotMeta.d.ts.map +1 -1
  379. package/script/src/api/info/_methods/spotMeta.js +16 -0
  380. package/script/src/api/info/_methods/spotMeta.js.map +1 -1
  381. package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +52 -14
  382. package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
  383. package/script/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +5 -5
  384. package/script/src/api/info/_methods/subAccounts.d.ts +31 -31
  385. package/script/src/api/info/_methods/subAccounts2.d.ts +31 -31
  386. package/script/src/api/info/_methods/tokenDetails.d.ts +12 -12
  387. package/script/src/api/info/_methods/twapHistory.d.ts +7 -7
  388. package/script/src/api/info/_methods/txDetails.d.ts +2 -2
  389. package/script/src/api/info/_methods/userBorrowLendInterest.d.ts +73 -0
  390. package/script/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
  391. package/script/src/api/info/_methods/userBorrowLendInterest.js +109 -0
  392. package/script/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
  393. package/script/src/api/info/_methods/userDetails.d.ts +2 -2
  394. package/script/src/api/info/_methods/userFees.d.ts +25 -25
  395. package/script/src/api/info/_methods/userFills.d.ts +10 -10
  396. package/script/src/api/info/_methods/userFillsByTime.d.ts +12 -12
  397. package/script/src/api/info/_methods/userFunding.d.ts +9 -9
  398. package/script/src/api/info/_methods/userFunding.js +2 -2
  399. package/script/src/api/info/_methods/userFunding.js.map +1 -1
  400. package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +93 -36
  401. package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  402. package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js +33 -0
  403. package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
  404. package/script/src/api/info/_methods/userRateLimit.d.ts +4 -4
  405. package/script/src/api/info/_methods/userToMultiSigSigners.d.ts +1 -1
  406. package/script/src/api/info/_methods/userTwapSliceFills.d.ts +10 -10
  407. package/script/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +12 -12
  408. package/script/src/api/info/_methods/userVaultEquities.d.ts +2 -2
  409. package/script/src/api/info/_methods/validatorL1Votes.d.ts +1 -1
  410. package/script/src/api/info/_methods/validatorSummaries.d.ts +9 -9
  411. package/script/src/api/info/_methods/vaultDetails.d.ts +36 -36
  412. package/script/src/api/info/_methods/vaultSummaries.d.ts +2 -2
  413. package/script/src/api/info/_methods/webData2.d.ts +70 -70
  414. package/script/src/api/info/client.d.ts +16 -0
  415. package/script/src/api/info/client.d.ts.map +1 -1
  416. package/script/src/api/info/client.js +20 -0
  417. package/script/src/api/info/client.js.map +1 -1
  418. package/script/src/api/info/mod.d.ts +4 -0
  419. package/script/src/api/info/mod.d.ts.map +1 -1
  420. package/script/src/api/info/mod.js +4 -0
  421. package/script/src/api/info/mod.js.map +1 -1
  422. package/script/src/api/subscription/_methods/activeAssetCtx.d.ts +9 -9
  423. package/script/src/api/subscription/_methods/activeAssetData.d.ts +6 -6
  424. package/script/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +7 -7
  425. package/script/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +9 -9
  426. package/script/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +25 -25
  427. package/script/src/api/subscription/_methods/allMids.d.ts +1 -1
  428. package/script/src/api/subscription/_methods/assetCtxs.d.ts +11 -9
  429. package/script/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
  430. package/script/src/api/subscription/_methods/assetCtxs.js.map +1 -1
  431. package/script/src/api/subscription/_methods/bbo.d.ts +7 -7
  432. package/script/src/api/subscription/_methods/candle.d.ts +8 -8
  433. package/script/src/api/subscription/_methods/clearinghouseState.d.ts +27 -25
  434. package/script/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
  435. package/script/src/api/subscription/_methods/clearinghouseState.js +2 -0
  436. package/script/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
  437. package/script/src/api/subscription/_methods/explorerBlock.d.ts +5 -3
  438. package/script/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
  439. package/script/src/api/subscription/_methods/explorerBlock.js +2 -0
  440. package/script/src/api/subscription/_methods/explorerBlock.js.map +1 -1
  441. package/script/src/api/subscription/_methods/explorerTxs.d.ts +4 -2
  442. package/script/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
  443. package/script/src/api/subscription/_methods/explorerTxs.js +2 -0
  444. package/script/src/api/subscription/_methods/explorerTxs.js.map +1 -1
  445. package/script/src/api/subscription/_methods/l2Book.d.ts +9 -9
  446. package/script/src/api/subscription/_methods/openOrders.d.ts +6 -6
  447. package/script/src/api/subscription/_methods/orderUpdates.d.ts +6 -6
  448. package/script/src/api/subscription/_methods/spotAssetCtxs.d.ts +7 -7
  449. package/script/src/api/subscription/_methods/spotState.d.ts +6 -6
  450. package/script/src/api/subscription/_methods/trades.d.ts +4 -4
  451. package/script/src/api/subscription/_methods/twapStates.d.ts +11 -6
  452. package/script/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
  453. package/script/src/api/subscription/_methods/twapStates.js +6 -1
  454. package/script/src/api/subscription/_methods/twapStates.js.map +1 -1
  455. package/script/src/api/subscription/_methods/userEvents.d.ts +35 -35
  456. package/script/src/api/subscription/_methods/userFills.d.ts +10 -10
  457. package/script/src/api/subscription/_methods/userFundings.d.ts +5 -5
  458. package/script/src/api/subscription/_methods/userHistoricalOrders.d.ts +7 -7
  459. package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +109 -34
  460. package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  461. package/script/src/api/subscription/_methods/userTwapHistory.d.ts +7 -7
  462. package/script/src/api/subscription/_methods/userTwapSliceFills.d.ts +10 -10
  463. package/script/src/api/subscription/_methods/webData2.d.ts +70 -70
  464. package/script/src/api/subscription/_methods/webData3.d.ts +4 -4
  465. package/script/src/signing/mod.js +2 -2
  466. package/script/src/signing/mod.js.map +1 -1
  467. package/src/bin/cli.ts +10 -0
  468. package/src/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.ts +147 -0
  469. package/src/src/api/_schemas.ts +4 -0
  470. package/src/src/api/exchange/_methods/_base/_nonce.ts +3 -2
  471. package/src/src/api/exchange/_methods/_base/_semaphore.ts +34 -59
  472. package/src/src/api/exchange/_methods/_base/execute.ts +3 -3
  473. package/src/src/api/exchange/_methods/approveAgent.ts +25 -5
  474. package/src/src/api/exchange/_methods/borrowLend.ts +133 -0
  475. package/src/src/api/exchange/_methods/order.ts +5 -3
  476. package/src/src/api/exchange/_methods/userPortfolioMargin.ts +156 -0
  477. package/src/src/api/exchange/client.ts +34 -0
  478. package/src/src/api/exchange/mod.ts +2 -0
  479. package/src/src/api/info/_methods/activeAssetData.ts +2 -2
  480. package/src/src/api/info/_methods/allBorrowLendReserveStates.ts +82 -0
  481. package/src/src/api/info/_methods/borrowLendReserveState.ts +131 -0
  482. package/src/src/api/info/_methods/borrowLendUserState.ts +144 -0
  483. package/src/src/api/info/_methods/clearinghouseState.ts +3 -3
  484. package/src/src/api/info/_methods/perpDexs.ts +6 -1
  485. package/src/src/api/info/_methods/spotMeta.ts +41 -0
  486. package/src/src/api/info/_methods/userBorrowLendInterest.ts +122 -0
  487. package/src/src/api/info/_methods/userFunding.ts +2 -2
  488. package/src/src/api/info/_methods/userNonFundingLedgerUpdates.ts +69 -0
  489. package/src/src/api/info/client.ts +60 -0
  490. package/src/src/api/info/mod.ts +4 -0
  491. package/src/src/api/subscription/_methods/assetCtxs.ts +2 -0
  492. package/src/src/api/subscription/_methods/clearinghouseState.ts +2 -0
  493. package/src/src/api/subscription/_methods/explorerBlock.ts +2 -0
  494. package/src/src/api/subscription/_methods/explorerTxs.ts +2 -0
  495. package/src/src/api/subscription/_methods/twapStates.ts +9 -1
  496. package/src/src/signing/mod.ts +1 -1
  497. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts +0 -21
  498. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts.map +0 -1
  499. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.js +0 -292
  500. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.js.map +0 -1
  501. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts +0 -44
  502. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts.map +0 -1
  503. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.js +0 -46
  504. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.js.map +0 -1
  505. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts +0 -21
  506. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts.map +0 -1
  507. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.js +0 -295
  508. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.js.map +0 -1
  509. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts +0 -44
  510. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts.map +0 -1
  511. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.js +0 -62
  512. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.js.map +0 -1
  513. package/src/deps/jsr.io/@std/msgpack/1.0.3/decode.ts +0 -391
  514. package/src/deps/jsr.io/@std/msgpack/1.0.3/mod.ts +0 -47
@@ -22,10 +22,10 @@ export declare const ClearinghouseStateEvent: v.SchemaWithPipe<readonly [v.Objec
22
22
  /** Account summary for perpetual trading. */
23
23
  readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
24
24
  readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
25
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
26
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
27
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
28
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
25
+ readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
26
+ readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
27
+ readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
28
+ readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
29
29
  }, undefined>, v.DescriptionAction<{
30
30
  accountValue: string;
31
31
  totalNtlPos: string;
@@ -33,30 +33,30 @@ export declare const ClearinghouseStateEvent: v.SchemaWithPipe<readonly [v.Objec
33
33
  totalMarginUsed: string;
34
34
  }, "Margin summary details.">]>;
35
35
  readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
36
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
37
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
38
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
39
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
36
+ readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
37
+ readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
38
+ readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
39
+ readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
40
40
  }, undefined>, v.DescriptionAction<{
41
41
  accountValue: string;
42
42
  totalNtlPos: string;
43
43
  totalRawUsd: string;
44
44
  totalMarginUsed: string;
45
45
  }, "Cross-margin summary details.">]>;
46
- readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
47
- readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
46
+ readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
47
+ readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
48
48
  readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
49
49
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
50
50
  readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
51
51
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
52
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Signed position size.">]>;
52
+ readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Signed position size.">]>;
53
53
  readonly leverage: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
54
54
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
55
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
56
- readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount of USD used (1 = $1).">]>;
55
+ readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
56
+ readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount of USD used (1 = $1).">]>;
57
57
  }, undefined>, v.ObjectSchema<{
58
58
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
59
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
59
+ readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
60
60
  }, undefined>], undefined>, v.DescriptionAction<{
61
61
  type: "isolated";
62
62
  value: number;
@@ -65,17 +65,17 @@ export declare const ClearinghouseStateEvent: v.SchemaWithPipe<readonly [v.Objec
65
65
  type: "cross";
66
66
  value: number;
67
67
  }, "Leverage details.">]>;
68
- readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Average entry price.">]>;
69
- readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Position value.">]>;
70
- readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
71
- readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Return on equity.">]>;
72
- readonly liquidationPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
73
- readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Margin used.">]>;
74
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
68
+ readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Average entry price.">]>;
69
+ readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Position value.">]>;
70
+ readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
71
+ readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Return on equity.">]>;
72
+ readonly liquidationPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
73
+ readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Margin used.">]>;
74
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
75
75
  readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
76
- readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
77
- readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
78
- readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
76
+ readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
77
+ readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
78
+ readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
79
79
  }, undefined>, v.DescriptionAction<{
80
80
  allTime: string;
81
81
  sinceOpen: string;
@@ -132,7 +132,7 @@ export declare const ClearinghouseStateEvent: v.SchemaWithPipe<readonly [v.Objec
132
132
  };
133
133
  };
134
134
  }[], "Array of asset positions.">]>;
135
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
135
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
136
136
  }, undefined>, v.DescriptionAction<{
137
137
  marginSummary: {
138
138
  accountValue: string;
@@ -298,6 +298,8 @@ export type ClearinghouseStateParameters = Omit<v.InferInput<typeof Clearinghous
298
298
  * (data) => console.log(data),
299
299
  * );
300
300
  * ```
301
+ *
302
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
301
303
  */
302
304
  export declare function clearinghouseState(config: SubscriptionConfig, params: ClearinghouseStateParameters, listener: (data: ClearinghouseStateEvent) => void): Promise<ISubscription>;
303
305
  //# sourceMappingURL=clearinghouseState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clearinghouseState.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/clearinghouseState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAS7B,sEAAsE;AACtE,eAAO,MAAM,yBAAyB;IAGhC,4BAA4B;;IAK5B,oBAAoB;;IAKpB,4CAA4C;;;;;;uEAQ9C,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC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AAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAExF,wDAAwD;AACxD,eAAO,MAAM,uBAAuB;IAG9B,4CAA4C;;IAK5C,oBAAoB;;IAKpB,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAQ/C,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,0EAA0E;AAC1E,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,EAAE,MAAM,CAAC,CAAC;AAExG;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,4BAA4B,EACpC,QAAQ,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,IAAI,GAChD,OAAO,CAAC,aAAa,CAAC,CAWxB"}
@@ -51,6 +51,8 @@ export const ClearinghouseStateEvent = /* @__PURE__ */ (() => {
51
51
  * (data) => console.log(data),
52
52
  * );
53
53
  * ```
54
+ *
55
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
54
56
  */
55
57
  export function clearinghouseState(config, params, listener) {
56
58
  const payload = v.parse(ClearinghouseStateRequest, {
@@ -1 +1 @@
1
- {"version":3,"file":"clearinghouseState.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/clearinghouseState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAEvF,sEAAsE;AACtE,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IAC7D,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,4BAA4B;QAC5B,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAC/B,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC,CACvC;QACD,oBAAoB;QACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAC/B;QACD,4CAA4C;QAC5C,GAAG,EAAE,CAAC,CAAC,IAAI,CACT,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EACtB,CAAC,CAAC,WAAW,CAAC,uCAAuC,CAAC,CACvD;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,iEAAiE,CAAC,CACjF,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAGL,wDAAwD;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IAC3D,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,4CAA4C;QAC5C,GAAG,EAAE,CAAC,CAAC,IAAI,CACT,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,WAAW,CAAC,uCAAuC,CAAC,CACvD;QACD,oBAAoB;QACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAC/B;QACD,6CAA6C;QAC7C,kBAAkB,EAAE,CAAC,CAAC,IAAI,CACxB,0BAA0B,EAC1B,CAAC,CAAC,WAAW,CAAC,wCAAwC,CAAC,CACxD;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,mDAAmD,CAAC,CACnE,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAaL;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAA0B,EAC1B,MAAoC,EACpC,QAAiD;IAEjD,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,yBAAyB,EAAE;QACjD,IAAI,EAAE,oBAAoB;QAC1B,GAAG,MAAM;QACT,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,EAAE,EAAE,4BAA4B;KACpD,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAA0B,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QACtF,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,EAAE,CAAC;YACnE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"clearinghouseState.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/clearinghouseState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,E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C,mDAAmD,CAAC,CACnE,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAaL;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAA0B,EAC1B,MAAoC,EACpC,QAAiD;IAEjD,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,yBAAyB,EAAE;QACjD,IAAI,EAAE,oBAAoB;QAC1B,GAAG,MAAM;QACT,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,EAAE,EAAE,4BAA4B;KACpD,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAA0B,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QACtF,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,EAAE,CAAC;YACnE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -10,13 +10,13 @@ export type ExplorerBlockRequest = v.InferOutput<typeof ExplorerBlockRequest>;
10
10
  /** Event of array of block details. */
11
11
  export declare const ExplorerBlockEvent: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
12
12
  /** Block creation timestamp. */
13
- readonly blockTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block creation timestamp.">]>;
13
+ readonly blockTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block creation timestamp.">]>;
14
14
  /** Block hash. */
15
15
  readonly hash: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "Block hash.">]>;
16
16
  /** Block height in chain. */
17
- readonly height: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block height in chain.">]>;
17
+ readonly height: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block height in chain.">]>;
18
18
  /** Total transactions in block. */
19
- readonly numTxs: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total transactions in block.">]>;
19
+ readonly numTxs: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total transactions in block.">]>;
20
20
  /** Block proposer address. */
21
21
  readonly proposer: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Block proposer address.">]>;
22
22
  }, undefined>, undefined>, v.DescriptionAction<{
@@ -52,6 +52,8 @@ import type { ISubscription } from "../../../transport/mod.js";
52
52
  * (data) => console.log(data),
53
53
  * );
54
54
  * ```
55
+ *
56
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
55
57
  */
56
58
  export declare function explorerBlock(config: SubscriptionConfig, listener: (data: ExplorerBlockEvent) => void): Promise<ISubscription>;
57
59
  //# sourceMappingURL=explorerBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"explorerBlock.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAQ7B,6CAA6C;AAC7C,eAAO,MAAM,oBAAoB;IAG3B,4BAA4B;;;;8CAQ9B,CAAC;AACL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE9E,uCAAuC;AACvC,eAAO,MAAM,kBAAkB;IAIvB,gCAAgC;;IAKhC,kBAAkB;;IAMlB,6BAA6B;;IAK7B,mCAAmC;;IAKnC,8BAA8B;;;;;;;;0CASlC,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,GAC3C,OAAO,CAAC,aAAa,CAAC,CAKxB"}
1
+ {"version":3,"file":"explorerBlock.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAQ7B,6CAA6C;AAC7C,eAAO,MAAM,oBAAoB;IAG3B,4BAA4B;;;;8CAQ9B,CAAC;AACL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE9E,uCAAuC;AACvC,eAAO,MAAM,kBAAkB;IAIvB,gCAAgC;;IAKhC,kBAAkB;;IAMlB,6BAA6B;;IAK7B,mCAAmC;;IAKnC,8BAA8B;;;;;;;;0CASlC,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,GAC3C,OAAO,CAAC,aAAa,CAAC,CAKxB"}
@@ -48,6 +48,8 @@ export const ExplorerBlockEvent = /* @__PURE__ */ (() => {
48
48
  * (data) => console.log(data),
49
49
  * );
50
50
  * ```
51
+ *
52
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
51
53
  */
52
54
  export function explorerBlock(config, listener) {
53
55
  const payload = v.parse(ExplorerBlockRequest, { type: "explorerBlock" });
@@ -1 +1 @@
1
- {"version":3,"file":"explorerBlock.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerBlock.ts"],"names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AAE,CAAC,CAAC,IAAI,CACd,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,yBAAyB,CAAC,CACzC;KACF,CAAC,CACH,EACD,CAAC,CAAC,WAAW,CAAC,kCAAkC,CAAC,CAClD,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAUL;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,aAAa,CAC3B,MAA0B,EAC1B,QAA4C;IAE5C,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAAqB,gBAAgB,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QACrF,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"explorerBlock.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAElE,6CAA6C;AAC7C,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IACxD,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,4BAA4B;QAC5B,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,EAC1B,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC,CACvC;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,wCAAwC,CAAC,CACxD,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAGL,uCAAuC;AACvC,MAAM,CA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,10 @@ export declare const ExplorerTxsEvent: v.SchemaWithPipe<readonly [v.ArraySchema<
16
16
  } & {
17
17
  [key: string]: unknown;
18
18
  }, "Action performed in transaction.">]>;
19
- readonly block: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block number where transaction was included.">]>;
19
+ readonly block: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Block number where transaction was included.">]>;
20
20
  readonly error: v.SchemaWithPipe<readonly [v.NullableSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | null, "Error message if transaction failed.">]>;
21
21
  readonly hash: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "Transaction hash.">]>;
22
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Transaction creation timestamp.">]>;
22
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Transaction creation timestamp.">]>;
23
23
  readonly user: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Creator's address.">]>;
24
24
  }, undefined>, v.DescriptionAction<{
25
25
  action: {
@@ -69,6 +69,8 @@ import type { ISubscription } from "../../../transport/mod.js";
69
69
  * (data) => console.log(data),
70
70
  * );
71
71
  * ```
72
+ *
73
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
72
74
  */
73
75
  export declare function explorerTxs(config: SubscriptionConfig, listener: (data: ExplorerTxsEvent) => void): Promise<ISubscription>;
74
76
  //# sourceMappingURL=explorerTxs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"explorerTxs.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerTxs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAQ7B,mDAAmD;AACnD,eAAO,MAAM,kBAAkB;IAGzB,4BAA4B;;;;oDAQ9B,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE1E,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAKzB,CAAC;AACL,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAMtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,GACzC,OAAO,CAAC,aAAa,CAAC,CAKxB"}
1
+ {"version":3,"file":"explorerTxs.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerTxs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAQ7B,mDAAmD;AACnD,eAAO,MAAM,kBAAkB;IAGzB,4BAA4B;;;;oDAQ9B,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE1E,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAKzB,CAAC;AACL,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAMtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,GACzC,OAAO,CAAC,aAAa,CAAC,CAKxB"}
@@ -36,6 +36,8 @@ export const ExplorerTxsEvent = /* @__PURE__ */ (() => {
36
36
  * (data) => console.log(data),
37
37
  * );
38
38
  * ```
39
+ *
40
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
39
41
  */
40
42
  export function explorerTxs(config, listener) {
41
43
  const payload = v.parse(ExplorerTxsRequest, { type: "explorerTxs" });
@@ -1 +1 @@
1
- {"version":3,"file":"explorerTxs.js","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/explorerTxs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,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ly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
8
8
  /** Number of significant figures. */
9
- readonly nSigFigs: v.SchemaWithPipe<readonly [v.NullishSchema<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.PicklistSchema<[2, 3, 4, 5], undefined>]>, undefined>, v.DescriptionAction<2 | 3 | 4 | 5 | null | undefined, "Number of significant figures.">]>;
9
+ readonly nSigFigs: v.SchemaWithPipe<readonly [v.NullishSchema<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.PicklistSchema<[2, 3, 4, 5], undefined>]>, undefined>, v.DescriptionAction<2 | 3 | 4 | 5 | null | undefined, "Number of significant figures.">]>;
10
10
  /** Mantissa for aggregation (if `nSigFigs` is 5). */
11
- readonly mantissa: v.SchemaWithPipe<readonly [v.NullishSchema<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.PicklistSchema<[2, 5], undefined>]>, undefined>, v.DescriptionAction<2 | 5 | null | undefined, "Mantissa for aggregation (if `nSigFigs` is 5).">]>;
11
+ readonly mantissa: v.SchemaWithPipe<readonly [v.NullishSchema<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.PicklistSchema<[2, 5], undefined>]>, undefined>, v.DescriptionAction<2 | 5 | null | undefined, "Mantissa for aggregation (if `nSigFigs` is 5).">]>;
12
12
  }, undefined>, v.DescriptionAction<{
13
13
  type: "l2Book";
14
14
  coin: string;
@@ -21,26 +21,26 @@ export declare const L2BookEvent: v.SchemaWithPipe<readonly [v.ObjectSchema<{
21
21
  /** Asset symbol. */
22
22
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
23
23
  /** Timestamp of the snapshot (in ms since epoch). */
24
- 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 of the snapshot (in ms since epoch).">]>;
24
+ 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 of the snapshot (in ms since epoch).">]>;
25
25
  /** Bid and ask levels (index 0 = bids, index 1 = asks). */
26
26
  readonly levels: v.SchemaWithPipe<readonly [v.TupleSchema<[v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
27
27
  /** Price. */
28
- readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Price.">]>;
28
+ readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Price.">]>;
29
29
  /** Total size. */
30
- readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total size.">]>;
30
+ readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total size.">]>;
31
31
  /** Number of individual orders. */
32
- readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
32
+ readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
33
33
  }, undefined>, v.DescriptionAction<{
34
34
  px: string;
35
35
  sz: string;
36
36
  n: number;
37
37
  }, "L2 order book level.">]>, undefined>, v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
38
38
  /** Price. */
39
- readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Price.">]>;
39
+ readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Price.">]>;
40
40
  /** Total size. */
41
- readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total size.">]>;
41
+ readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total size.">]>;
42
42
  /** Number of individual orders. */
43
- readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
43
+ readonly n: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of individual orders.">]>;
44
44
  }, undefined>, v.DescriptionAction<{
45
45
  px: string;
46
46
  sz: string;
@@ -23,14 +23,14 @@ export declare const OpenOrdersEvent: v.SchemaWithPipe<readonly [v.ObjectSchema<
23
23
  readonly orders: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
24
24
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
25
25
  readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["B", "A"], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
26
- 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.">]>;
27
- 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.">]>;
28
- 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.">]>;
29
- 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).">]>;
30
- 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.">]>;
26
+ 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.">]>;
27
+ 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.">]>;
28
+ 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.">]>;
29
+ 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).">]>;
30
+ 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.">]>;
31
31
  readonly triggerCondition: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Condition for triggering the order.">]>;
32
32
  readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
33
- 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.">]>;
33
+ 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.">]>;
34
34
  readonly children: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnknownSchema, undefined>, v.DescriptionAction<unknown[], "Child orders associated with this order.">]>;
35
35
  readonly isPositionTpsl: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a position TP/SL order.">]>;
36
36
  readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates whether the order is reduce-only.">]>;
@@ -16,11 +16,11 @@ export declare const OrderUpdatesEvent: v.SchemaWithPipe<readonly [v.ArraySchema
16
16
  readonly order: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
17
17
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
18
18
  readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["B", "A"], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
19
- 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.">]>;
20
- 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.">]>;
21
- 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.">]>;
22
- 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).">]>;
23
- 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.">]>;
19
+ 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.">]>;
20
+ 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.">]>;
21
+ 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.">]>;
22
+ 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).">]>;
23
+ 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.">]>;
24
24
  readonly cloid: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | undefined, "Client Order ID.">]>;
25
25
  readonly reduceOnly: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if the order is reduce-only.">]>;
26
26
  }, undefined>, v.DescriptionAction<{
@@ -78,7 +78,7 @@ export declare const OrderUpdatesEvent: v.SchemaWithPipe<readonly [v.ArraySchema
78
78
  */
79
79
  readonly status: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["open", "filled", "canceled", "triggered", "rejected", "marginCanceled", "vaultWithdrawalCanceled", "openInterestCapCanceled", "selfTradeCanceled", "reduceOnlyCanceled", "siblingFilledCanceled", "delistedCanceled", "liquidatedCanceled", "scheduledCancel", "tickRejected", "minTradeNtlRejected", "perpMarginRejected", "reduceOnlyRejected", "badAloPxRejected", "iocCancelRejected", "badTriggerPxRejected", "marketOrderNoLiquidityRejected", "positionIncreaseAtOpenInterestCapRejected", "positionFlipAtOpenInterestCapRejected", "tooAggressiveAtOpenInterestCapRejected", "openInterestIncreaseRejected", "insufficientSpotBalanceRejected", "oracleRejected", "perpMaxPositionRejected"], undefined>, v.DescriptionAction<"open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "tickRejected" | "minTradeNtlRejected" | "perpMarginRejected" | "reduceOnlyRejected" | "badAloPxRejected" | "iocCancelRejected" | "badTriggerPxRejected" | "marketOrderNoLiquidityRejected" | "positionIncreaseAtOpenInterestCapRejected" | "positionFlipAtOpenInterestCapRejected" | "tooAggressiveAtOpenInterestCapRejected" | "openInterestIncreaseRejected" | "insufficientSpotBalanceRejected" | "oracleRejected" | "perpMaxPositionRejected", string>]>, v.DescriptionAction<"open" | "filled" | "canceled" | "triggered" | "rejected" | "marginCanceled" | "vaultWithdrawalCanceled" | "openInterestCapCanceled" | "selfTradeCanceled" | "reduceOnlyCanceled" | "siblingFilledCanceled" | "delistedCanceled" | "liquidatedCanceled" | "scheduledCancel" | "tickRejected" | "minTradeNtlRejected" | "perpMarginRejected" | "reduceOnlyRejected" | "badAloPxRejected" | "iocCancelRejected" | "badTriggerPxRejected" | "marketOrderNoLiquidityRejected" | "positionIncreaseAtOpenInterestCapRejected" | "positionFlipAtOpenInterestCapRejected" | "tooAggressiveAtOpenInterestCapRejected" | "openInterestIncreaseRejected" | "insufficientSpotBalanceRejected" | "oracleRejected" | "perpMaxPositionRejected", string>]>;
80
80
  /** Timestamp when the status was last updated (in ms since epoch). */
81
- readonly statusTimestamp: 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 status was last updated (in ms since epoch).">]>;
81
+ readonly statusTimestamp: 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 status was last updated (in ms since epoch).">]>;
82
82
  }, undefined>, undefined>, v.DescriptionAction<{
83
83
  order: {
84
84
  coin: string;
@@ -9,14 +9,14 @@ export declare const SpotAssetCtxsRequest: v.SchemaWithPipe<readonly [v.ObjectSc
9
9
  export type SpotAssetCtxsRequest = v.InferOutput<typeof SpotAssetCtxsRequest>;
10
10
  /** Event of spot asset contexts. */
11
11
  export declare const SpotAssetCtxsEvent: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
12
- 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.">]>;
13
- 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.">]>;
14
- 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.">]>;
15
- 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.">]>;
16
- 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.">]>;
12
+ 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.">]>;
13
+ 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.">]>;
14
+ 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.">]>;
15
+ 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.">]>;
16
+ 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.">]>;
17
17
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
18
- 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.">]>;
19
- 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.">]>;
18
+ 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.">]>;
19
+ 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.">]>;
20
20
  }, undefined>, v.DescriptionAction<{
21
21
  prevDayPx: string;
22
22
  dayNtlVlm: string;
@@ -21,10 +21,10 @@ export declare const SpotStateEvent: v.SchemaWithPipe<readonly [v.ObjectSchema<{
21
21
  readonly spotState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
22
22
  readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
23
23
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
24
- 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.">]>;
25
- 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.">]>;
26
- 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.">]>;
27
- 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.">]>;
24
+ 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.">]>;
25
+ 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.">]>;
26
+ 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.">]>;
27
+ 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.">]>;
28
28
  }, undefined>, undefined>, v.DescriptionAction<{
29
29
  coin: string;
30
30
  token: number;
@@ -34,8 +34,8 @@ export declare const SpotStateEvent: v.SchemaWithPipe<readonly [v.ObjectSchema<{
34
34
  }[], "Array of available token balances.">]>;
35
35
  readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
36
36
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
37
- 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.">]>;
38
- 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.">]>;
37
+ 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.">]>;
38
+ 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.">]>;
39
39
  }, undefined>, undefined>, undefined>, v.DescriptionAction<{
40
40
  coin: string;
41
41
  token: number;
@@ -14,11 +14,11 @@ export type TradesRequest = v.InferOutput<typeof TradesRequest>;
14
14
  export declare const TradesEvent: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
15
15
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
16
16
  readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["B", "A"], undefined>, v.DescriptionAction<"B" | "A", "Trade side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
17
- readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Trade price.">]>;
18
- 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, "Trade size.">]>;
19
- 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, "Trade timestamp (in ms since epoch).">]>;
17
+ readonly px: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Trade price.">]>;
18
+ 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, "Trade size.">]>;
19
+ 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, "Trade timestamp (in ms since epoch).">]>;
20
20
  readonly hash: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "Transaction hash.">]>;
21
- readonly tid: 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, "Trade ID.">]>;
21
+ readonly tid: 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, "Trade ID.">]>;
22
22
  readonly users: v.SchemaWithPipe<readonly [v.TupleSchema<[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.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}`, `0x${string}`], "Addresses of users involved in the trade [Maker, Taker].">]>;
23
23
  }, undefined>, undefined>, v.DescriptionAction<{
24
24
  coin: string;
@@ -5,9 +5,12 @@ export declare const TwapStatesRequest: v.SchemaWithPipe<readonly [v.ObjectSchem
5
5
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"twapStates", undefined>, v.DescriptionAction<"twapStates", "Type of subscription.">]>;
6
6
  /** User address. */
7
7
  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.">]>;
8
+ /** DEX name (empty string for main dex). */
9
+ readonly dex: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "DEX name (empty string for main dex).">]>;
8
10
  }, undefined>, v.DescriptionAction<{
9
11
  type: "twapStates";
10
12
  user: `0x${string}`;
13
+ dex?: string | undefined;
11
14
  }, "Subscribe to TWAP states updates for a specific user.">]>;
12
15
  export type TwapStatesRequest = v.InferOutput<typeof TwapStatesRequest>;
13
16
  /** Event of user TWAP states. */
@@ -17,16 +20,16 @@ export declare const TwapStatesEvent: v.SchemaWithPipe<readonly [v.ObjectSchema<
17
20
  /** User address. */
18
21
  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.">]>;
19
22
  /** Array of tuples of TWAP ID and TWAP state. */
20
- readonly states: 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<{
23
+ readonly states: 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<{
21
24
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
22
- 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.">]>;
23
- 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.">]>;
24
- 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.">]>;
25
+ 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.">]>;
26
+ 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.">]>;
27
+ 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.">]>;
25
28
  readonly randomize: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the TWAP randomizes execution.">]>;
26
29
  readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is reduce-only.">]>;
27
30
  readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["B", "A"], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
28
- 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.">]>;
29
- 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).">]>;
31
+ 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.">]>;
32
+ 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).">]>;
30
33
  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.">]>;
31
34
  }, undefined>, v.DescriptionAction<{
32
35
  coin: string;
@@ -97,6 +100,8 @@ export type TwapStatesParameters = Omit<v.InferInput<typeof TwapStatesRequest>,
97
100
  * (data) => console.log(data),
98
101
  * );
99
102
  * ```
103
+ *
104
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
100
105
  */
101
106
  export declare function twapStates(config: SubscriptionConfig, params: TwapStatesParameters, listener: (data: TwapStatesEvent) => void): Promise<ISubscription>;
102
107
  //# sourceMappingURL=twapStates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"twapStates.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/subscription/_methods/twapStates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAS7B,4DAA4D;AAC5D,eAAO,MAAM,iBAAiB;IAGxB,4BAA4B;;IAK5B,oBAAoB;;;;;6DAQtB,CAAC;AACL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAExE,iCAAiC;AACjC,eAAO,MAAM,eAAe;IAGtB,4CAA4C;;IAK5C,oBAAoB;;IAKpB,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAQnD,CAAC;AACL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAMpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,kEAAkE;AAClE,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,EAAE,CAAC,IAAI,EAAE,eAA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