@nktkas/hyperliquid 0.25.0-beta.4 → 0.25.1

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 (1617) hide show
  1. package/README.md +515 -432
  2. package/esm/bin/_utils.d.ts.map +1 -1
  3. package/esm/bin/_utils.js +2 -6
  4. package/esm/bin/_utils.js.map +1 -1
  5. package/esm/bin/cli.js +20 -64
  6. package/esm/bin/cli.js.map +1 -1
  7. package/esm/src/_base.d.ts +5 -0
  8. package/esm/src/_base.d.ts.map +1 -0
  9. package/esm/src/_base.js +8 -0
  10. package/esm/src/_base.js.map +1 -0
  11. package/esm/src/api/_common.d.ts +50 -0
  12. package/esm/src/api/_common.d.ts.map +1 -0
  13. package/esm/src/api/_common.js +62 -0
  14. package/esm/src/api/_common.js.map +1 -0
  15. package/esm/src/api/exchange/_common.d.ts +163 -0
  16. package/esm/src/api/exchange/_common.d.ts.map +1 -0
  17. package/esm/src/api/exchange/_common.js +236 -0
  18. package/esm/src/api/exchange/_common.js.map +1 -0
  19. package/esm/src/api/exchange/approveAgent.d.ts +104 -0
  20. package/esm/src/api/exchange/approveAgent.d.ts.map +1 -0
  21. package/esm/src/api/exchange/approveAgent.js +79 -0
  22. package/esm/src/api/exchange/approveAgent.js.map +1 -0
  23. package/esm/src/api/exchange/approveBuilderFee.d.ts +104 -0
  24. package/esm/src/api/exchange/approveBuilderFee.d.ts.map +1 -0
  25. package/esm/src/api/exchange/approveBuilderFee.js +79 -0
  26. package/esm/src/api/exchange/approveBuilderFee.js.map +1 -0
  27. package/esm/src/api/exchange/batchModify.d.ts +241 -0
  28. package/esm/src/api/exchange/batchModify.d.ts.map +1 -0
  29. package/esm/src/api/exchange/batchModify.js +141 -0
  30. package/esm/src/api/exchange/batchModify.js.map +1 -0
  31. package/esm/src/api/exchange/cDeposit.d.ts +100 -0
  32. package/esm/src/api/exchange/cDeposit.d.ts.map +1 -0
  33. package/esm/src/api/exchange/cDeposit.js +76 -0
  34. package/esm/src/api/exchange/cDeposit.js.map +1 -0
  35. package/esm/src/api/exchange/cSignerAction.d.ts +102 -0
  36. package/esm/src/api/exchange/cSignerAction.d.ts.map +1 -0
  37. package/esm/src/api/exchange/cSignerAction.js +79 -0
  38. package/esm/src/api/exchange/cSignerAction.js.map +1 -0
  39. package/esm/src/api/exchange/cValidatorAction.d.ts +265 -0
  40. package/esm/src/api/exchange/cValidatorAction.d.ts.map +1 -0
  41. package/esm/src/api/exchange/cValidatorAction.js +158 -0
  42. package/esm/src/api/exchange/cValidatorAction.js.map +1 -0
  43. package/esm/src/api/exchange/cWithdraw.d.ts +100 -0
  44. package/esm/src/api/exchange/cWithdraw.d.ts.map +1 -0
  45. package/esm/src/api/exchange/cWithdraw.js +76 -0
  46. package/esm/src/api/exchange/cWithdraw.js.map +1 -0
  47. package/esm/src/api/exchange/cancel.d.ts +176 -0
  48. package/esm/src/api/exchange/cancel.d.ts.map +1 -0
  49. package/esm/src/api/exchange/cancel.js +114 -0
  50. package/esm/src/api/exchange/cancel.js.map +1 -0
  51. package/esm/src/api/exchange/cancelByCloid.d.ts +105 -0
  52. package/esm/src/api/exchange/cancelByCloid.d.ts.map +1 -0
  53. package/esm/src/api/exchange/cancelByCloid.js +76 -0
  54. package/esm/src/api/exchange/cancelByCloid.js.map +1 -0
  55. package/esm/src/api/exchange/claimRewards.d.ts +72 -0
  56. package/esm/src/api/exchange/claimRewards.d.ts.map +1 -0
  57. package/esm/src/api/exchange/claimRewards.js +56 -0
  58. package/esm/src/api/exchange/claimRewards.js.map +1 -0
  59. package/esm/src/api/exchange/convertToMultiSigUser.d.ts +149 -0
  60. package/esm/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -0
  61. package/esm/src/api/exchange/convertToMultiSigUser.js +109 -0
  62. package/esm/src/api/exchange/convertToMultiSigUser.js.map +1 -0
  63. package/esm/src/api/exchange/createSubAccount.d.ts +104 -0
  64. package/esm/src/api/exchange/createSubAccount.d.ts.map +1 -0
  65. package/esm/src/api/exchange/createSubAccount.js +76 -0
  66. package/esm/src/api/exchange/createSubAccount.js.map +1 -0
  67. package/esm/src/api/exchange/createVault.d.ts +120 -0
  68. package/esm/src/api/exchange/createVault.d.ts.map +1 -0
  69. package/esm/src/api/exchange/createVault.js +88 -0
  70. package/esm/src/api/exchange/createVault.js.map +1 -0
  71. package/esm/src/api/exchange/evmUserModify.d.ts +84 -0
  72. package/esm/src/api/exchange/evmUserModify.d.ts.map +1 -0
  73. package/esm/src/api/exchange/evmUserModify.js +64 -0
  74. package/esm/src/api/exchange/evmUserModify.js.map +1 -0
  75. package/esm/src/api/exchange/modify.d.ts +210 -0
  76. package/esm/src/api/exchange/modify.d.ts.map +1 -0
  77. package/esm/src/api/exchange/modify.js +135 -0
  78. package/esm/src/api/exchange/modify.js.map +1 -0
  79. package/esm/src/api/exchange/multiSig.d.ts +2711 -0
  80. package/esm/src/api/exchange/multiSig.d.ts.map +1 -0
  81. package/esm/src/api/exchange/multiSig.js +215 -0
  82. package/esm/src/api/exchange/multiSig.js.map +1 -0
  83. package/esm/src/api/exchange/noop.d.ts +74 -0
  84. package/esm/src/api/exchange/noop.d.ts.map +1 -0
  85. package/esm/src/api/exchange/noop.js +58 -0
  86. package/esm/src/api/exchange/noop.js.map +1 -0
  87. package/esm/src/api/exchange/order.d.ts +476 -0
  88. package/esm/src/api/exchange/order.d.ts.map +1 -0
  89. package/esm/src/api/exchange/order.js +233 -0
  90. package/esm/src/api/exchange/order.js.map +1 -0
  91. package/esm/src/api/exchange/perpDeploy.d.ts +240 -0
  92. package/esm/src/api/exchange/perpDeploy.d.ts.map +1 -0
  93. package/esm/src/api/exchange/perpDeploy.js +121 -0
  94. package/esm/src/api/exchange/perpDeploy.js.map +1 -0
  95. package/esm/src/api/exchange/registerReferrer.d.ts +84 -0
  96. package/esm/src/api/exchange/registerReferrer.d.ts.map +1 -0
  97. package/esm/src/api/exchange/registerReferrer.js +64 -0
  98. package/esm/src/api/exchange/registerReferrer.js.map +1 -0
  99. package/esm/src/api/exchange/reserveRequestWeight.d.ts +84 -0
  100. package/esm/src/api/exchange/reserveRequestWeight.d.ts.map +1 -0
  101. package/esm/src/api/exchange/reserveRequestWeight.js +64 -0
  102. package/esm/src/api/exchange/reserveRequestWeight.js.map +1 -0
  103. package/esm/src/api/exchange/scheduleCancel.d.ts +93 -0
  104. package/esm/src/api/exchange/scheduleCancel.d.ts.map +1 -0
  105. package/esm/src/api/exchange/scheduleCancel.js +51 -0
  106. package/esm/src/api/exchange/scheduleCancel.js.map +1 -0
  107. package/esm/src/api/exchange/sendAsset.d.ts +126 -0
  108. package/esm/src/api/exchange/sendAsset.d.ts.map +1 -0
  109. package/esm/src/api/exchange/sendAsset.js +97 -0
  110. package/esm/src/api/exchange/sendAsset.js.map +1 -0
  111. package/esm/src/api/exchange/setDisplayName.d.ts +88 -0
  112. package/esm/src/api/exchange/setDisplayName.d.ts.map +1 -0
  113. package/esm/src/api/exchange/setDisplayName.js +69 -0
  114. package/esm/src/api/exchange/setDisplayName.js.map +1 -0
  115. package/esm/src/api/exchange/setReferrer.d.ts +84 -0
  116. package/esm/src/api/exchange/setReferrer.d.ts.map +1 -0
  117. package/esm/src/api/exchange/setReferrer.js +64 -0
  118. package/esm/src/api/exchange/setReferrer.js.map +1 -0
  119. package/esm/src/api/exchange/spotDeploy.d.ts +332 -0
  120. package/esm/src/api/exchange/spotDeploy.d.ts.map +1 -0
  121. package/esm/src/api/exchange/spotDeploy.js +167 -0
  122. package/esm/src/api/exchange/spotDeploy.js.map +1 -0
  123. package/esm/src/api/exchange/spotSend.d.ts +112 -0
  124. package/esm/src/api/exchange/spotSend.d.ts.map +1 -0
  125. package/esm/src/api/exchange/spotSend.js +86 -0
  126. package/esm/src/api/exchange/spotSend.js.map +1 -0
  127. package/esm/src/api/exchange/spotUser.d.ts +93 -0
  128. package/esm/src/api/exchange/spotUser.d.ts.map +1 -0
  129. package/esm/src/api/exchange/spotUser.js +67 -0
  130. package/esm/src/api/exchange/spotUser.js.map +1 -0
  131. package/esm/src/api/exchange/subAccountModify.d.ts +88 -0
  132. package/esm/src/api/exchange/subAccountModify.d.ts.map +1 -0
  133. package/esm/src/api/exchange/subAccountModify.js +66 -0
  134. package/esm/src/api/exchange/subAccountModify.js.map +1 -0
  135. package/esm/src/api/exchange/subAccountSpotTransfer.d.ts +101 -0
  136. package/esm/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -0
  137. package/esm/src/api/exchange/subAccountSpotTransfer.js +75 -0
  138. package/esm/src/api/exchange/subAccountSpotTransfer.js.map +1 -0
  139. package/esm/src/api/exchange/subAccountTransfer.d.ts +92 -0
  140. package/esm/src/api/exchange/subAccountTransfer.d.ts.map +1 -0
  141. package/esm/src/api/exchange/subAccountTransfer.js +68 -0
  142. package/esm/src/api/exchange/subAccountTransfer.js.map +1 -0
  143. package/esm/src/api/exchange/tokenDelegate.d.ts +108 -0
  144. package/esm/src/api/exchange/tokenDelegate.d.ts.map +1 -0
  145. package/esm/src/api/exchange/tokenDelegate.js +82 -0
  146. package/esm/src/api/exchange/tokenDelegate.js.map +1 -0
  147. package/esm/src/api/exchange/twapCancel.d.ts +162 -0
  148. package/esm/src/api/exchange/twapCancel.d.ts.map +1 -0
  149. package/esm/src/api/exchange/twapCancel.js +107 -0
  150. package/esm/src/api/exchange/twapCancel.js.map +1 -0
  151. package/esm/src/api/exchange/twapOrder.d.ts +249 -0
  152. package/esm/src/api/exchange/twapOrder.d.ts.map +1 -0
  153. package/esm/src/api/exchange/twapOrder.js +139 -0
  154. package/esm/src/api/exchange/twapOrder.js.map +1 -0
  155. package/esm/src/api/exchange/updateIsolatedMargin.d.ts +95 -0
  156. package/esm/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -0
  157. package/esm/src/api/exchange/updateIsolatedMargin.js +71 -0
  158. package/esm/src/api/exchange/updateIsolatedMargin.js.map +1 -0
  159. package/esm/src/api/exchange/updateLeverage.d.ts +95 -0
  160. package/esm/src/api/exchange/updateLeverage.d.ts.map +1 -0
  161. package/esm/src/api/exchange/updateLeverage.js +71 -0
  162. package/esm/src/api/exchange/updateLeverage.js.map +1 -0
  163. package/esm/src/api/exchange/usdClassTransfer.d.ts +104 -0
  164. package/esm/src/api/exchange/usdClassTransfer.d.ts.map +1 -0
  165. package/esm/src/api/exchange/usdClassTransfer.js +79 -0
  166. package/esm/src/api/exchange/usdClassTransfer.js.map +1 -0
  167. package/esm/src/api/exchange/usdSend.d.ts +104 -0
  168. package/esm/src/api/exchange/usdSend.d.ts.map +1 -0
  169. package/esm/src/api/exchange/usdSend.js +79 -0
  170. package/esm/src/api/exchange/usdSend.js.map +1 -0
  171. package/esm/src/api/exchange/vaultDistribute.d.ts +92 -0
  172. package/esm/src/api/exchange/vaultDistribute.d.ts.map +1 -0
  173. package/esm/src/api/exchange/vaultDistribute.js +71 -0
  174. package/esm/src/api/exchange/vaultDistribute.js.map +1 -0
  175. package/esm/src/api/exchange/vaultModify.d.ts +96 -0
  176. package/esm/src/api/exchange/vaultModify.d.ts.map +1 -0
  177. package/esm/src/api/exchange/vaultModify.js +72 -0
  178. package/esm/src/api/exchange/vaultModify.js.map +1 -0
  179. package/esm/src/api/exchange/vaultTransfer.d.ts +92 -0
  180. package/esm/src/api/exchange/vaultTransfer.d.ts.map +1 -0
  181. package/esm/src/api/exchange/vaultTransfer.js +68 -0
  182. package/esm/src/api/exchange/vaultTransfer.js.map +1 -0
  183. package/esm/src/api/exchange/withdraw3.d.ts +104 -0
  184. package/esm/src/api/exchange/withdraw3.d.ts.map +1 -0
  185. package/esm/src/api/exchange/withdraw3.js +79 -0
  186. package/esm/src/api/exchange/withdraw3.js.map +1 -0
  187. package/esm/src/api/exchange/~client.d.ts +1623 -0
  188. package/esm/src/api/exchange/~client.d.ts.map +1 -0
  189. package/esm/src/api/exchange/~client.js +1360 -0
  190. package/esm/src/api/exchange/~client.js.map +1 -0
  191. package/esm/src/api/exchange/~mod.d.ts +83 -0
  192. package/esm/src/api/exchange/~mod.d.ts.map +1 -0
  193. package/esm/src/api/exchange/~mod.js +82 -0
  194. package/esm/src/api/exchange/~mod.js.map +1 -0
  195. package/esm/src/api/info/_common.d.ts +7 -0
  196. package/esm/src/api/info/_common.d.ts.map +1 -0
  197. package/esm/src/api/info/_common.js +2 -0
  198. package/esm/src/api/info/_common.js.map +1 -0
  199. package/esm/src/api/info/activeAssetData.d.ts +98 -0
  200. package/esm/src/api/info/activeAssetData.d.ts.map +1 -0
  201. package/esm/src/api/info/activeAssetData.js +82 -0
  202. package/esm/src/api/info/activeAssetData.js.map +1 -0
  203. package/esm/src/api/info/allMids.d.ts +49 -0
  204. package/esm/src/api/info/allMids.d.ts.map +1 -0
  205. package/esm/src/api/info/allMids.js +32 -0
  206. package/esm/src/api/info/allMids.js.map +1 -0
  207. package/esm/src/api/info/blockDetails.d.ts +151 -0
  208. package/esm/src/api/info/blockDetails.d.ts.map +1 -0
  209. package/esm/src/api/info/blockDetails.js +88 -0
  210. package/esm/src/api/info/blockDetails.js.map +1 -0
  211. package/esm/src/api/info/candleSnapshot.d.ts +111 -0
  212. package/esm/src/api/info/candleSnapshot.d.ts.map +1 -0
  213. package/esm/src/api/info/candleSnapshot.js +114 -0
  214. package/esm/src/api/info/candleSnapshot.js.map +1 -0
  215. package/esm/src/api/info/clearinghouseState.d.ts +269 -0
  216. package/esm/src/api/info/clearinghouseState.d.ts.map +1 -0
  217. package/esm/src/api/info/clearinghouseState.js +137 -0
  218. package/esm/src/api/info/clearinghouseState.js.map +1 -0
  219. package/esm/src/api/info/delegations.d.ts +64 -0
  220. package/esm/src/api/info/delegations.d.ts.map +1 -0
  221. package/esm/src/api/info/delegations.js +61 -0
  222. package/esm/src/api/info/delegations.js.map +1 -0
  223. package/esm/src/api/info/delegatorHistory.d.ts +142 -0
  224. package/esm/src/api/info/delegatorHistory.d.ts.map +1 -0
  225. package/esm/src/api/info/delegatorHistory.js +89 -0
  226. package/esm/src/api/info/delegatorHistory.js.map +1 -0
  227. package/esm/src/api/info/delegatorRewards.d.ts +64 -0
  228. package/esm/src/api/info/delegatorRewards.d.ts.map +1 -0
  229. package/esm/src/api/info/delegatorRewards.js +61 -0
  230. package/esm/src/api/info/delegatorRewards.js.map +1 -0
  231. package/esm/src/api/info/delegatorSummary.d.ts +63 -0
  232. package/esm/src/api/info/delegatorSummary.d.ts.map +1 -0
  233. package/esm/src/api/info/delegatorSummary.js +61 -0
  234. package/esm/src/api/info/delegatorSummary.js.map +1 -0
  235. package/esm/src/api/info/exchangeStatus.d.ts +46 -0
  236. package/esm/src/api/info/exchangeStatus.d.ts.map +1 -0
  237. package/esm/src/api/info/exchangeStatus.js +50 -0
  238. package/esm/src/api/info/exchangeStatus.js.map +1 -0
  239. package/esm/src/api/info/extraAgents.d.ts +64 -0
  240. package/esm/src/api/info/extraAgents.d.ts.map +1 -0
  241. package/esm/src/api/info/extraAgents.js +61 -0
  242. package/esm/src/api/info/extraAgents.js.map +1 -0
  243. package/esm/src/api/info/frontendOpenOrders.d.ts +135 -0
  244. package/esm/src/api/info/frontendOpenOrders.d.ts.map +1 -0
  245. package/esm/src/api/info/frontendOpenOrders.js +134 -0
  246. package/esm/src/api/info/frontendOpenOrders.js.map +1 -0
  247. package/esm/src/api/info/fundingHistory.d.ts +74 -0
  248. package/esm/src/api/info/fundingHistory.d.ts.map +1 -0
  249. package/esm/src/api/info/fundingHistory.js +67 -0
  250. package/esm/src/api/info/fundingHistory.js.map +1 -0
  251. package/esm/src/api/info/gossipRootIps.d.ts +39 -0
  252. package/esm/src/api/info/gossipRootIps.d.ts.map +1 -0
  253. package/esm/src/api/info/gossipRootIps.js +46 -0
  254. package/esm/src/api/info/gossipRootIps.js.map +1 -0
  255. package/esm/src/api/info/historicalOrders.d.ts +180 -0
  256. package/esm/src/api/info/historicalOrders.d.ts.map +1 -0
  257. package/esm/src/api/info/historicalOrders.js +185 -0
  258. package/esm/src/api/info/historicalOrders.js.map +1 -0
  259. package/esm/src/api/info/isVip.d.ts +49 -0
  260. package/esm/src/api/info/isVip.d.ts.map +1 -0
  261. package/esm/src/api/info/isVip.js +52 -0
  262. package/esm/src/api/info/isVip.js.map +1 -0
  263. package/esm/src/api/info/l2Book.d.ts +104 -0
  264. package/esm/src/api/info/l2Book.d.ts.map +1 -0
  265. package/esm/src/api/info/l2Book.js +74 -0
  266. package/esm/src/api/info/l2Book.js.map +1 -0
  267. package/esm/src/api/info/leadingVaults.d.ts +60 -0
  268. package/esm/src/api/info/leadingVaults.d.ts.map +1 -0
  269. package/esm/src/api/info/leadingVaults.js +59 -0
  270. package/esm/src/api/info/leadingVaults.js.map +1 -0
  271. package/esm/src/api/info/legalCheck.d.ts +60 -0
  272. package/esm/src/api/info/legalCheck.d.ts.map +1 -0
  273. package/esm/src/api/info/legalCheck.js +59 -0
  274. package/esm/src/api/info/legalCheck.js.map +1 -0
  275. package/esm/src/api/info/liquidatable.d.ts +38 -0
  276. package/esm/src/api/info/liquidatable.d.ts.map +1 -0
  277. package/esm/src/api/info/liquidatable.js +45 -0
  278. package/esm/src/api/info/liquidatable.js.map +1 -0
  279. package/esm/src/api/info/marginTable.d.ts +71 -0
  280. package/esm/src/api/info/marginTable.d.ts.map +1 -0
  281. package/esm/src/api/info/marginTable.js +64 -0
  282. package/esm/src/api/info/marginTable.js.map +1 -0
  283. package/esm/src/api/info/maxBuilderFee.d.ts +52 -0
  284. package/esm/src/api/info/maxBuilderFee.d.ts.map +1 -0
  285. package/esm/src/api/info/maxBuilderFee.js +54 -0
  286. package/esm/src/api/info/maxBuilderFee.js.map +1 -0
  287. package/esm/src/api/info/maxMarketOrderNtls.d.ts +41 -0
  288. package/esm/src/api/info/maxMarketOrderNtls.d.ts.map +1 -0
  289. package/esm/src/api/info/maxMarketOrderNtls.js +47 -0
  290. package/esm/src/api/info/maxMarketOrderNtls.js.map +1 -0
  291. package/esm/src/api/info/meta.d.ts +123 -0
  292. package/esm/src/api/info/meta.d.ts.map +1 -0
  293. package/esm/src/api/info/meta.js +69 -0
  294. package/esm/src/api/info/meta.js.map +1 -0
  295. package/esm/src/api/info/metaAndAssetCtxs.d.ts +192 -0
  296. package/esm/src/api/info/metaAndAssetCtxs.d.ts.map +1 -0
  297. package/esm/src/api/info/metaAndAssetCtxs.js +97 -0
  298. package/esm/src/api/info/metaAndAssetCtxs.js.map +1 -0
  299. package/esm/src/api/info/openOrders.d.ts +91 -0
  300. package/esm/src/api/info/openOrders.d.ts.map +1 -0
  301. package/esm/src/api/info/openOrders.js +75 -0
  302. package/esm/src/api/info/openOrders.js.map +1 -0
  303. package/esm/src/api/info/orderStatus.d.ts +198 -0
  304. package/esm/src/api/info/orderStatus.d.ts.map +1 -0
  305. package/esm/src/api/info/orderStatus.js +200 -0
  306. package/esm/src/api/info/orderStatus.js.map +1 -0
  307. package/esm/src/api/info/perpDeployAuctionStatus.d.ts +56 -0
  308. package/esm/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -0
  309. package/esm/src/api/info/perpDeployAuctionStatus.js +57 -0
  310. package/esm/src/api/info/perpDeployAuctionStatus.js.map +1 -0
  311. package/esm/src/api/info/perpDexLimits.d.ts +63 -0
  312. package/esm/src/api/info/perpDexLimits.d.ts.map +1 -0
  313. package/esm/src/api/info/perpDexLimits.js +61 -0
  314. package/esm/src/api/info/perpDexLimits.js.map +1 -0
  315. package/esm/src/api/info/perpDexs.d.ts +61 -0
  316. package/esm/src/api/info/perpDexs.d.ts.map +1 -0
  317. package/esm/src/api/info/perpDexs.js +58 -0
  318. package/esm/src/api/info/perpDexs.js.map +1 -0
  319. package/esm/src/api/info/perpsAtOpenInterestCap.d.ts +47 -0
  320. package/esm/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -0
  321. package/esm/src/api/info/perpsAtOpenInterestCap.js +32 -0
  322. package/esm/src/api/info/perpsAtOpenInterestCap.js.map +1 -0
  323. package/esm/src/api/info/portfolio.d.ts +169 -0
  324. package/esm/src/api/info/portfolio.d.ts.map +1 -0
  325. package/esm/src/api/info/portfolio.js +72 -0
  326. package/esm/src/api/info/portfolio.js.map +1 -0
  327. package/esm/src/api/info/preTransferCheck.d.ts +66 -0
  328. package/esm/src/api/info/preTransferCheck.d.ts.map +1 -0
  329. package/esm/src/api/info/preTransferCheck.js +63 -0
  330. package/esm/src/api/info/preTransferCheck.js.map +1 -0
  331. package/esm/src/api/info/predictedFundings.d.ts +66 -0
  332. package/esm/src/api/info/predictedFundings.d.ts.map +1 -0
  333. package/esm/src/api/info/predictedFundings.js +67 -0
  334. package/esm/src/api/info/predictedFundings.js.map +1 -0
  335. package/esm/src/api/info/recentTrades.d.ts +84 -0
  336. package/esm/src/api/info/recentTrades.d.ts.map +1 -0
  337. package/esm/src/api/info/recentTrades.js +71 -0
  338. package/esm/src/api/info/recentTrades.js.map +1 -0
  339. package/esm/src/api/info/referral.d.ts +274 -0
  340. package/esm/src/api/info/referral.d.ts.map +1 -0
  341. package/esm/src/api/info/referral.js +156 -0
  342. package/esm/src/api/info/referral.js.map +1 -0
  343. package/esm/src/api/info/spotClearinghouseState.d.ts +108 -0
  344. package/esm/src/api/info/spotClearinghouseState.d.ts.map +1 -0
  345. package/esm/src/api/info/spotClearinghouseState.js +81 -0
  346. package/esm/src/api/info/spotClearinghouseState.js.map +1 -0
  347. package/esm/src/api/info/spotDeployState.d.ts +162 -0
  348. package/esm/src/api/info/spotDeployState.d.ts.map +1 -0
  349. package/esm/src/api/info/spotDeployState.js +100 -0
  350. package/esm/src/api/info/spotDeployState.js.map +1 -0
  351. package/esm/src/api/info/spotMeta.d.ts +137 -0
  352. package/esm/src/api/info/spotMeta.d.ts.map +1 -0
  353. package/esm/src/api/info/spotMeta.js +88 -0
  354. package/esm/src/api/info/spotMeta.js.map +1 -0
  355. package/esm/src/api/info/spotMetaAndAssetCtxs.d.ts +202 -0
  356. package/esm/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -0
  357. package/esm/src/api/info/spotMetaAndAssetCtxs.js +112 -0
  358. package/esm/src/api/info/spotMetaAndAssetCtxs.js.map +1 -0
  359. package/esm/src/api/info/spotPairDeployAuctionStatus.d.ts +56 -0
  360. package/esm/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -0
  361. package/esm/src/api/info/spotPairDeployAuctionStatus.js +57 -0
  362. package/esm/src/api/info/spotPairDeployAuctionStatus.js.map +1 -0
  363. package/esm/src/api/info/subAccounts.d.ts +457 -0
  364. package/esm/src/api/info/subAccounts.d.ts.map +1 -0
  365. package/esm/src/api/info/subAccounts.js +175 -0
  366. package/esm/src/api/info/subAccounts.js.map +1 -0
  367. package/esm/src/api/info/tokenDetails.d.ts +114 -0
  368. package/esm/src/api/info/tokenDetails.d.ts.map +1 -0
  369. package/esm/src/api/info/tokenDetails.js +92 -0
  370. package/esm/src/api/info/tokenDetails.js.map +1 -0
  371. package/esm/src/api/info/twapHistory.d.ts +147 -0
  372. package/esm/src/api/info/twapHistory.d.ts.map +1 -0
  373. package/esm/src/api/info/twapHistory.js +107 -0
  374. package/esm/src/api/info/twapHistory.js.map +1 -0
  375. package/esm/src/api/info/txDetails.d.ts +102 -0
  376. package/esm/src/api/info/txDetails.d.ts.map +1 -0
  377. package/esm/src/api/info/txDetails.js +73 -0
  378. package/esm/src/api/info/txDetails.js.map +1 -0
  379. package/esm/src/api/info/userDetails.d.ts +113 -0
  380. package/esm/src/api/info/userDetails.d.ts.map +1 -0
  381. package/esm/src/api/info/userDetails.js +75 -0
  382. package/esm/src/api/info/userDetails.js.map +1 -0
  383. package/esm/src/api/info/userFees.d.ts +244 -0
  384. package/esm/src/api/info/userFees.d.ts.map +1 -0
  385. package/esm/src/api/info/userFees.js +139 -0
  386. package/esm/src/api/info/userFees.js.map +1 -0
  387. package/esm/src/api/info/userFills.d.ts +142 -0
  388. package/esm/src/api/info/userFills.d.ts.map +1 -0
  389. package/esm/src/api/info/userFills.js +98 -0
  390. package/esm/src/api/info/userFills.js.map +1 -0
  391. package/esm/src/api/info/userFillsByTime.d.ts +148 -0
  392. package/esm/src/api/info/userFillsByTime.d.ts.map +1 -0
  393. package/esm/src/api/info/userFillsByTime.js +102 -0
  394. package/esm/src/api/info/userFillsByTime.js.map +1 -0
  395. package/esm/src/api/info/userFunding.d.ts +104 -0
  396. package/esm/src/api/info/userFunding.d.ts.map +1 -0
  397. package/esm/src/api/info/userFunding.js +78 -0
  398. package/esm/src/api/info/userFunding.js.map +1 -0
  399. package/esm/src/api/info/userNonFundingLedgerUpdates.d.ts +711 -0
  400. package/esm/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -0
  401. package/esm/src/api/info/userNonFundingLedgerUpdates.js +252 -0
  402. package/esm/src/api/info/userNonFundingLedgerUpdates.js.map +1 -0
  403. package/esm/src/api/info/userRateLimit.d.ts +60 -0
  404. package/esm/src/api/info/userRateLimit.d.ts.map +1 -0
  405. package/esm/src/api/info/userRateLimit.js +59 -0
  406. package/esm/src/api/info/userRateLimit.js.map +1 -0
  407. package/esm/src/api/info/userRole.d.ts +84 -0
  408. package/esm/src/api/info/userRole.d.ts.map +1 -0
  409. package/esm/src/api/info/userRole.js +75 -0
  410. package/esm/src/api/info/userRole.js.map +1 -0
  411. package/esm/src/api/info/userToMultiSigSigners.d.ts +57 -0
  412. package/esm/src/api/info/userToMultiSigSigners.d.ts.map +1 -0
  413. package/esm/src/api/info/userToMultiSigSigners.js +57 -0
  414. package/esm/src/api/info/userToMultiSigSigners.js.map +1 -0
  415. package/esm/src/api/info/userTwapSliceFills.d.ts +139 -0
  416. package/esm/src/api/info/userTwapSliceFills.d.ts.map +1 -0
  417. package/esm/src/api/info/userTwapSliceFills.js +90 -0
  418. package/esm/src/api/info/userTwapSliceFills.js.map +1 -0
  419. package/esm/src/api/info/userTwapSliceFillsByTime.d.ts +148 -0
  420. package/esm/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -0
  421. package/esm/src/api/info/userTwapSliceFillsByTime.js +96 -0
  422. package/esm/src/api/info/userTwapSliceFillsByTime.js.map +1 -0
  423. package/esm/src/api/info/userVaultEquities.d.ts +64 -0
  424. package/esm/src/api/info/userVaultEquities.d.ts.map +1 -0
  425. package/esm/src/api/info/userVaultEquities.js +61 -0
  426. package/esm/src/api/info/userVaultEquities.js.map +1 -0
  427. package/esm/src/api/info/validatorL1Votes.d.ts +60 -0
  428. package/esm/src/api/info/validatorL1Votes.d.ts.map +1 -0
  429. package/esm/src/api/info/validatorL1Votes.js +57 -0
  430. package/esm/src/api/info/validatorL1Votes.js.map +1 -0
  431. package/esm/src/api/info/validatorSummaries.d.ts +155 -0
  432. package/esm/src/api/info/validatorSummaries.d.ts.map +1 -0
  433. package/esm/src/api/info/validatorSummaries.js +86 -0
  434. package/esm/src/api/info/validatorSummaries.js.map +1 -0
  435. package/esm/src/api/info/vaultDetails.d.ts +359 -0
  436. package/esm/src/api/info/vaultDetails.d.ts.map +1 -0
  437. package/esm/src/api/info/vaultDetails.js +134 -0
  438. package/esm/src/api/info/vaultDetails.js.map +1 -0
  439. package/esm/src/api/info/vaultSummaries.d.ts +104 -0
  440. package/esm/src/api/info/vaultSummaries.d.ts.map +1 -0
  441. package/esm/src/api/info/vaultSummaries.js +77 -0
  442. package/esm/src/api/info/vaultSummaries.js.map +1 -0
  443. package/esm/src/api/info/webData2.d.ts +789 -0
  444. package/esm/src/api/info/webData2.d.ts.map +1 -0
  445. package/esm/src/api/info/webData2.js +389 -0
  446. package/esm/src/api/info/webData2.js.map +1 -0
  447. package/esm/src/api/info/~client.d.ts +2507 -0
  448. package/esm/src/api/info/~client.d.ts.map +1 -0
  449. package/esm/src/api/info/~client.js +1462 -0
  450. package/esm/src/api/info/~client.js.map +1 -0
  451. package/esm/src/api/info/~mod.d.ts +87 -0
  452. package/esm/src/api/info/~mod.d.ts.map +1 -0
  453. package/esm/src/api/info/~mod.js +86 -0
  454. package/esm/src/api/info/~mod.js.map +1 -0
  455. package/esm/src/api/subscription/_common.d.ts +7 -0
  456. package/esm/src/api/subscription/_common.d.ts.map +1 -0
  457. package/esm/src/api/subscription/_common.js +2 -0
  458. package/esm/src/api/subscription/_common.js.map +1 -0
  459. package/esm/src/api/subscription/activeAssetCtx.d.ts +97 -0
  460. package/esm/src/api/subscription/activeAssetCtx.d.ts.map +1 -0
  461. package/esm/src/api/subscription/activeAssetCtx.js +75 -0
  462. package/esm/src/api/subscription/activeAssetCtx.js.map +1 -0
  463. package/esm/src/api/subscription/activeAssetData.d.ts +95 -0
  464. package/esm/src/api/subscription/activeAssetData.d.ts.map +1 -0
  465. package/esm/src/api/subscription/activeAssetData.js +79 -0
  466. package/esm/src/api/subscription/activeAssetData.js.map +1 -0
  467. package/esm/src/api/subscription/activeSpotAssetCtx.d.ts +89 -0
  468. package/esm/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -0
  469. package/esm/src/api/subscription/activeSpotAssetCtx.js +71 -0
  470. package/esm/src/api/subscription/activeSpotAssetCtx.js.map +1 -0
  471. package/esm/src/api/subscription/allMids.d.ts +58 -0
  472. package/esm/src/api/subscription/allMids.d.ts.map +1 -0
  473. package/esm/src/api/subscription/allMids.js +36 -0
  474. package/esm/src/api/subscription/allMids.js.map +1 -0
  475. package/esm/src/api/subscription/assetCtxs.d.ts +108 -0
  476. package/esm/src/api/subscription/assetCtxs.d.ts.map +1 -0
  477. package/esm/src/api/subscription/assetCtxs.js +59 -0
  478. package/esm/src/api/subscription/assetCtxs.js.map +1 -0
  479. package/esm/src/api/subscription/bbo.d.ts +95 -0
  480. package/esm/src/api/subscription/bbo.d.ts.map +1 -0
  481. package/esm/src/api/subscription/bbo.js +67 -0
  482. package/esm/src/api/subscription/bbo.js.map +1 -0
  483. package/esm/src/api/subscription/candle.d.ts +81 -0
  484. package/esm/src/api/subscription/candle.d.ts.map +1 -0
  485. package/esm/src/api/subscription/candle.js +102 -0
  486. package/esm/src/api/subscription/candle.js.map +1 -0
  487. package/esm/src/api/subscription/clearinghouseState.d.ts +320 -0
  488. package/esm/src/api/subscription/clearinghouseState.d.ts.map +1 -0
  489. package/esm/src/api/subscription/clearinghouseState.js +145 -0
  490. package/esm/src/api/subscription/clearinghouseState.js.map +1 -0
  491. package/esm/src/api/subscription/explorerBlock.d.ts +64 -0
  492. package/esm/src/api/subscription/explorerBlock.d.ts.map +1 -0
  493. package/esm/src/api/subscription/explorerBlock.js +57 -0
  494. package/esm/src/api/subscription/explorerBlock.js.map +1 -0
  495. package/esm/src/api/subscription/explorerTxs.d.ts +83 -0
  496. package/esm/src/api/subscription/explorerTxs.d.ts.map +1 -0
  497. package/esm/src/api/subscription/explorerTxs.js +62 -0
  498. package/esm/src/api/subscription/explorerTxs.js.map +1 -0
  499. package/esm/src/api/subscription/l2Book.d.ts +101 -0
  500. package/esm/src/api/subscription/l2Book.d.ts.map +1 -0
  501. package/esm/src/api/subscription/l2Book.js +76 -0
  502. package/esm/src/api/subscription/l2Book.js.map +1 -0
  503. package/esm/src/api/subscription/notification.d.ts +51 -0
  504. package/esm/src/api/subscription/notification.d.ts.map +1 -0
  505. package/esm/src/api/subscription/notification.js +50 -0
  506. package/esm/src/api/subscription/notification.js.map +1 -0
  507. package/esm/src/api/subscription/openOrders.d.ts +160 -0
  508. package/esm/src/api/subscription/openOrders.d.ts.map +1 -0
  509. package/esm/src/api/subscription/openOrders.js +142 -0
  510. package/esm/src/api/subscription/openOrders.js.map +1 -0
  511. package/esm/src/api/subscription/orderUpdates.d.ts +126 -0
  512. package/esm/src/api/subscription/orderUpdates.d.ts.map +1 -0
  513. package/esm/src/api/subscription/orderUpdates.js +121 -0
  514. package/esm/src/api/subscription/orderUpdates.js.map +1 -0
  515. package/esm/src/api/subscription/trades.d.ts +81 -0
  516. package/esm/src/api/subscription/trades.d.ts.map +1 -0
  517. package/esm/src/api/subscription/trades.js +68 -0
  518. package/esm/src/api/subscription/trades.js.map +1 -0
  519. package/esm/src/api/subscription/userEvents.d.ts +948 -0
  520. package/esm/src/api/subscription/userEvents.d.ts.map +1 -0
  521. package/esm/src/api/subscription/userEvents.js +258 -0
  522. package/esm/src/api/subscription/userEvents.js.map +1 -0
  523. package/esm/src/api/subscription/userFills.d.ts +172 -0
  524. package/esm/src/api/subscription/userFills.d.ts.map +1 -0
  525. package/esm/src/api/subscription/userFills.js +106 -0
  526. package/esm/src/api/subscription/userFills.js.map +1 -0
  527. package/esm/src/api/subscription/userFundings.d.ts +91 -0
  528. package/esm/src/api/subscription/userFundings.d.ts.map +1 -0
  529. package/esm/src/api/subscription/userFundings.js +71 -0
  530. package/esm/src/api/subscription/userFundings.js.map +1 -0
  531. package/esm/src/api/subscription/userNonFundingLedgerUpdates.d.ts +786 -0
  532. package/esm/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -0
  533. package/esm/src/api/subscription/userNonFundingLedgerUpdates.js +252 -0
  534. package/esm/src/api/subscription/userNonFundingLedgerUpdates.js.map +1 -0
  535. package/esm/src/api/subscription/userTwapHistory.d.ts +175 -0
  536. package/esm/src/api/subscription/userTwapHistory.d.ts.map +1 -0
  537. package/esm/src/api/subscription/userTwapHistory.js +111 -0
  538. package/esm/src/api/subscription/userTwapHistory.js.map +1 -0
  539. package/esm/src/api/subscription/userTwapSliceFills.d.ts +147 -0
  540. package/esm/src/api/subscription/userTwapSliceFills.d.ts.map +1 -0
  541. package/esm/src/api/subscription/userTwapSliceFills.js +92 -0
  542. package/esm/src/api/subscription/userTwapSliceFills.js.map +1 -0
  543. package/esm/src/api/subscription/webData2.d.ts +786 -0
  544. package/esm/src/api/subscription/webData2.d.ts.map +1 -0
  545. package/esm/src/api/subscription/webData2.js +386 -0
  546. package/esm/src/api/subscription/webData2.js.map +1 -0
  547. package/esm/src/api/subscription/~client.d.ts +509 -0
  548. package/esm/src/api/subscription/~client.d.ts.map +1 -0
  549. package/esm/src/api/subscription/~client.js +534 -0
  550. package/esm/src/api/subscription/~client.js.map +1 -0
  551. package/esm/src/api/subscription/~mod.d.ts +49 -0
  552. package/esm/src/api/subscription/~mod.d.ts.map +1 -0
  553. package/esm/src/api/subscription/~mod.js +48 -0
  554. package/esm/src/api/subscription/~mod.js.map +1 -0
  555. package/esm/src/mod.d.ts +8 -20
  556. package/esm/src/mod.d.ts.map +1 -1
  557. package/esm/src/mod.js +8 -13
  558. package/esm/src/mod.js.map +1 -1
  559. package/esm/src/signing/_signTypedData.d.ts +118 -0
  560. package/esm/src/signing/_signTypedData.d.ts.map +1 -0
  561. package/esm/src/signing/_signTypedData.js +102 -0
  562. package/esm/src/signing/_signTypedData.js.map +1 -0
  563. package/esm/src/signing/mod.d.ts +34 -112
  564. package/esm/src/signing/mod.d.ts.map +1 -1
  565. package/esm/src/signing/mod.js +46 -145
  566. package/esm/src/signing/mod.js.map +1 -1
  567. package/esm/src/transport/_polyfills.d.ts.map +1 -0
  568. package/esm/src/transport/_polyfills.js +46 -0
  569. package/esm/src/transport/_polyfills.js.map +1 -0
  570. package/esm/src/transport/base.d.ts +48 -0
  571. package/esm/src/transport/base.d.ts.map +1 -0
  572. package/esm/src/transport/base.js +9 -0
  573. package/esm/src/transport/base.js.map +1 -0
  574. package/esm/src/transport/http/mod.d.ts +94 -0
  575. package/esm/src/transport/http/mod.d.ts.map +1 -0
  576. package/esm/src/transport/http/mod.js +152 -0
  577. package/esm/src/transport/http/mod.js.map +1 -0
  578. package/esm/src/transport/websocket/_hyperliquid_event_target.d.ts +80 -0
  579. package/esm/src/transport/websocket/_hyperliquid_event_target.d.ts.map +1 -0
  580. package/esm/src/transport/websocket/_hyperliquid_event_target.js +55 -0
  581. package/esm/src/transport/websocket/_hyperliquid_event_target.js.map +1 -0
  582. package/esm/src/transport/websocket/_reconnecting_websocket.d.ts.map +1 -0
  583. package/esm/src/transport/websocket/_reconnecting_websocket.js.map +1 -0
  584. package/esm/src/transport/websocket/_websocket_async_request.d.ts.map +1 -0
  585. package/esm/src/transport/websocket/_websocket_async_request.js +186 -0
  586. package/esm/src/transport/websocket/_websocket_async_request.js.map +1 -0
  587. package/esm/src/transport/websocket/mod.d.ts +123 -0
  588. package/esm/src/transport/websocket/mod.d.ts.map +1 -0
  589. package/esm/src/transport/websocket/mod.js +250 -0
  590. package/esm/src/transport/websocket/mod.js.map +1 -0
  591. package/esm/src/utils/minimalEIP712Signer.d.ts +27 -0
  592. package/esm/src/utils/minimalEIP712Signer.d.ts.map +1 -0
  593. package/esm/src/utils/minimalEIP712Signer.js +172 -0
  594. package/esm/src/utils/minimalEIP712Signer.js.map +1 -0
  595. package/package.json +14 -6
  596. package/script/bin/_utils.d.ts.map +1 -1
  597. package/script/bin/_utils.js +2 -6
  598. package/script/bin/_utils.js.map +1 -1
  599. package/script/bin/cli.js +20 -64
  600. package/script/bin/cli.js.map +1 -1
  601. package/script/src/_base.d.ts +5 -0
  602. package/script/src/_base.d.ts.map +1 -0
  603. package/script/src/_base.js +12 -0
  604. package/script/src/_base.js.map +1 -0
  605. package/script/src/api/_common.d.ts +50 -0
  606. package/script/src/api/_common.d.ts.map +1 -0
  607. package/script/src/api/_common.js +100 -0
  608. package/script/src/api/_common.js.map +1 -0
  609. package/script/src/api/exchange/_common.d.ts +163 -0
  610. package/script/src/api/exchange/_common.d.ts.map +1 -0
  611. package/script/src/api/exchange/_common.js +278 -0
  612. package/script/src/api/exchange/_common.js.map +1 -0
  613. package/script/src/api/exchange/approveAgent.d.ts +104 -0
  614. package/script/src/api/exchange/approveAgent.d.ts.map +1 -0
  615. package/script/src/api/exchange/approveAgent.js +116 -0
  616. package/script/src/api/exchange/approveAgent.js.map +1 -0
  617. package/script/src/api/exchange/approveBuilderFee.d.ts +104 -0
  618. package/script/src/api/exchange/approveBuilderFee.d.ts.map +1 -0
  619. package/script/src/api/exchange/approveBuilderFee.js +116 -0
  620. package/script/src/api/exchange/approveBuilderFee.js.map +1 -0
  621. package/script/src/api/exchange/batchModify.d.ts +241 -0
  622. package/script/src/api/exchange/batchModify.d.ts.map +1 -0
  623. package/script/src/api/exchange/batchModify.js +178 -0
  624. package/script/src/api/exchange/batchModify.js.map +1 -0
  625. package/script/src/api/exchange/cDeposit.d.ts +100 -0
  626. package/script/src/api/exchange/cDeposit.d.ts.map +1 -0
  627. package/script/src/api/exchange/cDeposit.js +113 -0
  628. package/script/src/api/exchange/cDeposit.js.map +1 -0
  629. package/script/src/api/exchange/cSignerAction.d.ts +102 -0
  630. package/script/src/api/exchange/cSignerAction.d.ts.map +1 -0
  631. package/script/src/api/exchange/cSignerAction.js +116 -0
  632. package/script/src/api/exchange/cSignerAction.js.map +1 -0
  633. package/script/src/api/exchange/cValidatorAction.d.ts +265 -0
  634. package/script/src/api/exchange/cValidatorAction.d.ts.map +1 -0
  635. package/script/src/api/exchange/cValidatorAction.js +195 -0
  636. package/script/src/api/exchange/cValidatorAction.js.map +1 -0
  637. package/script/src/api/exchange/cWithdraw.d.ts +100 -0
  638. package/script/src/api/exchange/cWithdraw.d.ts.map +1 -0
  639. package/script/src/api/exchange/cWithdraw.js +113 -0
  640. package/script/src/api/exchange/cWithdraw.js.map +1 -0
  641. package/script/src/api/exchange/cancel.d.ts +176 -0
  642. package/script/src/api/exchange/cancel.d.ts.map +1 -0
  643. package/script/src/api/exchange/cancel.js +151 -0
  644. package/script/src/api/exchange/cancel.js.map +1 -0
  645. package/script/src/api/exchange/cancelByCloid.d.ts +105 -0
  646. package/script/src/api/exchange/cancelByCloid.d.ts.map +1 -0
  647. package/script/src/api/exchange/cancelByCloid.js +113 -0
  648. package/script/src/api/exchange/cancelByCloid.js.map +1 -0
  649. package/script/src/api/exchange/claimRewards.d.ts +72 -0
  650. package/script/src/api/exchange/claimRewards.d.ts.map +1 -0
  651. package/script/src/api/exchange/claimRewards.js +93 -0
  652. package/script/src/api/exchange/claimRewards.js.map +1 -0
  653. package/script/src/api/exchange/convertToMultiSigUser.d.ts +149 -0
  654. package/script/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -0
  655. package/script/src/api/exchange/convertToMultiSigUser.js +146 -0
  656. package/script/src/api/exchange/convertToMultiSigUser.js.map +1 -0
  657. package/script/src/api/exchange/createSubAccount.d.ts +104 -0
  658. package/script/src/api/exchange/createSubAccount.d.ts.map +1 -0
  659. package/script/src/api/exchange/createSubAccount.js +113 -0
  660. package/script/src/api/exchange/createSubAccount.js.map +1 -0
  661. package/script/src/api/exchange/createVault.d.ts +120 -0
  662. package/script/src/api/exchange/createVault.d.ts.map +1 -0
  663. package/script/src/api/exchange/createVault.js +125 -0
  664. package/script/src/api/exchange/createVault.js.map +1 -0
  665. package/script/src/api/exchange/evmUserModify.d.ts +84 -0
  666. package/script/src/api/exchange/evmUserModify.d.ts.map +1 -0
  667. package/script/src/api/exchange/evmUserModify.js +101 -0
  668. package/script/src/api/exchange/evmUserModify.js.map +1 -0
  669. package/script/src/api/exchange/modify.d.ts +210 -0
  670. package/script/src/api/exchange/modify.d.ts.map +1 -0
  671. package/script/src/api/exchange/modify.js +172 -0
  672. package/script/src/api/exchange/modify.js.map +1 -0
  673. package/script/src/api/exchange/multiSig.d.ts +2711 -0
  674. package/script/src/api/exchange/multiSig.d.ts.map +1 -0
  675. package/script/src/api/exchange/multiSig.js +258 -0
  676. package/script/src/api/exchange/multiSig.js.map +1 -0
  677. package/script/src/api/exchange/noop.d.ts +74 -0
  678. package/script/src/api/exchange/noop.d.ts.map +1 -0
  679. package/script/src/api/exchange/noop.js +95 -0
  680. package/script/src/api/exchange/noop.js.map +1 -0
  681. package/script/src/api/exchange/order.d.ts +476 -0
  682. package/script/src/api/exchange/order.d.ts.map +1 -0
  683. package/script/src/api/exchange/order.js +270 -0
  684. package/script/src/api/exchange/order.js.map +1 -0
  685. package/script/src/api/exchange/perpDeploy.d.ts +240 -0
  686. package/script/src/api/exchange/perpDeploy.d.ts.map +1 -0
  687. package/script/src/api/exchange/perpDeploy.js +158 -0
  688. package/script/src/api/exchange/perpDeploy.js.map +1 -0
  689. package/script/src/api/exchange/registerReferrer.d.ts +84 -0
  690. package/script/src/api/exchange/registerReferrer.d.ts.map +1 -0
  691. package/script/src/api/exchange/registerReferrer.js +101 -0
  692. package/script/src/api/exchange/registerReferrer.js.map +1 -0
  693. package/script/src/api/exchange/reserveRequestWeight.d.ts +84 -0
  694. package/script/src/api/exchange/reserveRequestWeight.d.ts.map +1 -0
  695. package/script/src/api/exchange/reserveRequestWeight.js +101 -0
  696. package/script/src/api/exchange/reserveRequestWeight.js.map +1 -0
  697. package/script/src/api/exchange/scheduleCancel.d.ts +93 -0
  698. package/script/src/api/exchange/scheduleCancel.d.ts.map +1 -0
  699. package/script/src/api/exchange/scheduleCancel.js +88 -0
  700. package/script/src/api/exchange/scheduleCancel.js.map +1 -0
  701. package/script/src/api/exchange/sendAsset.d.ts +126 -0
  702. package/script/src/api/exchange/sendAsset.d.ts.map +1 -0
  703. package/script/src/api/exchange/sendAsset.js +134 -0
  704. package/script/src/api/exchange/sendAsset.js.map +1 -0
  705. package/script/src/api/exchange/setDisplayName.d.ts +88 -0
  706. package/script/src/api/exchange/setDisplayName.d.ts.map +1 -0
  707. package/script/src/api/exchange/setDisplayName.js +106 -0
  708. package/script/src/api/exchange/setDisplayName.js.map +1 -0
  709. package/script/src/api/exchange/setReferrer.d.ts +84 -0
  710. package/script/src/api/exchange/setReferrer.d.ts.map +1 -0
  711. package/script/src/api/exchange/setReferrer.js +101 -0
  712. package/script/src/api/exchange/setReferrer.js.map +1 -0
  713. package/script/src/api/exchange/spotDeploy.d.ts +332 -0
  714. package/script/src/api/exchange/spotDeploy.d.ts.map +1 -0
  715. package/script/src/api/exchange/spotDeploy.js +204 -0
  716. package/script/src/api/exchange/spotDeploy.js.map +1 -0
  717. package/script/src/api/exchange/spotSend.d.ts +112 -0
  718. package/script/src/api/exchange/spotSend.d.ts.map +1 -0
  719. package/script/src/api/exchange/spotSend.js +123 -0
  720. package/script/src/api/exchange/spotSend.js.map +1 -0
  721. package/script/src/api/exchange/spotUser.d.ts +93 -0
  722. package/script/src/api/exchange/spotUser.d.ts.map +1 -0
  723. package/script/src/api/exchange/spotUser.js +104 -0
  724. package/script/src/api/exchange/spotUser.js.map +1 -0
  725. package/script/src/api/exchange/subAccountModify.d.ts +88 -0
  726. package/script/src/api/exchange/subAccountModify.d.ts.map +1 -0
  727. package/script/src/api/exchange/subAccountModify.js +103 -0
  728. package/script/src/api/exchange/subAccountModify.js.map +1 -0
  729. package/script/src/api/exchange/subAccountSpotTransfer.d.ts +101 -0
  730. package/script/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -0
  731. package/script/src/api/exchange/subAccountSpotTransfer.js +112 -0
  732. package/script/src/api/exchange/subAccountSpotTransfer.js.map +1 -0
  733. package/script/src/api/exchange/subAccountTransfer.d.ts +92 -0
  734. package/script/src/api/exchange/subAccountTransfer.d.ts.map +1 -0
  735. package/script/src/api/exchange/subAccountTransfer.js +105 -0
  736. package/script/src/api/exchange/subAccountTransfer.js.map +1 -0
  737. package/script/src/api/exchange/tokenDelegate.d.ts +108 -0
  738. package/script/src/api/exchange/tokenDelegate.d.ts.map +1 -0
  739. package/script/src/api/exchange/tokenDelegate.js +119 -0
  740. package/script/src/api/exchange/tokenDelegate.js.map +1 -0
  741. package/script/src/api/exchange/twapCancel.d.ts +162 -0
  742. package/script/src/api/exchange/twapCancel.d.ts.map +1 -0
  743. package/script/src/api/exchange/twapCancel.js +144 -0
  744. package/script/src/api/exchange/twapCancel.js.map +1 -0
  745. package/script/src/api/exchange/twapOrder.d.ts +249 -0
  746. package/script/src/api/exchange/twapOrder.d.ts.map +1 -0
  747. package/script/src/api/exchange/twapOrder.js +176 -0
  748. package/script/src/api/exchange/twapOrder.js.map +1 -0
  749. package/script/src/api/exchange/updateIsolatedMargin.d.ts +95 -0
  750. package/script/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -0
  751. package/script/src/api/exchange/updateIsolatedMargin.js +108 -0
  752. package/script/src/api/exchange/updateIsolatedMargin.js.map +1 -0
  753. package/script/src/api/exchange/updateLeverage.d.ts +95 -0
  754. package/script/src/api/exchange/updateLeverage.d.ts.map +1 -0
  755. package/script/src/api/exchange/updateLeverage.js +108 -0
  756. package/script/src/api/exchange/updateLeverage.js.map +1 -0
  757. package/script/src/api/exchange/usdClassTransfer.d.ts +104 -0
  758. package/script/src/api/exchange/usdClassTransfer.d.ts.map +1 -0
  759. package/script/src/api/exchange/usdClassTransfer.js +116 -0
  760. package/script/src/api/exchange/usdClassTransfer.js.map +1 -0
  761. package/script/src/api/exchange/usdSend.d.ts +104 -0
  762. package/script/src/api/exchange/usdSend.d.ts.map +1 -0
  763. package/script/src/api/exchange/usdSend.js +116 -0
  764. package/script/src/api/exchange/usdSend.js.map +1 -0
  765. package/script/src/api/exchange/vaultDistribute.d.ts +92 -0
  766. package/script/src/api/exchange/vaultDistribute.d.ts.map +1 -0
  767. package/script/src/api/exchange/vaultDistribute.js +108 -0
  768. package/script/src/api/exchange/vaultDistribute.js.map +1 -0
  769. package/script/src/api/exchange/vaultModify.d.ts +96 -0
  770. package/script/src/api/exchange/vaultModify.d.ts.map +1 -0
  771. package/script/src/api/exchange/vaultModify.js +109 -0
  772. package/script/src/api/exchange/vaultModify.js.map +1 -0
  773. package/script/src/api/exchange/vaultTransfer.d.ts +92 -0
  774. package/script/src/api/exchange/vaultTransfer.d.ts.map +1 -0
  775. package/script/src/api/exchange/vaultTransfer.js +105 -0
  776. package/script/src/api/exchange/vaultTransfer.js.map +1 -0
  777. package/script/src/api/exchange/withdraw3.d.ts +104 -0
  778. package/script/src/api/exchange/withdraw3.d.ts.map +1 -0
  779. package/script/src/api/exchange/withdraw3.js +116 -0
  780. package/script/src/api/exchange/withdraw3.js.map +1 -0
  781. package/script/src/api/exchange/~client.d.ts +1623 -0
  782. package/script/src/api/exchange/~client.d.ts.map +1 -0
  783. package/script/src/api/exchange/~client.js +1366 -0
  784. package/script/src/api/exchange/~client.js.map +1 -0
  785. package/script/src/api/exchange/~mod.d.ts +83 -0
  786. package/script/src/api/exchange/~mod.d.ts.map +1 -0
  787. package/script/src/api/exchange/~mod.js +101 -0
  788. package/script/src/api/exchange/~mod.js.map +1 -0
  789. package/script/src/api/info/_common.d.ts +7 -0
  790. package/script/src/api/info/_common.d.ts.map +1 -0
  791. package/script/src/api/info/_common.js +3 -0
  792. package/script/src/api/info/_common.js.map +1 -0
  793. package/script/src/api/info/activeAssetData.d.ts +98 -0
  794. package/script/src/api/info/activeAssetData.d.ts.map +1 -0
  795. package/script/src/api/info/activeAssetData.js +119 -0
  796. package/script/src/api/info/activeAssetData.js.map +1 -0
  797. package/script/src/api/info/allMids.d.ts +49 -0
  798. package/script/src/api/info/allMids.d.ts.map +1 -0
  799. package/script/src/api/info/allMids.js +69 -0
  800. package/script/src/api/info/allMids.js.map +1 -0
  801. package/script/src/api/info/blockDetails.d.ts +151 -0
  802. package/script/src/api/info/blockDetails.d.ts.map +1 -0
  803. package/script/src/api/info/blockDetails.js +125 -0
  804. package/script/src/api/info/blockDetails.js.map +1 -0
  805. package/script/src/api/info/candleSnapshot.d.ts +111 -0
  806. package/script/src/api/info/candleSnapshot.d.ts.map +1 -0
  807. package/script/src/api/info/candleSnapshot.js +151 -0
  808. package/script/src/api/info/candleSnapshot.js.map +1 -0
  809. package/script/src/api/info/clearinghouseState.d.ts +269 -0
  810. package/script/src/api/info/clearinghouseState.d.ts.map +1 -0
  811. package/script/src/api/info/clearinghouseState.js +174 -0
  812. package/script/src/api/info/clearinghouseState.js.map +1 -0
  813. package/script/src/api/info/delegations.d.ts +64 -0
  814. package/script/src/api/info/delegations.d.ts.map +1 -0
  815. package/script/src/api/info/delegations.js +98 -0
  816. package/script/src/api/info/delegations.js.map +1 -0
  817. package/script/src/api/info/delegatorHistory.d.ts +142 -0
  818. package/script/src/api/info/delegatorHistory.d.ts.map +1 -0
  819. package/script/src/api/info/delegatorHistory.js +126 -0
  820. package/script/src/api/info/delegatorHistory.js.map +1 -0
  821. package/script/src/api/info/delegatorRewards.d.ts +64 -0
  822. package/script/src/api/info/delegatorRewards.d.ts.map +1 -0
  823. package/script/src/api/info/delegatorRewards.js +98 -0
  824. package/script/src/api/info/delegatorRewards.js.map +1 -0
  825. package/script/src/api/info/delegatorSummary.d.ts +63 -0
  826. package/script/src/api/info/delegatorSummary.d.ts.map +1 -0
  827. package/script/src/api/info/delegatorSummary.js +98 -0
  828. package/script/src/api/info/delegatorSummary.js.map +1 -0
  829. package/script/src/api/info/exchangeStatus.d.ts +46 -0
  830. package/script/src/api/info/exchangeStatus.d.ts.map +1 -0
  831. package/script/src/api/info/exchangeStatus.js +87 -0
  832. package/script/src/api/info/exchangeStatus.js.map +1 -0
  833. package/script/src/api/info/extraAgents.d.ts +64 -0
  834. package/script/src/api/info/extraAgents.d.ts.map +1 -0
  835. package/script/src/api/info/extraAgents.js +98 -0
  836. package/script/src/api/info/extraAgents.js.map +1 -0
  837. package/script/src/api/info/frontendOpenOrders.d.ts +135 -0
  838. package/script/src/api/info/frontendOpenOrders.d.ts.map +1 -0
  839. package/script/src/api/info/frontendOpenOrders.js +171 -0
  840. package/script/src/api/info/frontendOpenOrders.js.map +1 -0
  841. package/script/src/api/info/fundingHistory.d.ts +74 -0
  842. package/script/src/api/info/fundingHistory.d.ts.map +1 -0
  843. package/script/src/api/info/fundingHistory.js +104 -0
  844. package/script/src/api/info/fundingHistory.js.map +1 -0
  845. package/script/src/api/info/gossipRootIps.d.ts +39 -0
  846. package/script/src/api/info/gossipRootIps.d.ts.map +1 -0
  847. package/script/src/api/info/gossipRootIps.js +83 -0
  848. package/script/src/api/info/gossipRootIps.js.map +1 -0
  849. package/script/src/api/info/historicalOrders.d.ts +180 -0
  850. package/script/src/api/info/historicalOrders.d.ts.map +1 -0
  851. package/script/src/api/info/historicalOrders.js +222 -0
  852. package/script/src/api/info/historicalOrders.js.map +1 -0
  853. package/script/src/api/info/isVip.d.ts +49 -0
  854. package/script/src/api/info/isVip.d.ts.map +1 -0
  855. package/script/src/api/info/isVip.js +89 -0
  856. package/script/src/api/info/isVip.js.map +1 -0
  857. package/script/src/api/info/l2Book.d.ts +104 -0
  858. package/script/src/api/info/l2Book.d.ts.map +1 -0
  859. package/script/src/api/info/l2Book.js +111 -0
  860. package/script/src/api/info/l2Book.js.map +1 -0
  861. package/script/src/api/info/leadingVaults.d.ts +60 -0
  862. package/script/src/api/info/leadingVaults.d.ts.map +1 -0
  863. package/script/src/api/info/leadingVaults.js +96 -0
  864. package/script/src/api/info/leadingVaults.js.map +1 -0
  865. package/script/src/api/info/legalCheck.d.ts +60 -0
  866. package/script/src/api/info/legalCheck.d.ts.map +1 -0
  867. package/script/src/api/info/legalCheck.js +96 -0
  868. package/script/src/api/info/legalCheck.js.map +1 -0
  869. package/script/src/api/info/liquidatable.d.ts +38 -0
  870. package/script/src/api/info/liquidatable.d.ts.map +1 -0
  871. package/script/src/api/info/liquidatable.js +82 -0
  872. package/script/src/api/info/liquidatable.js.map +1 -0
  873. package/script/src/api/info/marginTable.d.ts +71 -0
  874. package/script/src/api/info/marginTable.d.ts.map +1 -0
  875. package/script/src/api/info/marginTable.js +101 -0
  876. package/script/src/api/info/marginTable.js.map +1 -0
  877. package/script/src/api/info/maxBuilderFee.d.ts +52 -0
  878. package/script/src/api/info/maxBuilderFee.d.ts.map +1 -0
  879. package/script/src/api/info/maxBuilderFee.js +91 -0
  880. package/script/src/api/info/maxBuilderFee.js.map +1 -0
  881. package/script/src/api/info/maxMarketOrderNtls.d.ts +41 -0
  882. package/script/src/api/info/maxMarketOrderNtls.d.ts.map +1 -0
  883. package/script/src/api/info/maxMarketOrderNtls.js +84 -0
  884. package/script/src/api/info/maxMarketOrderNtls.js.map +1 -0
  885. package/script/src/api/info/meta.d.ts +123 -0
  886. package/script/src/api/info/meta.d.ts.map +1 -0
  887. package/script/src/api/info/meta.js +106 -0
  888. package/script/src/api/info/meta.js.map +1 -0
  889. package/script/src/api/info/metaAndAssetCtxs.d.ts +192 -0
  890. package/script/src/api/info/metaAndAssetCtxs.d.ts.map +1 -0
  891. package/script/src/api/info/metaAndAssetCtxs.js +134 -0
  892. package/script/src/api/info/metaAndAssetCtxs.js.map +1 -0
  893. package/script/src/api/info/openOrders.d.ts +91 -0
  894. package/script/src/api/info/openOrders.d.ts.map +1 -0
  895. package/script/src/api/info/openOrders.js +112 -0
  896. package/script/src/api/info/openOrders.js.map +1 -0
  897. package/script/src/api/info/orderStatus.d.ts +198 -0
  898. package/script/src/api/info/orderStatus.d.ts.map +1 -0
  899. package/script/src/api/info/orderStatus.js +237 -0
  900. package/script/src/api/info/orderStatus.js.map +1 -0
  901. package/script/src/api/info/perpDeployAuctionStatus.d.ts +56 -0
  902. package/script/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -0
  903. package/script/src/api/info/perpDeployAuctionStatus.js +94 -0
  904. package/script/src/api/info/perpDeployAuctionStatus.js.map +1 -0
  905. package/script/src/api/info/perpDexLimits.d.ts +63 -0
  906. package/script/src/api/info/perpDexLimits.d.ts.map +1 -0
  907. package/script/src/api/info/perpDexLimits.js +98 -0
  908. package/script/src/api/info/perpDexLimits.js.map +1 -0
  909. package/script/src/api/info/perpDexs.d.ts +61 -0
  910. package/script/src/api/info/perpDexs.d.ts.map +1 -0
  911. package/script/src/api/info/perpDexs.js +95 -0
  912. package/script/src/api/info/perpDexs.js.map +1 -0
  913. package/script/src/api/info/perpsAtOpenInterestCap.d.ts +47 -0
  914. package/script/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -0
  915. package/script/src/api/info/perpsAtOpenInterestCap.js +69 -0
  916. package/script/src/api/info/perpsAtOpenInterestCap.js.map +1 -0
  917. package/script/src/api/info/portfolio.d.ts +169 -0
  918. package/script/src/api/info/portfolio.d.ts.map +1 -0
  919. package/script/src/api/info/portfolio.js +109 -0
  920. package/script/src/api/info/portfolio.js.map +1 -0
  921. package/script/src/api/info/preTransferCheck.d.ts +66 -0
  922. package/script/src/api/info/preTransferCheck.d.ts.map +1 -0
  923. package/script/src/api/info/preTransferCheck.js +100 -0
  924. package/script/src/api/info/preTransferCheck.js.map +1 -0
  925. package/script/src/api/info/predictedFundings.d.ts +66 -0
  926. package/script/src/api/info/predictedFundings.d.ts.map +1 -0
  927. package/script/src/api/info/predictedFundings.js +104 -0
  928. package/script/src/api/info/predictedFundings.js.map +1 -0
  929. package/script/src/api/info/recentTrades.d.ts +84 -0
  930. package/script/src/api/info/recentTrades.d.ts.map +1 -0
  931. package/script/src/api/info/recentTrades.js +108 -0
  932. package/script/src/api/info/recentTrades.js.map +1 -0
  933. package/script/src/api/info/referral.d.ts +274 -0
  934. package/script/src/api/info/referral.d.ts.map +1 -0
  935. package/script/src/api/info/referral.js +193 -0
  936. package/script/src/api/info/referral.js.map +1 -0
  937. package/script/src/api/info/spotClearinghouseState.d.ts +108 -0
  938. package/script/src/api/info/spotClearinghouseState.d.ts.map +1 -0
  939. package/script/src/api/info/spotClearinghouseState.js +118 -0
  940. package/script/src/api/info/spotClearinghouseState.js.map +1 -0
  941. package/script/src/api/info/spotDeployState.d.ts +162 -0
  942. package/script/src/api/info/spotDeployState.d.ts.map +1 -0
  943. package/script/src/api/info/spotDeployState.js +137 -0
  944. package/script/src/api/info/spotDeployState.js.map +1 -0
  945. package/script/src/api/info/spotMeta.d.ts +137 -0
  946. package/script/src/api/info/spotMeta.d.ts.map +1 -0
  947. package/script/src/api/info/spotMeta.js +125 -0
  948. package/script/src/api/info/spotMeta.js.map +1 -0
  949. package/script/src/api/info/spotMetaAndAssetCtxs.d.ts +202 -0
  950. package/script/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -0
  951. package/script/src/api/info/spotMetaAndAssetCtxs.js +149 -0
  952. package/script/src/api/info/spotMetaAndAssetCtxs.js.map +1 -0
  953. package/script/src/api/info/spotPairDeployAuctionStatus.d.ts +56 -0
  954. package/script/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -0
  955. package/script/src/api/info/spotPairDeployAuctionStatus.js +94 -0
  956. package/script/src/api/info/spotPairDeployAuctionStatus.js.map +1 -0
  957. package/script/src/api/info/subAccounts.d.ts +457 -0
  958. package/script/src/api/info/subAccounts.d.ts.map +1 -0
  959. package/script/src/api/info/subAccounts.js +212 -0
  960. package/script/src/api/info/subAccounts.js.map +1 -0
  961. package/script/src/api/info/tokenDetails.d.ts +114 -0
  962. package/script/src/api/info/tokenDetails.d.ts.map +1 -0
  963. package/script/src/api/info/tokenDetails.js +129 -0
  964. package/script/src/api/info/tokenDetails.js.map +1 -0
  965. package/script/src/api/info/twapHistory.d.ts +147 -0
  966. package/script/src/api/info/twapHistory.d.ts.map +1 -0
  967. package/script/src/api/info/twapHistory.js +144 -0
  968. package/script/src/api/info/twapHistory.js.map +1 -0
  969. package/script/src/api/info/txDetails.d.ts +102 -0
  970. package/script/src/api/info/txDetails.d.ts.map +1 -0
  971. package/script/src/api/info/txDetails.js +110 -0
  972. package/script/src/api/info/txDetails.js.map +1 -0
  973. package/script/src/api/info/userDetails.d.ts +113 -0
  974. package/script/src/api/info/userDetails.d.ts.map +1 -0
  975. package/script/src/api/info/userDetails.js +112 -0
  976. package/script/src/api/info/userDetails.js.map +1 -0
  977. package/script/src/api/info/userFees.d.ts +244 -0
  978. package/script/src/api/info/userFees.d.ts.map +1 -0
  979. package/script/src/api/info/userFees.js +176 -0
  980. package/script/src/api/info/userFees.js.map +1 -0
  981. package/script/src/api/info/userFills.d.ts +142 -0
  982. package/script/src/api/info/userFills.d.ts.map +1 -0
  983. package/script/src/api/info/userFills.js +135 -0
  984. package/script/src/api/info/userFills.js.map +1 -0
  985. package/script/src/api/info/userFillsByTime.d.ts +148 -0
  986. package/script/src/api/info/userFillsByTime.d.ts.map +1 -0
  987. package/script/src/api/info/userFillsByTime.js +139 -0
  988. package/script/src/api/info/userFillsByTime.js.map +1 -0
  989. package/script/src/api/info/userFunding.d.ts +104 -0
  990. package/script/src/api/info/userFunding.d.ts.map +1 -0
  991. package/script/src/api/info/userFunding.js +115 -0
  992. package/script/src/api/info/userFunding.js.map +1 -0
  993. package/script/src/api/info/userNonFundingLedgerUpdates.d.ts +711 -0
  994. package/script/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -0
  995. package/script/src/api/info/userNonFundingLedgerUpdates.js +289 -0
  996. package/script/src/api/info/userNonFundingLedgerUpdates.js.map +1 -0
  997. package/script/src/api/info/userRateLimit.d.ts +60 -0
  998. package/script/src/api/info/userRateLimit.d.ts.map +1 -0
  999. package/script/src/api/info/userRateLimit.js +96 -0
  1000. package/script/src/api/info/userRateLimit.js.map +1 -0
  1001. package/script/src/api/info/userRole.d.ts +84 -0
  1002. package/script/src/api/info/userRole.d.ts.map +1 -0
  1003. package/script/src/api/info/userRole.js +112 -0
  1004. package/script/src/api/info/userRole.js.map +1 -0
  1005. package/script/src/api/info/userToMultiSigSigners.d.ts +57 -0
  1006. package/script/src/api/info/userToMultiSigSigners.d.ts.map +1 -0
  1007. package/script/src/api/info/userToMultiSigSigners.js +94 -0
  1008. package/script/src/api/info/userToMultiSigSigners.js.map +1 -0
  1009. package/script/src/api/info/userTwapSliceFills.d.ts +139 -0
  1010. package/script/src/api/info/userTwapSliceFills.d.ts.map +1 -0
  1011. package/script/src/api/info/userTwapSliceFills.js +127 -0
  1012. package/script/src/api/info/userTwapSliceFills.js.map +1 -0
  1013. package/script/src/api/info/userTwapSliceFillsByTime.d.ts +148 -0
  1014. package/script/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -0
  1015. package/script/src/api/info/userTwapSliceFillsByTime.js +133 -0
  1016. package/script/src/api/info/userTwapSliceFillsByTime.js.map +1 -0
  1017. package/script/src/api/info/userVaultEquities.d.ts +64 -0
  1018. package/script/src/api/info/userVaultEquities.d.ts.map +1 -0
  1019. package/script/src/api/info/userVaultEquities.js +98 -0
  1020. package/script/src/api/info/userVaultEquities.js.map +1 -0
  1021. package/script/src/api/info/validatorL1Votes.d.ts +60 -0
  1022. package/script/src/api/info/validatorL1Votes.d.ts.map +1 -0
  1023. package/script/src/api/info/validatorL1Votes.js +94 -0
  1024. package/script/src/api/info/validatorL1Votes.js.map +1 -0
  1025. package/script/src/api/info/validatorSummaries.d.ts +155 -0
  1026. package/script/src/api/info/validatorSummaries.d.ts.map +1 -0
  1027. package/script/src/api/info/validatorSummaries.js +123 -0
  1028. package/script/src/api/info/validatorSummaries.js.map +1 -0
  1029. package/script/src/api/info/vaultDetails.d.ts +359 -0
  1030. package/script/src/api/info/vaultDetails.d.ts.map +1 -0
  1031. package/script/src/api/info/vaultDetails.js +171 -0
  1032. package/script/src/api/info/vaultDetails.js.map +1 -0
  1033. package/script/src/api/info/vaultSummaries.d.ts +104 -0
  1034. package/script/src/api/info/vaultSummaries.d.ts.map +1 -0
  1035. package/script/src/api/info/vaultSummaries.js +114 -0
  1036. package/script/src/api/info/vaultSummaries.js.map +1 -0
  1037. package/script/src/api/info/webData2.d.ts +789 -0
  1038. package/script/src/api/info/webData2.d.ts.map +1 -0
  1039. package/script/src/api/info/webData2.js +426 -0
  1040. package/script/src/api/info/webData2.js.map +1 -0
  1041. package/script/src/api/info/~client.d.ts +2507 -0
  1042. package/script/src/api/info/~client.d.ts.map +1 -0
  1043. package/script/src/api/info/~client.js +1466 -0
  1044. package/script/src/api/info/~client.js.map +1 -0
  1045. package/script/src/api/info/~mod.d.ts +87 -0
  1046. package/script/src/api/info/~mod.d.ts.map +1 -0
  1047. package/script/src/api/info/~mod.js +105 -0
  1048. package/script/src/api/info/~mod.js.map +1 -0
  1049. package/script/src/api/subscription/_common.d.ts +7 -0
  1050. package/script/src/api/subscription/_common.d.ts.map +1 -0
  1051. package/script/src/api/subscription/_common.js +3 -0
  1052. package/script/src/api/subscription/_common.js.map +1 -0
  1053. package/script/src/api/subscription/activeAssetCtx.d.ts +97 -0
  1054. package/script/src/api/subscription/activeAssetCtx.d.ts.map +1 -0
  1055. package/script/src/api/subscription/activeAssetCtx.js +112 -0
  1056. package/script/src/api/subscription/activeAssetCtx.js.map +1 -0
  1057. package/script/src/api/subscription/activeAssetData.d.ts +95 -0
  1058. package/script/src/api/subscription/activeAssetData.d.ts.map +1 -0
  1059. package/script/src/api/subscription/activeAssetData.js +116 -0
  1060. package/script/src/api/subscription/activeAssetData.js.map +1 -0
  1061. package/script/src/api/subscription/activeSpotAssetCtx.d.ts +89 -0
  1062. package/script/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -0
  1063. package/script/src/api/subscription/activeSpotAssetCtx.js +108 -0
  1064. package/script/src/api/subscription/activeSpotAssetCtx.js.map +1 -0
  1065. package/script/src/api/subscription/allMids.d.ts +58 -0
  1066. package/script/src/api/subscription/allMids.d.ts.map +1 -0
  1067. package/script/src/api/subscription/allMids.js +73 -0
  1068. package/script/src/api/subscription/allMids.js.map +1 -0
  1069. package/script/src/api/subscription/assetCtxs.d.ts +108 -0
  1070. package/script/src/api/subscription/assetCtxs.d.ts.map +1 -0
  1071. package/script/src/api/subscription/assetCtxs.js +96 -0
  1072. package/script/src/api/subscription/assetCtxs.js.map +1 -0
  1073. package/script/src/api/subscription/bbo.d.ts +95 -0
  1074. package/script/src/api/subscription/bbo.d.ts.map +1 -0
  1075. package/script/src/api/subscription/bbo.js +104 -0
  1076. package/script/src/api/subscription/bbo.js.map +1 -0
  1077. package/script/src/api/subscription/candle.d.ts +81 -0
  1078. package/script/src/api/subscription/candle.d.ts.map +1 -0
  1079. package/script/src/api/subscription/candle.js +139 -0
  1080. package/script/src/api/subscription/candle.js.map +1 -0
  1081. package/script/src/api/subscription/clearinghouseState.d.ts +320 -0
  1082. package/script/src/api/subscription/clearinghouseState.d.ts.map +1 -0
  1083. package/script/src/api/subscription/clearinghouseState.js +182 -0
  1084. package/script/src/api/subscription/clearinghouseState.js.map +1 -0
  1085. package/script/src/api/subscription/explorerBlock.d.ts +64 -0
  1086. package/script/src/api/subscription/explorerBlock.d.ts.map +1 -0
  1087. package/script/src/api/subscription/explorerBlock.js +94 -0
  1088. package/script/src/api/subscription/explorerBlock.js.map +1 -0
  1089. package/script/src/api/subscription/explorerTxs.d.ts +83 -0
  1090. package/script/src/api/subscription/explorerTxs.d.ts.map +1 -0
  1091. package/script/src/api/subscription/explorerTxs.js +99 -0
  1092. package/script/src/api/subscription/explorerTxs.js.map +1 -0
  1093. package/script/src/api/subscription/l2Book.d.ts +101 -0
  1094. package/script/src/api/subscription/l2Book.d.ts.map +1 -0
  1095. package/script/src/api/subscription/l2Book.js +113 -0
  1096. package/script/src/api/subscription/l2Book.js.map +1 -0
  1097. package/script/src/api/subscription/notification.d.ts +51 -0
  1098. package/script/src/api/subscription/notification.d.ts.map +1 -0
  1099. package/script/src/api/subscription/notification.js +87 -0
  1100. package/script/src/api/subscription/notification.js.map +1 -0
  1101. package/script/src/api/subscription/openOrders.d.ts +160 -0
  1102. package/script/src/api/subscription/openOrders.d.ts.map +1 -0
  1103. package/script/src/api/subscription/openOrders.js +179 -0
  1104. package/script/src/api/subscription/openOrders.js.map +1 -0
  1105. package/script/src/api/subscription/orderUpdates.d.ts +126 -0
  1106. package/script/src/api/subscription/orderUpdates.d.ts.map +1 -0
  1107. package/script/src/api/subscription/orderUpdates.js +158 -0
  1108. package/script/src/api/subscription/orderUpdates.js.map +1 -0
  1109. package/script/src/api/subscription/trades.d.ts +81 -0
  1110. package/script/src/api/subscription/trades.d.ts.map +1 -0
  1111. package/script/src/api/subscription/trades.js +105 -0
  1112. package/script/src/api/subscription/trades.js.map +1 -0
  1113. package/script/src/api/subscription/userEvents.d.ts +948 -0
  1114. package/script/src/api/subscription/userEvents.d.ts.map +1 -0
  1115. package/script/src/api/subscription/userEvents.js +295 -0
  1116. package/script/src/api/subscription/userEvents.js.map +1 -0
  1117. package/script/src/api/subscription/userFills.d.ts +172 -0
  1118. package/script/src/api/subscription/userFills.d.ts.map +1 -0
  1119. package/script/src/api/subscription/userFills.js +143 -0
  1120. package/script/src/api/subscription/userFills.js.map +1 -0
  1121. package/script/src/api/subscription/userFundings.d.ts +91 -0
  1122. package/script/src/api/subscription/userFundings.d.ts.map +1 -0
  1123. package/script/src/api/subscription/userFundings.js +108 -0
  1124. package/script/src/api/subscription/userFundings.js.map +1 -0
  1125. package/script/src/api/subscription/userNonFundingLedgerUpdates.d.ts +786 -0
  1126. package/script/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -0
  1127. package/script/src/api/subscription/userNonFundingLedgerUpdates.js +289 -0
  1128. package/script/src/api/subscription/userNonFundingLedgerUpdates.js.map +1 -0
  1129. package/script/src/api/subscription/userTwapHistory.d.ts +175 -0
  1130. package/script/src/api/subscription/userTwapHistory.d.ts.map +1 -0
  1131. package/script/src/api/subscription/userTwapHistory.js +148 -0
  1132. package/script/src/api/subscription/userTwapHistory.js.map +1 -0
  1133. package/script/src/api/subscription/userTwapSliceFills.d.ts +147 -0
  1134. package/script/src/api/subscription/userTwapSliceFills.d.ts.map +1 -0
  1135. package/script/src/api/subscription/userTwapSliceFills.js +129 -0
  1136. package/script/src/api/subscription/userTwapSliceFills.js.map +1 -0
  1137. package/script/src/api/subscription/webData2.d.ts +786 -0
  1138. package/script/src/api/subscription/webData2.d.ts.map +1 -0
  1139. package/script/src/api/subscription/webData2.js +423 -0
  1140. package/script/src/api/subscription/webData2.js.map +1 -0
  1141. package/script/src/api/subscription/~client.d.ts +509 -0
  1142. package/script/src/api/subscription/~client.d.ts.map +1 -0
  1143. package/script/src/api/subscription/~client.js +538 -0
  1144. package/script/src/api/subscription/~client.js.map +1 -0
  1145. package/script/src/api/subscription/~mod.d.ts +49 -0
  1146. package/script/src/api/subscription/~mod.d.ts.map +1 -0
  1147. package/script/src/api/subscription/~mod.js +67 -0
  1148. package/script/src/api/subscription/~mod.js.map +1 -0
  1149. package/script/src/mod.d.ts +8 -20
  1150. package/script/src/mod.d.ts.map +1 -1
  1151. package/script/src/mod.js +11 -15
  1152. package/script/src/mod.js.map +1 -1
  1153. package/script/src/signing/_signTypedData.d.ts +118 -0
  1154. package/script/src/signing/_signTypedData.d.ts.map +1 -0
  1155. package/script/src/signing/_signTypedData.js +107 -0
  1156. package/script/src/signing/_signTypedData.js.map +1 -0
  1157. package/script/src/signing/mod.d.ts +34 -112
  1158. package/script/src/signing/mod.d.ts.map +1 -1
  1159. package/script/src/signing/mod.js +52 -183
  1160. package/script/src/signing/mod.js.map +1 -1
  1161. package/script/src/transport/_polyfills.d.ts.map +1 -0
  1162. package/script/src/transport/_polyfills.js +49 -0
  1163. package/script/src/transport/_polyfills.js.map +1 -0
  1164. package/script/src/transport/base.d.ts +48 -0
  1165. package/script/src/transport/base.d.ts.map +1 -0
  1166. package/script/src/transport/base.js +13 -0
  1167. package/script/src/transport/base.js.map +1 -0
  1168. package/script/src/transport/http/mod.d.ts +94 -0
  1169. package/script/src/transport/http/mod.d.ts.map +1 -0
  1170. package/script/src/transport/http/mod.js +157 -0
  1171. package/script/src/transport/http/mod.js.map +1 -0
  1172. package/script/src/transport/websocket/_hyperliquid_event_target.d.ts +80 -0
  1173. package/script/src/transport/websocket/_hyperliquid_event_target.d.ts.map +1 -0
  1174. package/script/src/transport/websocket/_hyperliquid_event_target.js +92 -0
  1175. package/script/src/transport/websocket/_hyperliquid_event_target.js.map +1 -0
  1176. package/script/src/transport/websocket/_reconnecting_websocket.d.ts.map +1 -0
  1177. package/script/src/transport/websocket/_reconnecting_websocket.js.map +1 -0
  1178. package/script/src/transport/websocket/_websocket_async_request.d.ts.map +1 -0
  1179. package/script/src/transport/websocket/_websocket_async_request.js +191 -0
  1180. package/script/src/transport/websocket/_websocket_async_request.js.map +1 -0
  1181. package/script/src/transport/websocket/mod.d.ts +123 -0
  1182. package/script/src/transport/websocket/mod.d.ts.map +1 -0
  1183. package/script/src/transport/websocket/mod.js +255 -0
  1184. package/script/src/transport/websocket/mod.js.map +1 -0
  1185. package/script/src/utils/minimalEIP712Signer.d.ts +27 -0
  1186. package/script/src/utils/minimalEIP712Signer.d.ts.map +1 -0
  1187. package/script/src/utils/minimalEIP712Signer.js +209 -0
  1188. package/script/src/utils/minimalEIP712Signer.js.map +1 -0
  1189. package/src/bin/_utils.ts +137 -141
  1190. package/src/bin/cli.ts +65 -112
  1191. package/src/src/_base.ts +7 -0
  1192. package/src/src/api/_common.ts +143 -0
  1193. package/src/src/api/exchange/_common.ts +510 -0
  1194. package/src/src/api/exchange/approveAgent.ts +138 -0
  1195. package/src/src/api/exchange/approveBuilderFee.ts +138 -0
  1196. package/src/src/api/exchange/batchModify.ts +234 -0
  1197. package/src/src/api/exchange/cDeposit.ts +132 -0
  1198. package/src/src/api/exchange/cSignerAction.ts +128 -0
  1199. package/src/src/api/exchange/cValidatorAction.ts +269 -0
  1200. package/src/src/api/exchange/cWithdraw.ts +132 -0
  1201. package/src/src/api/exchange/cancel.ts +210 -0
  1202. package/src/src/api/exchange/cancelByCloid.ts +128 -0
  1203. package/src/src/api/exchange/claimRewards.ts +92 -0
  1204. package/src/src/api/exchange/convertToMultiSigUser.ts +189 -0
  1205. package/src/src/api/exchange/createSubAccount.ts +136 -0
  1206. package/src/src/api/exchange/createVault.ts +157 -0
  1207. package/src/src/api/exchange/evmUserModify.ts +107 -0
  1208. package/src/src/api/exchange/modify.ts +225 -0
  1209. package/src/src/api/exchange/multiSig.ts +304 -0
  1210. package/src/src/api/exchange/noop.ts +94 -0
  1211. package/src/src/api/exchange/order.ts +432 -0
  1212. package/src/src/api/exchange/perpDeploy.ts +233 -0
  1213. package/src/src/api/exchange/registerReferrer.ts +108 -0
  1214. package/src/src/api/exchange/reserveRequestWeight.ts +107 -0
  1215. package/src/src/api/exchange/scheduleCancel.ts +137 -0
  1216. package/src/src/api/exchange/sendAsset.ts +168 -0
  1217. package/src/src/api/exchange/setDisplayName.ts +114 -0
  1218. package/src/src/api/exchange/setReferrer.ts +108 -0
  1219. package/src/src/api/exchange/spotDeploy.ts +329 -0
  1220. package/src/src/api/exchange/spotSend.ts +148 -0
  1221. package/src/src/api/exchange/spotUser.ts +113 -0
  1222. package/src/src/api/exchange/subAccountModify.ts +113 -0
  1223. package/src/src/api/exchange/subAccountSpotTransfer.ts +127 -0
  1224. package/src/src/api/exchange/subAccountTransfer.ts +117 -0
  1225. package/src/src/api/exchange/tokenDelegate.ts +144 -0
  1226. package/src/src/api/exchange/twapCancel.ts +198 -0
  1227. package/src/src/api/exchange/twapOrder.ts +257 -0
  1228. package/src/src/api/exchange/updateIsolatedMargin.ts +123 -0
  1229. package/src/src/api/exchange/updateLeverage.ts +123 -0
  1230. package/src/src/api/exchange/usdClassTransfer.ts +138 -0
  1231. package/src/src/api/exchange/usdSend.ts +138 -0
  1232. package/src/src/api/exchange/vaultDistribute.ts +119 -0
  1233. package/src/src/api/exchange/vaultModify.ts +121 -0
  1234. package/src/src/api/exchange/vaultTransfer.ts +117 -0
  1235. package/src/src/api/exchange/withdraw3.ts +138 -0
  1236. package/src/src/api/exchange/~client.ts +1486 -0
  1237. package/src/src/api/exchange/~mod.ts +84 -0
  1238. package/src/src/api/info/_common.ts +7 -0
  1239. package/src/src/api/info/activeAssetData.ts +147 -0
  1240. package/src/src/api/info/allMids.ts +88 -0
  1241. package/src/src/api/info/blockDetails.ts +165 -0
  1242. package/src/src/api/info/candleSnapshot.ts +187 -0
  1243. package/src/src/api/info/clearinghouseState.ts +279 -0
  1244. package/src/src/api/info/delegations.ts +101 -0
  1245. package/src/src/api/info/delegatorHistory.ts +156 -0
  1246. package/src/src/api/info/delegatorRewards.ts +101 -0
  1247. package/src/src/api/info/delegatorSummary.ts +100 -0
  1248. package/src/src/api/info/exchangeStatus.ts +74 -0
  1249. package/src/src/api/info/extraAgents.ts +102 -0
  1250. package/src/src/api/info/frontendOpenOrders.ts +219 -0
  1251. package/src/src/api/info/fundingHistory.ts +116 -0
  1252. package/src/src/api/info/gossipRootIps.ts +65 -0
  1253. package/src/src/api/info/historicalOrders.ts +278 -0
  1254. package/src/src/api/info/isVip.ts +79 -0
  1255. package/src/src/api/info/l2Book.ts +140 -0
  1256. package/src/src/api/info/leadingVaults.ts +96 -0
  1257. package/src/src/api/info/legalCheck.ts +95 -0
  1258. package/src/src/api/info/liquidatable.ts +63 -0
  1259. package/src/src/api/info/marginTable.ts +110 -0
  1260. package/src/src/api/info/maxBuilderFee.ts +86 -0
  1261. package/src/src/api/info/maxMarketOrderNtls.ts +74 -0
  1262. package/src/src/api/info/meta.ts +175 -0
  1263. package/src/src/api/info/metaAndAssetCtxs.ts +242 -0
  1264. package/src/src/api/info/openOrders.ts +136 -0
  1265. package/src/src/api/info/orderStatus.ts +303 -0
  1266. package/src/src/api/info/perpDeployAuctionStatus.ts +91 -0
  1267. package/src/src/api/info/perpDexLimits.ts +102 -0
  1268. package/src/src/api/info/perpDexs.ts +95 -0
  1269. package/src/src/api/info/perpsAtOpenInterestCap.ts +88 -0
  1270. package/src/src/api/info/portfolio.ts +113 -0
  1271. package/src/src/api/info/preTransferCheck.ts +105 -0
  1272. package/src/src/api/info/predictedFundings.ts +117 -0
  1273. package/src/src/api/info/recentTrades.ts +126 -0
  1274. package/src/src/api/info/referral.ts +315 -0
  1275. package/src/src/api/info/spotClearinghouseState.ts +151 -0
  1276. package/src/src/api/info/spotDeployState.ts +194 -0
  1277. package/src/src/api/info/spotMeta.ts +168 -0
  1278. package/src/src/api/info/spotMetaAndAssetCtxs.ts +226 -0
  1279. package/src/src/api/info/spotPairDeployAuctionStatus.ts +91 -0
  1280. package/src/src/api/info/subAccounts.ts +376 -0
  1281. package/src/src/api/info/tokenDetails.ts +178 -0
  1282. package/src/src/api/info/twapHistory.ts +188 -0
  1283. package/src/src/api/info/txDetails.ts +128 -0
  1284. package/src/src/api/info/userDetails.ts +134 -0
  1285. package/src/src/api/info/userFees.ts +288 -0
  1286. package/src/src/api/info/userFills.ts +194 -0
  1287. package/src/src/api/info/userFillsByTime.ts +204 -0
  1288. package/src/src/api/info/userFunding.ts +142 -0
  1289. package/src/src/api/info/userNonFundingLedgerUpdates.ts +530 -0
  1290. package/src/src/api/info/userRateLimit.ts +95 -0
  1291. package/src/src/api/info/userRole.ts +123 -0
  1292. package/src/src/api/info/userToMultiSigSigners.ts +94 -0
  1293. package/src/src/api/info/userTwapSliceFills.ts +172 -0
  1294. package/src/src/api/info/userTwapSliceFillsByTime.ts +187 -0
  1295. package/src/src/api/info/userVaultEquities.ts +101 -0
  1296. package/src/src/api/info/validatorL1Votes.ts +89 -0
  1297. package/src/src/api/info/validatorSummaries.ts +156 -0
  1298. package/src/src/api/info/vaultDetails.ts +274 -0
  1299. package/src/src/api/info/vaultSummaries.ts +133 -0
  1300. package/src/src/api/info/webData2.ts +832 -0
  1301. package/src/src/api/info/~client.ts +1615 -0
  1302. package/src/src/api/info/~mod.ts +88 -0
  1303. package/src/src/api/subscription/_common.ts +7 -0
  1304. package/src/src/api/subscription/activeAssetCtx.ts +139 -0
  1305. package/src/src/api/subscription/activeAssetData.ts +145 -0
  1306. package/src/src/api/subscription/activeSpotAssetCtx.ts +129 -0
  1307. package/src/src/api/subscription/allMids.ts +103 -0
  1308. package/src/src/api/subscription/assetCtxs.ts +160 -0
  1309. package/src/src/api/subscription/bbo.ts +117 -0
  1310. package/src/src/api/subscription/candle.ts +163 -0
  1311. package/src/src/api/subscription/clearinghouseState.ts +297 -0
  1312. package/src/src/api/subscription/explorerBlock.ts +100 -0
  1313. package/src/src/api/subscription/explorerTxs.ts +111 -0
  1314. package/src/src/api/subscription/l2Book.ts +142 -0
  1315. package/src/src/api/subscription/notification.ts +81 -0
  1316. package/src/src/api/subscription/openOrders.ts +237 -0
  1317. package/src/src/api/subscription/orderUpdates.ts +191 -0
  1318. package/src/src/api/subscription/trades.ts +124 -0
  1319. package/src/src/api/subscription/userEvents.ts +543 -0
  1320. package/src/src/api/subscription/userFills.ts +212 -0
  1321. package/src/src/api/subscription/userFundings.ts +130 -0
  1322. package/src/src/api/subscription/userNonFundingLedgerUpdates.ts +534 -0
  1323. package/src/src/api/subscription/userTwapHistory.ts +202 -0
  1324. package/src/src/api/subscription/userTwapSliceFills.ts +182 -0
  1325. package/src/src/api/subscription/webData2.ts +830 -0
  1326. package/src/src/api/subscription/~client.ts +632 -0
  1327. package/src/src/api/subscription/~mod.ts +50 -0
  1328. package/src/src/mod.ts +8 -27
  1329. package/src/src/signing/_signTypedData.ts +236 -0
  1330. package/src/src/signing/mod.ts +213 -311
  1331. package/src/src/transport/_polyfills.ts +47 -0
  1332. package/src/src/transport/base.ts +54 -0
  1333. package/src/src/transport/http/mod.ts +218 -0
  1334. package/src/src/transport/websocket/_hyperliquid_event_target.ts +117 -0
  1335. package/src/src/transport/websocket/_reconnecting_websocket.ts +390 -0
  1336. package/src/src/transport/websocket/_websocket_async_request.ts +233 -0
  1337. package/src/src/transport/websocket/mod.ts +353 -0
  1338. package/src/src/utils/minimalEIP712Signer.ts +250 -0
  1339. package/esm/src/_errors.d.ts +0 -5
  1340. package/esm/src/_errors.d.ts.map +0 -1
  1341. package/esm/src/_errors.js +0 -8
  1342. package/esm/src/_errors.js.map +0 -1
  1343. package/esm/src/clients/exchange.d.ts +0 -1424
  1344. package/esm/src/clients/exchange.d.ts.map +0 -1
  1345. package/esm/src/clients/exchange.js +0 -1627
  1346. package/esm/src/clients/exchange.js.map +0 -1
  1347. package/esm/src/clients/info.d.ts +0 -1385
  1348. package/esm/src/clients/info.d.ts.map +0 -1
  1349. package/esm/src/clients/info.js +0 -1563
  1350. package/esm/src/clients/info.js.map +0 -1
  1351. package/esm/src/clients/multiSign.d.ts +0 -55
  1352. package/esm/src/clients/multiSign.d.ts.map +0 -1
  1353. package/esm/src/clients/multiSign.js +0 -99
  1354. package/esm/src/clients/multiSign.js.map +0 -1
  1355. package/esm/src/clients/subscription.d.ts +0 -537
  1356. package/esm/src/clients/subscription.d.ts.map +0 -1
  1357. package/esm/src/clients/subscription.js +0 -609
  1358. package/esm/src/clients/subscription.js.map +0 -1
  1359. package/esm/src/schemas/_base.d.ts +0 -16
  1360. package/esm/src/schemas/_base.d.ts.map +0 -1
  1361. package/esm/src/schemas/_base.js +0 -17
  1362. package/esm/src/schemas/_base.js.map +0 -1
  1363. package/esm/src/schemas/exchange/requests.d.ts +0 -8972
  1364. package/esm/src/schemas/exchange/requests.d.ts.map +0 -1
  1365. package/esm/src/schemas/exchange/requests.js +0 -1405
  1366. package/esm/src/schemas/exchange/requests.js.map +0 -1
  1367. package/esm/src/schemas/exchange/responses.d.ts +0 -567
  1368. package/esm/src/schemas/exchange/responses.d.ts.map +0 -1
  1369. package/esm/src/schemas/exchange/responses.js +0 -244
  1370. package/esm/src/schemas/exchange/responses.js.map +0 -1
  1371. package/esm/src/schemas/explorer/requests.d.ts +0 -44
  1372. package/esm/src/schemas/explorer/requests.d.ts.map +0 -1
  1373. package/esm/src/schemas/explorer/requests.js +0 -33
  1374. package/esm/src/schemas/explorer/requests.js.map +0 -1
  1375. package/esm/src/schemas/explorer/responses.d.ts +0 -360
  1376. package/esm/src/schemas/explorer/responses.d.ts.map +0 -1
  1377. package/esm/src/schemas/explorer/responses.js +0 -57
  1378. package/esm/src/schemas/explorer/responses.js.map +0 -1
  1379. package/esm/src/schemas/info/accounts.d.ts +0 -2905
  1380. package/esm/src/schemas/info/accounts.d.ts.map +0 -1
  1381. package/esm/src/schemas/info/accounts.js +0 -667
  1382. package/esm/src/schemas/info/accounts.js.map +0 -1
  1383. package/esm/src/schemas/info/assets.d.ts +0 -974
  1384. package/esm/src/schemas/info/assets.d.ts.map +0 -1
  1385. package/esm/src/schemas/info/assets.js +0 -285
  1386. package/esm/src/schemas/info/assets.js.map +0 -1
  1387. package/esm/src/schemas/info/markets.d.ts +0 -155
  1388. package/esm/src/schemas/info/markets.d.ts.map +0 -1
  1389. package/esm/src/schemas/info/markets.js +0 -70
  1390. package/esm/src/schemas/info/markets.js.map +0 -1
  1391. package/esm/src/schemas/info/orders.d.ts +0 -957
  1392. package/esm/src/schemas/info/orders.d.ts.map +0 -1
  1393. package/esm/src/schemas/info/orders.js +0 -298
  1394. package/esm/src/schemas/info/orders.js.map +0 -1
  1395. package/esm/src/schemas/info/requests.d.ts +0 -939
  1396. package/esm/src/schemas/info/requests.d.ts.map +0 -1
  1397. package/esm/src/schemas/info/requests.js +0 -698
  1398. package/esm/src/schemas/info/requests.js.map +0 -1
  1399. package/esm/src/schemas/info/validators.d.ts +0 -326
  1400. package/esm/src/schemas/info/validators.d.ts.map +0 -1
  1401. package/esm/src/schemas/info/validators.js +0 -126
  1402. package/esm/src/schemas/info/validators.js.map +0 -1
  1403. package/esm/src/schemas/info/vaults.d.ts +0 -447
  1404. package/esm/src/schemas/info/vaults.d.ts.map +0 -1
  1405. package/esm/src/schemas/info/vaults.js +0 -111
  1406. package/esm/src/schemas/info/vaults.js.map +0 -1
  1407. package/esm/src/schemas/mod.d.ts +0 -101
  1408. package/esm/src/schemas/mod.d.ts.map +0 -1
  1409. package/esm/src/schemas/mod.js +0 -115
  1410. package/esm/src/schemas/mod.js.map +0 -1
  1411. package/esm/src/schemas/subscriptions/requests.d.ts +0 -332
  1412. package/esm/src/schemas/subscriptions/requests.d.ts.map +0 -1
  1413. package/esm/src/schemas/subscriptions/requests.js +0 -259
  1414. package/esm/src/schemas/subscriptions/requests.js.map +0 -1
  1415. package/esm/src/schemas/subscriptions/responses.d.ts +0 -3643
  1416. package/esm/src/schemas/subscriptions/responses.d.ts.map +0 -1
  1417. package/esm/src/schemas/subscriptions/responses.js +0 -234
  1418. package/esm/src/schemas/subscriptions/responses.js.map +0 -1
  1419. package/esm/src/signing/signTypedData/ethers.d.ts +0 -45
  1420. package/esm/src/signing/signTypedData/ethers.d.ts.map +0 -1
  1421. package/esm/src/signing/signTypedData/ethers.js +0 -13
  1422. package/esm/src/signing/signTypedData/ethers.js.map +0 -1
  1423. package/esm/src/signing/signTypedData/mod.d.ts +0 -35
  1424. package/esm/src/signing/signTypedData/mod.d.ts.map +0 -1
  1425. package/esm/src/signing/signTypedData/mod.js +0 -88
  1426. package/esm/src/signing/signTypedData/mod.js.map +0 -1
  1427. package/esm/src/signing/signTypedData/private_key.d.ts +0 -27
  1428. package/esm/src/signing/signTypedData/private_key.d.ts.map +0 -1
  1429. package/esm/src/signing/signTypedData/private_key.js +0 -167
  1430. package/esm/src/signing/signTypedData/private_key.js.map +0 -1
  1431. package/esm/src/signing/signTypedData/viem.d.ts +0 -44
  1432. package/esm/src/signing/signTypedData/viem.d.ts.map +0 -1
  1433. package/esm/src/signing/signTypedData/viem.js +0 -7
  1434. package/esm/src/signing/signTypedData/viem.js.map +0 -1
  1435. package/esm/src/transports/_polyfills.d.ts.map +0 -1
  1436. package/esm/src/transports/_polyfills.js +0 -40
  1437. package/esm/src/transports/_polyfills.js.map +0 -1
  1438. package/esm/src/transports/base.d.ts +0 -48
  1439. package/esm/src/transports/base.d.ts.map +0 -1
  1440. package/esm/src/transports/base.js +0 -9
  1441. package/esm/src/transports/base.js.map +0 -1
  1442. package/esm/src/transports/http/http_transport.d.ts +0 -95
  1443. package/esm/src/transports/http/http_transport.d.ts.map +0 -1
  1444. package/esm/src/transports/http/http_transport.js +0 -152
  1445. package/esm/src/transports/http/http_transport.js.map +0 -1
  1446. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts +0 -61
  1447. package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts.map +0 -1
  1448. package/esm/src/transports/websocket/_hyperliquid_event_target.js +0 -31
  1449. package/esm/src/transports/websocket/_hyperliquid_event_target.js.map +0 -1
  1450. package/esm/src/transports/websocket/_reconnecting_websocket.d.ts.map +0 -1
  1451. package/esm/src/transports/websocket/_reconnecting_websocket.js.map +0 -1
  1452. package/esm/src/transports/websocket/_websocket_async_request.d.ts.map +0 -1
  1453. package/esm/src/transports/websocket/_websocket_async_request.js +0 -180
  1454. package/esm/src/transports/websocket/_websocket_async_request.js.map +0 -1
  1455. package/esm/src/transports/websocket/websocket_transport.d.ts +0 -123
  1456. package/esm/src/transports/websocket/websocket_transport.d.ts.map +0 -1
  1457. package/esm/src/transports/websocket/websocket_transport.js +0 -250
  1458. package/esm/src/transports/websocket/websocket_transport.js.map +0 -1
  1459. package/script/src/_errors.d.ts +0 -5
  1460. package/script/src/_errors.d.ts.map +0 -1
  1461. package/script/src/_errors.js +0 -12
  1462. package/script/src/_errors.js.map +0 -1
  1463. package/script/src/clients/exchange.d.ts +0 -1424
  1464. package/script/src/clients/exchange.d.ts.map +0 -1
  1465. package/script/src/clients/exchange.js +0 -1632
  1466. package/script/src/clients/exchange.js.map +0 -1
  1467. package/script/src/clients/info.d.ts +0 -1385
  1468. package/script/src/clients/info.d.ts.map +0 -1
  1469. package/script/src/clients/info.js +0 -1567
  1470. package/script/src/clients/info.js.map +0 -1
  1471. package/script/src/clients/multiSign.d.ts +0 -55
  1472. package/script/src/clients/multiSign.d.ts.map +0 -1
  1473. package/script/src/clients/multiSign.js +0 -103
  1474. package/script/src/clients/multiSign.js.map +0 -1
  1475. package/script/src/clients/subscription.d.ts +0 -537
  1476. package/script/src/clients/subscription.d.ts.map +0 -1
  1477. package/script/src/clients/subscription.js +0 -613
  1478. package/script/src/clients/subscription.js.map +0 -1
  1479. package/script/src/schemas/_base.d.ts +0 -16
  1480. package/script/src/schemas/_base.d.ts.map +0 -1
  1481. package/script/src/schemas/_base.js +0 -53
  1482. package/script/src/schemas/_base.js.map +0 -1
  1483. package/script/src/schemas/exchange/requests.d.ts +0 -8972
  1484. package/script/src/schemas/exchange/requests.d.ts.map +0 -1
  1485. package/script/src/schemas/exchange/requests.js +0 -1441
  1486. package/script/src/schemas/exchange/requests.js.map +0 -1
  1487. package/script/src/schemas/exchange/responses.d.ts +0 -567
  1488. package/script/src/schemas/exchange/responses.d.ts.map +0 -1
  1489. package/script/src/schemas/exchange/responses.js +0 -280
  1490. package/script/src/schemas/exchange/responses.js.map +0 -1
  1491. package/script/src/schemas/explorer/requests.d.ts +0 -44
  1492. package/script/src/schemas/explorer/requests.d.ts.map +0 -1
  1493. package/script/src/schemas/explorer/requests.js +0 -69
  1494. package/script/src/schemas/explorer/requests.js.map +0 -1
  1495. package/script/src/schemas/explorer/responses.d.ts +0 -360
  1496. package/script/src/schemas/explorer/responses.d.ts.map +0 -1
  1497. package/script/src/schemas/explorer/responses.js +0 -93
  1498. package/script/src/schemas/explorer/responses.js.map +0 -1
  1499. package/script/src/schemas/info/accounts.d.ts +0 -2905
  1500. package/script/src/schemas/info/accounts.d.ts.map +0 -1
  1501. package/script/src/schemas/info/accounts.js +0 -703
  1502. package/script/src/schemas/info/accounts.js.map +0 -1
  1503. package/script/src/schemas/info/assets.d.ts +0 -974
  1504. package/script/src/schemas/info/assets.d.ts.map +0 -1
  1505. package/script/src/schemas/info/assets.js +0 -321
  1506. package/script/src/schemas/info/assets.js.map +0 -1
  1507. package/script/src/schemas/info/markets.d.ts +0 -155
  1508. package/script/src/schemas/info/markets.d.ts.map +0 -1
  1509. package/script/src/schemas/info/markets.js +0 -106
  1510. package/script/src/schemas/info/markets.js.map +0 -1
  1511. package/script/src/schemas/info/orders.d.ts +0 -957
  1512. package/script/src/schemas/info/orders.d.ts.map +0 -1
  1513. package/script/src/schemas/info/orders.js +0 -334
  1514. package/script/src/schemas/info/orders.js.map +0 -1
  1515. package/script/src/schemas/info/requests.d.ts +0 -939
  1516. package/script/src/schemas/info/requests.d.ts.map +0 -1
  1517. package/script/src/schemas/info/requests.js +0 -735
  1518. package/script/src/schemas/info/requests.js.map +0 -1
  1519. package/script/src/schemas/info/validators.d.ts +0 -326
  1520. package/script/src/schemas/info/validators.d.ts.map +0 -1
  1521. package/script/src/schemas/info/validators.js +0 -162
  1522. package/script/src/schemas/info/validators.js.map +0 -1
  1523. package/script/src/schemas/info/vaults.d.ts +0 -447
  1524. package/script/src/schemas/info/vaults.d.ts.map +0 -1
  1525. package/script/src/schemas/info/vaults.js +0 -147
  1526. package/script/src/schemas/info/vaults.js.map +0 -1
  1527. package/script/src/schemas/mod.d.ts +0 -101
  1528. package/script/src/schemas/mod.d.ts.map +0 -1
  1529. package/script/src/schemas/mod.js +0 -157
  1530. package/script/src/schemas/mod.js.map +0 -1
  1531. package/script/src/schemas/subscriptions/requests.d.ts +0 -332
  1532. package/script/src/schemas/subscriptions/requests.d.ts.map +0 -1
  1533. package/script/src/schemas/subscriptions/requests.js +0 -295
  1534. package/script/src/schemas/subscriptions/requests.js.map +0 -1
  1535. package/script/src/schemas/subscriptions/responses.d.ts +0 -3643
  1536. package/script/src/schemas/subscriptions/responses.d.ts.map +0 -1
  1537. package/script/src/schemas/subscriptions/responses.js +0 -270
  1538. package/script/src/schemas/subscriptions/responses.js.map +0 -1
  1539. package/script/src/signing/signTypedData/ethers.d.ts +0 -45
  1540. package/script/src/signing/signTypedData/ethers.d.ts.map +0 -1
  1541. package/script/src/signing/signTypedData/ethers.js +0 -17
  1542. package/script/src/signing/signTypedData/ethers.js.map +0 -1
  1543. package/script/src/signing/signTypedData/mod.d.ts +0 -35
  1544. package/script/src/signing/signTypedData/mod.d.ts.map +0 -1
  1545. package/script/src/signing/signTypedData/mod.js +0 -93
  1546. package/script/src/signing/signTypedData/mod.js.map +0 -1
  1547. package/script/src/signing/signTypedData/private_key.d.ts +0 -27
  1548. package/script/src/signing/signTypedData/private_key.d.ts.map +0 -1
  1549. package/script/src/signing/signTypedData/private_key.js +0 -205
  1550. package/script/src/signing/signTypedData/private_key.js.map +0 -1
  1551. package/script/src/signing/signTypedData/viem.d.ts +0 -44
  1552. package/script/src/signing/signTypedData/viem.d.ts.map +0 -1
  1553. package/script/src/signing/signTypedData/viem.js +0 -10
  1554. package/script/src/signing/signTypedData/viem.js.map +0 -1
  1555. package/script/src/transports/_polyfills.d.ts.map +0 -1
  1556. package/script/src/transports/_polyfills.js +0 -43
  1557. package/script/src/transports/_polyfills.js.map +0 -1
  1558. package/script/src/transports/base.d.ts +0 -48
  1559. package/script/src/transports/base.d.ts.map +0 -1
  1560. package/script/src/transports/base.js +0 -13
  1561. package/script/src/transports/base.js.map +0 -1
  1562. package/script/src/transports/http/http_transport.d.ts +0 -95
  1563. package/script/src/transports/http/http_transport.d.ts.map +0 -1
  1564. package/script/src/transports/http/http_transport.js +0 -157
  1565. package/script/src/transports/http/http_transport.js.map +0 -1
  1566. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts +0 -61
  1567. package/script/src/transports/websocket/_hyperliquid_event_target.d.ts.map +0 -1
  1568. package/script/src/transports/websocket/_hyperliquid_event_target.js +0 -68
  1569. package/script/src/transports/websocket/_hyperliquid_event_target.js.map +0 -1
  1570. package/script/src/transports/websocket/_reconnecting_websocket.d.ts.map +0 -1
  1571. package/script/src/transports/websocket/_reconnecting_websocket.js.map +0 -1
  1572. package/script/src/transports/websocket/_websocket_async_request.d.ts.map +0 -1
  1573. package/script/src/transports/websocket/_websocket_async_request.js +0 -185
  1574. package/script/src/transports/websocket/_websocket_async_request.js.map +0 -1
  1575. package/script/src/transports/websocket/websocket_transport.d.ts +0 -123
  1576. package/script/src/transports/websocket/websocket_transport.d.ts.map +0 -1
  1577. package/script/src/transports/websocket/websocket_transport.js +0 -255
  1578. package/script/src/transports/websocket/websocket_transport.js.map +0 -1
  1579. package/src/src/_errors.ts +0 -7
  1580. package/src/src/clients/exchange.ts +0 -2257
  1581. package/src/src/clients/info.ts +0 -2110
  1582. package/src/src/clients/multiSign.ts +0 -185
  1583. package/src/src/clients/subscription.ts +0 -841
  1584. package/src/src/schemas/_base.ts +0 -60
  1585. package/src/src/schemas/exchange/requests.ts +0 -3055
  1586. package/src/src/schemas/exchange/responses.ts +0 -540
  1587. package/src/src/schemas/explorer/requests.ts +0 -65
  1588. package/src/src/schemas/explorer/responses.ts +0 -138
  1589. package/src/src/schemas/info/accounts.ts +0 -1598
  1590. package/src/src/schemas/info/assets.ts +0 -693
  1591. package/src/src/schemas/info/markets.ts +0 -171
  1592. package/src/src/schemas/info/orders.ts +0 -597
  1593. package/src/src/schemas/info/requests.ts +0 -1401
  1594. package/src/src/schemas/info/validators.ts +0 -297
  1595. package/src/src/schemas/info/vaults.ts +0 -262
  1596. package/src/src/schemas/mod.ts +0 -121
  1597. package/src/src/schemas/subscriptions/requests.ts +0 -514
  1598. package/src/src/schemas/subscriptions/responses.ts +0 -576
  1599. package/src/src/signing/signTypedData/ethers.ts +0 -59
  1600. package/src/src/signing/signTypedData/mod.ts +0 -121
  1601. package/src/src/signing/signTypedData/private_key.ts +0 -234
  1602. package/src/src/signing/signTypedData/viem.ts +0 -55
  1603. package/src/src/transports/_polyfills.ts +0 -41
  1604. package/src/src/transports/base.ts +0 -54
  1605. package/src/src/transports/http/http_transport.ts +0 -219
  1606. package/src/src/transports/websocket/_hyperliquid_event_target.ts +0 -91
  1607. package/src/src/transports/websocket/_reconnecting_websocket.ts +0 -392
  1608. package/src/src/transports/websocket/_websocket_async_request.ts +0 -227
  1609. package/src/src/transports/websocket/websocket_transport.ts +0 -353
  1610. /package/esm/src/{transports → transport}/_polyfills.d.ts +0 -0
  1611. /package/esm/src/{transports → transport}/websocket/_reconnecting_websocket.d.ts +0 -0
  1612. /package/esm/src/{transports → transport}/websocket/_reconnecting_websocket.js +0 -0
  1613. /package/esm/src/{transports → transport}/websocket/_websocket_async_request.d.ts +0 -0
  1614. /package/script/src/{transports → transport}/_polyfills.d.ts +0 -0
  1615. /package/script/src/{transports → transport}/websocket/_reconnecting_websocket.d.ts +0 -0
  1616. /package/script/src/{transports → transport}/websocket/_reconnecting_websocket.js +0 -0
  1617. /package/script/src/{transports → transport}/websocket/_websocket_async_request.d.ts +0 -0
@@ -1,2905 +0,0 @@
1
- import * as v from "valibot";
2
- /** User active asset data. */
3
- export declare const ActiveAssetData: v.SchemaWithPipe<readonly [v.ObjectSchema<{
4
- /** User address. */
5
- 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.">]>;
6
- /** Asset symbol (e.g., BTC). */
7
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol (e.g., BTC).">]>;
8
- /** Leverage configuration. */
9
- readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
10
- /** Leverage type. */
11
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
12
- /** Leverage value used. */
13
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
14
- /** Amount of USD used (1 = 1$). */
15
- readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
16
- }, undefined>, v.ObjectSchema<{
17
- /** Leverage type. */
18
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
19
- /** Leverage value used. */
20
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
21
- }, undefined>], undefined>, v.DescriptionAction<{
22
- type: "isolated";
23
- value: number;
24
- rawUsd: string;
25
- } | {
26
- type: "cross";
27
- value: number;
28
- }, "Leverage configuration.">]>;
29
- /** Maximum trade size range [min, max]. */
30
- readonly maxTradeSzs: v.SchemaWithPipe<readonly [v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, v.DescriptionAction<[string, string], "Maximum trade size range [min, max].">]>;
31
- /** Available to trade range [min, max]. */
32
- readonly availableToTrade: v.SchemaWithPipe<readonly [v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, v.DescriptionAction<[string, string], "Available to trade range [min, max].">]>;
33
- /** Mark price. */
34
- readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price.">]>;
35
- }, undefined>, v.DescriptionAction<{
36
- user: `0x${string}`;
37
- coin: string;
38
- leverage: {
39
- type: "isolated";
40
- value: number;
41
- rawUsd: string;
42
- } | {
43
- type: "cross";
44
- value: number;
45
- };
46
- maxTradeSzs: [string, string];
47
- availableToTrade: [string, string];
48
- markPx: string;
49
- }, "User active asset data.">]>;
50
- export type ActiveAssetData = v.InferOutput<typeof ActiveAssetData>;
51
- /** Position for a specific asset. */
52
- export declare const AssetPosition: v.SchemaWithPipe<readonly [v.ObjectSchema<{
53
- /** Position type. */
54
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
55
- /** Position details. */
56
- readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
57
- /** Asset symbol. */
58
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
59
- /** Signed position size. */
60
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
61
- /** Leverage details. */
62
- readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
63
- /** Leverage type. */
64
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
65
- /** Leverage value used. */
66
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
67
- /** Amount of USD used (1 = 1$). */
68
- readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
69
- }, undefined>, v.ObjectSchema<{
70
- /** Leverage type. */
71
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
72
- /** Leverage value used. */
73
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
74
- }, undefined>], undefined>, v.DescriptionAction<{
75
- type: "isolated";
76
- value: number;
77
- rawUsd: string;
78
- } | {
79
- type: "cross";
80
- value: number;
81
- }, "Leverage details.">]>;
82
- /** Average entry price. */
83
- readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
84
- /** Position value. */
85
- readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
86
- /** Unrealized profit and loss. */
87
- readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
88
- /** Return on equity. */
89
- readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
90
- /** Liquidation price. */
91
- readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
92
- /** Margin used. */
93
- readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
94
- /** Maximum allowed leverage. */
95
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
96
- /** Cumulative funding details. */
97
- readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
98
- /** Total funding paid or received since account opening. */
99
- readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
100
- /** Funding accumulated since the position was opened. */
101
- readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
102
- /** Funding accumulated since the last change in position size. */
103
- readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
104
- }, undefined>, v.DescriptionAction<{
105
- allTime: string;
106
- sinceOpen: string;
107
- sinceChange: string;
108
- }, "Cumulative funding details.">]>;
109
- }, undefined>, v.DescriptionAction<{
110
- coin: string;
111
- szi: string;
112
- leverage: {
113
- type: "isolated";
114
- value: number;
115
- rawUsd: string;
116
- } | {
117
- type: "cross";
118
- value: number;
119
- };
120
- entryPx: string;
121
- positionValue: string;
122
- unrealizedPnl: string;
123
- returnOnEquity: string;
124
- liquidationPx: string | null;
125
- marginUsed: string;
126
- maxLeverage: number;
127
- cumFunding: {
128
- allTime: string;
129
- sinceOpen: string;
130
- sinceChange: string;
131
- };
132
- }, "Position details.">]>;
133
- }, undefined>, v.DescriptionAction<{
134
- type: "oneWay";
135
- position: {
136
- coin: string;
137
- szi: string;
138
- leverage: {
139
- type: "isolated";
140
- value: number;
141
- rawUsd: string;
142
- } | {
143
- type: "cross";
144
- value: number;
145
- };
146
- entryPx: string;
147
- positionValue: string;
148
- unrealizedPnl: string;
149
- returnOnEquity: string;
150
- liquidationPx: string | null;
151
- marginUsed: string;
152
- maxLeverage: number;
153
- cumFunding: {
154
- allTime: string;
155
- sinceOpen: string;
156
- sinceChange: string;
157
- };
158
- };
159
- }, "Position for a specific asset.">]>;
160
- export type AssetPosition = v.InferOutput<typeof AssetPosition>;
161
- /** Escrowed balance for a specific asset. */
162
- export declare const EvmEscrowsBalance: v.SchemaWithPipe<readonly [v.ObjectSchema<{
163
- /** Asset symbol. */
164
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
165
- /** Unique identifier for the token. */
166
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
167
- /** Total balance. */
168
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
169
- }, undefined>, v.DescriptionAction<{
170
- coin: string;
171
- token: number;
172
- total: string;
173
- }, "Escrowed balance for a specific asset.">]>;
174
- export type EvmEscrowsBalance = v.InferOutput<typeof EvmEscrowsBalance>;
175
- /** Extra agent details for a user. */
176
- export declare const ExtraAgent: v.SchemaWithPipe<readonly [v.ObjectSchema<{
177
- /** Extra agent address. */
178
- readonly address: 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}`, "Extra agent address.">]>;
179
- /** Extra agent name. */
180
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "Extra agent name.">]>;
181
- /** Validity period as a timestamp (in ms since epoch). */
182
- readonly validUntil: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Validity period as a timestamp (in ms since epoch).">]>;
183
- }, undefined>, v.DescriptionAction<{
184
- address: `0x${string}`;
185
- name: string;
186
- validUntil: number;
187
- }, "Extra agent details for a user.">]>;
188
- export type ExtraAgent = v.InferOutput<typeof ExtraAgent>;
189
- /** Legal verification status for a user. */
190
- export declare const LegalCheck: v.SchemaWithPipe<readonly [v.ObjectSchema<{
191
- /** Whether the user IP address is allowed. */
192
- readonly ipAllowed: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether the user IP address is allowed.">]>;
193
- /** Whether the user has accepted the terms of service. */
194
- readonly acceptedTerms: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether the user has accepted the terms of service.">]>;
195
- /** Whether the user is allowed to use the platform. */
196
- readonly userAllowed: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether the user is allowed to use the platform.">]>;
197
- }, undefined>, v.DescriptionAction<{
198
- ipAllowed: boolean;
199
- acceptedTerms: boolean;
200
- userAllowed: boolean;
201
- }, "Legal verification status for a user.">]>;
202
- export type LegalCheck = v.InferOutput<typeof LegalCheck>;
203
- /** Multi-sig signers for a user. */
204
- export declare const MultiSigSigners: v.SchemaWithPipe<readonly [v.ObjectSchema<{
205
- /** Authorized users addresses. */
206
- readonly authorizedUsers: v.SchemaWithPipe<readonly [v.ArraySchema<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.MinLengthAction<`0x${string}`[], 1, undefined>, v.DescriptionAction<`0x${string}`[], "Authorized users addresses.">]>;
207
- /** Threshold number of signatures required. */
208
- readonly threshold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Threshold number of signatures required.">]>;
209
- }, undefined>, v.DescriptionAction<{
210
- authorizedUsers: `0x${string}`[];
211
- threshold: number;
212
- }, "Multi-sig signers for a user.">]>;
213
- export type MultiSigSigners = v.InferOutput<typeof MultiSigSigners>;
214
- /** Account summary for perpetual trading. */
215
- export declare const PerpsClearinghouseState: v.SchemaWithPipe<readonly [v.ObjectSchema<{
216
- /** Margin summary details. */
217
- readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
218
- /** Total account value. */
219
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
220
- /** Total notional position value. */
221
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
222
- /** Total raw USD value. */
223
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
224
- /** Total margin used. */
225
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
226
- }, undefined>, v.DescriptionAction<{
227
- accountValue: string;
228
- totalNtlPos: string;
229
- totalRawUsd: string;
230
- totalMarginUsed: string;
231
- }, "Margin summary details.">]>;
232
- /** Cross-margin summary details. */
233
- readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
234
- /** Total account value. */
235
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
236
- /** Total notional position value. */
237
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
238
- /** Total raw USD value. */
239
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
240
- /** Total margin used. */
241
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
242
- }, undefined>, v.DescriptionAction<{
243
- accountValue: string;
244
- totalNtlPos: string;
245
- totalRawUsd: string;
246
- totalMarginUsed: string;
247
- }, "Cross-margin summary details.">]>;
248
- /** Maintenance margin used for cross-margin positions. */
249
- readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
250
- /** Amount available for withdrawal. */
251
- readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
252
- /** List of asset positions. */
253
- readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
254
- /** Position type. */
255
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
256
- /** Position details. */
257
- readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
258
- /** Asset symbol. */
259
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
260
- /** Signed position size. */
261
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
262
- /** Leverage details. */
263
- readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
264
- /** Leverage type. */
265
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
266
- /** Leverage value used. */
267
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
268
- /** Amount of USD used (1 = 1$). */
269
- readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
270
- }, undefined>, v.ObjectSchema<{
271
- /** Leverage type. */
272
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
273
- /** Leverage value used. */
274
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
275
- }, undefined>], undefined>, v.DescriptionAction<{
276
- type: "isolated";
277
- value: number;
278
- rawUsd: string;
279
- } | {
280
- type: "cross";
281
- value: number;
282
- }, "Leverage details.">]>;
283
- /** Average entry price. */
284
- readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
285
- /** Position value. */
286
- readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
287
- /** Unrealized profit and loss. */
288
- readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
289
- /** Return on equity. */
290
- readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
291
- /** Liquidation price. */
292
- readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
293
- /** Margin used. */
294
- readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
295
- /** Maximum allowed leverage. */
296
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
297
- /** Cumulative funding details. */
298
- readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
299
- /** Total funding paid or received since account opening. */
300
- readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
301
- /** Funding accumulated since the position was opened. */
302
- readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
303
- /** Funding accumulated since the last change in position size. */
304
- readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
305
- }, undefined>, v.DescriptionAction<{
306
- allTime: string;
307
- sinceOpen: string;
308
- sinceChange: string;
309
- }, "Cumulative funding details.">]>;
310
- }, undefined>, v.DescriptionAction<{
311
- coin: string;
312
- szi: string;
313
- leverage: {
314
- type: "isolated";
315
- value: number;
316
- rawUsd: string;
317
- } | {
318
- type: "cross";
319
- value: number;
320
- };
321
- entryPx: string;
322
- positionValue: string;
323
- unrealizedPnl: string;
324
- returnOnEquity: string;
325
- liquidationPx: string | null;
326
- marginUsed: string;
327
- maxLeverage: number;
328
- cumFunding: {
329
- allTime: string;
330
- sinceOpen: string;
331
- sinceChange: string;
332
- };
333
- }, "Position details.">]>;
334
- }, undefined>, v.DescriptionAction<{
335
- type: "oneWay";
336
- position: {
337
- coin: string;
338
- szi: string;
339
- leverage: {
340
- type: "isolated";
341
- value: number;
342
- rawUsd: string;
343
- } | {
344
- type: "cross";
345
- value: number;
346
- };
347
- entryPx: string;
348
- positionValue: string;
349
- unrealizedPnl: string;
350
- returnOnEquity: string;
351
- liquidationPx: string | null;
352
- marginUsed: string;
353
- maxLeverage: number;
354
- cumFunding: {
355
- allTime: string;
356
- sinceOpen: string;
357
- sinceChange: string;
358
- };
359
- };
360
- }, "Position for a specific asset.">]>, undefined>, v.DescriptionAction<{
361
- type: "oneWay";
362
- position: {
363
- coin: string;
364
- szi: string;
365
- leverage: {
366
- type: "isolated";
367
- value: number;
368
- rawUsd: string;
369
- } | {
370
- type: "cross";
371
- value: number;
372
- };
373
- entryPx: string;
374
- positionValue: string;
375
- unrealizedPnl: string;
376
- returnOnEquity: string;
377
- liquidationPx: string | null;
378
- marginUsed: string;
379
- maxLeverage: number;
380
- cumFunding: {
381
- allTime: string;
382
- sinceOpen: string;
383
- sinceChange: string;
384
- };
385
- };
386
- }[], "List of asset positions.">]>;
387
- /** Timestamp when data was retrieved (in ms since epoch). */
388
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
389
- }, undefined>, v.DescriptionAction<{
390
- marginSummary: {
391
- accountValue: string;
392
- totalNtlPos: string;
393
- totalRawUsd: string;
394
- totalMarginUsed: string;
395
- };
396
- crossMarginSummary: {
397
- accountValue: string;
398
- totalNtlPos: string;
399
- totalRawUsd: string;
400
- totalMarginUsed: string;
401
- };
402
- crossMaintenanceMarginUsed: string;
403
- withdrawable: string;
404
- assetPositions: {
405
- type: "oneWay";
406
- position: {
407
- coin: string;
408
- szi: string;
409
- leverage: {
410
- type: "isolated";
411
- value: number;
412
- rawUsd: string;
413
- } | {
414
- type: "cross";
415
- value: number;
416
- };
417
- entryPx: string;
418
- positionValue: string;
419
- unrealizedPnl: string;
420
- returnOnEquity: string;
421
- liquidationPx: string | null;
422
- marginUsed: string;
423
- maxLeverage: number;
424
- cumFunding: {
425
- allTime: string;
426
- sinceOpen: string;
427
- sinceChange: string;
428
- };
429
- };
430
- }[];
431
- time: number;
432
- }, "Account summary for perpetual trading.">]>;
433
- export type PerpsClearinghouseState = v.InferOutput<typeof PerpsClearinghouseState>;
434
- /** Portfolio metrics snapshot. */
435
- export declare const Portfolio: v.SchemaWithPipe<readonly [v.ObjectSchema<{
436
- /** History entries for account value as [timestamp, value]. */
437
- readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
438
- /** History entries for profit and loss as [timestamp, value]. */
439
- readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
440
- /** Volume metric for the portfolio. */
441
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
442
- }, undefined>, v.DescriptionAction<{
443
- accountValueHistory: [number, string][];
444
- pnlHistory: [number, string][];
445
- vlm: string;
446
- }, "Portfolio metrics snapshot.">]>;
447
- export type Portfolio = v.InferOutput<typeof Portfolio>;
448
- /** Portfolio metrics grouped by time periods. */
449
- export declare const PortfolioPeriods: v.SchemaWithPipe<readonly [v.TupleSchema<[v.TupleSchema<[v.LiteralSchema<"day", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
450
- /** History entries for account value as [timestamp, value]. */
451
- readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
452
- /** History entries for profit and loss as [timestamp, value]. */
453
- readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
454
- /** Volume metric for the portfolio. */
455
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
456
- }, undefined>, v.DescriptionAction<{
457
- accountValueHistory: [number, string][];
458
- pnlHistory: [number, string][];
459
- vlm: string;
460
- }, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"week", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
461
- /** History entries for account value as [timestamp, value]. */
462
- readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
463
- /** History entries for profit and loss as [timestamp, value]. */
464
- readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
465
- /** Volume metric for the portfolio. */
466
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
467
- }, undefined>, v.DescriptionAction<{
468
- accountValueHistory: [number, string][];
469
- pnlHistory: [number, string][];
470
- vlm: string;
471
- }, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"month", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
472
- /** History entries for account value as [timestamp, value]. */
473
- readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
474
- /** History entries for profit and loss as [timestamp, value]. */
475
- readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
476
- /** Volume metric for the portfolio. */
477
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
478
- }, undefined>, v.DescriptionAction<{
479
- accountValueHistory: [number, string][];
480
- pnlHistory: [number, string][];
481
- vlm: string;
482
- }, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"allTime", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
483
- /** History entries for account value as [timestamp, value]. */
484
- readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
485
- /** History entries for profit and loss as [timestamp, value]. */
486
- readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
487
- /** Volume metric for the portfolio. */
488
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
489
- }, undefined>, v.DescriptionAction<{
490
- accountValueHistory: [number, string][];
491
- pnlHistory: [number, string][];
492
- vlm: string;
493
- }, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"perpDay", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
494
- /** History entries for account value as [timestamp, value]. */
495
- readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
496
- /** History entries for profit and loss as [timestamp, value]. */
497
- readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
498
- /** Volume metric for the portfolio. */
499
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
500
- }, undefined>, v.DescriptionAction<{
501
- accountValueHistory: [number, string][];
502
- pnlHistory: [number, string][];
503
- vlm: string;
504
- }, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"perpWeek", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
505
- /** History entries for account value as [timestamp, value]. */
506
- readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
507
- /** History entries for profit and loss as [timestamp, value]. */
508
- readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
509
- /** Volume metric for the portfolio. */
510
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
511
- }, undefined>, v.DescriptionAction<{
512
- accountValueHistory: [number, string][];
513
- pnlHistory: [number, string][];
514
- vlm: string;
515
- }, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"perpMonth", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
516
- /** History entries for account value as [timestamp, value]. */
517
- readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
518
- /** History entries for profit and loss as [timestamp, value]. */
519
- readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
520
- /** Volume metric for the portfolio. */
521
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
522
- }, undefined>, v.DescriptionAction<{
523
- accountValueHistory: [number, string][];
524
- pnlHistory: [number, string][];
525
- vlm: string;
526
- }, "Portfolio metrics snapshot.">]>], undefined>, v.TupleSchema<[v.LiteralSchema<"perpAllTime", undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
527
- /** History entries for account value as [timestamp, value]. */
528
- readonly accountValueHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for account value as [timestamp, value].">]>;
529
- /** History entries for profit and loss as [timestamp, value]. */
530
- readonly pnlHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[number, string][], "History entries for profit and loss as [timestamp, value].">]>;
531
- /** Volume metric for the portfolio. */
532
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Volume metric for the portfolio.">]>;
533
- }, undefined>, v.DescriptionAction<{
534
- accountValueHistory: [number, string][];
535
- pnlHistory: [number, string][];
536
- vlm: string;
537
- }, "Portfolio metrics snapshot.">]>], undefined>], undefined>, v.DescriptionAction<[["day", {
538
- accountValueHistory: [number, string][];
539
- pnlHistory: [number, string][];
540
- vlm: string;
541
- }], ["week", {
542
- accountValueHistory: [number, string][];
543
- pnlHistory: [number, string][];
544
- vlm: string;
545
- }], ["month", {
546
- accountValueHistory: [number, string][];
547
- pnlHistory: [number, string][];
548
- vlm: string;
549
- }], ["allTime", {
550
- accountValueHistory: [number, string][];
551
- pnlHistory: [number, string][];
552
- vlm: string;
553
- }], ["perpDay", {
554
- accountValueHistory: [number, string][];
555
- pnlHistory: [number, string][];
556
- vlm: string;
557
- }], ["perpWeek", {
558
- accountValueHistory: [number, string][];
559
- pnlHistory: [number, string][];
560
- vlm: string;
561
- }], ["perpMonth", {
562
- accountValueHistory: [number, string][];
563
- pnlHistory: [number, string][];
564
- vlm: string;
565
- }], ["perpAllTime", {
566
- accountValueHistory: [number, string][];
567
- pnlHistory: [number, string][];
568
- vlm: string;
569
- }]], "Portfolio metrics grouped by time periods.">]>;
570
- export type PortfolioPeriods = v.InferOutput<typeof PortfolioPeriods>;
571
- /** Pre-transfer user existence check result. */
572
- export declare const PreTransferCheck: v.SchemaWithPipe<readonly [v.ObjectSchema<{
573
- /** Activation fee. */
574
- readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Activation fee.">]>;
575
- /** Whether the user is sanctioned. */
576
- readonly isSanctioned: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether the user is sanctioned.">]>;
577
- /** Whether the user exists. */
578
- readonly userExists: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether the user exists.">]>;
579
- /** Whether the user has sent a transaction. */
580
- readonly userHasSentTx: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether the user has sent a transaction.">]>;
581
- }, undefined>, v.DescriptionAction<{
582
- fee: string;
583
- isSanctioned: boolean;
584
- userExists: boolean;
585
- userHasSentTx: boolean;
586
- }, "Pre-transfer user existence check result.">]>;
587
- export type PreTransferCheck = v.InferOutput<typeof PreTransferCheck>;
588
- /** Referral details for a user. */
589
- export declare const Referral: v.SchemaWithPipe<readonly [v.ObjectSchema<{
590
- /** Referrer details. */
591
- readonly referredBy: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
592
- /** Referrer address. */
593
- readonly referrer: 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}`, "Referrer address.">]>;
594
- /** Referral code used. */
595
- readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "Referral code used.">]>;
596
- }, undefined>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<{
597
- referrer: `0x${string}`;
598
- code: string;
599
- } | null, "Referrer details.">]>;
600
- /** Cumulative traded volume. */
601
- readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
602
- /** Rewards earned but not yet claimed. */
603
- readonly unclaimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards earned but not yet claimed.">]>;
604
- /** Rewards that have been claimed. */
605
- readonly claimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards that have been claimed.">]>;
606
- /** Builder reward amount. */
607
- readonly builderRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Builder reward amount.">]>;
608
- /** Current state of the referrer. */
609
- readonly referrerState: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
610
- /** Referrer is ready to receive rewards. */
611
- readonly stage: v.SchemaWithPipe<readonly [v.LiteralSchema<"ready", undefined>, v.DescriptionAction<"ready", "Referrer is ready to receive rewards.">]>;
612
- /** Referral program details. */
613
- readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
614
- /** Assigned referral code. */
615
- readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "Assigned referral code.">]>;
616
- /** Total number of referrals. */
617
- readonly nReferrals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Total number of referrals.">]>;
618
- /** Summary of each referral state. */
619
- readonly referralStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
620
- /** Cumulative traded volume. */
621
- readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
622
- /** Total fees rewarded to the referred user since referral. */
623
- readonly cumRewardedFeesSinceReferred: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referred user since referral.">]>;
624
- /** Total fees rewarded to the referrer from referred trades. */
625
- readonly cumFeesRewardedToReferrer: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referrer from referred trades.">]>;
626
- /** Timestamp when the referred user joined (in ms since epoch). */
627
- readonly timeJoined: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the referred user joined (in ms since epoch).">]>;
628
- /** Address of the referred user. */
629
- 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}`, "Address of the referred user.">]>;
630
- /** Mapping of token IDs to referral reward states. */
631
- readonly tokenToState: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.ObjectSchema<{
632
- /** Cumulative traded volume. */
633
- readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
634
- /** Total fees rewarded to the referred user since referral. */
635
- readonly cumRewardedFeesSinceReferred: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referred user since referral.">]>;
636
- /** Total fees rewarded to the referrer from referred trades. */
637
- readonly cumFeesRewardedToReferrer: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total fees rewarded to the referrer from referred trades.">]>;
638
- }, undefined>], undefined>, undefined>, v.DescriptionAction<[number, {
639
- cumVlm: string;
640
- cumRewardedFeesSinceReferred: string;
641
- cumFeesRewardedToReferrer: string;
642
- }][], "Mapping of token IDs to referral reward states.">]>;
643
- }, undefined>, undefined>, v.DescriptionAction<{
644
- cumVlm: string;
645
- cumRewardedFeesSinceReferred: string;
646
- cumFeesRewardedToReferrer: string;
647
- timeJoined: number;
648
- user: `0x${string}`;
649
- tokenToState: [number, {
650
- cumVlm: string;
651
- cumRewardedFeesSinceReferred: string;
652
- cumFeesRewardedToReferrer: string;
653
- }][];
654
- }[], "Summary of each referral state.">]>;
655
- }, undefined>, v.DescriptionAction<{
656
- code: string;
657
- nReferrals: number;
658
- referralStates: {
659
- cumVlm: string;
660
- cumRewardedFeesSinceReferred: string;
661
- cumFeesRewardedToReferrer: string;
662
- timeJoined: number;
663
- user: `0x${string}`;
664
- tokenToState: [number, {
665
- cumVlm: string;
666
- cumRewardedFeesSinceReferred: string;
667
- cumFeesRewardedToReferrer: string;
668
- }][];
669
- }[];
670
- }, "Referral program details.">]>;
671
- }, undefined>, v.ObjectSchema<{
672
- /** Referrer needs to create a referral code. */
673
- readonly stage: v.SchemaWithPipe<readonly [v.LiteralSchema<"needToCreateCode", undefined>, v.DescriptionAction<"needToCreateCode", "Referrer needs to create a referral code.">]>;
674
- }, undefined>, v.ObjectSchema<{
675
- /** Referrer must complete a trade before earning rewards. */
676
- readonly stage: v.SchemaWithPipe<readonly [v.LiteralSchema<"needToTrade", undefined>, v.DescriptionAction<"needToTrade", "Referrer must complete a trade before earning rewards.">]>;
677
- /** Required trading volume details for activation. */
678
- readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
679
- /** Required trading volume. */
680
- readonly required: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Required trading volume.">]>;
681
- }, undefined>, v.DescriptionAction<{
682
- required: string;
683
- }, "Required trading volume details for activation.">]>;
684
- }, undefined>], undefined>, v.DescriptionAction<{
685
- stage: "ready";
686
- data: {
687
- code: string;
688
- nReferrals: number;
689
- referralStates: {
690
- cumVlm: string;
691
- cumRewardedFeesSinceReferred: string;
692
- cumFeesRewardedToReferrer: string;
693
- timeJoined: number;
694
- user: `0x${string}`;
695
- tokenToState: [number, {
696
- cumVlm: string;
697
- cumRewardedFeesSinceReferred: string;
698
- cumFeesRewardedToReferrer: string;
699
- }][];
700
- }[];
701
- };
702
- } | {
703
- stage: "needToCreateCode";
704
- } | {
705
- stage: "needToTrade";
706
- data: {
707
- required: string;
708
- };
709
- }, "Current state of the referrer.">]>;
710
- /** History of referral rewards. */
711
- readonly rewardHistory: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
712
- /** Amount of earned rewards. */
713
- readonly earned: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of earned rewards.">]>;
714
- /** Traded volume at the time of reward. */
715
- readonly vlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Traded volume at the time of reward.">]>;
716
- /** Traded volume via referrals. */
717
- readonly referralVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Traded volume via referrals.">]>;
718
- /** Timestamp when the reward was earned (in ms since epoch). */
719
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the reward was earned (in ms since epoch).">]>;
720
- }, undefined>, undefined>, v.DescriptionAction<{
721
- earned: string;
722
- vlm: string;
723
- referralVlm: string;
724
- time: number;
725
- }[], "History of referral rewards.">]>;
726
- /** Mapping of token IDs to referral reward states. */
727
- readonly tokenToState: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.ObjectSchema<{
728
- /** Cumulative traded volume. */
729
- readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative traded volume.">]>;
730
- /** Rewards earned but not yet claimed. */
731
- readonly unclaimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards earned but not yet claimed.">]>;
732
- /** Rewards that have been claimed. */
733
- readonly claimedRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Rewards that have been claimed.">]>;
734
- /** Builder reward amount. */
735
- readonly builderRewards: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Builder reward amount.">]>;
736
- }, undefined>], undefined>, undefined>, v.DescriptionAction<[number, {
737
- cumVlm: string;
738
- unclaimedRewards: string;
739
- claimedRewards: string;
740
- builderRewards: string;
741
- }][], "Mapping of token IDs to referral reward states.">]>;
742
- }, undefined>, v.DescriptionAction<{
743
- referredBy: {
744
- referrer: `0x${string}`;
745
- code: string;
746
- } | null;
747
- cumVlm: string;
748
- unclaimedRewards: string;
749
- claimedRewards: string;
750
- builderRewards: string;
751
- referrerState: {
752
- stage: "ready";
753
- data: {
754
- code: string;
755
- nReferrals: number;
756
- referralStates: {
757
- cumVlm: string;
758
- cumRewardedFeesSinceReferred: string;
759
- cumFeesRewardedToReferrer: string;
760
- timeJoined: number;
761
- user: `0x${string}`;
762
- tokenToState: [number, {
763
- cumVlm: string;
764
- cumRewardedFeesSinceReferred: string;
765
- cumFeesRewardedToReferrer: string;
766
- }][];
767
- }[];
768
- };
769
- } | {
770
- stage: "needToCreateCode";
771
- } | {
772
- stage: "needToTrade";
773
- data: {
774
- required: string;
775
- };
776
- };
777
- rewardHistory: {
778
- earned: string;
779
- vlm: string;
780
- referralVlm: string;
781
- time: number;
782
- }[];
783
- tokenToState: [number, {
784
- cumVlm: string;
785
- unclaimedRewards: string;
786
- claimedRewards: string;
787
- builderRewards: string;
788
- }][];
789
- }, "Referral details for a user.">]>;
790
- export type Referral = v.InferOutput<typeof Referral>;
791
- /** Balance for a specific spot token. */
792
- export declare const SpotBalance: v.SchemaWithPipe<readonly [v.ObjectSchema<{
793
- /** Asset symbol. */
794
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
795
- /** Unique identifier for the token. */
796
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
797
- /** Total balance. */
798
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
799
- /** Amount on hold. */
800
- readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
801
- /** Entry notional value. */
802
- readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
803
- }, undefined>, v.DescriptionAction<{
804
- coin: string;
805
- token: number;
806
- total: string;
807
- hold: string;
808
- entryNtl: string;
809
- }, "Balance for a specific spot token.">]>;
810
- export type SpotBalance = v.InferOutput<typeof SpotBalance>;
811
- /** Account summary for spot trading. */
812
- export declare const SpotClearinghouseState: v.SchemaWithPipe<readonly [v.ObjectSchema<{
813
- /** Balance for each token. */
814
- readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
815
- /** Asset symbol. */
816
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
817
- /** Unique identifier for the token. */
818
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
819
- /** Total balance. */
820
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
821
- /** Amount on hold. */
822
- readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
823
- /** Entry notional value. */
824
- readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
825
- }, undefined>, v.DescriptionAction<{
826
- coin: string;
827
- token: number;
828
- total: string;
829
- hold: string;
830
- entryNtl: string;
831
- }, "Balance for a specific spot token.">]>, undefined>, v.DescriptionAction<{
832
- coin: string;
833
- token: number;
834
- total: string;
835
- hold: string;
836
- entryNtl: string;
837
- }[], "Balance for each token.">]>;
838
- /** Escrowed balances. */
839
- readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
840
- /** Asset symbol. */
841
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
842
- /** Unique identifier for the token. */
843
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
844
- /** Total balance. */
845
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
846
- }, undefined>, v.DescriptionAction<{
847
- coin: string;
848
- token: number;
849
- total: string;
850
- }, "Escrowed balance for a specific asset.">]>, undefined>, undefined>, v.DescriptionAction<{
851
- coin: string;
852
- token: number;
853
- total: string;
854
- }[] | undefined, "Escrowed balances.">]>;
855
- }, undefined>, v.DescriptionAction<{
856
- balances: {
857
- coin: string;
858
- token: number;
859
- total: string;
860
- hold: string;
861
- entryNtl: string;
862
- }[];
863
- evmEscrows?: {
864
- coin: string;
865
- token: number;
866
- total: string;
867
- }[] | undefined;
868
- }, "Account summary for spot trading.">]>;
869
- export type SpotClearinghouseState = v.InferOutput<typeof SpotClearinghouseState>;
870
- /** Sub-account details for a user. */
871
- export declare const SubAccount: v.SchemaWithPipe<readonly [v.ObjectSchema<{
872
- /** Sub-account name. */
873
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "Sub-account name.">]>;
874
- /** Sub-account address. */
875
- readonly subAccountUser: 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}`, "Sub-account address.">]>;
876
- /** Master account address. */
877
- readonly master: 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}`, "Master account address.">]>;
878
- /** Perpetual trading clearinghouse state summary. */
879
- readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
880
- /** Margin summary details. */
881
- readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
882
- /** Total account value. */
883
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
884
- /** Total notional position value. */
885
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
886
- /** Total raw USD value. */
887
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
888
- /** Total margin used. */
889
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
890
- }, undefined>, v.DescriptionAction<{
891
- accountValue: string;
892
- totalNtlPos: string;
893
- totalRawUsd: string;
894
- totalMarginUsed: string;
895
- }, "Margin summary details.">]>;
896
- /** Cross-margin summary details. */
897
- readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
898
- /** Total account value. */
899
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
900
- /** Total notional position value. */
901
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
902
- /** Total raw USD value. */
903
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
904
- /** Total margin used. */
905
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
906
- }, undefined>, v.DescriptionAction<{
907
- accountValue: string;
908
- totalNtlPos: string;
909
- totalRawUsd: string;
910
- totalMarginUsed: string;
911
- }, "Cross-margin summary details.">]>;
912
- /** Maintenance margin used for cross-margin positions. */
913
- readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
914
- /** Amount available for withdrawal. */
915
- readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
916
- /** List of asset positions. */
917
- readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
918
- /** Position type. */
919
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
920
- /** Position details. */
921
- readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
922
- /** Asset symbol. */
923
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
924
- /** Signed position size. */
925
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
926
- /** Leverage details. */
927
- readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
928
- /** Leverage type. */
929
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
930
- /** Leverage value used. */
931
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
932
- /** Amount of USD used (1 = 1$). */
933
- readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
934
- }, undefined>, v.ObjectSchema<{
935
- /** Leverage type. */
936
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
937
- /** Leverage value used. */
938
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
939
- }, undefined>], undefined>, v.DescriptionAction<{
940
- type: "isolated";
941
- value: number;
942
- rawUsd: string;
943
- } | {
944
- type: "cross";
945
- value: number;
946
- }, "Leverage details.">]>;
947
- /** Average entry price. */
948
- readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
949
- /** Position value. */
950
- readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
951
- /** Unrealized profit and loss. */
952
- readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
953
- /** Return on equity. */
954
- readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
955
- /** Liquidation price. */
956
- readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
957
- /** Margin used. */
958
- readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
959
- /** Maximum allowed leverage. */
960
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
961
- /** Cumulative funding details. */
962
- readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
963
- /** Total funding paid or received since account opening. */
964
- readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
965
- /** Funding accumulated since the position was opened. */
966
- readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
967
- /** Funding accumulated since the last change in position size. */
968
- readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
969
- }, undefined>, v.DescriptionAction<{
970
- allTime: string;
971
- sinceOpen: string;
972
- sinceChange: string;
973
- }, "Cumulative funding details.">]>;
974
- }, undefined>, v.DescriptionAction<{
975
- coin: string;
976
- szi: string;
977
- leverage: {
978
- type: "isolated";
979
- value: number;
980
- rawUsd: string;
981
- } | {
982
- type: "cross";
983
- value: number;
984
- };
985
- entryPx: string;
986
- positionValue: string;
987
- unrealizedPnl: string;
988
- returnOnEquity: string;
989
- liquidationPx: string | null;
990
- marginUsed: string;
991
- maxLeverage: number;
992
- cumFunding: {
993
- allTime: string;
994
- sinceOpen: string;
995
- sinceChange: string;
996
- };
997
- }, "Position details.">]>;
998
- }, undefined>, v.DescriptionAction<{
999
- type: "oneWay";
1000
- position: {
1001
- coin: string;
1002
- szi: string;
1003
- leverage: {
1004
- type: "isolated";
1005
- value: number;
1006
- rawUsd: string;
1007
- } | {
1008
- type: "cross";
1009
- value: number;
1010
- };
1011
- entryPx: string;
1012
- positionValue: string;
1013
- unrealizedPnl: string;
1014
- returnOnEquity: string;
1015
- liquidationPx: string | null;
1016
- marginUsed: string;
1017
- maxLeverage: number;
1018
- cumFunding: {
1019
- allTime: string;
1020
- sinceOpen: string;
1021
- sinceChange: string;
1022
- };
1023
- };
1024
- }, "Position for a specific asset.">]>, undefined>, v.DescriptionAction<{
1025
- type: "oneWay";
1026
- position: {
1027
- coin: string;
1028
- szi: string;
1029
- leverage: {
1030
- type: "isolated";
1031
- value: number;
1032
- rawUsd: string;
1033
- } | {
1034
- type: "cross";
1035
- value: number;
1036
- };
1037
- entryPx: string;
1038
- positionValue: string;
1039
- unrealizedPnl: string;
1040
- returnOnEquity: string;
1041
- liquidationPx: string | null;
1042
- marginUsed: string;
1043
- maxLeverage: number;
1044
- cumFunding: {
1045
- allTime: string;
1046
- sinceOpen: string;
1047
- sinceChange: string;
1048
- };
1049
- };
1050
- }[], "List of asset positions.">]>;
1051
- /** Timestamp when data was retrieved (in ms since epoch). */
1052
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
1053
- }, undefined>, v.DescriptionAction<{
1054
- marginSummary: {
1055
- accountValue: string;
1056
- totalNtlPos: string;
1057
- totalRawUsd: string;
1058
- totalMarginUsed: string;
1059
- };
1060
- crossMarginSummary: {
1061
- accountValue: string;
1062
- totalNtlPos: string;
1063
- totalRawUsd: string;
1064
- totalMarginUsed: string;
1065
- };
1066
- crossMaintenanceMarginUsed: string;
1067
- withdrawable: string;
1068
- assetPositions: {
1069
- type: "oneWay";
1070
- position: {
1071
- coin: string;
1072
- szi: string;
1073
- leverage: {
1074
- type: "isolated";
1075
- value: number;
1076
- rawUsd: string;
1077
- } | {
1078
- type: "cross";
1079
- value: number;
1080
- };
1081
- entryPx: string;
1082
- positionValue: string;
1083
- unrealizedPnl: string;
1084
- returnOnEquity: string;
1085
- liquidationPx: string | null;
1086
- marginUsed: string;
1087
- maxLeverage: number;
1088
- cumFunding: {
1089
- allTime: string;
1090
- sinceOpen: string;
1091
- sinceChange: string;
1092
- };
1093
- };
1094
- }[];
1095
- time: number;
1096
- }, "Account summary for perpetual trading.">]>, v.DescriptionAction<{
1097
- marginSummary: {
1098
- accountValue: string;
1099
- totalNtlPos: string;
1100
- totalRawUsd: string;
1101
- totalMarginUsed: string;
1102
- };
1103
- crossMarginSummary: {
1104
- accountValue: string;
1105
- totalNtlPos: string;
1106
- totalRawUsd: string;
1107
- totalMarginUsed: string;
1108
- };
1109
- crossMaintenanceMarginUsed: string;
1110
- withdrawable: string;
1111
- assetPositions: {
1112
- type: "oneWay";
1113
- position: {
1114
- coin: string;
1115
- szi: string;
1116
- leverage: {
1117
- type: "isolated";
1118
- value: number;
1119
- rawUsd: string;
1120
- } | {
1121
- type: "cross";
1122
- value: number;
1123
- };
1124
- entryPx: string;
1125
- positionValue: string;
1126
- unrealizedPnl: string;
1127
- returnOnEquity: string;
1128
- liquidationPx: string | null;
1129
- marginUsed: string;
1130
- maxLeverage: number;
1131
- cumFunding: {
1132
- allTime: string;
1133
- sinceOpen: string;
1134
- sinceChange: string;
1135
- };
1136
- };
1137
- }[];
1138
- time: number;
1139
- }, "Perpetual trading clearinghouse state summary.">]>;
1140
- /** Spot tokens clearinghouse state. */
1141
- readonly spotState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
1142
- /** Balance for each token. */
1143
- readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
1144
- /** Asset symbol. */
1145
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
1146
- /** Unique identifier for the token. */
1147
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
1148
- /** Total balance. */
1149
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
1150
- /** Amount on hold. */
1151
- readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
1152
- /** Entry notional value. */
1153
- readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
1154
- }, undefined>, v.DescriptionAction<{
1155
- coin: string;
1156
- token: number;
1157
- total: string;
1158
- hold: string;
1159
- entryNtl: string;
1160
- }, "Balance for a specific spot token.">]>, undefined>, v.DescriptionAction<{
1161
- coin: string;
1162
- token: number;
1163
- total: string;
1164
- hold: string;
1165
- entryNtl: string;
1166
- }[], "Balance for each token.">]>;
1167
- /** Escrowed balances. */
1168
- readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
1169
- /** Asset symbol. */
1170
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
1171
- /** Unique identifier for the token. */
1172
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
1173
- /** Total balance. */
1174
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
1175
- }, undefined>, v.DescriptionAction<{
1176
- coin: string;
1177
- token: number;
1178
- total: string;
1179
- }, "Escrowed balance for a specific asset.">]>, undefined>, undefined>, v.DescriptionAction<{
1180
- coin: string;
1181
- token: number;
1182
- total: string;
1183
- }[] | undefined, "Escrowed balances.">]>;
1184
- }, undefined>, v.DescriptionAction<{
1185
- balances: {
1186
- coin: string;
1187
- token: number;
1188
- total: string;
1189
- hold: string;
1190
- entryNtl: string;
1191
- }[];
1192
- evmEscrows?: {
1193
- coin: string;
1194
- token: number;
1195
- total: string;
1196
- }[] | undefined;
1197
- }, "Account summary for spot trading.">]>, v.DescriptionAction<{
1198
- balances: {
1199
- coin: string;
1200
- token: number;
1201
- total: string;
1202
- hold: string;
1203
- entryNtl: string;
1204
- }[];
1205
- evmEscrows?: {
1206
- coin: string;
1207
- token: number;
1208
- total: string;
1209
- }[] | undefined;
1210
- }, "Spot tokens clearinghouse state.">]>;
1211
- }, undefined>, v.DescriptionAction<{
1212
- name: string;
1213
- subAccountUser: `0x${string}`;
1214
- master: `0x${string}`;
1215
- clearinghouseState: {
1216
- marginSummary: {
1217
- accountValue: string;
1218
- totalNtlPos: string;
1219
- totalRawUsd: string;
1220
- totalMarginUsed: string;
1221
- };
1222
- crossMarginSummary: {
1223
- accountValue: string;
1224
- totalNtlPos: string;
1225
- totalRawUsd: string;
1226
- totalMarginUsed: string;
1227
- };
1228
- crossMaintenanceMarginUsed: string;
1229
- withdrawable: string;
1230
- assetPositions: {
1231
- type: "oneWay";
1232
- position: {
1233
- coin: string;
1234
- szi: string;
1235
- leverage: {
1236
- type: "isolated";
1237
- value: number;
1238
- rawUsd: string;
1239
- } | {
1240
- type: "cross";
1241
- value: number;
1242
- };
1243
- entryPx: string;
1244
- positionValue: string;
1245
- unrealizedPnl: string;
1246
- returnOnEquity: string;
1247
- liquidationPx: string | null;
1248
- marginUsed: string;
1249
- maxLeverage: number;
1250
- cumFunding: {
1251
- allTime: string;
1252
- sinceOpen: string;
1253
- sinceChange: string;
1254
- };
1255
- };
1256
- }[];
1257
- time: number;
1258
- };
1259
- spotState: {
1260
- balances: {
1261
- coin: string;
1262
- token: number;
1263
- total: string;
1264
- hold: string;
1265
- entryNtl: string;
1266
- }[];
1267
- evmEscrows?: {
1268
- coin: string;
1269
- token: number;
1270
- total: string;
1271
- }[] | undefined;
1272
- };
1273
- }, "Sub-account details for a user.">]>;
1274
- export type SubAccount = v.InferOutput<typeof SubAccount>;
1275
- /** User fees. */
1276
- export declare const UserFees: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1277
- /** Daily user volume metrics. */
1278
- readonly dailyUserVlm: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1279
- /** Date in YYYY-M-D format. */
1280
- readonly date: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>, v.DescriptionAction<string, "Date in YYYY-M-D format.">]>;
1281
- /** User cross-trade volume. */
1282
- readonly userCross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User cross-trade volume.">]>;
1283
- /** User add-liquidity volume. */
1284
- readonly userAdd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User add-liquidity volume.">]>;
1285
- /** Exchange total volume. */
1286
- readonly exchange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Exchange total volume.">]>;
1287
- }, undefined>, undefined>, v.DescriptionAction<{
1288
- date: string;
1289
- userCross: string;
1290
- userAdd: string;
1291
- exchange: string;
1292
- }[], "Daily user volume metrics.">]>;
1293
- /** Fee schedule information. */
1294
- readonly feeSchedule: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1295
- /** Cross-trade fee rate. */
1296
- readonly cross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cross-trade fee rate.">]>;
1297
- /** Add-liquidity fee rate. */
1298
- readonly add: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Add-liquidity fee rate.">]>;
1299
- /** Spot cross-trade fee rate. */
1300
- readonly spotCross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot cross-trade fee rate.">]>;
1301
- /** Spot add-liquidity fee rate. */
1302
- readonly spotAdd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot add-liquidity fee rate.">]>;
1303
- /** Fee tiers details. */
1304
- readonly tiers: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1305
- /** VIP fee tier information. */
1306
- readonly vip: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1307
- /** Notional volume cutoff. */
1308
- readonly ntlCutoff: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Notional volume cutoff.">]>;
1309
- /** Cross-trade fee rate. */
1310
- readonly cross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cross-trade fee rate.">]>;
1311
- /** Add-liquidity fee rate. */
1312
- readonly add: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Add-liquidity fee rate.">]>;
1313
- /** Spot cross-trade fee rate. */
1314
- readonly spotCross: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot cross-trade fee rate.">]>;
1315
- /** Spot add-liquidity fee rate. */
1316
- readonly spotAdd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Spot add-liquidity fee rate.">]>;
1317
- }, undefined>, undefined>, v.DescriptionAction<{
1318
- ntlCutoff: string;
1319
- cross: string;
1320
- add: string;
1321
- spotCross: string;
1322
- spotAdd: string;
1323
- }[], "VIP fee tier information.">]>;
1324
- /** Market maker fee tier information. */
1325
- readonly mm: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1326
- /** Maker fraction cutoff. */
1327
- readonly makerFractionCutoff: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maker fraction cutoff.">]>;
1328
- /** Add-liquidity fee rate. */
1329
- readonly add: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Add-liquidity fee rate.">]>;
1330
- }, undefined>, undefined>, v.DescriptionAction<{
1331
- makerFractionCutoff: string;
1332
- add: string;
1333
- }[], "Market maker fee tier information.">]>;
1334
- }, undefined>, v.DescriptionAction<{
1335
- vip: {
1336
- ntlCutoff: string;
1337
- cross: string;
1338
- add: string;
1339
- spotCross: string;
1340
- spotAdd: string;
1341
- }[];
1342
- mm: {
1343
- makerFractionCutoff: string;
1344
- add: string;
1345
- }[];
1346
- }, "Fee tiers details.">]>;
1347
- /** Referral discount rate. */
1348
- readonly referralDiscount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Referral discount rate.">]>;
1349
- /** Staking discount tiers details. */
1350
- readonly stakingDiscountTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1351
- /** Basis points of maximum supply. */
1352
- readonly bpsOfMaxSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis points of maximum supply.">]>;
1353
- /** Discount rate applied. */
1354
- readonly discount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Discount rate applied.">]>;
1355
- }, undefined>, undefined>, v.DescriptionAction<{
1356
- bpsOfMaxSupply: string;
1357
- discount: string;
1358
- }[], "Staking discount tiers details.">]>;
1359
- }, undefined>, v.DescriptionAction<{
1360
- cross: string;
1361
- add: string;
1362
- spotCross: string;
1363
- spotAdd: string;
1364
- tiers: {
1365
- vip: {
1366
- ntlCutoff: string;
1367
- cross: string;
1368
- add: string;
1369
- spotCross: string;
1370
- spotAdd: string;
1371
- }[];
1372
- mm: {
1373
- makerFractionCutoff: string;
1374
- add: string;
1375
- }[];
1376
- };
1377
- referralDiscount: string;
1378
- stakingDiscountTiers: {
1379
- bpsOfMaxSupply: string;
1380
- discount: string;
1381
- }[];
1382
- }, "Fee schedule information.">]>;
1383
- /** User cross-trade rate. */
1384
- readonly userCrossRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User cross-trade rate.">]>;
1385
- /** User add-liquidity rate. */
1386
- readonly userAddRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User add-liquidity rate.">]>;
1387
- /** User spot cross-trade rate. */
1388
- readonly userSpotCrossRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User spot cross-trade rate.">]>;
1389
- /** User spot add-liquidity rate. */
1390
- readonly userSpotAddRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "User spot add-liquidity rate.">]>;
1391
- /** Active referral discount rate. */
1392
- readonly activeReferralDiscount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Active referral discount rate.">]>;
1393
- /** Trial details. */
1394
- readonly trial: v.SchemaWithPipe<readonly [v.UnionSchema<[v.UnknownSchema, v.NullSchema<undefined>], undefined>, v.DescriptionAction<unknown, "Trial details.">]>;
1395
- /** Fee trial reward amount. */
1396
- readonly feeTrialReward: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee trial reward amount.">]>;
1397
- /** Timestamp when next trial becomes available. */
1398
- readonly nextTrialAvailableTimestamp: v.SchemaWithPipe<readonly [v.UnionSchema<[v.UnknownSchema, v.NullSchema<undefined>], undefined>, v.DescriptionAction<unknown, "Timestamp when next trial becomes available.">]>;
1399
- readonly stakingLink: v.UnionSchema<[v.UnknownSchema, v.NullSchema<undefined>], undefined>;
1400
- /** Active staking discount details. */
1401
- readonly activeStakingDiscount: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1402
- /** Basis points of maximum supply. */
1403
- readonly bpsOfMaxSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis points of maximum supply.">]>;
1404
- /** Discount rate applied. */
1405
- readonly discount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Discount rate applied.">]>;
1406
- }, undefined>, v.DescriptionAction<{
1407
- bpsOfMaxSupply: string;
1408
- discount: string;
1409
- }, "Active staking discount details.">]>;
1410
- }, undefined>, v.DescriptionAction<{
1411
- dailyUserVlm: {
1412
- date: string;
1413
- userCross: string;
1414
- userAdd: string;
1415
- exchange: string;
1416
- }[];
1417
- feeSchedule: {
1418
- cross: string;
1419
- add: string;
1420
- spotCross: string;
1421
- spotAdd: string;
1422
- tiers: {
1423
- vip: {
1424
- ntlCutoff: string;
1425
- cross: string;
1426
- add: string;
1427
- spotCross: string;
1428
- spotAdd: string;
1429
- }[];
1430
- mm: {
1431
- makerFractionCutoff: string;
1432
- add: string;
1433
- }[];
1434
- };
1435
- referralDiscount: string;
1436
- stakingDiscountTiers: {
1437
- bpsOfMaxSupply: string;
1438
- discount: string;
1439
- }[];
1440
- };
1441
- userCrossRate: string;
1442
- userAddRate: string;
1443
- userSpotCrossRate: string;
1444
- userSpotAddRate: string;
1445
- activeReferralDiscount: string;
1446
- trial: unknown;
1447
- feeTrialReward: string;
1448
- nextTrialAvailableTimestamp: unknown;
1449
- stakingLink: unknown;
1450
- activeStakingDiscount: {
1451
- bpsOfMaxSupply: string;
1452
- discount: string;
1453
- };
1454
- }, "User fees.">]>;
1455
- export type UserFees = v.InferOutput<typeof UserFees>;
1456
- /** Funding update details. */
1457
- export declare const FundingUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1458
- /** Update type. */
1459
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"funding", undefined>, v.DescriptionAction<"funding", "Update type.">]>;
1460
- /** Asset symbol. */
1461
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
1462
- /** Amount transferred in USDC. */
1463
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
1464
- /** Signed position size. */
1465
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
1466
- /** Applied funding rate. */
1467
- readonly fundingRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Applied funding rate.">]>;
1468
- /** Number of samples. */
1469
- readonly nSamples: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<number | null, "Number of samples.">]>;
1470
- }, undefined>, v.DescriptionAction<{
1471
- type: "funding";
1472
- coin: string;
1473
- usdc: string;
1474
- szi: string;
1475
- fundingRate: string;
1476
- nSamples: number | null;
1477
- }, "Funding update details.">]>;
1478
- export type FundingUpdate = v.InferOutput<typeof FundingUpdate>;
1479
- /** Funding ledger update for a user. */
1480
- export declare const UserFundingUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1481
- /** Timestamp of the update (in ms since epoch). */
1482
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp of the update (in ms since epoch).">]>;
1483
- /** L1 transaction hash. */
1484
- readonly hash: 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}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "L1 transaction hash.">]>;
1485
- /** Update details. */
1486
- readonly delta: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
1487
- /** Update type. */
1488
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"funding", undefined>, v.DescriptionAction<"funding", "Update type.">]>;
1489
- /** Asset symbol. */
1490
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
1491
- /** Amount transferred in USDC. */
1492
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
1493
- /** Signed position size. */
1494
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
1495
- /** Applied funding rate. */
1496
- readonly fundingRate: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Applied funding rate.">]>;
1497
- /** Number of samples. */
1498
- readonly nSamples: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<number | null, "Number of samples.">]>;
1499
- }, undefined>, v.DescriptionAction<{
1500
- type: "funding";
1501
- coin: string;
1502
- usdc: string;
1503
- szi: string;
1504
- fundingRate: string;
1505
- nSamples: number | null;
1506
- }, "Funding update details.">]>, v.DescriptionAction<{
1507
- type: "funding";
1508
- coin: string;
1509
- usdc: string;
1510
- szi: string;
1511
- fundingRate: string;
1512
- nSamples: number | null;
1513
- }, "Update details.">]>;
1514
- }, undefined>, v.DescriptionAction<{
1515
- time: number;
1516
- hash: `0x${string}`;
1517
- delta: {
1518
- type: "funding";
1519
- coin: string;
1520
- usdc: string;
1521
- szi: string;
1522
- fundingRate: string;
1523
- nSamples: number | null;
1524
- };
1525
- }, "Funding ledger update for a user.">]>;
1526
- export type UserFundingUpdate = v.InferOutput<typeof UserFundingUpdate>;
1527
- /** User rate limits. */
1528
- export declare const UserRateLimit: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1529
- /** Cumulative trading volume. */
1530
- readonly cumVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative trading volume.">]>;
1531
- /** Number of API requests used. */
1532
- readonly nRequestsUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Number of API requests used.">]>;
1533
- /** Maximum allowed API requests. */
1534
- readonly nRequestsCap: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Maximum allowed API requests.">]>;
1535
- }, undefined>, v.DescriptionAction<{
1536
- cumVlm: string;
1537
- nRequestsUsed: number;
1538
- nRequestsCap: number;
1539
- }, "User rate limits.">]>;
1540
- export type UserRateLimit = v.InferOutput<typeof UserRateLimit>;
1541
- /** User role. */
1542
- export declare const UserRole: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
1543
- /** Role identifier. */
1544
- readonly role: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"missing", undefined>, v.LiteralSchema<"user", undefined>, v.LiteralSchema<"vault", undefined>], undefined>, v.DescriptionAction<"user" | "missing" | "vault", "Role identifier.">]>;
1545
- }, undefined>, v.ObjectSchema<{
1546
- /** Role identifier. */
1547
- readonly role: v.SchemaWithPipe<readonly [v.LiteralSchema<"agent", undefined>, v.DescriptionAction<"agent", "Role identifier.">]>;
1548
- /** Details for agent role. */
1549
- readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1550
- /** Master account address associated with the agent. */
1551
- 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}`, "Master account address associated with the agent.">]>;
1552
- }, undefined>, v.DescriptionAction<{
1553
- user: `0x${string}`;
1554
- }, "Details for agent role.">]>;
1555
- }, undefined>, v.ObjectSchema<{
1556
- /** Role identifier. */
1557
- readonly role: v.SchemaWithPipe<readonly [v.LiteralSchema<"subAccount", undefined>, v.DescriptionAction<"subAccount", "Role identifier.">]>;
1558
- /** Details for sub-account role. */
1559
- readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1560
- /** Master account address associated with the sub-account. */
1561
- readonly master: 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}`, "Master account address associated with the sub-account.">]>;
1562
- }, undefined>, v.DescriptionAction<{
1563
- master: `0x${string}`;
1564
- }, "Details for sub-account role.">]>;
1565
- }, undefined>], undefined>, v.DescriptionAction<{
1566
- role: "user" | "missing" | "vault";
1567
- } | {
1568
- role: "agent";
1569
- data: {
1570
- user: `0x${string}`;
1571
- };
1572
- } | {
1573
- role: "subAccount";
1574
- data: {
1575
- master: `0x${string}`;
1576
- };
1577
- }, "User role.">]>;
1578
- export type UserRole = v.InferOutput<typeof UserRole>;
1579
- /** Transfer between spot and perpetual accounts. */
1580
- export declare const AccountClassTransferUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1581
- /** Update type. */
1582
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"accountClassTransfer", undefined>, v.DescriptionAction<"accountClassTransfer", "Update type.">]>;
1583
- /** Amount transferred in USDC. */
1584
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
1585
- /** Indicates if the transfer is to the perpetual account. */
1586
- readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the transfer is to the perpetual account.">]>;
1587
- }, undefined>, v.DescriptionAction<{
1588
- type: "accountClassTransfer";
1589
- usdc: string;
1590
- toPerp: boolean;
1591
- }, "Transfer between spot and perpetual accounts.">]>;
1592
- export type AccountClassTransferUpdate = v.InferOutput<typeof AccountClassTransferUpdate>;
1593
- /** Deposit update to an account. */
1594
- export declare const DepositUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1595
- /** Update type. */
1596
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"deposit", undefined>, v.DescriptionAction<"deposit", "Update type.">]>;
1597
- /** Amount deposited in USDC. */
1598
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
1599
- }, undefined>, v.DescriptionAction<{
1600
- type: "deposit";
1601
- usdc: string;
1602
- }, "Deposit update to an account.">]>;
1603
- export type DepositUpdate = v.InferOutput<typeof DepositUpdate>;
1604
- /** Internal transfer between accounts. */
1605
- export declare const InternalTransferUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1606
- /** Update type. */
1607
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"internalTransfer", undefined>, v.DescriptionAction<"internalTransfer", "Update type.">]>;
1608
- /** Amount transferred in USDC. */
1609
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
1610
- /** Initiator address. */
1611
- 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}`, "Initiator address.">]>;
1612
- /** Destination address. */
1613
- readonly destination: 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}`, "Destination address.">]>;
1614
- /** Transfer fee. */
1615
- readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
1616
- }, undefined>, v.DescriptionAction<{
1617
- type: "internalTransfer";
1618
- usdc: string;
1619
- user: `0x${string}`;
1620
- destination: `0x${string}`;
1621
- fee: string;
1622
- }, "Internal transfer between accounts.">]>;
1623
- export type InternalTransferUpdate = v.InferOutput<typeof InternalTransferUpdate>;
1624
- /** Liquidation event update. */
1625
- export declare const LiquidationUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1626
- /** Update type. */
1627
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"liquidation", undefined>, v.DescriptionAction<"liquidation", "Update type.">]>;
1628
- /** Total notional value of liquidated positions. */
1629
- readonly liquidatedNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional value of liquidated positions.">]>;
1630
- /** Account value at liquidation time. */
1631
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Account value at liquidation time.">]>;
1632
- /** Leverage type for liquidated positions. */
1633
- readonly leverageType: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Cross", undefined>, v.LiteralSchema<"Isolated", undefined>], undefined>, v.DescriptionAction<"Cross" | "Isolated", "Leverage type for liquidated positions.">]>;
1634
- /** Details of each liquidated position. */
1635
- readonly liquidatedPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1636
- /** Asset symbol of the liquidated position. */
1637
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol of the liquidated position.">]>;
1638
- /** Signed position size liquidated. */
1639
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size liquidated.">]>;
1640
- }, undefined>, undefined>, v.DescriptionAction<{
1641
- coin: string;
1642
- szi: string;
1643
- }[], "Details of each liquidated position.">]>;
1644
- }, undefined>, v.DescriptionAction<{
1645
- type: "liquidation";
1646
- liquidatedNtlPos: string;
1647
- accountValue: string;
1648
- leverageType: "Cross" | "Isolated";
1649
- liquidatedPositions: {
1650
- coin: string;
1651
- szi: string;
1652
- }[];
1653
- }, "Liquidation event update.">]>;
1654
- export type LiquidationUpdate = v.InferOutput<typeof LiquidationUpdate>;
1655
- /** Rewards claim event update. */
1656
- export declare const RewardsClaimUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1657
- /** Update type. */
1658
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"rewardsClaim", undefined>, v.DescriptionAction<"rewardsClaim", "Update type.">]>;
1659
- /** Amount of rewards claimed. */
1660
- readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of rewards claimed.">]>;
1661
- /** Token symbol. */
1662
- readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
1663
- }, undefined>, v.DescriptionAction<{
1664
- type: "rewardsClaim";
1665
- amount: string;
1666
- token: string;
1667
- }, "Rewards claim event update.">]>;
1668
- export type RewardsClaimUpdate = v.InferOutput<typeof RewardsClaimUpdate>;
1669
- /** Spot transfer update between accounts. */
1670
- export declare const SpotTransferUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1671
- /** Update type. */
1672
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"spotTransfer", undefined>, v.DescriptionAction<"spotTransfer", "Update type.">]>;
1673
- /** Token symbol. */
1674
- readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
1675
- /** Amount transferred. */
1676
- readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred.">]>;
1677
- /** Equivalent USDC value. */
1678
- readonly usdcValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Equivalent USDC value.">]>;
1679
- /** Initiator address. */
1680
- 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}`, "Initiator address.">]>;
1681
- /** Destination address. */
1682
- readonly destination: 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}`, "Destination address.">]>;
1683
- /** Transfer fee. */
1684
- readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
1685
- /** Fee in native token. */
1686
- readonly nativeTokenFee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee in native token.">]>;
1687
- readonly nonce: v.NullSchema<undefined>;
1688
- /** Token in which the fee is denominated (e.g., "USDC"). */
1689
- readonly feeToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token in which the fee is denominated (e.g., \"USDC\").">]>;
1690
- }, undefined>, v.DescriptionAction<{
1691
- type: "spotTransfer";
1692
- token: string;
1693
- amount: string;
1694
- usdcValue: string;
1695
- user: `0x${string}`;
1696
- destination: `0x${string}`;
1697
- fee: string;
1698
- nativeTokenFee: string;
1699
- nonce: null;
1700
- feeToken: string;
1701
- }, "Spot transfer update between accounts.">]>;
1702
- export type SpotTransferUpdate = v.InferOutput<typeof SpotTransferUpdate>;
1703
- /** Transfer update between sub-accounts. */
1704
- export declare const SubAccountTransferUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1705
- /** Update type. */
1706
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"subAccountTransfer", undefined>, v.DescriptionAction<"subAccountTransfer", "Update type.">]>;
1707
- /** Amount transferred in USDC. */
1708
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
1709
- /** Initiator address. */
1710
- 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}`, "Initiator address.">]>;
1711
- /** Destination address. */
1712
- readonly destination: 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}`, "Destination address.">]>;
1713
- }, undefined>, v.DescriptionAction<{
1714
- type: "subAccountTransfer";
1715
- usdc: string;
1716
- user: `0x${string}`;
1717
- destination: `0x${string}`;
1718
- }, "Transfer update between sub-accounts.">]>;
1719
- export type SubAccountTransferUpdate = v.InferOutput<typeof SubAccountTransferUpdate>;
1720
- /** Vault creation update. */
1721
- export declare const VaultCreateUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1722
- /** Update type. */
1723
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultCreate", undefined>, v.DescriptionAction<"vaultCreate", "Update type.">]>;
1724
- /** Address of the created vault. */
1725
- readonly vault: 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}`, "Address of the created vault.">]>;
1726
- /** Initial allocated amount in USDC. */
1727
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Initial allocated amount in USDC.">]>;
1728
- /** Vault creation fee. */
1729
- readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Vault creation fee.">]>;
1730
- }, undefined>, v.DescriptionAction<{
1731
- type: "vaultCreate";
1732
- vault: `0x${string}`;
1733
- usdc: string;
1734
- fee: string;
1735
- }, "Vault creation update.">]>;
1736
- export type VaultCreateUpdate = v.InferOutput<typeof VaultCreateUpdate>;
1737
- /** Vault deposit update. */
1738
- export declare const VaultDepositUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1739
- /** Update type. */
1740
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDeposit", undefined>, v.DescriptionAction<"vaultDeposit", "Update type.">]>;
1741
- /** Address of the target vault. */
1742
- readonly vault: 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}`, "Address of the target vault.">]>;
1743
- /** Amount deposited in USDC. */
1744
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
1745
- }, undefined>, v.DescriptionAction<{
1746
- type: "vaultDeposit";
1747
- vault: `0x${string}`;
1748
- usdc: string;
1749
- }, "Vault deposit update.">]>;
1750
- export type VaultDepositUpdate = v.InferOutput<typeof VaultDepositUpdate>;
1751
- /** Vault distribution update. */
1752
- export declare const VaultDistributionUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1753
- /** Update type. */
1754
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDistribution", undefined>, v.DescriptionAction<"vaultDistribution", "Update type.">]>;
1755
- /** Address of the vault distributing funds. */
1756
- readonly vault: 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}`, "Address of the vault distributing funds.">]>;
1757
- /** Amount distributed in USDC. */
1758
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount distributed in USDC.">]>;
1759
- }, undefined>, v.DescriptionAction<{
1760
- type: "vaultDistribution";
1761
- vault: `0x${string}`;
1762
- usdc: string;
1763
- }, "Vault distribution update.">]>;
1764
- export type VaultDistributionUpdate = v.InferOutput<typeof VaultDistributionUpdate>;
1765
- /** Vault withdrawal event update. */
1766
- export declare const VaultWithdrawUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1767
- /** Update type. */
1768
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultWithdraw", undefined>, v.DescriptionAction<"vaultWithdraw", "Update type.">]>;
1769
- /** Vault address. */
1770
- readonly vault: 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}`, "Vault address.">]>;
1771
- /** Address of the user withdrawing funds. */
1772
- 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}`, "Address of the user withdrawing funds.">]>;
1773
- /** Withdrawal request amount in USD. */
1774
- readonly requestedUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal request amount in USD.">]>;
1775
- /** Withdrawal commission fee. */
1776
- readonly commission: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal commission fee.">]>;
1777
- /** Closing cost associated with positions. */
1778
- readonly closingCost: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Closing cost associated with positions.">]>;
1779
- /** Basis value for withdrawal calculation. */
1780
- readonly basis: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis value for withdrawal calculation.">]>;
1781
- /** Net withdrawn amount in USD after fees and costs. */
1782
- readonly netWithdrawnUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Net withdrawn amount in USD after fees and costs.">]>;
1783
- }, undefined>, v.DescriptionAction<{
1784
- type: "vaultWithdraw";
1785
- vault: `0x${string}`;
1786
- user: `0x${string}`;
1787
- requestedUsd: string;
1788
- commission: string;
1789
- closingCost: string;
1790
- basis: string;
1791
- netWithdrawnUsd: string;
1792
- }, "Vault withdrawal event update.">]>;
1793
- export type VaultWithdrawUpdate = v.InferOutput<typeof VaultWithdrawUpdate>;
1794
- /** Withdrawal update from an account. */
1795
- export declare const WithdrawUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1796
- /** Update type. */
1797
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"withdraw", undefined>, v.DescriptionAction<"withdraw", "Update type.">]>;
1798
- /** Amount withdrawn in USDC. */
1799
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount withdrawn in USDC.">]>;
1800
- /** Unique nonce for the withdrawal request. */
1801
- readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique nonce for the withdrawal request.">]>;
1802
- /** Withdrawal fee. */
1803
- readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal fee.">]>;
1804
- }, undefined>, v.DescriptionAction<{
1805
- type: "withdraw";
1806
- usdc: string;
1807
- nonce: number;
1808
- fee: string;
1809
- }, "Withdrawal update from an account.">]>;
1810
- export type WithdrawUpdate = v.InferOutput<typeof WithdrawUpdate>;
1811
- /** Non-funding ledger update for a user. */
1812
- export declare const UserNonFundingLedgerUpdate: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1813
- /** Timestamp of the update (in ms since epoch). */
1814
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp of the update (in ms since epoch).">]>;
1815
- /** L1 transaction hash. */
1816
- readonly hash: 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}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "L1 transaction hash.">]>;
1817
- /** Update details. */
1818
- readonly delta: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
1819
- /** Update type. */
1820
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"accountClassTransfer", undefined>, v.DescriptionAction<"accountClassTransfer", "Update type.">]>;
1821
- /** Amount transferred in USDC. */
1822
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
1823
- /** Indicates if the transfer is to the perpetual account. */
1824
- readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the transfer is to the perpetual account.">]>;
1825
- }, undefined>, v.DescriptionAction<{
1826
- type: "accountClassTransfer";
1827
- usdc: string;
1828
- toPerp: boolean;
1829
- }, "Transfer between spot and perpetual accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1830
- /** Update type. */
1831
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"deposit", undefined>, v.DescriptionAction<"deposit", "Update type.">]>;
1832
- /** Amount deposited in USDC. */
1833
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
1834
- }, undefined>, v.DescriptionAction<{
1835
- type: "deposit";
1836
- usdc: string;
1837
- }, "Deposit update to an account.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1838
- /** Update type. */
1839
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"internalTransfer", undefined>, v.DescriptionAction<"internalTransfer", "Update type.">]>;
1840
- /** Amount transferred in USDC. */
1841
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
1842
- /** Initiator address. */
1843
- 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}`, "Initiator address.">]>;
1844
- /** Destination address. */
1845
- readonly destination: 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}`, "Destination address.">]>;
1846
- /** Transfer fee. */
1847
- readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
1848
- }, undefined>, v.DescriptionAction<{
1849
- type: "internalTransfer";
1850
- usdc: string;
1851
- user: `0x${string}`;
1852
- destination: `0x${string}`;
1853
- fee: string;
1854
- }, "Internal transfer between accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1855
- /** Update type. */
1856
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"liquidation", undefined>, v.DescriptionAction<"liquidation", "Update type.">]>;
1857
- /** Total notional value of liquidated positions. */
1858
- readonly liquidatedNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional value of liquidated positions.">]>;
1859
- /** Account value at liquidation time. */
1860
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Account value at liquidation time.">]>;
1861
- /** Leverage type for liquidated positions. */
1862
- readonly leverageType: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Cross", undefined>, v.LiteralSchema<"Isolated", undefined>], undefined>, v.DescriptionAction<"Cross" | "Isolated", "Leverage type for liquidated positions.">]>;
1863
- /** Details of each liquidated position. */
1864
- readonly liquidatedPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1865
- /** Asset symbol of the liquidated position. */
1866
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol of the liquidated position.">]>;
1867
- /** Signed position size liquidated. */
1868
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size liquidated.">]>;
1869
- }, undefined>, undefined>, v.DescriptionAction<{
1870
- coin: string;
1871
- szi: string;
1872
- }[], "Details of each liquidated position.">]>;
1873
- }, undefined>, v.DescriptionAction<{
1874
- type: "liquidation";
1875
- liquidatedNtlPos: string;
1876
- accountValue: string;
1877
- leverageType: "Cross" | "Isolated";
1878
- liquidatedPositions: {
1879
- coin: string;
1880
- szi: string;
1881
- }[];
1882
- }, "Liquidation event update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1883
- /** Update type. */
1884
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"rewardsClaim", undefined>, v.DescriptionAction<"rewardsClaim", "Update type.">]>;
1885
- /** Amount of rewards claimed. */
1886
- readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of rewards claimed.">]>;
1887
- /** Token symbol. */
1888
- readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
1889
- }, undefined>, v.DescriptionAction<{
1890
- type: "rewardsClaim";
1891
- amount: string;
1892
- token: string;
1893
- }, "Rewards claim event update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1894
- /** Update type. */
1895
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"spotTransfer", undefined>, v.DescriptionAction<"spotTransfer", "Update type.">]>;
1896
- /** Token symbol. */
1897
- readonly token: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token symbol.">]>;
1898
- /** Amount transferred. */
1899
- readonly amount: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred.">]>;
1900
- /** Equivalent USDC value. */
1901
- readonly usdcValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Equivalent USDC value.">]>;
1902
- /** Initiator address. */
1903
- 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}`, "Initiator address.">]>;
1904
- /** Destination address. */
1905
- readonly destination: 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}`, "Destination address.">]>;
1906
- /** Transfer fee. */
1907
- readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Transfer fee.">]>;
1908
- /** Fee in native token. */
1909
- readonly nativeTokenFee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Fee in native token.">]>;
1910
- readonly nonce: v.NullSchema<undefined>;
1911
- /** Token in which the fee is denominated (e.g., "USDC"). */
1912
- readonly feeToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Token in which the fee is denominated (e.g., \"USDC\").">]>;
1913
- }, undefined>, v.DescriptionAction<{
1914
- type: "spotTransfer";
1915
- token: string;
1916
- amount: string;
1917
- usdcValue: string;
1918
- user: `0x${string}`;
1919
- destination: `0x${string}`;
1920
- fee: string;
1921
- nativeTokenFee: string;
1922
- nonce: null;
1923
- feeToken: string;
1924
- }, "Spot transfer update between accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1925
- /** Update type. */
1926
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"subAccountTransfer", undefined>, v.DescriptionAction<"subAccountTransfer", "Update type.">]>;
1927
- /** Amount transferred in USDC. */
1928
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount transferred in USDC.">]>;
1929
- /** Initiator address. */
1930
- 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}`, "Initiator address.">]>;
1931
- /** Destination address. */
1932
- readonly destination: 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}`, "Destination address.">]>;
1933
- }, undefined>, v.DescriptionAction<{
1934
- type: "subAccountTransfer";
1935
- usdc: string;
1936
- user: `0x${string}`;
1937
- destination: `0x${string}`;
1938
- }, "Transfer update between sub-accounts.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1939
- /** Update type. */
1940
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultCreate", undefined>, v.DescriptionAction<"vaultCreate", "Update type.">]>;
1941
- /** Address of the created vault. */
1942
- readonly vault: 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}`, "Address of the created vault.">]>;
1943
- /** Initial allocated amount in USDC. */
1944
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Initial allocated amount in USDC.">]>;
1945
- /** Vault creation fee. */
1946
- readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Vault creation fee.">]>;
1947
- }, undefined>, v.DescriptionAction<{
1948
- type: "vaultCreate";
1949
- vault: `0x${string}`;
1950
- usdc: string;
1951
- fee: string;
1952
- }, "Vault creation update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1953
- /** Update type. */
1954
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDeposit", undefined>, v.DescriptionAction<"vaultDeposit", "Update type.">]>;
1955
- /** Address of the target vault. */
1956
- readonly vault: 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}`, "Address of the target vault.">]>;
1957
- /** Amount deposited in USDC. */
1958
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount deposited in USDC.">]>;
1959
- }, undefined>, v.DescriptionAction<{
1960
- type: "vaultDeposit";
1961
- vault: `0x${string}`;
1962
- usdc: string;
1963
- }, "Vault deposit update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1964
- /** Update type. */
1965
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultDistribution", undefined>, v.DescriptionAction<"vaultDistribution", "Update type.">]>;
1966
- /** Address of the vault distributing funds. */
1967
- readonly vault: 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}`, "Address of the vault distributing funds.">]>;
1968
- /** Amount distributed in USDC. */
1969
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount distributed in USDC.">]>;
1970
- }, undefined>, v.DescriptionAction<{
1971
- type: "vaultDistribution";
1972
- vault: `0x${string}`;
1973
- usdc: string;
1974
- }, "Vault distribution update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1975
- /** Update type. */
1976
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"vaultWithdraw", undefined>, v.DescriptionAction<"vaultWithdraw", "Update type.">]>;
1977
- /** Vault address. */
1978
- readonly vault: 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}`, "Vault address.">]>;
1979
- /** Address of the user withdrawing funds. */
1980
- 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}`, "Address of the user withdrawing funds.">]>;
1981
- /** Withdrawal request amount in USD. */
1982
- readonly requestedUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal request amount in USD.">]>;
1983
- /** Withdrawal commission fee. */
1984
- readonly commission: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal commission fee.">]>;
1985
- /** Closing cost associated with positions. */
1986
- readonly closingCost: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Closing cost associated with positions.">]>;
1987
- /** Basis value for withdrawal calculation. */
1988
- readonly basis: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Basis value for withdrawal calculation.">]>;
1989
- /** Net withdrawn amount in USD after fees and costs. */
1990
- readonly netWithdrawnUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Net withdrawn amount in USD after fees and costs.">]>;
1991
- }, undefined>, v.DescriptionAction<{
1992
- type: "vaultWithdraw";
1993
- vault: `0x${string}`;
1994
- user: `0x${string}`;
1995
- requestedUsd: string;
1996
- commission: string;
1997
- closingCost: string;
1998
- basis: string;
1999
- netWithdrawnUsd: string;
2000
- }, "Vault withdrawal event update.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
2001
- /** Update type. */
2002
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"withdraw", undefined>, v.DescriptionAction<"withdraw", "Update type.">]>;
2003
- /** Amount withdrawn in USDC. */
2004
- readonly usdc: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount withdrawn in USDC.">]>;
2005
- /** Unique nonce for the withdrawal request. */
2006
- readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique nonce for the withdrawal request.">]>;
2007
- /** Withdrawal fee. */
2008
- readonly fee: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Withdrawal fee.">]>;
2009
- }, undefined>, v.DescriptionAction<{
2010
- type: "withdraw";
2011
- usdc: string;
2012
- nonce: number;
2013
- fee: string;
2014
- }, "Withdrawal update from an account.">]>], undefined>, v.DescriptionAction<{
2015
- type: "accountClassTransfer";
2016
- usdc: string;
2017
- toPerp: boolean;
2018
- } | {
2019
- type: "deposit";
2020
- usdc: string;
2021
- } | {
2022
- type: "internalTransfer";
2023
- usdc: string;
2024
- user: `0x${string}`;
2025
- destination: `0x${string}`;
2026
- fee: string;
2027
- } | {
2028
- type: "liquidation";
2029
- liquidatedNtlPos: string;
2030
- accountValue: string;
2031
- leverageType: "Cross" | "Isolated";
2032
- liquidatedPositions: {
2033
- coin: string;
2034
- szi: string;
2035
- }[];
2036
- } | {
2037
- type: "rewardsClaim";
2038
- amount: string;
2039
- token: string;
2040
- } | {
2041
- type: "spotTransfer";
2042
- token: string;
2043
- amount: string;
2044
- usdcValue: string;
2045
- user: `0x${string}`;
2046
- destination: `0x${string}`;
2047
- fee: string;
2048
- nativeTokenFee: string;
2049
- nonce: null;
2050
- feeToken: string;
2051
- } | {
2052
- type: "subAccountTransfer";
2053
- usdc: string;
2054
- user: `0x${string}`;
2055
- destination: `0x${string}`;
2056
- } | {
2057
- type: "vaultCreate";
2058
- vault: `0x${string}`;
2059
- usdc: string;
2060
- fee: string;
2061
- } | {
2062
- type: "vaultDeposit";
2063
- vault: `0x${string}`;
2064
- usdc: string;
2065
- } | {
2066
- type: "vaultDistribution";
2067
- vault: `0x${string}`;
2068
- usdc: string;
2069
- } | {
2070
- type: "vaultWithdraw";
2071
- vault: `0x${string}`;
2072
- user: `0x${string}`;
2073
- requestedUsd: string;
2074
- commission: string;
2075
- closingCost: string;
2076
- basis: string;
2077
- netWithdrawnUsd: string;
2078
- } | {
2079
- type: "withdraw";
2080
- usdc: string;
2081
- nonce: number;
2082
- fee: string;
2083
- }, "Update details.">]>;
2084
- }, undefined>, v.DescriptionAction<{
2085
- time: number;
2086
- hash: `0x${string}`;
2087
- delta: {
2088
- type: "accountClassTransfer";
2089
- usdc: string;
2090
- toPerp: boolean;
2091
- } | {
2092
- type: "deposit";
2093
- usdc: string;
2094
- } | {
2095
- type: "internalTransfer";
2096
- usdc: string;
2097
- user: `0x${string}`;
2098
- destination: `0x${string}`;
2099
- fee: string;
2100
- } | {
2101
- type: "liquidation";
2102
- liquidatedNtlPos: string;
2103
- accountValue: string;
2104
- leverageType: "Cross" | "Isolated";
2105
- liquidatedPositions: {
2106
- coin: string;
2107
- szi: string;
2108
- }[];
2109
- } | {
2110
- type: "rewardsClaim";
2111
- amount: string;
2112
- token: string;
2113
- } | {
2114
- type: "spotTransfer";
2115
- token: string;
2116
- amount: string;
2117
- usdcValue: string;
2118
- user: `0x${string}`;
2119
- destination: `0x${string}`;
2120
- fee: string;
2121
- nativeTokenFee: string;
2122
- nonce: null;
2123
- feeToken: string;
2124
- } | {
2125
- type: "subAccountTransfer";
2126
- usdc: string;
2127
- user: `0x${string}`;
2128
- destination: `0x${string}`;
2129
- } | {
2130
- type: "vaultCreate";
2131
- vault: `0x${string}`;
2132
- usdc: string;
2133
- fee: string;
2134
- } | {
2135
- type: "vaultDeposit";
2136
- vault: `0x${string}`;
2137
- usdc: string;
2138
- } | {
2139
- type: "vaultDistribution";
2140
- vault: `0x${string}`;
2141
- usdc: string;
2142
- } | {
2143
- type: "vaultWithdraw";
2144
- vault: `0x${string}`;
2145
- user: `0x${string}`;
2146
- requestedUsd: string;
2147
- commission: string;
2148
- closingCost: string;
2149
- basis: string;
2150
- netWithdrawnUsd: string;
2151
- } | {
2152
- type: "withdraw";
2153
- usdc: string;
2154
- nonce: number;
2155
- fee: string;
2156
- };
2157
- }, "Non-funding ledger update for a user.">]>;
2158
- export type UserNonFundingLedgerUpdate = v.InferOutput<typeof UserNonFundingLedgerUpdate>;
2159
- /** Comprehensive user and market data. */
2160
- export declare const WebData2: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2161
- /** Account summary for perpetual trading. */
2162
- readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
2163
- /** Margin summary details. */
2164
- readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2165
- /** Total account value. */
2166
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
2167
- /** Total notional position value. */
2168
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
2169
- /** Total raw USD value. */
2170
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
2171
- /** Total margin used. */
2172
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
2173
- }, undefined>, v.DescriptionAction<{
2174
- accountValue: string;
2175
- totalNtlPos: string;
2176
- totalRawUsd: string;
2177
- totalMarginUsed: string;
2178
- }, "Margin summary details.">]>;
2179
- /** Cross-margin summary details. */
2180
- readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2181
- /** Total account value. */
2182
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total account value.">]>;
2183
- /** Total notional position value. */
2184
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total notional position value.">]>;
2185
- /** Total raw USD value. */
2186
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
2187
- /** Total margin used. */
2188
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total margin used.">]>;
2189
- }, undefined>, v.DescriptionAction<{
2190
- accountValue: string;
2191
- totalNtlPos: string;
2192
- totalRawUsd: string;
2193
- totalMarginUsed: string;
2194
- }, "Cross-margin summary details.">]>;
2195
- /** Maintenance margin used for cross-margin positions. */
2196
- readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
2197
- /** Amount available for withdrawal. */
2198
- readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
2199
- /** List of asset positions. */
2200
- readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2201
- /** Position type. */
2202
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
2203
- /** Position details. */
2204
- readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2205
- /** Asset symbol. */
2206
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
2207
- /** Signed position size. */
2208
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Signed position size.">]>;
2209
- /** Leverage details. */
2210
- readonly leverage: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
2211
- /** Leverage type. */
2212
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
2213
- /** Leverage value used. */
2214
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
2215
- /** Amount of USD used (1 = 1$). */
2216
- readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount of USD used (1 = 1$).">]>;
2217
- }, undefined>, v.ObjectSchema<{
2218
- /** Leverage type. */
2219
- readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
2220
- /** Leverage value used. */
2221
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
2222
- }, undefined>], undefined>, v.DescriptionAction<{
2223
- type: "isolated";
2224
- value: number;
2225
- rawUsd: string;
2226
- } | {
2227
- type: "cross";
2228
- value: number;
2229
- }, "Leverage details.">]>;
2230
- /** Average entry price. */
2231
- readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Average entry price.">]>;
2232
- /** Position value. */
2233
- readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Position value.">]>;
2234
- /** Unrealized profit and loss. */
2235
- readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
2236
- /** Return on equity. */
2237
- readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Return on equity.">]>;
2238
- /** Liquidation price. */
2239
- readonly liquidationPx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
2240
- /** Margin used. */
2241
- readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Margin used.">]>;
2242
- /** Maximum allowed leverage. */
2243
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
2244
- /** Cumulative funding details. */
2245
- readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2246
- /** Total funding paid or received since account opening. */
2247
- readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
2248
- /** Funding accumulated since the position was opened. */
2249
- readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
2250
- /** Funding accumulated since the last change in position size. */
2251
- readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
2252
- }, undefined>, v.DescriptionAction<{
2253
- allTime: string;
2254
- sinceOpen: string;
2255
- sinceChange: string;
2256
- }, "Cumulative funding details.">]>;
2257
- }, undefined>, v.DescriptionAction<{
2258
- coin: string;
2259
- szi: string;
2260
- leverage: {
2261
- type: "isolated";
2262
- value: number;
2263
- rawUsd: string;
2264
- } | {
2265
- type: "cross";
2266
- value: number;
2267
- };
2268
- entryPx: string;
2269
- positionValue: string;
2270
- unrealizedPnl: string;
2271
- returnOnEquity: string;
2272
- liquidationPx: string | null;
2273
- marginUsed: string;
2274
- maxLeverage: number;
2275
- cumFunding: {
2276
- allTime: string;
2277
- sinceOpen: string;
2278
- sinceChange: string;
2279
- };
2280
- }, "Position details.">]>;
2281
- }, undefined>, v.DescriptionAction<{
2282
- type: "oneWay";
2283
- position: {
2284
- coin: string;
2285
- szi: string;
2286
- leverage: {
2287
- type: "isolated";
2288
- value: number;
2289
- rawUsd: string;
2290
- } | {
2291
- type: "cross";
2292
- value: number;
2293
- };
2294
- entryPx: string;
2295
- positionValue: string;
2296
- unrealizedPnl: string;
2297
- returnOnEquity: string;
2298
- liquidationPx: string | null;
2299
- marginUsed: string;
2300
- maxLeverage: number;
2301
- cumFunding: {
2302
- allTime: string;
2303
- sinceOpen: string;
2304
- sinceChange: string;
2305
- };
2306
- };
2307
- }, "Position for a specific asset.">]>, undefined>, v.DescriptionAction<{
2308
- type: "oneWay";
2309
- position: {
2310
- coin: string;
2311
- szi: string;
2312
- leverage: {
2313
- type: "isolated";
2314
- value: number;
2315
- rawUsd: string;
2316
- } | {
2317
- type: "cross";
2318
- value: number;
2319
- };
2320
- entryPx: string;
2321
- positionValue: string;
2322
- unrealizedPnl: string;
2323
- returnOnEquity: string;
2324
- liquidationPx: string | null;
2325
- marginUsed: string;
2326
- maxLeverage: number;
2327
- cumFunding: {
2328
- allTime: string;
2329
- sinceOpen: string;
2330
- sinceChange: string;
2331
- };
2332
- };
2333
- }[], "List of asset positions.">]>;
2334
- /** Timestamp when data was retrieved (in ms since epoch). */
2335
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
2336
- }, undefined>, v.DescriptionAction<{
2337
- marginSummary: {
2338
- accountValue: string;
2339
- totalNtlPos: string;
2340
- totalRawUsd: string;
2341
- totalMarginUsed: string;
2342
- };
2343
- crossMarginSummary: {
2344
- accountValue: string;
2345
- totalNtlPos: string;
2346
- totalRawUsd: string;
2347
- totalMarginUsed: string;
2348
- };
2349
- crossMaintenanceMarginUsed: string;
2350
- withdrawable: string;
2351
- assetPositions: {
2352
- type: "oneWay";
2353
- position: {
2354
- coin: string;
2355
- szi: string;
2356
- leverage: {
2357
- type: "isolated";
2358
- value: number;
2359
- rawUsd: string;
2360
- } | {
2361
- type: "cross";
2362
- value: number;
2363
- };
2364
- entryPx: string;
2365
- positionValue: string;
2366
- unrealizedPnl: string;
2367
- returnOnEquity: string;
2368
- liquidationPx: string | null;
2369
- marginUsed: string;
2370
- maxLeverage: number;
2371
- cumFunding: {
2372
- allTime: string;
2373
- sinceOpen: string;
2374
- sinceChange: string;
2375
- };
2376
- };
2377
- }[];
2378
- time: number;
2379
- }, "Account summary for perpetual trading.">]>, v.DescriptionAction<{
2380
- marginSummary: {
2381
- accountValue: string;
2382
- totalNtlPos: string;
2383
- totalRawUsd: string;
2384
- totalMarginUsed: string;
2385
- };
2386
- crossMarginSummary: {
2387
- accountValue: string;
2388
- totalNtlPos: string;
2389
- totalRawUsd: string;
2390
- totalMarginUsed: string;
2391
- };
2392
- crossMaintenanceMarginUsed: string;
2393
- withdrawable: string;
2394
- assetPositions: {
2395
- type: "oneWay";
2396
- position: {
2397
- coin: string;
2398
- szi: string;
2399
- leverage: {
2400
- type: "isolated";
2401
- value: number;
2402
- rawUsd: string;
2403
- } | {
2404
- type: "cross";
2405
- value: number;
2406
- };
2407
- entryPx: string;
2408
- positionValue: string;
2409
- unrealizedPnl: string;
2410
- returnOnEquity: string;
2411
- liquidationPx: string | null;
2412
- marginUsed: string;
2413
- maxLeverage: number;
2414
- cumFunding: {
2415
- allTime: string;
2416
- sinceOpen: string;
2417
- sinceChange: string;
2418
- };
2419
- };
2420
- }[];
2421
- time: number;
2422
- }, "Account summary for perpetual trading.">]>;
2423
- /** Leading vaults information. */
2424
- readonly leadingVaults: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
2425
- /** Address of the vault. */
2426
- readonly address: 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}`, "Address of the vault.">]>;
2427
- /** Name of the vault. */
2428
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the vault.">]>;
2429
- }, undefined>, undefined>, v.DescriptionAction<{
2430
- address: `0x${string}`;
2431
- name: string;
2432
- }[], "Leading vaults information.">]>;
2433
- /** Total equity in vaults. */
2434
- readonly totalVaultEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total equity in vaults.">]>;
2435
- /** User open orders with frontend information. */
2436
- readonly openOrders: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2437
- readonly triggerCondition: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Condition for triggering the order.">]>;
2438
- readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
2439
- readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Trigger price.">]>;
2440
- readonly children: v.SchemaWithPipe<readonly [v.ArraySchema<v.LazySchema<any>, undefined>, v.DescriptionAction<any[], "Child orders associated with this order.">]>;
2441
- readonly isPositionTpsl: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a position TP/SL order.">]>;
2442
- readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates whether the order is reduce-only.">]>;
2443
- readonly orderType: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Market", undefined>, v.LiteralSchema<"Limit", undefined>, v.LiteralSchema<"Stop Market", undefined>, v.LiteralSchema<"Stop Limit", undefined>, v.LiteralSchema<"Take Profit Market", undefined>, v.LiteralSchema<"Take Profit Limit", undefined>], undefined>, v.DescriptionAction<"Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit", string>]>, v.DescriptionAction<"Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit", "Order type.">]>;
2444
- readonly tif: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Gtc", undefined>, v.LiteralSchema<"Ioc", undefined>, v.LiteralSchema<"Alo", undefined>, v.LiteralSchema<"FrontendMarket", undefined>, v.LiteralSchema<"LiquidationMarket", undefined>], undefined>, v.DescriptionAction<"Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket", string>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<"Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null, "Time-in-force option.">]>;
2445
- readonly cloid: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 34, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<`0x${string}` | null, "Client Order ID.">]>;
2446
- readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Size.">]>;
2447
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
2448
- readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
2449
- readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
2450
- readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Limit price.">]>;
2451
- readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the order was placed (in ms since epoch).">]>;
2452
- readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
2453
- }, undefined>, v.DescriptionAction<{
2454
- triggerCondition: string;
2455
- isTrigger: boolean;
2456
- triggerPx: string;
2457
- children: any[];
2458
- isPositionTpsl: boolean;
2459
- reduceOnly: boolean;
2460
- orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
2461
- tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
2462
- cloid: `0x${string}` | null;
2463
- sz: string;
2464
- coin: string;
2465
- side: "B" | "A";
2466
- oid: number;
2467
- limitPx: string;
2468
- timestamp: number;
2469
- origSz: string;
2470
- }, "Open order with additional display information.">]>, undefined>, v.DescriptionAction<{
2471
- triggerCondition: string;
2472
- isTrigger: boolean;
2473
- triggerPx: string;
2474
- children: any[];
2475
- isPositionTpsl: boolean;
2476
- reduceOnly: boolean;
2477
- orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
2478
- tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
2479
- cloid: `0x${string}` | null;
2480
- sz: string;
2481
- coin: string;
2482
- side: "B" | "A";
2483
- oid: number;
2484
- limitPx: string;
2485
- timestamp: number;
2486
- origSz: string;
2487
- }[], "User open orders with frontend information.">]>;
2488
- /** Agent address if one exists. */
2489
- readonly agentAddress: v.SchemaWithPipe<readonly [v.UnionSchema<[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.NullSchema<undefined>], undefined>, v.DescriptionAction<`0x${string}` | null, "Agent address if one exists.">]>;
2490
- /** Timestamp until which the agent is valid. */
2491
- readonly agentValidUntil: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
2492
- /** Cumulative ledger value. */
2493
- readonly cumLedger: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Cumulative ledger value.">]>;
2494
- /** Metadata for perpetual assets. */
2495
- readonly meta: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
2496
- readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2497
- readonly szDecimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Minimum decimal places for order sizes.">]>;
2498
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
2499
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
2500
- readonly marginTableId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the margin requirements table.">]>;
2501
- readonly onlyIsolated: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if only isolated margin trading is allowed.">]>;
2502
- readonly isDelisted: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if the universe is delisted.">]>;
2503
- }, undefined>, v.DescriptionAction<{
2504
- szDecimals: number;
2505
- name: string;
2506
- maxLeverage: number;
2507
- marginTableId: number;
2508
- onlyIsolated?: true | undefined;
2509
- isDelisted?: true | undefined;
2510
- }, "Trading universe parameters for perpetual assets.">]>, undefined>, v.DescriptionAction<{
2511
- szDecimals: number;
2512
- name: string;
2513
- maxLeverage: number;
2514
- marginTableId: number;
2515
- onlyIsolated?: true | undefined;
2516
- isDelisted?: true | undefined;
2517
- }[], "Trading universes available for perpetual trading.">]>;
2518
- readonly marginTables: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
2519
- readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Description of the margin table.">]>;
2520
- readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2521
- readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
2522
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage for this tier.">]>;
2523
- }, undefined>, v.DescriptionAction<{
2524
- lowerBound: string;
2525
- maxLeverage: number;
2526
- }, "Individual tier in a margin requirements table.">]>, undefined>, v.DescriptionAction<{
2527
- lowerBound: string;
2528
- maxLeverage: number;
2529
- }[], "Array of margin tiers defining leverage limits.">]>;
2530
- }, undefined>, v.DescriptionAction<{
2531
- description: string;
2532
- marginTiers: {
2533
- lowerBound: string;
2534
- maxLeverage: number;
2535
- }[];
2536
- }, "Margin requirements table with multiple tiers.">]>], undefined>, undefined>, v.DescriptionAction<[number, {
2537
- description: string;
2538
- marginTiers: {
2539
- lowerBound: string;
2540
- maxLeverage: number;
2541
- }[];
2542
- }][], "Collection of margin tables indexed by ID.">]>, v.DescriptionAction<[number, {
2543
- description: string;
2544
- marginTiers: {
2545
- lowerBound: string;
2546
- maxLeverage: number;
2547
- }[];
2548
- }][], "Margin requirement tables for different leverage tiers.">]>;
2549
- }, undefined>, v.DescriptionAction<{
2550
- universe: {
2551
- szDecimals: number;
2552
- name: string;
2553
- maxLeverage: number;
2554
- marginTableId: number;
2555
- onlyIsolated?: true | undefined;
2556
- isDelisted?: true | undefined;
2557
- }[];
2558
- marginTables: [number, {
2559
- description: string;
2560
- marginTiers: {
2561
- lowerBound: string;
2562
- maxLeverage: number;
2563
- }[];
2564
- }][];
2565
- }, "Metadata for perpetual assets.">]>, v.DescriptionAction<{
2566
- universe: {
2567
- szDecimals: number;
2568
- name: string;
2569
- maxLeverage: number;
2570
- marginTableId: number;
2571
- onlyIsolated?: true | undefined;
2572
- isDelisted?: true | undefined;
2573
- }[];
2574
- marginTables: [number, {
2575
- description: string;
2576
- marginTiers: {
2577
- lowerBound: string;
2578
- maxLeverage: number;
2579
- }[];
2580
- }][];
2581
- }, "Metadata for perpetual assets.">]>;
2582
- /** Context information for perpetual assets. */
2583
- readonly assetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2584
- readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Funding rate.">]>;
2585
- readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total open interest.">]>;
2586
- readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
2587
- readonly oraclePx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Oracle price.">]>;
2588
- readonly impactPxs: v.SchemaWithPipe<readonly [v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.DescriptionAction<string[] | null, "Array of impact prices.">]>;
2589
- readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
2590
- readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
2591
- readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
2592
- readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price.">]>;
2593
- readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
2594
- }, undefined>, v.DescriptionAction<{
2595
- funding: string;
2596
- openInterest: string;
2597
- premium: string | null;
2598
- oraclePx: string;
2599
- impactPxs: string[] | null;
2600
- dayBaseVlm: string;
2601
- prevDayPx: string;
2602
- dayNtlVlm: string;
2603
- markPx: string;
2604
- midPx: string | null;
2605
- }, "Context for a perpetual asset.">]>, undefined>, v.DescriptionAction<{
2606
- funding: string;
2607
- openInterest: string;
2608
- premium: string | null;
2609
- oraclePx: string;
2610
- impactPxs: string[] | null;
2611
- dayBaseVlm: string;
2612
- prevDayPx: string;
2613
- dayNtlVlm: string;
2614
- markPx: string;
2615
- midPx: string | null;
2616
- }[], "Context information for perpetual assets.">]>;
2617
- /** Server timestamp (in ms since epoch). */
2618
- readonly serverTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Server timestamp (in ms since epoch).">]>;
2619
- /** Whether this account is a vault. */
2620
- readonly isVault: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether this account is a vault.">]>;
2621
- /** User address. */
2622
- 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.">]>;
2623
- /** TWAP states. */
2624
- readonly twapStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
2625
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
2626
- readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed notional value.">]>;
2627
- readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Executed size.">]>;
2628
- readonly minutes: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Duration in minutes.">]>;
2629
- readonly randomize: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the TWAP randomizes execution.">]>;
2630
- readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is reduce-only.">]>;
2631
- readonly side: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"B", undefined>, v.LiteralSchema<"A", undefined>], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
2632
- readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Order size.">]>;
2633
- readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Start time of the TWAP order (in ms since epoch).">]>;
2634
- 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.">]>;
2635
- }, undefined>, v.DescriptionAction<{
2636
- coin: string;
2637
- executedNtl: string;
2638
- executedSz: string;
2639
- minutes: number;
2640
- randomize: boolean;
2641
- reduceOnly: boolean;
2642
- side: "B" | "A";
2643
- sz: string;
2644
- timestamp: number;
2645
- user: `0x${string}`;
2646
- }, "Current state of a TWAP order.">]>], undefined>, undefined>, v.DescriptionAction<[number, {
2647
- coin: string;
2648
- executedNtl: string;
2649
- executedSz: string;
2650
- minutes: number;
2651
- randomize: boolean;
2652
- reduceOnly: boolean;
2653
- side: "B" | "A";
2654
- sz: string;
2655
- timestamp: number;
2656
- user: `0x${string}`;
2657
- }][], "TWAP states.">]>;
2658
- /** Account summary for spot trading. */
2659
- readonly spotState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2660
- /** Balance for each token. */
2661
- readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2662
- /** Asset symbol. */
2663
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
2664
- /** Unique identifier for the token. */
2665
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
2666
- /** Total balance. */
2667
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
2668
- /** Amount on hold. */
2669
- readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Amount on hold.">]>;
2670
- /** Entry notional value. */
2671
- readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Entry notional value.">]>;
2672
- }, undefined>, v.DescriptionAction<{
2673
- coin: string;
2674
- token: number;
2675
- total: string;
2676
- hold: string;
2677
- entryNtl: string;
2678
- }, "Balance for a specific spot token.">]>, undefined>, v.DescriptionAction<{
2679
- coin: string;
2680
- token: number;
2681
- total: string;
2682
- hold: string;
2683
- entryNtl: string;
2684
- }[], "Balance for each token.">]>;
2685
- /** Escrowed balances. */
2686
- readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2687
- /** Asset symbol. */
2688
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
2689
- /** Unique identifier for the token. */
2690
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
2691
- /** Total balance. */
2692
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total balance.">]>;
2693
- }, undefined>, v.DescriptionAction<{
2694
- coin: string;
2695
- token: number;
2696
- total: string;
2697
- }, "Escrowed balance for a specific asset.">]>, undefined>, undefined>, v.DescriptionAction<{
2698
- coin: string;
2699
- token: number;
2700
- total: string;
2701
- }[] | undefined, "Escrowed balances.">]>;
2702
- }, undefined>, v.DescriptionAction<{
2703
- balances: {
2704
- coin: string;
2705
- token: number;
2706
- total: string;
2707
- hold: string;
2708
- entryNtl: string;
2709
- }[];
2710
- evmEscrows?: {
2711
- coin: string;
2712
- token: number;
2713
- total: string;
2714
- }[] | undefined;
2715
- }, "Account summary for spot trading.">]>, undefined>, v.DescriptionAction<{
2716
- balances: {
2717
- coin: string;
2718
- token: number;
2719
- total: string;
2720
- hold: string;
2721
- entryNtl: string;
2722
- }[];
2723
- evmEscrows?: {
2724
- coin: string;
2725
- token: number;
2726
- total: string;
2727
- }[] | undefined;
2728
- } | undefined, "Account summary for spot trading.">]>;
2729
- /** Context information for spot assets. */
2730
- readonly spotAssetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2731
- readonly circulatingSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Circulating supply.">]>;
2732
- readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
2733
- readonly totalSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Total supply.">]>;
2734
- readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
2735
- readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
2736
- readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
2737
- readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, v.DescriptionAction<string, "Mark price.">]>;
2738
- readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
2739
- }, undefined>, v.DescriptionAction<{
2740
- circulatingSupply: string;
2741
- coin: string;
2742
- totalSupply: string;
2743
- dayBaseVlm: string;
2744
- prevDayPx: string;
2745
- dayNtlVlm: string;
2746
- markPx: string;
2747
- midPx: string | null;
2748
- }, "Context for a spot asset.">]>, undefined>, v.DescriptionAction<{
2749
- circulatingSupply: string;
2750
- coin: string;
2751
- totalSupply: string;
2752
- dayBaseVlm: string;
2753
- prevDayPx: string;
2754
- dayNtlVlm: string;
2755
- markPx: string;
2756
- midPx: string | null;
2757
- }[], "Context information for spot assets.">]>;
2758
- /** Whether the user has opted out of spot dusting. */
2759
- readonly optOutOfSpotDusting: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Whether the user has opted out of spot dusting.">]>;
2760
- /** Assets currently at their open interest cap. */
2761
- readonly perpsAtOpenInterestCap: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.DescriptionAction<string[] | undefined, "Assets currently at their open interest cap.">]>;
2762
- }, undefined>, v.DescriptionAction<{
2763
- clearinghouseState: {
2764
- marginSummary: {
2765
- accountValue: string;
2766
- totalNtlPos: string;
2767
- totalRawUsd: string;
2768
- totalMarginUsed: string;
2769
- };
2770
- crossMarginSummary: {
2771
- accountValue: string;
2772
- totalNtlPos: string;
2773
- totalRawUsd: string;
2774
- totalMarginUsed: string;
2775
- };
2776
- crossMaintenanceMarginUsed: string;
2777
- withdrawable: string;
2778
- assetPositions: {
2779
- type: "oneWay";
2780
- position: {
2781
- coin: string;
2782
- szi: string;
2783
- leverage: {
2784
- type: "isolated";
2785
- value: number;
2786
- rawUsd: string;
2787
- } | {
2788
- type: "cross";
2789
- value: number;
2790
- };
2791
- entryPx: string;
2792
- positionValue: string;
2793
- unrealizedPnl: string;
2794
- returnOnEquity: string;
2795
- liquidationPx: string | null;
2796
- marginUsed: string;
2797
- maxLeverage: number;
2798
- cumFunding: {
2799
- allTime: string;
2800
- sinceOpen: string;
2801
- sinceChange: string;
2802
- };
2803
- };
2804
- }[];
2805
- time: number;
2806
- };
2807
- leadingVaults: {
2808
- address: `0x${string}`;
2809
- name: string;
2810
- }[];
2811
- totalVaultEquity: string;
2812
- openOrders: {
2813
- triggerCondition: string;
2814
- isTrigger: boolean;
2815
- triggerPx: string;
2816
- children: any[];
2817
- isPositionTpsl: boolean;
2818
- reduceOnly: boolean;
2819
- orderType: "Market" | "Limit" | "Stop Market" | "Stop Limit" | "Take Profit Market" | "Take Profit Limit";
2820
- tif: "Gtc" | "Ioc" | "Alo" | "FrontendMarket" | "LiquidationMarket" | null;
2821
- cloid: `0x${string}` | null;
2822
- sz: string;
2823
- coin: string;
2824
- side: "B" | "A";
2825
- oid: number;
2826
- limitPx: string;
2827
- timestamp: number;
2828
- origSz: string;
2829
- }[];
2830
- agentAddress: `0x${string}` | null;
2831
- agentValidUntil: number | null;
2832
- cumLedger: string;
2833
- meta: {
2834
- universe: {
2835
- szDecimals: number;
2836
- name: string;
2837
- maxLeverage: number;
2838
- marginTableId: number;
2839
- onlyIsolated?: true | undefined;
2840
- isDelisted?: true | undefined;
2841
- }[];
2842
- marginTables: [number, {
2843
- description: string;
2844
- marginTiers: {
2845
- lowerBound: string;
2846
- maxLeverage: number;
2847
- }[];
2848
- }][];
2849
- };
2850
- assetCtxs: {
2851
- funding: string;
2852
- openInterest: string;
2853
- premium: string | null;
2854
- oraclePx: string;
2855
- impactPxs: string[] | null;
2856
- dayBaseVlm: string;
2857
- prevDayPx: string;
2858
- dayNtlVlm: string;
2859
- markPx: string;
2860
- midPx: string | null;
2861
- }[];
2862
- serverTime: number;
2863
- isVault: boolean;
2864
- user: `0x${string}`;
2865
- twapStates: [number, {
2866
- coin: string;
2867
- executedNtl: string;
2868
- executedSz: string;
2869
- minutes: number;
2870
- randomize: boolean;
2871
- reduceOnly: boolean;
2872
- side: "B" | "A";
2873
- sz: string;
2874
- timestamp: number;
2875
- user: `0x${string}`;
2876
- }][];
2877
- spotState?: {
2878
- balances: {
2879
- coin: string;
2880
- token: number;
2881
- total: string;
2882
- hold: string;
2883
- entryNtl: string;
2884
- }[];
2885
- evmEscrows?: {
2886
- coin: string;
2887
- token: number;
2888
- total: string;
2889
- }[] | undefined;
2890
- } | undefined;
2891
- spotAssetCtxs: {
2892
- circulatingSupply: string;
2893
- coin: string;
2894
- totalSupply: string;
2895
- dayBaseVlm: string;
2896
- prevDayPx: string;
2897
- dayNtlVlm: string;
2898
- markPx: string;
2899
- midPx: string | null;
2900
- }[];
2901
- optOutOfSpotDusting?: true | undefined;
2902
- perpsAtOpenInterestCap?: string[] | undefined;
2903
- }, "Comprehensive user and market data.">]>;
2904
- export type WebData2 = v.InferOutput<typeof WebData2>;
2905
- //# sourceMappingURL=accounts.d.ts.map