@nktkas/hyperliquid 0.30.2 → 0.31.0
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.
- package/CONTRIBUTING.md +1 -3
- package/README.md +83 -19
- package/esm/bin/_utils.d.ts +33 -1
- package/esm/bin/_utils.d.ts.map +1 -1
- package/esm/bin/_utils.js +17 -1
- package/esm/bin/_utils.js.map +1 -1
- package/esm/bin/cli.js +288 -252
- package/esm/bin/cli.js.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.d.ts +1 -0
- package/esm/deps/jsr.io/@std/async/1.1.1/unstable_semaphore.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.js +4 -3
- package/esm/deps/jsr.io/@std/async/1.1.1/unstable_semaphore.js.map +1 -0
- package/esm/src/api/_schemas.d.ts +9 -0
- package/esm/src/api/_schemas.d.ts.map +1 -1
- package/esm/src/api/_schemas.js +10 -1
- package/esm/src/api/_schemas.js.map +1 -1
- package/esm/src/api/exchange/_methods/_base/_semaphore.js +1 -1
- package/esm/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
- package/esm/src/api/exchange/_methods/_base/commonSchemas.d.ts +16 -30
- package/esm/src/api/exchange/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/_base/commonSchemas.js +16 -16
- package/esm/src/api/exchange/_methods/_base/commonSchemas.js.map +1 -1
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +23 -60
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.js +11 -9
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/_methods/agentSetAbstraction.d.ts +126 -0
- package/esm/src/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/agentSetAbstraction.js +82 -0
- package/esm/src/api/exchange/_methods/agentSetAbstraction.js.map +1 -0
- package/esm/src/api/exchange/_methods/approveAgent.d.ts +54 -91
- package/esm/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/approveAgent.js +33 -15
- package/esm/src/api/exchange/_methods/approveAgent.js.map +1 -1
- package/esm/src/api/exchange/_methods/approveBuilderFee.d.ts +37 -85
- package/esm/src/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/approveBuilderFee.js +13 -13
- package/esm/src/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/esm/src/api/exchange/_methods/batchModify.d.ts +101 -433
- package/esm/src/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/batchModify.js +31 -36
- package/esm/src/api/exchange/_methods/batchModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/borrowLend.d.ts +127 -0
- package/esm/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/borrowLend.js +75 -0
- package/esm/src/api/exchange/_methods/borrowLend.js.map +1 -0
- package/esm/src/api/exchange/_methods/cDeposit.d.ts +34 -80
- package/esm/src/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cDeposit.js +12 -12
- package/esm/src/api/exchange/_methods/cDeposit.js.map +1 -1
- package/esm/src/api/exchange/_methods/cSignerAction.d.ts +32 -79
- package/esm/src/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cSignerAction.js +12 -12
- package/esm/src/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/esm/src/api/exchange/_methods/cValidatorAction.d.ts +107 -314
- package/esm/src/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cValidatorAction.js +37 -37
- package/esm/src/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/esm/src/api/exchange/_methods/cWithdraw.d.ts +34 -80
- package/esm/src/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cWithdraw.js +12 -12
- package/esm/src/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/esm/src/api/exchange/_methods/cancel.d.ts +38 -100
- package/esm/src/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cancel.js +24 -24
- package/esm/src/api/exchange/_methods/cancel.js.map +1 -1
- package/esm/src/api/exchange/_methods/cancelByCloid.d.ts +38 -110
- package/esm/src/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cancelByCloid.js +14 -14
- package/esm/src/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/esm/src/api/exchange/_methods/claimRewards.d.ts +21 -60
- package/esm/src/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/claimRewards.js +9 -9
- package/esm/src/api/exchange/_methods/claimRewards.js.map +1 -1
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.d.ts +58 -122
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.js +17 -18
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/esm/src/api/exchange/_methods/createSubAccount.d.ts +27 -65
- package/esm/src/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/createSubAccount.js +16 -16
- package/esm/src/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/esm/src/api/exchange/_methods/createVault.d.ts +36 -80
- package/esm/src/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/createVault.js +19 -20
- package/esm/src/api/exchange/_methods/createVault.js.map +1 -1
- package/esm/src/api/exchange/_methods/evmUserModify.d.ts +26 -67
- package/esm/src/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/evmUserModify.js +10 -10
- package/esm/src/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/linkStakingUser.d.ts +37 -85
- package/esm/src/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/linkStakingUser.js +13 -17
- package/esm/src/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/esm/src/api/exchange/_methods/modify.d.ts +83 -265
- package/esm/src/api/exchange/_methods/modify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/modify.js +29 -34
- package/esm/src/api/exchange/_methods/modify.js.map +1 -1
- package/esm/src/api/exchange/_methods/noop.d.ts +21 -60
- package/esm/src/api/exchange/_methods/noop.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/noop.js +9 -9
- package/esm/src/api/exchange/_methods/noop.js.map +1 -1
- package/esm/src/api/exchange/_methods/order.d.ts +107 -367
- package/esm/src/api/exchange/_methods/order.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/order.js +53 -61
- package/esm/src/api/exchange/_methods/order.js.map +1 -1
- package/esm/src/api/exchange/_methods/perpDeploy.d.ts +245 -679
- package/esm/src/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/perpDeploy.js +83 -107
- package/esm/src/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/esm/src/api/exchange/_methods/registerReferrer.d.ts +26 -67
- package/esm/src/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/registerReferrer.js +10 -10
- package/esm/src/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/esm/src/api/exchange/_methods/reserveRequestWeight.d.ts +26 -67
- package/esm/src/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/reserveRequestWeight.js +10 -11
- package/esm/src/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/esm/src/api/exchange/_methods/scheduleCancel.d.ts +27 -69
- package/esm/src/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/scheduleCancel.js +11 -13
- package/esm/src/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/esm/src/api/exchange/_methods/sendAsset.d.ts +64 -120
- package/esm/src/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/sendAsset.js +17 -17
- package/esm/src/api/exchange/_methods/sendAsset.js.map +1 -1
- package/esm/src/api/exchange/_methods/setDisplayName.d.ts +26 -67
- package/esm/src/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/setDisplayName.js +10 -11
- package/esm/src/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/esm/src/api/exchange/_methods/setReferrer.d.ts +26 -67
- package/esm/src/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/setReferrer.js +10 -10
- package/esm/src/api/exchange/_methods/setReferrer.js.map +1 -1
- package/esm/src/api/exchange/_methods/spotDeploy.d.ts +164 -419
- package/esm/src/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/spotDeploy.js +56 -68
- package/esm/src/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/esm/src/api/exchange/_methods/spotSend.d.ts +50 -100
- package/esm/src/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/spotSend.js +14 -14
- package/esm/src/api/exchange/_methods/spotSend.js.map +1 -1
- package/esm/src/api/exchange/_methods/spotUser.d.ts +32 -83
- package/esm/src/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/spotUser.js +12 -12
- package/esm/src/api/exchange/_methods/spotUser.js.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountModify.d.ts +29 -72
- package/esm/src/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountModify.js +11 -11
- package/esm/src/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +40 -87
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.js +13 -13
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountTransfer.d.ts +32 -77
- package/esm/src/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountTransfer.js +12 -12
- package/esm/src/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/tokenDelegate.d.ts +40 -90
- package/esm/src/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/tokenDelegate.js +14 -14
- package/esm/src/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/esm/src/api/exchange/_methods/twapCancel.d.ts +32 -81
- package/esm/src/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/twapCancel.js +22 -22
- package/esm/src/api/exchange/_methods/twapCancel.js.map +1 -1
- package/esm/src/api/exchange/_methods/twapOrder.d.ts +53 -153
- package/esm/src/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/twapOrder.js +31 -31
- package/esm/src/api/exchange/_methods/twapOrder.js.map +1 -1
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.d.ts +33 -79
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.js +13 -13
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/esm/src/api/exchange/_methods/updateLeverage.d.ts +38 -84
- package/esm/src/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/updateLeverage.js +13 -13
- package/esm/src/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/esm/src/api/exchange/_methods/usdClassTransfer.d.ts +37 -85
- package/esm/src/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/usdClassTransfer.js +13 -13
- package/esm/src/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/usdSend.d.ts +42 -90
- package/esm/src/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/usdSend.js +13 -13
- package/esm/src/api/exchange/_methods/usdSend.js.map +1 -1
- package/esm/src/api/exchange/_methods/userDexAbstraction.d.ts +39 -85
- package/esm/src/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/userDexAbstraction.js +15 -13
- package/esm/src/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts +145 -0
- package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js +92 -0
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.d.ts +145 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.js +92 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.js.map +1 -0
- package/esm/src/api/exchange/_methods/validatorL1Stream.d.ts +26 -67
- package/esm/src/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/validatorL1Stream.js +10 -10
- package/esm/src/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/esm/src/api/exchange/_methods/vaultDistribute.d.ts +29 -72
- package/esm/src/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/vaultDistribute.js +11 -12
- package/esm/src/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/esm/src/api/exchange/_methods/vaultModify.d.ts +32 -77
- package/esm/src/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/vaultModify.js +12 -12
- package/esm/src/api/exchange/_methods/vaultModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/vaultTransfer.d.ts +32 -77
- package/esm/src/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/vaultTransfer.js +12 -12
- package/esm/src/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/withdraw3.d.ts +42 -90
- package/esm/src/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/withdraw3.js +13 -13
- package/esm/src/api/exchange/_methods/withdraw3.js.map +1 -1
- package/esm/src/api/exchange/client.d.ts +1284 -46
- package/esm/src/api/exchange/client.d.ts.map +1 -1
- package/esm/src/api/exchange/client.js +1261 -44
- package/esm/src/api/exchange/client.js.map +1 -1
- package/esm/src/api/exchange/mod.d.ts +4 -0
- package/esm/src/api/exchange/mod.d.ts.map +1 -1
- package/esm/src/api/exchange/mod.js +4 -0
- package/esm/src/api/exchange/mod.js.map +1 -1
- package/esm/src/api/info/_methods/_base/commonSchemas.d.ts +100 -196
- package/esm/src/api/info/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/esm/src/api/info/_methods/_base/commonSchemas.js +103 -141
- package/esm/src/api/info/_methods/_base/commonSchemas.js.map +1 -1
- package/esm/src/api/info/_methods/activeAssetData.d.ts +19 -44
- package/esm/src/api/info/_methods/activeAssetData.d.ts.map +1 -1
- package/esm/src/api/info/_methods/activeAssetData.js +20 -20
- package/esm/src/api/info/_methods/activeAssetData.js.map +1 -1
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +11 -20
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.js +12 -12
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts +51 -0
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js +53 -0
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
- package/esm/src/api/info/_methods/allMids.d.ts +5 -10
- package/esm/src/api/info/_methods/allMids.d.ts.map +1 -1
- package/esm/src/api/info/_methods/allMids.js +5 -5
- package/esm/src/api/info/_methods/allMids.js.map +1 -1
- package/esm/src/api/info/_methods/allPerpMetas.d.ts +24 -91
- package/esm/src/api/info/_methods/allPerpMetas.d.ts.map +1 -1
- package/esm/src/api/info/_methods/allPerpMetas.js +4 -4
- package/esm/src/api/info/_methods/allPerpMetas.js.map +1 -1
- package/esm/src/api/info/_methods/blockDetails.d.ts +24 -92
- package/esm/src/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/blockDetails.js +15 -15
- package/esm/src/api/info/_methods/blockDetails.js.map +1 -1
- package/esm/src/api/info/_methods/borrowLendReserveState.d.ts +67 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.js +76 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts +72 -0
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
- package/esm/src/api/info/_methods/borrowLendUserState.js +84 -0
- package/esm/src/api/info/_methods/borrowLendUserState.js.map +1 -0
- package/esm/src/api/info/_methods/candleSnapshot.d.ts +21 -45
- package/esm/src/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/esm/src/api/info/_methods/candleSnapshot.js +21 -21
- package/esm/src/api/info/_methods/candleSnapshot.js.map +1 -1
- package/esm/src/api/info/_methods/clearinghouseState.d.ts +48 -165
- package/esm/src/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/clearinghouseState.js +48 -48
- package/esm/src/api/info/_methods/clearinghouseState.js.map +1 -1
- package/esm/src/api/info/_methods/delegations.d.ts +9 -16
- package/esm/src/api/info/_methods/delegations.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegations.js +9 -9
- package/esm/src/api/info/_methods/delegations.js.map +1 -1
- package/esm/src/api/info/_methods/delegatorHistory.d.ts +22 -68
- package/esm/src/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegatorHistory.js +22 -22
- package/esm/src/api/info/_methods/delegatorHistory.js.map +1 -1
- package/esm/src/api/info/_methods/delegatorRewards.d.ts +9 -16
- package/esm/src/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegatorRewards.js +9 -9
- package/esm/src/api/info/_methods/delegatorRewards.js.map +1 -1
- package/esm/src/api/info/_methods/delegatorSummary.d.ts +10 -18
- package/esm/src/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegatorSummary.js +10 -10
- package/esm/src/api/info/_methods/delegatorSummary.js.map +1 -1
- package/esm/src/api/info/_methods/exchangeStatus.d.ts +7 -12
- package/esm/src/api/info/_methods/exchangeStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/exchangeStatus.js +7 -7
- package/esm/src/api/info/_methods/exchangeStatus.js.map +1 -1
- package/esm/src/api/info/_methods/extraAgents.d.ts +9 -16
- package/esm/src/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/esm/src/api/info/_methods/extraAgents.js +9 -9
- package/esm/src/api/info/_methods/extraAgents.js.map +1 -1
- package/esm/src/api/info/_methods/frontendOpenOrders.d.ts +23 -61
- package/esm/src/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/esm/src/api/info/_methods/frontendOpenOrders.js +6 -6
- package/esm/src/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/esm/src/api/info/_methods/fundingHistory.d.ts +12 -22
- package/esm/src/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/esm/src/api/info/_methods/fundingHistory.js +12 -12
- package/esm/src/api/info/_methods/fundingHistory.js.map +1 -1
- package/esm/src/api/info/_methods/gossipRootIps.d.ts +4 -6
- package/esm/src/api/info/_methods/gossipRootIps.d.ts.map +1 -1
- package/esm/src/api/info/_methods/gossipRootIps.js +4 -4
- package/esm/src/api/info/_methods/gossipRootIps.js.map +1 -1
- package/esm/src/api/info/_methods/historicalOrders.d.ts +26 -84
- package/esm/src/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/esm/src/api/info/_methods/historicalOrders.js +9 -38
- package/esm/src/api/info/_methods/historicalOrders.js.map +1 -1
- package/esm/src/api/info/_methods/isVip.d.ts +5 -8
- package/esm/src/api/info/_methods/isVip.d.ts.map +1 -1
- package/esm/src/api/info/_methods/isVip.js +5 -5
- package/esm/src/api/info/_methods/isVip.js.map +1 -1
- package/esm/src/api/info/_methods/l2Book.d.ts +21 -52
- package/esm/src/api/info/_methods/l2Book.d.ts.map +1 -1
- package/esm/src/api/info/_methods/l2Book.js +18 -16
- package/esm/src/api/info/_methods/l2Book.js.map +1 -1
- package/esm/src/api/info/_methods/leadingVaults.d.ts +8 -14
- package/esm/src/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/esm/src/api/info/_methods/leadingVaults.js +8 -8
- package/esm/src/api/info/_methods/leadingVaults.js.map +1 -1
- package/esm/src/api/info/_methods/legalCheck.d.ts +9 -16
- package/esm/src/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/esm/src/api/info/_methods/legalCheck.js +9 -9
- package/esm/src/api/info/_methods/legalCheck.js.map +1 -1
- package/esm/src/api/info/_methods/liquidatable.d.ts +4 -6
- package/esm/src/api/info/_methods/liquidatable.d.ts.map +1 -1
- package/esm/src/api/info/_methods/liquidatable.js +4 -4
- package/esm/src/api/info/_methods/liquidatable.js.map +1 -1
- package/esm/src/api/info/_methods/marginTable.d.ts +11 -23
- package/esm/src/api/info/_methods/marginTable.d.ts.map +1 -1
- package/esm/src/api/info/_methods/marginTable.js +11 -11
- package/esm/src/api/info/_methods/marginTable.js.map +1 -1
- package/esm/src/api/info/_methods/maxBuilderFee.d.ts +6 -10
- package/esm/src/api/info/_methods/maxBuilderFee.d.ts.map +1 -1
- package/esm/src/api/info/_methods/maxBuilderFee.js +6 -6
- package/esm/src/api/info/_methods/maxBuilderFee.js.map +1 -1
- package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts +4 -6
- package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
- package/esm/src/api/info/_methods/maxMarketOrderNtls.js +5 -5
- package/esm/src/api/info/_methods/maxMarketOrderNtls.js.map +1 -1
- package/esm/src/api/info/_methods/meta.d.ts +25 -73
- package/esm/src/api/info/_methods/meta.d.ts.map +1 -1
- package/esm/src/api/info/_methods/meta.js +19 -22
- package/esm/src/api/info/_methods/meta.js.map +1 -1
- package/esm/src/api/info/_methods/metaAndAssetCtxs.d.ts +36 -126
- package/esm/src/api/info/_methods/metaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/metaAndAssetCtxs.js +5 -8
- package/esm/src/api/info/_methods/metaAndAssetCtxs.js.map +1 -1
- package/esm/src/api/info/_methods/openOrders.d.ts +16 -40
- package/esm/src/api/info/_methods/openOrders.d.ts.map +1 -1
- package/esm/src/api/info/_methods/openOrders.js +6 -6
- package/esm/src/api/info/_methods/openOrders.js.map +1 -1
- package/esm/src/api/info/_methods/orderStatus.d.ts +31 -116
- package/esm/src/api/info/_methods/orderStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/orderStatus.js +14 -45
- package/esm/src/api/info/_methods/orderStatus.js.map +1 -1
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.d.ts +10 -18
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.js +10 -10
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexLimits.d.ts +10 -18
- package/esm/src/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexLimits.js +10 -10
- package/esm/src/api/info/_methods/perpDexLimits.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexStatus.d.ts +7 -12
- package/esm/src/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexStatus.js +7 -7
- package/esm/src/api/info/_methods/perpDexStatus.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexs.d.ts +17 -39
- package/esm/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexs.js +18 -19
- package/esm/src/api/info/_methods/perpDexs.js.map +1 -1
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.d.ts +5 -8
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.js +5 -5
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.js.map +1 -1
- package/esm/src/api/info/_methods/portfolio.d.ts +37 -104
- package/esm/src/api/info/_methods/portfolio.d.ts.map +1 -1
- package/esm/src/api/info/_methods/portfolio.js +11 -11
- package/esm/src/api/info/_methods/portfolio.js.map +1 -1
- package/esm/src/api/info/_methods/preTransferCheck.d.ts +11 -20
- package/esm/src/api/info/_methods/preTransferCheck.d.ts.map +1 -1
- package/esm/src/api/info/_methods/preTransferCheck.js +11 -11
- package/esm/src/api/info/_methods/preTransferCheck.js.map +1 -1
- package/esm/src/api/info/_methods/predictedFundings.d.ts +8 -14
- package/esm/src/api/info/_methods/predictedFundings.d.ts.map +1 -1
- package/esm/src/api/info/_methods/predictedFundings.js +8 -8
- package/esm/src/api/info/_methods/predictedFundings.js.map +1 -1
- package/esm/src/api/info/_methods/recentTrades.d.ts +14 -26
- package/esm/src/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/esm/src/api/info/_methods/recentTrades.js +14 -14
- package/esm/src/api/info/_methods/recentTrades.js.map +1 -1
- package/esm/src/api/info/_methods/referral.d.ts +50 -170
- package/esm/src/api/info/_methods/referral.d.ts.map +1 -1
- package/esm/src/api/info/_methods/referral.js +50 -50
- package/esm/src/api/info/_methods/referral.js.map +1 -1
- package/esm/src/api/info/_methods/spotClearinghouseState.d.ts +19 -46
- package/esm/src/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotClearinghouseState.js +19 -19
- package/esm/src/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/esm/src/api/info/_methods/spotDeployState.d.ts +30 -96
- package/esm/src/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotDeployState.js +24 -24
- package/esm/src/api/info/_methods/spotDeployState.js.map +1 -1
- package/esm/src/api/info/_methods/spotMeta.d.ts +54 -69
- package/esm/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotMeta.js +54 -25
- package/esm/src/api/info/_methods/spotMeta.js.map +1 -1
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +50 -117
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.js +4 -7
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.js.map +1 -1
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +10 -24
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.js +4 -4
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.js.map +1 -1
- package/esm/src/api/info/_methods/subAccounts.d.ts +66 -323
- package/esm/src/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/esm/src/api/info/_methods/subAccounts.js +11 -11
- package/esm/src/api/info/_methods/subAccounts.js.map +1 -1
- package/esm/src/api/info/_methods/subAccounts2.d.ts +67 -325
- package/esm/src/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/esm/src/api/info/_methods/subAccounts2.js +11 -12
- package/esm/src/api/info/_methods/subAccounts2.js.map +1 -1
- package/esm/src/api/info/_methods/tokenDetails.d.ts +26 -54
- package/esm/src/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/tokenDetails.js +26 -26
- package/esm/src/api/info/_methods/tokenDetails.js.map +1 -1
- package/esm/src/api/info/_methods/twapHistory.d.ts +25 -76
- package/esm/src/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/esm/src/api/info/_methods/twapHistory.js +14 -18
- package/esm/src/api/info/_methods/twapHistory.js.map +1 -1
- package/esm/src/api/info/_methods/txDetails.d.ts +17 -60
- package/esm/src/api/info/_methods/txDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/txDetails.js +8 -8
- package/esm/src/api/info/_methods/txDetails.js.map +1 -1
- package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts +63 -0
- package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
- package/esm/src/api/info/_methods/userBorrowLendInterest.js +72 -0
- package/esm/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
- package/esm/src/api/info/_methods/userDetails.d.ts +17 -60
- package/esm/src/api/info/_methods/userDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userDetails.js +8 -8
- package/esm/src/api/info/_methods/userDetails.js.map +1 -1
- package/esm/src/api/info/_methods/userDexAbstraction.d.ts +5 -8
- package/esm/src/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userDexAbstraction.js +5 -5
- package/esm/src/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/esm/src/api/info/_methods/userFees.d.ts +52 -160
- package/esm/src/api/info/_methods/userFees.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFees.js +52 -59
- package/esm/src/api/info/_methods/userFees.js.map +1 -1
- package/esm/src/api/info/_methods/userFills.d.ts +30 -76
- package/esm/src/api/info/_methods/userFills.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFills.js +13 -13
- package/esm/src/api/info/_methods/userFills.js.map +1 -1
- package/esm/src/api/info/_methods/userFillsByTime.d.ts +32 -103
- package/esm/src/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFillsByTime.js +8 -8
- package/esm/src/api/info/_methods/userFillsByTime.js.map +1 -1
- package/esm/src/api/info/_methods/userFunding.d.ts +18 -41
- package/esm/src/api/info/_methods/userFunding.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFunding.js +18 -18
- package/esm/src/api/info/_methods/userFunding.js.map +1 -1
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +115 -282
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js +121 -88
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/src/api/info/_methods/userRateLimit.d.ts +10 -18
- package/esm/src/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userRateLimit.js +10 -10
- package/esm/src/api/info/_methods/userRateLimit.js.map +1 -1
- package/esm/src/api/info/_methods/userRole.d.ts +15 -34
- package/esm/src/api/info/_methods/userRole.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userRole.js +15 -15
- package/esm/src/api/info/_methods/userRole.js.map +1 -1
- package/esm/src/api/info/_methods/userToMultiSigSigners.d.ts +8 -14
- package/esm/src/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userToMultiSigSigners.js +8 -8
- package/esm/src/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFills.d.ts +25 -78
- package/esm/src/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFills.js +8 -8
- package/esm/src/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +28 -103
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.js +8 -8
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/esm/src/api/info/_methods/userVaultEquities.d.ts +9 -16
- package/esm/src/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userVaultEquities.js +9 -9
- package/esm/src/api/info/_methods/userVaultEquities.js.map +1 -1
- package/esm/src/api/info/_methods/validatorL1Votes.d.ts +9 -23
- package/esm/src/api/info/_methods/validatorL1Votes.d.ts.map +1 -1
- package/esm/src/api/info/_methods/validatorL1Votes.js +11 -11
- package/esm/src/api/info/_methods/validatorL1Votes.js.map +1 -1
- package/esm/src/api/info/_methods/validatorSummaries.d.ts +28 -78
- package/esm/src/api/info/_methods/validatorSummaries.d.ts.map +1 -1
- package/esm/src/api/info/_methods/validatorSummaries.js +22 -22
- package/esm/src/api/info/_methods/validatorSummaries.js.map +1 -1
- package/esm/src/api/info/_methods/vaultDetails.d.ts +77 -281
- package/esm/src/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/vaultDetails.js +39 -39
- package/esm/src/api/info/_methods/vaultDetails.js.map +1 -1
- package/esm/src/api/info/_methods/vaultSummaries.d.ts +18 -51
- package/esm/src/api/info/_methods/vaultSummaries.d.ts.map +1 -1
- package/esm/src/api/info/_methods/vaultSummaries.js +12 -12
- package/esm/src/api/info/_methods/vaultSummaries.js.map +1 -1
- package/esm/src/api/info/_methods/webData2.d.ts +149 -673
- package/esm/src/api/info/_methods/webData2.d.ts.map +1 -1
- package/esm/src/api/info/_methods/webData2.js +23 -23
- package/esm/src/api/info/_methods/webData2.js.map +1 -1
- package/esm/src/api/info/client.d.ts +1581 -67
- package/esm/src/api/info/client.d.ts.map +1 -1
- package/esm/src/api/info/client.js +1494 -63
- package/esm/src/api/info/client.js.map +1 -1
- package/esm/src/api/info/mod.d.ts +4 -0
- package/esm/src/api/info/mod.d.ts.map +1 -1
- package/esm/src/api/info/mod.js +4 -0
- package/esm/src/api/info/mod.js.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetCtx.d.ts +19 -58
- package/esm/src/api/subscription/_methods/activeAssetCtx.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetCtx.js +8 -8
- package/esm/src/api/subscription/_methods/activeAssetCtx.js.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetData.d.ts +19 -58
- package/esm/src/api/subscription/_methods/activeAssetData.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetData.js +6 -6
- package/esm/src/api/subscription/_methods/activeAssetData.js.map +1 -1
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +17 -50
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.js +8 -8
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.js.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +17 -54
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.js +6 -9
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +50 -255
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.js +8 -11
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.js.map +1 -1
- package/esm/src/api/subscription/_methods/allMids.d.ts +8 -20
- package/esm/src/api/subscription/_methods/allMids.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/allMids.js +8 -8
- package/esm/src/api/subscription/_methods/allMids.js.map +1 -1
- package/esm/src/api/subscription/_methods/assetCtxs.d.ts +19 -58
- package/esm/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/assetCtxs.js +8 -8
- package/esm/src/api/subscription/_methods/assetCtxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/bbo.d.ts +17 -48
- package/esm/src/api/subscription/_methods/bbo.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/bbo.js +14 -14
- package/esm/src/api/subscription/_methods/bbo.js.map +1 -1
- package/esm/src/api/subscription/_methods/candle.d.ts +17 -32
- package/esm/src/api/subscription/_methods/candle.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/candle.js +17 -17
- package/esm/src/api/subscription/_methods/candle.js.map +1 -1
- package/esm/src/api/subscription/_methods/clearinghouseState.d.ts +52 -259
- package/esm/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/clearinghouseState.js +10 -10
- package/esm/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
- package/esm/src/api/subscription/_methods/explorerBlock.d.ts +10 -18
- package/esm/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/explorerBlock.js +10 -10
- package/esm/src/api/subscription/_methods/explorerBlock.js.map +1 -1
- package/esm/src/api/subscription/_methods/explorerTxs.d.ts +13 -41
- package/esm/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/explorerTxs.js +4 -4
- package/esm/src/api/subscription/_methods/explorerTxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/l2Book.d.ts +21 -52
- package/esm/src/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/l2Book.js +18 -16
- package/esm/src/api/subscription/_methods/l2Book.js.map +1 -1
- package/esm/src/api/subscription/_methods/notification.d.ts +7 -12
- package/esm/src/api/subscription/_methods/notification.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/notification.js +7 -7
- package/esm/src/api/subscription/_methods/notification.js.map +1 -1
- package/esm/src/api/subscription/_methods/openOrders.d.ts +27 -103
- package/esm/src/api/subscription/_methods/openOrders.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/openOrders.js +10 -10
- package/esm/src/api/subscription/_methods/openOrders.js.map +1 -1
- package/esm/src/api/subscription/_methods/orderUpdates.d.ts +19 -56
- package/esm/src/api/subscription/_methods/orderUpdates.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/orderUpdates.js +9 -38
- package/esm/src/api/subscription/_methods/orderUpdates.js.map +1 -1
- package/esm/src/api/subscription/_methods/spotAssetCtxs.d.ts +13 -33
- package/esm/src/api/subscription/_methods/spotAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/spotAssetCtxs.js +4 -4
- package/esm/src/api/subscription/_methods/spotAssetCtxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/spotState.d.ts +22 -78
- package/esm/src/api/subscription/_methods/spotState.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/spotState.js +9 -9
- package/esm/src/api/subscription/_methods/spotState.js.map +1 -1
- package/esm/src/api/subscription/_methods/trades.d.ts +14 -35
- package/esm/src/api/subscription/_methods/trades.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/trades.js +5 -5
- package/esm/src/api/subscription/_methods/trades.js.map +1 -1
- package/esm/src/api/subscription/_methods/twapStates.d.ts +21 -62
- package/esm/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/twapStates.js +10 -10
- package/esm/src/api/subscription/_methods/twapStates.js.map +1 -1
- package/esm/src/api/subscription/_methods/userEvents.d.ts +91 -402
- package/esm/src/api/subscription/_methods/userEvents.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userEvents.js +27 -27
- package/esm/src/api/subscription/_methods/userEvents.js.map +1 -1
- package/esm/src/api/subscription/_methods/userFills.d.ts +34 -130
- package/esm/src/api/subscription/_methods/userFills.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userFills.js +10 -10
- package/esm/src/api/subscription/_methods/userFills.js.map +1 -1
- package/esm/src/api/subscription/_methods/userFundings.d.ts +16 -37
- package/esm/src/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userFundings.js +16 -16
- package/esm/src/api/subscription/_methods/userFundings.js.map +1 -1
- package/esm/src/api/subscription/_methods/userHistoricalOrders.d.ts +30 -134
- package/esm/src/api/subscription/_methods/userHistoricalOrders.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userHistoricalOrders.js +9 -9
- package/esm/src/api/subscription/_methods/userHistoricalOrders.js.map +1 -1
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +105 -476
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.js +9 -9
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapHistory.d.ts +29 -126
- package/esm/src/api/subscription/_methods/userTwapHistory.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapHistory.js +9 -9
- package/esm/src/api/subscription/_methods/userTwapHistory.js.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapSliceFills.d.ts +29 -124
- package/esm/src/api/subscription/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapSliceFills.js +9 -9
- package/esm/src/api/subscription/_methods/userTwapSliceFills.js.map +1 -1
- package/esm/src/api/subscription/_methods/webData2.d.ts +149 -818
- package/esm/src/api/subscription/_methods/webData2.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/webData2.js +5 -5
- package/esm/src/api/subscription/_methods/webData2.js.map +1 -1
- package/esm/src/api/subscription/_methods/webData3.d.ts +25 -71
- package/esm/src/api/subscription/_methods/webData3.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/webData3.js +22 -22
- package/esm/src/api/subscription/_methods/webData3.js.map +1 -1
- package/esm/src/api/subscription/client.d.ts +664 -29
- package/esm/src/api/subscription/client.d.ts.map +1 -1
- package/esm/src/api/subscription/client.js +618 -27
- package/esm/src/api/subscription/client.js.map +1 -1
- package/esm/src/signing/_abstractWallet.d.ts +33 -66
- package/esm/src/signing/_abstractWallet.d.ts.map +1 -1
- package/esm/src/signing/_abstractWallet.js +39 -63
- package/esm/src/signing/_abstractWallet.js.map +1 -1
- package/esm/src/signing/_privateKeySigner.d.ts.map +1 -1
- package/esm/src/signing/_privateKeySigner.js +2 -7
- package/esm/src/signing/_privateKeySigner.js.map +1 -1
- package/esm/src/signing/mod.d.ts.map +1 -1
- package/esm/src/signing/mod.js +11 -10
- package/esm/src/signing/mod.js.map +1 -1
- package/package.json +1 -1
- package/script/bin/_utils.d.ts +33 -1
- package/script/bin/_utils.d.ts.map +1 -1
- package/script/bin/_utils.js +17 -1
- package/script/bin/_utils.js.map +1 -1
- package/script/bin/cli.js +288 -252
- package/script/bin/cli.js.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.d.ts +1 -0
- package/script/deps/jsr.io/@std/async/1.1.1/unstable_semaphore.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.js +4 -3
- package/script/deps/jsr.io/@std/async/1.1.1/unstable_semaphore.js.map +1 -0
- package/script/src/api/_schemas.d.ts +9 -0
- package/script/src/api/_schemas.d.ts.map +1 -1
- package/script/src/api/_schemas.js +10 -1
- package/script/src/api/_schemas.js.map +1 -1
- package/script/src/api/exchange/_methods/_base/_semaphore.js +1 -1
- package/script/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
- package/script/src/api/exchange/_methods/_base/commonSchemas.d.ts +16 -30
- package/script/src/api/exchange/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/_base/commonSchemas.js +16 -16
- package/script/src/api/exchange/_methods/_base/commonSchemas.js.map +1 -1
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +23 -60
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.js +11 -9
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/_methods/agentSetAbstraction.d.ts +126 -0
- package/script/src/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/agentSetAbstraction.js +119 -0
- package/script/src/api/exchange/_methods/agentSetAbstraction.js.map +1 -0
- package/script/src/api/exchange/_methods/approveAgent.d.ts +54 -91
- package/script/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/approveAgent.js +33 -15
- package/script/src/api/exchange/_methods/approveAgent.js.map +1 -1
- package/script/src/api/exchange/_methods/approveBuilderFee.d.ts +37 -85
- package/script/src/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/approveBuilderFee.js +13 -13
- package/script/src/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/script/src/api/exchange/_methods/batchModify.d.ts +101 -433
- package/script/src/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/batchModify.js +31 -36
- package/script/src/api/exchange/_methods/batchModify.js.map +1 -1
- package/script/src/api/exchange/_methods/borrowLend.d.ts +127 -0
- package/script/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/borrowLend.js +112 -0
- package/script/src/api/exchange/_methods/borrowLend.js.map +1 -0
- package/script/src/api/exchange/_methods/cDeposit.d.ts +34 -80
- package/script/src/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cDeposit.js +12 -12
- package/script/src/api/exchange/_methods/cDeposit.js.map +1 -1
- package/script/src/api/exchange/_methods/cSignerAction.d.ts +32 -79
- package/script/src/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cSignerAction.js +12 -12
- package/script/src/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/script/src/api/exchange/_methods/cValidatorAction.d.ts +107 -314
- package/script/src/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cValidatorAction.js +37 -37
- package/script/src/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/script/src/api/exchange/_methods/cWithdraw.d.ts +34 -80
- package/script/src/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cWithdraw.js +12 -12
- package/script/src/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/script/src/api/exchange/_methods/cancel.d.ts +38 -100
- package/script/src/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cancel.js +24 -24
- package/script/src/api/exchange/_methods/cancel.js.map +1 -1
- package/script/src/api/exchange/_methods/cancelByCloid.d.ts +38 -110
- package/script/src/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cancelByCloid.js +14 -14
- package/script/src/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/script/src/api/exchange/_methods/claimRewards.d.ts +21 -60
- package/script/src/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/claimRewards.js +9 -9
- package/script/src/api/exchange/_methods/claimRewards.js.map +1 -1
- package/script/src/api/exchange/_methods/convertToMultiSigUser.d.ts +58 -122
- package/script/src/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/convertToMultiSigUser.js +17 -18
- package/script/src/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/script/src/api/exchange/_methods/createSubAccount.d.ts +27 -65
- package/script/src/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/createSubAccount.js +16 -16
- package/script/src/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/script/src/api/exchange/_methods/createVault.d.ts +36 -80
- package/script/src/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/createVault.js +19 -20
- package/script/src/api/exchange/_methods/createVault.js.map +1 -1
- package/script/src/api/exchange/_methods/evmUserModify.d.ts +26 -67
- package/script/src/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/evmUserModify.js +10 -10
- package/script/src/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/script/src/api/exchange/_methods/linkStakingUser.d.ts +37 -85
- package/script/src/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/linkStakingUser.js +13 -17
- package/script/src/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/script/src/api/exchange/_methods/modify.d.ts +83 -265
- package/script/src/api/exchange/_methods/modify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/modify.js +29 -34
- package/script/src/api/exchange/_methods/modify.js.map +1 -1
- package/script/src/api/exchange/_methods/noop.d.ts +21 -60
- package/script/src/api/exchange/_methods/noop.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/noop.js +9 -9
- package/script/src/api/exchange/_methods/noop.js.map +1 -1
- package/script/src/api/exchange/_methods/order.d.ts +107 -367
- package/script/src/api/exchange/_methods/order.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/order.js +53 -61
- package/script/src/api/exchange/_methods/order.js.map +1 -1
- package/script/src/api/exchange/_methods/perpDeploy.d.ts +245 -679
- package/script/src/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/perpDeploy.js +83 -107
- package/script/src/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/script/src/api/exchange/_methods/registerReferrer.d.ts +26 -67
- package/script/src/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/registerReferrer.js +10 -10
- package/script/src/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/script/src/api/exchange/_methods/reserveRequestWeight.d.ts +26 -67
- package/script/src/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/reserveRequestWeight.js +10 -11
- package/script/src/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/script/src/api/exchange/_methods/scheduleCancel.d.ts +27 -69
- package/script/src/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/scheduleCancel.js +11 -13
- package/script/src/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/script/src/api/exchange/_methods/sendAsset.d.ts +64 -120
- package/script/src/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/sendAsset.js +17 -17
- package/script/src/api/exchange/_methods/sendAsset.js.map +1 -1
- package/script/src/api/exchange/_methods/setDisplayName.d.ts +26 -67
- package/script/src/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/setDisplayName.js +10 -11
- package/script/src/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/script/src/api/exchange/_methods/setReferrer.d.ts +26 -67
- package/script/src/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/setReferrer.js +10 -10
- package/script/src/api/exchange/_methods/setReferrer.js.map +1 -1
- package/script/src/api/exchange/_methods/spotDeploy.d.ts +164 -419
- package/script/src/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/spotDeploy.js +56 -68
- package/script/src/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/script/src/api/exchange/_methods/spotSend.d.ts +50 -100
- package/script/src/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/spotSend.js +14 -14
- package/script/src/api/exchange/_methods/spotSend.js.map +1 -1
- package/script/src/api/exchange/_methods/spotUser.d.ts +32 -83
- package/script/src/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/spotUser.js +12 -12
- package/script/src/api/exchange/_methods/spotUser.js.map +1 -1
- package/script/src/api/exchange/_methods/subAccountModify.d.ts +29 -72
- package/script/src/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/subAccountModify.js +11 -11
- package/script/src/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +40 -87
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.js +13 -13
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/subAccountTransfer.d.ts +32 -77
- package/script/src/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/subAccountTransfer.js +12 -12
- package/script/src/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/tokenDelegate.d.ts +40 -90
- package/script/src/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/tokenDelegate.js +14 -14
- package/script/src/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/script/src/api/exchange/_methods/twapCancel.d.ts +32 -81
- package/script/src/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/twapCancel.js +22 -22
- package/script/src/api/exchange/_methods/twapCancel.js.map +1 -1
- package/script/src/api/exchange/_methods/twapOrder.d.ts +53 -153
- package/script/src/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/twapOrder.js +31 -31
- package/script/src/api/exchange/_methods/twapOrder.js.map +1 -1
- package/script/src/api/exchange/_methods/updateIsolatedMargin.d.ts +33 -79
- package/script/src/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/updateIsolatedMargin.js +13 -13
- package/script/src/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/script/src/api/exchange/_methods/updateLeverage.d.ts +38 -84
- package/script/src/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/updateLeverage.js +13 -13
- package/script/src/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/script/src/api/exchange/_methods/usdClassTransfer.d.ts +37 -85
- package/script/src/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/usdClassTransfer.js +13 -13
- package/script/src/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/usdSend.d.ts +42 -90
- package/script/src/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/usdSend.js +13 -13
- package/script/src/api/exchange/_methods/usdSend.js.map +1 -1
- package/script/src/api/exchange/_methods/userDexAbstraction.d.ts +39 -85
- package/script/src/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/userDexAbstraction.js +15 -13
- package/script/src/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts +145 -0
- package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/userPortfolioMargin.js +129 -0
- package/script/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.d.ts +145 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.js +129 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.js.map +1 -0
- package/script/src/api/exchange/_methods/validatorL1Stream.d.ts +26 -67
- package/script/src/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/validatorL1Stream.js +10 -10
- package/script/src/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/script/src/api/exchange/_methods/vaultDistribute.d.ts +29 -72
- package/script/src/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/vaultDistribute.js +11 -12
- package/script/src/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/script/src/api/exchange/_methods/vaultModify.d.ts +32 -77
- package/script/src/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/vaultModify.js +12 -12
- package/script/src/api/exchange/_methods/vaultModify.js.map +1 -1
- package/script/src/api/exchange/_methods/vaultTransfer.d.ts +32 -77
- package/script/src/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/vaultTransfer.js +12 -12
- package/script/src/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/withdraw3.d.ts +42 -90
- package/script/src/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/withdraw3.js +13 -13
- package/script/src/api/exchange/_methods/withdraw3.js.map +1 -1
- package/script/src/api/exchange/client.d.ts +1284 -46
- package/script/src/api/exchange/client.d.ts.map +1 -1
- package/script/src/api/exchange/client.js +1261 -44
- package/script/src/api/exchange/client.js.map +1 -1
- package/script/src/api/exchange/mod.d.ts +4 -0
- package/script/src/api/exchange/mod.d.ts.map +1 -1
- package/script/src/api/exchange/mod.js +4 -0
- package/script/src/api/exchange/mod.js.map +1 -1
- package/script/src/api/info/_methods/_base/commonSchemas.d.ts +100 -196
- package/script/src/api/info/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/script/src/api/info/_methods/_base/commonSchemas.js +103 -141
- package/script/src/api/info/_methods/_base/commonSchemas.js.map +1 -1
- package/script/src/api/info/_methods/activeAssetData.d.ts +19 -44
- package/script/src/api/info/_methods/activeAssetData.d.ts.map +1 -1
- package/script/src/api/info/_methods/activeAssetData.js +19 -19
- package/script/src/api/info/_methods/activeAssetData.js.map +1 -1
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +11 -20
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.js +12 -12
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts +51 -0
- package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js +90 -0
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
- package/script/src/api/info/_methods/allMids.d.ts +5 -10
- package/script/src/api/info/_methods/allMids.d.ts.map +1 -1
- package/script/src/api/info/_methods/allMids.js +5 -5
- package/script/src/api/info/_methods/allMids.js.map +1 -1
- package/script/src/api/info/_methods/allPerpMetas.d.ts +24 -91
- package/script/src/api/info/_methods/allPerpMetas.d.ts.map +1 -1
- package/script/src/api/info/_methods/allPerpMetas.js +4 -4
- package/script/src/api/info/_methods/allPerpMetas.js.map +1 -1
- package/script/src/api/info/_methods/blockDetails.d.ts +24 -92
- package/script/src/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/blockDetails.js +15 -15
- package/script/src/api/info/_methods/blockDetails.js.map +1 -1
- package/script/src/api/info/_methods/borrowLendReserveState.d.ts +67 -0
- package/script/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
- package/script/src/api/info/_methods/borrowLendReserveState.js +113 -0
- package/script/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
- package/script/src/api/info/_methods/borrowLendUserState.d.ts +72 -0
- package/script/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
- package/script/src/api/info/_methods/borrowLendUserState.js +121 -0
- package/script/src/api/info/_methods/borrowLendUserState.js.map +1 -0
- package/script/src/api/info/_methods/candleSnapshot.d.ts +21 -45
- package/script/src/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/script/src/api/info/_methods/candleSnapshot.js +21 -21
- package/script/src/api/info/_methods/candleSnapshot.js.map +1 -1
- package/script/src/api/info/_methods/clearinghouseState.d.ts +48 -165
- package/script/src/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/script/src/api/info/_methods/clearinghouseState.js +48 -48
- package/script/src/api/info/_methods/clearinghouseState.js.map +1 -1
- package/script/src/api/info/_methods/delegations.d.ts +9 -16
- package/script/src/api/info/_methods/delegations.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegations.js +9 -9
- package/script/src/api/info/_methods/delegations.js.map +1 -1
- package/script/src/api/info/_methods/delegatorHistory.d.ts +22 -68
- package/script/src/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegatorHistory.js +22 -22
- package/script/src/api/info/_methods/delegatorHistory.js.map +1 -1
- package/script/src/api/info/_methods/delegatorRewards.d.ts +9 -16
- package/script/src/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegatorRewards.js +9 -9
- package/script/src/api/info/_methods/delegatorRewards.js.map +1 -1
- package/script/src/api/info/_methods/delegatorSummary.d.ts +10 -18
- package/script/src/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegatorSummary.js +10 -10
- package/script/src/api/info/_methods/delegatorSummary.js.map +1 -1
- package/script/src/api/info/_methods/exchangeStatus.d.ts +7 -12
- package/script/src/api/info/_methods/exchangeStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/exchangeStatus.js +7 -7
- package/script/src/api/info/_methods/exchangeStatus.js.map +1 -1
- package/script/src/api/info/_methods/extraAgents.d.ts +9 -16
- package/script/src/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/script/src/api/info/_methods/extraAgents.js +9 -9
- package/script/src/api/info/_methods/extraAgents.js.map +1 -1
- package/script/src/api/info/_methods/frontendOpenOrders.d.ts +23 -61
- package/script/src/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/script/src/api/info/_methods/frontendOpenOrders.js +6 -6
- package/script/src/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/script/src/api/info/_methods/fundingHistory.d.ts +12 -22
- package/script/src/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/script/src/api/info/_methods/fundingHistory.js +12 -12
- package/script/src/api/info/_methods/fundingHistory.js.map +1 -1
- package/script/src/api/info/_methods/gossipRootIps.d.ts +4 -6
- package/script/src/api/info/_methods/gossipRootIps.d.ts.map +1 -1
- package/script/src/api/info/_methods/gossipRootIps.js +4 -4
- package/script/src/api/info/_methods/gossipRootIps.js.map +1 -1
- package/script/src/api/info/_methods/historicalOrders.d.ts +26 -84
- package/script/src/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/script/src/api/info/_methods/historicalOrders.js +9 -38
- package/script/src/api/info/_methods/historicalOrders.js.map +1 -1
- package/script/src/api/info/_methods/isVip.d.ts +5 -8
- package/script/src/api/info/_methods/isVip.d.ts.map +1 -1
- package/script/src/api/info/_methods/isVip.js +5 -5
- package/script/src/api/info/_methods/isVip.js.map +1 -1
- package/script/src/api/info/_methods/l2Book.d.ts +21 -52
- package/script/src/api/info/_methods/l2Book.d.ts.map +1 -1
- package/script/src/api/info/_methods/l2Book.js +18 -16
- package/script/src/api/info/_methods/l2Book.js.map +1 -1
- package/script/src/api/info/_methods/leadingVaults.d.ts +8 -14
- package/script/src/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/script/src/api/info/_methods/leadingVaults.js +8 -8
- package/script/src/api/info/_methods/leadingVaults.js.map +1 -1
- package/script/src/api/info/_methods/legalCheck.d.ts +9 -16
- package/script/src/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/script/src/api/info/_methods/legalCheck.js +9 -9
- package/script/src/api/info/_methods/legalCheck.js.map +1 -1
- package/script/src/api/info/_methods/liquidatable.d.ts +4 -6
- package/script/src/api/info/_methods/liquidatable.d.ts.map +1 -1
- package/script/src/api/info/_methods/liquidatable.js +4 -4
- package/script/src/api/info/_methods/liquidatable.js.map +1 -1
- package/script/src/api/info/_methods/marginTable.d.ts +11 -23
- package/script/src/api/info/_methods/marginTable.d.ts.map +1 -1
- package/script/src/api/info/_methods/marginTable.js +11 -11
- package/script/src/api/info/_methods/marginTable.js.map +1 -1
- package/script/src/api/info/_methods/maxBuilderFee.d.ts +6 -10
- package/script/src/api/info/_methods/maxBuilderFee.d.ts.map +1 -1
- package/script/src/api/info/_methods/maxBuilderFee.js +6 -6
- package/script/src/api/info/_methods/maxBuilderFee.js.map +1 -1
- package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts +4 -6
- package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
- package/script/src/api/info/_methods/maxMarketOrderNtls.js +4 -4
- package/script/src/api/info/_methods/maxMarketOrderNtls.js.map +1 -1
- package/script/src/api/info/_methods/meta.d.ts +25 -73
- package/script/src/api/info/_methods/meta.d.ts.map +1 -1
- package/script/src/api/info/_methods/meta.js +19 -22
- package/script/src/api/info/_methods/meta.js.map +1 -1
- package/script/src/api/info/_methods/metaAndAssetCtxs.d.ts +36 -126
- package/script/src/api/info/_methods/metaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/_methods/metaAndAssetCtxs.js +5 -8
- package/script/src/api/info/_methods/metaAndAssetCtxs.js.map +1 -1
- package/script/src/api/info/_methods/openOrders.d.ts +16 -40
- package/script/src/api/info/_methods/openOrders.d.ts.map +1 -1
- package/script/src/api/info/_methods/openOrders.js +6 -6
- package/script/src/api/info/_methods/openOrders.js.map +1 -1
- package/script/src/api/info/_methods/orderStatus.d.ts +31 -116
- package/script/src/api/info/_methods/orderStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/orderStatus.js +14 -45
- package/script/src/api/info/_methods/orderStatus.js.map +1 -1
- package/script/src/api/info/_methods/perpDeployAuctionStatus.d.ts +10 -18
- package/script/src/api/info/_methods/perpDeployAuctionStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDeployAuctionStatus.js +10 -10
- package/script/src/api/info/_methods/perpDeployAuctionStatus.js.map +1 -1
- package/script/src/api/info/_methods/perpDexLimits.d.ts +10 -18
- package/script/src/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexLimits.js +10 -10
- package/script/src/api/info/_methods/perpDexLimits.js.map +1 -1
- package/script/src/api/info/_methods/perpDexStatus.d.ts +7 -12
- package/script/src/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexStatus.js +7 -7
- package/script/src/api/info/_methods/perpDexStatus.js.map +1 -1
- package/script/src/api/info/_methods/perpDexs.d.ts +17 -39
- package/script/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexs.js +18 -19
- package/script/src/api/info/_methods/perpDexs.js.map +1 -1
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.d.ts +5 -8
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.js +5 -5
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.js.map +1 -1
- package/script/src/api/info/_methods/portfolio.d.ts +37 -104
- package/script/src/api/info/_methods/portfolio.d.ts.map +1 -1
- package/script/src/api/info/_methods/portfolio.js +11 -11
- package/script/src/api/info/_methods/portfolio.js.map +1 -1
- package/script/src/api/info/_methods/preTransferCheck.d.ts +11 -20
- package/script/src/api/info/_methods/preTransferCheck.d.ts.map +1 -1
- package/script/src/api/info/_methods/preTransferCheck.js +11 -11
- package/script/src/api/info/_methods/preTransferCheck.js.map +1 -1
- package/script/src/api/info/_methods/predictedFundings.d.ts +8 -14
- package/script/src/api/info/_methods/predictedFundings.d.ts.map +1 -1
- package/script/src/api/info/_methods/predictedFundings.js +8 -8
- package/script/src/api/info/_methods/predictedFundings.js.map +1 -1
- package/script/src/api/info/_methods/recentTrades.d.ts +14 -26
- package/script/src/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/script/src/api/info/_methods/recentTrades.js +14 -14
- package/script/src/api/info/_methods/recentTrades.js.map +1 -1
- package/script/src/api/info/_methods/referral.d.ts +50 -170
- package/script/src/api/info/_methods/referral.d.ts.map +1 -1
- package/script/src/api/info/_methods/referral.js +50 -50
- package/script/src/api/info/_methods/referral.js.map +1 -1
- package/script/src/api/info/_methods/spotClearinghouseState.d.ts +19 -46
- package/script/src/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotClearinghouseState.js +19 -19
- package/script/src/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/script/src/api/info/_methods/spotDeployState.d.ts +30 -96
- package/script/src/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotDeployState.js +24 -24
- package/script/src/api/info/_methods/spotDeployState.js.map +1 -1
- package/script/src/api/info/_methods/spotMeta.d.ts +54 -69
- package/script/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotMeta.js +54 -25
- package/script/src/api/info/_methods/spotMeta.js.map +1 -1
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +50 -117
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.js +4 -7
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.js.map +1 -1
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +10 -24
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.js +4 -4
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.js.map +1 -1
- package/script/src/api/info/_methods/subAccounts.d.ts +66 -323
- package/script/src/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/script/src/api/info/_methods/subAccounts.js +11 -11
- package/script/src/api/info/_methods/subAccounts.js.map +1 -1
- package/script/src/api/info/_methods/subAccounts2.d.ts +67 -325
- package/script/src/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/script/src/api/info/_methods/subAccounts2.js +11 -12
- package/script/src/api/info/_methods/subAccounts2.js.map +1 -1
- package/script/src/api/info/_methods/tokenDetails.d.ts +26 -54
- package/script/src/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/tokenDetails.js +26 -26
- package/script/src/api/info/_methods/tokenDetails.js.map +1 -1
- package/script/src/api/info/_methods/twapHistory.d.ts +25 -76
- package/script/src/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/script/src/api/info/_methods/twapHistory.js +14 -18
- package/script/src/api/info/_methods/twapHistory.js.map +1 -1
- package/script/src/api/info/_methods/txDetails.d.ts +17 -60
- package/script/src/api/info/_methods/txDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/txDetails.js +8 -8
- package/script/src/api/info/_methods/txDetails.js.map +1 -1
- package/script/src/api/info/_methods/userBorrowLendInterest.d.ts +63 -0
- package/script/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
- package/script/src/api/info/_methods/userBorrowLendInterest.js +109 -0
- package/script/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
- package/script/src/api/info/_methods/userDetails.d.ts +17 -60
- package/script/src/api/info/_methods/userDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/userDetails.js +8 -8
- package/script/src/api/info/_methods/userDetails.js.map +1 -1
- package/script/src/api/info/_methods/userDexAbstraction.d.ts +5 -8
- package/script/src/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/src/api/info/_methods/userDexAbstraction.js +5 -5
- package/script/src/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/script/src/api/info/_methods/userFees.d.ts +52 -160
- package/script/src/api/info/_methods/userFees.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFees.js +52 -59
- package/script/src/api/info/_methods/userFees.js.map +1 -1
- package/script/src/api/info/_methods/userFills.d.ts +30 -76
- package/script/src/api/info/_methods/userFills.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFills.js +13 -13
- package/script/src/api/info/_methods/userFills.js.map +1 -1
- package/script/src/api/info/_methods/userFillsByTime.d.ts +32 -103
- package/script/src/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFillsByTime.js +8 -8
- package/script/src/api/info/_methods/userFillsByTime.js.map +1 -1
- package/script/src/api/info/_methods/userFunding.d.ts +18 -41
- package/script/src/api/info/_methods/userFunding.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFunding.js +18 -18
- package/script/src/api/info/_methods/userFunding.js.map +1 -1
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +115 -282
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js +121 -88
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/src/api/info/_methods/userRateLimit.d.ts +10 -18
- package/script/src/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/script/src/api/info/_methods/userRateLimit.js +10 -10
- package/script/src/api/info/_methods/userRateLimit.js.map +1 -1
- package/script/src/api/info/_methods/userRole.d.ts +15 -34
- package/script/src/api/info/_methods/userRole.d.ts.map +1 -1
- package/script/src/api/info/_methods/userRole.js +15 -15
- package/script/src/api/info/_methods/userRole.js.map +1 -1
- package/script/src/api/info/_methods/userToMultiSigSigners.d.ts +8 -14
- package/script/src/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/script/src/api/info/_methods/userToMultiSigSigners.js +8 -8
- package/script/src/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFills.d.ts +25 -78
- package/script/src/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFills.js +8 -8
- package/script/src/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +28 -103
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.js +8 -8
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/script/src/api/info/_methods/userVaultEquities.d.ts +9 -16
- package/script/src/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/script/src/api/info/_methods/userVaultEquities.js +9 -9
- package/script/src/api/info/_methods/userVaultEquities.js.map +1 -1
- package/script/src/api/info/_methods/validatorL1Votes.d.ts +9 -23
- package/script/src/api/info/_methods/validatorL1Votes.d.ts.map +1 -1
- package/script/src/api/info/_methods/validatorL1Votes.js +11 -11
- package/script/src/api/info/_methods/validatorL1Votes.js.map +1 -1
- package/script/src/api/info/_methods/validatorSummaries.d.ts +28 -78
- package/script/src/api/info/_methods/validatorSummaries.d.ts.map +1 -1
- package/script/src/api/info/_methods/validatorSummaries.js +22 -22
- package/script/src/api/info/_methods/validatorSummaries.js.map +1 -1
- package/script/src/api/info/_methods/vaultDetails.d.ts +77 -281
- package/script/src/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/vaultDetails.js +39 -39
- package/script/src/api/info/_methods/vaultDetails.js.map +1 -1
- package/script/src/api/info/_methods/vaultSummaries.d.ts +18 -51
- package/script/src/api/info/_methods/vaultSummaries.d.ts.map +1 -1
- package/script/src/api/info/_methods/vaultSummaries.js +12 -12
- package/script/src/api/info/_methods/vaultSummaries.js.map +1 -1
- package/script/src/api/info/_methods/webData2.d.ts +149 -673
- package/script/src/api/info/_methods/webData2.d.ts.map +1 -1
- package/script/src/api/info/_methods/webData2.js +23 -23
- package/script/src/api/info/_methods/webData2.js.map +1 -1
- package/script/src/api/info/client.d.ts +1581 -67
- package/script/src/api/info/client.d.ts.map +1 -1
- package/script/src/api/info/client.js +1494 -63
- package/script/src/api/info/client.js.map +1 -1
- package/script/src/api/info/mod.d.ts +4 -0
- package/script/src/api/info/mod.d.ts.map +1 -1
- package/script/src/api/info/mod.js +4 -0
- package/script/src/api/info/mod.js.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetCtx.d.ts +19 -58
- package/script/src/api/subscription/_methods/activeAssetCtx.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetCtx.js +8 -8
- package/script/src/api/subscription/_methods/activeAssetCtx.js.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetData.d.ts +19 -58
- package/script/src/api/subscription/_methods/activeAssetData.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetData.js +6 -6
- package/script/src/api/subscription/_methods/activeAssetData.js.map +1 -1
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +17 -50
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.js +8 -8
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.js.map +1 -1
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +17 -54
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.js +6 -9
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.js.map +1 -1
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +50 -255
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.js +8 -11
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.js.map +1 -1
- package/script/src/api/subscription/_methods/allMids.d.ts +8 -20
- package/script/src/api/subscription/_methods/allMids.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/allMids.js +8 -8
- package/script/src/api/subscription/_methods/allMids.js.map +1 -1
- package/script/src/api/subscription/_methods/assetCtxs.d.ts +19 -58
- package/script/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/assetCtxs.js +8 -8
- package/script/src/api/subscription/_methods/assetCtxs.js.map +1 -1
- package/script/src/api/subscription/_methods/bbo.d.ts +17 -48
- package/script/src/api/subscription/_methods/bbo.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/bbo.js +14 -14
- package/script/src/api/subscription/_methods/bbo.js.map +1 -1
- package/script/src/api/subscription/_methods/candle.d.ts +17 -32
- package/script/src/api/subscription/_methods/candle.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/candle.js +17 -17
- package/script/src/api/subscription/_methods/candle.js.map +1 -1
- package/script/src/api/subscription/_methods/clearinghouseState.d.ts +52 -259
- package/script/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/clearinghouseState.js +10 -10
- package/script/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
- package/script/src/api/subscription/_methods/explorerBlock.d.ts +10 -18
- package/script/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/explorerBlock.js +10 -10
- package/script/src/api/subscription/_methods/explorerBlock.js.map +1 -1
- package/script/src/api/subscription/_methods/explorerTxs.d.ts +13 -41
- package/script/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/explorerTxs.js +4 -4
- package/script/src/api/subscription/_methods/explorerTxs.js.map +1 -1
- package/script/src/api/subscription/_methods/l2Book.d.ts +21 -52
- package/script/src/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/l2Book.js +18 -16
- package/script/src/api/subscription/_methods/l2Book.js.map +1 -1
- package/script/src/api/subscription/_methods/notification.d.ts +7 -12
- package/script/src/api/subscription/_methods/notification.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/notification.js +7 -7
- package/script/src/api/subscription/_methods/notification.js.map +1 -1
- package/script/src/api/subscription/_methods/openOrders.d.ts +27 -103
- package/script/src/api/subscription/_methods/openOrders.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/openOrders.js +10 -10
- package/script/src/api/subscription/_methods/openOrders.js.map +1 -1
- package/script/src/api/subscription/_methods/orderUpdates.d.ts +19 -56
- package/script/src/api/subscription/_methods/orderUpdates.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/orderUpdates.js +9 -38
- package/script/src/api/subscription/_methods/orderUpdates.js.map +1 -1
- package/script/src/api/subscription/_methods/spotAssetCtxs.d.ts +13 -33
- package/script/src/api/subscription/_methods/spotAssetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/spotAssetCtxs.js +4 -4
- package/script/src/api/subscription/_methods/spotAssetCtxs.js.map +1 -1
- package/script/src/api/subscription/_methods/spotState.d.ts +22 -78
- package/script/src/api/subscription/_methods/spotState.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/spotState.js +9 -9
- package/script/src/api/subscription/_methods/spotState.js.map +1 -1
- package/script/src/api/subscription/_methods/trades.d.ts +14 -35
- package/script/src/api/subscription/_methods/trades.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/trades.js +5 -5
- package/script/src/api/subscription/_methods/trades.js.map +1 -1
- package/script/src/api/subscription/_methods/twapStates.d.ts +21 -62
- package/script/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/twapStates.js +10 -10
- package/script/src/api/subscription/_methods/twapStates.js.map +1 -1
- package/script/src/api/subscription/_methods/userEvents.d.ts +91 -402
- package/script/src/api/subscription/_methods/userEvents.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userEvents.js +27 -27
- package/script/src/api/subscription/_methods/userEvents.js.map +1 -1
- package/script/src/api/subscription/_methods/userFills.d.ts +34 -130
- package/script/src/api/subscription/_methods/userFills.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userFills.js +10 -10
- package/script/src/api/subscription/_methods/userFills.js.map +1 -1
- package/script/src/api/subscription/_methods/userFundings.d.ts +16 -37
- package/script/src/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userFundings.js +16 -16
- package/script/src/api/subscription/_methods/userFundings.js.map +1 -1
- package/script/src/api/subscription/_methods/userHistoricalOrders.d.ts +30 -134
- package/script/src/api/subscription/_methods/userHistoricalOrders.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userHistoricalOrders.js +9 -9
- package/script/src/api/subscription/_methods/userHistoricalOrders.js.map +1 -1
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +105 -476
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.js +9 -9
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/src/api/subscription/_methods/userTwapHistory.d.ts +29 -126
- package/script/src/api/subscription/_methods/userTwapHistory.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userTwapHistory.js +9 -9
- package/script/src/api/subscription/_methods/userTwapHistory.js.map +1 -1
- package/script/src/api/subscription/_methods/userTwapSliceFills.d.ts +29 -124
- package/script/src/api/subscription/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userTwapSliceFills.js +9 -9
- package/script/src/api/subscription/_methods/userTwapSliceFills.js.map +1 -1
- package/script/src/api/subscription/_methods/webData2.d.ts +149 -818
- package/script/src/api/subscription/_methods/webData2.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/webData2.js +5 -5
- package/script/src/api/subscription/_methods/webData2.js.map +1 -1
- package/script/src/api/subscription/_methods/webData3.d.ts +25 -71
- package/script/src/api/subscription/_methods/webData3.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/webData3.js +22 -22
- package/script/src/api/subscription/_methods/webData3.js.map +1 -1
- package/script/src/api/subscription/client.d.ts +664 -29
- package/script/src/api/subscription/client.d.ts.map +1 -1
- package/script/src/api/subscription/client.js +618 -27
- package/script/src/api/subscription/client.js.map +1 -1
- package/script/src/signing/_abstractWallet.d.ts +33 -66
- package/script/src/signing/_abstractWallet.d.ts.map +1 -1
- package/script/src/signing/_abstractWallet.js +39 -63
- package/script/src/signing/_abstractWallet.js.map +1 -1
- package/script/src/signing/_privateKeySigner.d.ts.map +1 -1
- package/script/src/signing/_privateKeySigner.js +2 -7
- package/script/src/signing/_privateKeySigner.js.map +1 -1
- package/script/src/signing/mod.d.ts.map +1 -1
- package/script/src/signing/mod.js +11 -10
- package/script/src/signing/mod.js.map +1 -1
- package/src/bin/_utils.ts +33 -1
- package/src/bin/cli.ts +295 -255
- package/src/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.ts +4 -3
- package/src/src/api/_schemas.ts +10 -1
- package/src/src/api/exchange/_methods/_base/_semaphore.ts +1 -1
- package/src/src/api/exchange/_methods/_base/commonSchemas.ts +23 -61
- package/src/src/api/exchange/_methods/agentEnableDexAbstraction.ts +15 -34
- package/src/src/api/exchange/_methods/agentSetAbstraction.ts +109 -0
- package/src/src/api/exchange/_methods/approveAgent.ts +46 -59
- package/src/src/api/exchange/_methods/approveBuilderFee.ts +20 -53
- package/src/src/api/exchange/_methods/batchModify.ts +66 -143
- package/src/src/api/exchange/_methods/borrowLend.ts +100 -0
- package/src/src/api/exchange/_methods/cDeposit.ts +18 -49
- package/src/src/api/exchange/_methods/cSignerAction.ts +24 -54
- package/src/src/api/exchange/_methods/cValidatorAction.ts +72 -164
- package/src/src/api/exchange/_methods/cWithdraw.ts +18 -49
- package/src/src/api/exchange/_methods/cancel.ts +39 -90
- package/src/src/api/exchange/_methods/cancelByCloid.ts +21 -54
- package/src/src/api/exchange/_methods/claimRewards.ts +13 -34
- package/src/src/api/exchange/_methods/convertToMultiSigUser.ts +41 -85
- package/src/src/api/exchange/_methods/createSubAccount.ts +27 -65
- package/src/src/api/exchange/_methods/createVault.ts +32 -82
- package/src/src/api/exchange/_methods/evmUserModify.ts +15 -39
- package/src/src/api/exchange/_methods/linkStakingUser.ts +28 -69
- package/src/src/api/exchange/_methods/modify.ts +62 -134
- package/src/src/api/exchange/_methods/noop.ts +13 -34
- package/src/src/api/exchange/_methods/order.ts +116 -240
- package/src/src/api/exchange/_methods/perpDeploy.ts +178 -439
- package/src/src/api/exchange/_methods/registerReferrer.ts +15 -41
- package/src/src/api/exchange/_methods/reserveRequestWeight.ts +15 -40
- package/src/src/api/exchange/_methods/scheduleCancel.ts +22 -53
- package/src/src/api/exchange/_methods/sendAsset.ts +30 -75
- package/src/src/api/exchange/_methods/setDisplayName.ts +18 -46
- package/src/src/api/exchange/_methods/setReferrer.ts +15 -41
- package/src/src/api/exchange/_methods/spotDeploy.ts +114 -273
- package/src/src/api/exchange/_methods/spotSend.ts +22 -58
- package/src/src/api/exchange/_methods/spotUser.ts +18 -45
- package/src/src/api/exchange/_methods/subAccountModify.ts +17 -46
- package/src/src/api/exchange/_methods/subAccountSpotTransfer.ts +21 -54
- package/src/src/api/exchange/_methods/subAccountTransfer.ts +19 -50
- package/src/src/api/exchange/_methods/tokenDelegate.ts +22 -59
- package/src/src/api/exchange/_methods/twapCancel.ts +37 -85
- package/src/src/api/exchange/_methods/twapOrder.ts +53 -124
- package/src/src/api/exchange/_methods/updateIsolatedMargin.ts +21 -54
- package/src/src/api/exchange/_methods/updateLeverage.ts +21 -55
- package/src/src/api/exchange/_methods/usdClassTransfer.ts +20 -53
- package/src/src/api/exchange/_methods/usdSend.ts +20 -53
- package/src/src/api/exchange/_methods/userDexAbstraction.ts +22 -53
- package/src/src/api/exchange/_methods/userPortfolioMargin.ts +123 -0
- package/src/src/api/exchange/_methods/userSetAbstraction.ts +123 -0
- package/src/src/api/exchange/_methods/validatorL1Stream.ts +15 -39
- package/src/src/api/exchange/_methods/vaultDistribute.ts +20 -50
- package/src/src/api/exchange/_methods/vaultModify.ts +19 -49
- package/src/src/api/exchange/_methods/vaultTransfer.ts +19 -50
- package/src/src/api/exchange/_methods/withdraw3.ts +20 -53
- package/src/src/api/exchange/client.ts +1350 -53
- package/src/src/api/exchange/mod.ts +4 -0
- package/src/src/api/info/_methods/_base/commonSchemas.ts +242 -550
- package/src/src/api/info/_methods/activeAssetData.ts +38 -88
- package/src/src/api/info/_methods/alignedQuoteTokenInfo.ts +22 -49
- package/src/src/api/info/_methods/allBorrowLendReserveStates.ts +68 -0
- package/src/src/api/info/_methods/allMids.ts +7 -19
- package/src/src/api/info/_methods/allPerpMetas.ts +5 -14
- package/src/src/api/info/_methods/blockDetails.ts +24 -61
- package/src/src/api/info/_methods/borrowLendReserveState.ts +95 -0
- package/src/src/api/info/_methods/borrowLendUserState.ts +105 -0
- package/src/src/api/info/_methods/candleSnapshot.ts +37 -91
- package/src/src/api/info/_methods/clearinghouseState.ts +91 -214
- package/src/src/api/info/_methods/delegations.ts +15 -36
- package/src/src/api/info/_methods/delegatorHistory.ts +43 -92
- package/src/src/api/info/_methods/delegatorRewards.ts +15 -36
- package/src/src/api/info/_methods/delegatorSummary.ts +16 -40
- package/src/src/api/info/_methods/exchangeStatus.ts +10 -25
- package/src/src/api/info/_methods/extraAgents.ts +15 -37
- package/src/src/api/info/_methods/frontendOpenOrders.ts +9 -24
- package/src/src/api/info/_methods/fundingHistory.ts +21 -51
- package/src/src/api/info/_methods/gossipRootIps.ts +5 -14
- package/src/src/api/info/_methods/historicalOrders.ts +46 -98
- package/src/src/api/info/_methods/isVip.ts +7 -19
- package/src/src/api/info/_methods/l2Book.ts +29 -66
- package/src/src/api/info/_methods/leadingVaults.ts +13 -31
- package/src/src/api/info/_methods/legalCheck.ts +14 -35
- package/src/src/api/info/_methods/liquidatable.ts +5 -14
- package/src/src/api/info/_methods/marginTable.ts +19 -44
- package/src/src/api/info/_methods/maxBuilderFee.ts +9 -24
- package/src/src/api/info/_methods/maxMarketOrderNtls.ts +6 -17
- package/src/src/api/info/_methods/meta.ts +35 -89
- package/src/src/api/info/_methods/metaAndAssetCtxs.ts +7 -22
- package/src/src/api/info/_methods/openOrders.ts +9 -24
- package/src/src/api/info/_methods/orderStatus.ts +57 -125
- package/src/src/api/info/_methods/perpDeployAuctionStatus.ts +16 -40
- package/src/src/api/info/_methods/perpDexLimits.ts +17 -41
- package/src/src/api/info/_methods/perpDexStatus.ts +10 -25
- package/src/src/api/info/_methods/perpDexs.ts +31 -76
- package/src/src/api/info/_methods/perpsAtOpenInterestCap.ts +7 -19
- package/src/src/api/info/_methods/portfolio.ts +24 -49
- package/src/src/api/info/_methods/preTransferCheck.ts +18 -45
- package/src/src/api/info/_methods/predictedFundings.ts +27 -45
- package/src/src/api/info/_methods/recentTrades.ts +25 -62
- package/src/src/api/info/_methods/referral.ts +106 -234
- package/src/src/api/info/_methods/spotClearinghouseState.ts +37 -82
- package/src/src/api/info/_methods/spotDeployState.ts +44 -104
- package/src/src/api/info/_methods/spotMeta.ts +78 -103
- package/src/src/api/info/_methods/spotMetaAndAssetCtxs.ts +5 -17
- package/src/src/api/info/_methods/spotPairDeployAuctionStatus.ts +5 -14
- package/src/src/api/info/_methods/subAccounts.ts +20 -48
- package/src/src/api/info/_methods/subAccounts2.ts +23 -50
- package/src/src/api/info/_methods/tokenDetails.ts +49 -119
- package/src/src/api/info/_methods/twapHistory.ts +34 -73
- package/src/src/api/info/_methods/txDetails.ts +12 -31
- package/src/src/api/info/_methods/userBorrowLendInterest.ts +93 -0
- package/src/src/api/info/_methods/userDetails.ts +12 -30
- package/src/src/api/info/_methods/userDexAbstraction.ts +7 -19
- package/src/src/api/info/_methods/userFees.ts +103 -243
- package/src/src/api/info/_methods/userFills.ts +27 -57
- package/src/src/api/info/_methods/userFillsByTime.ts +13 -34
- package/src/src/api/info/_methods/userFunding.ts +31 -77
- package/src/src/api/info/_methods/userNonFundingLedgerUpdates.ts +249 -469
- package/src/src/api/info/_methods/userRateLimit.ts +16 -40
- package/src/src/api/info/_methods/userRole.ts +28 -61
- package/src/src/api/info/_methods/userToMultiSigSigners.ts +13 -33
- package/src/src/api/info/_methods/userTwapSliceFills.ts +13 -31
- package/src/src/api/info/_methods/userTwapSliceFillsByTime.ts +13 -34
- package/src/src/api/info/_methods/userVaultEquities.ts +15 -36
- package/src/src/api/info/_methods/validatorL1Votes.ts +22 -40
- package/src/src/api/info/_methods/validatorSummaries.ts +41 -96
- package/src/src/api/info/_methods/vaultDetails.ts +76 -181
- package/src/src/api/info/_methods/vaultSummaries.ts +21 -51
- package/src/src/api/info/_methods/webData2.ts +42 -105
- package/src/src/api/info/client.ts +1637 -79
- package/src/src/api/info/mod.ts +4 -0
- package/src/src/api/subscription/_methods/activeAssetCtx.ts +12 -30
- package/src/src/api/subscription/_methods/activeAssetData.ts +9 -24
- package/src/src/api/subscription/_methods/activeSpotAssetCtx.ts +12 -30
- package/src/src/api/subscription/_methods/allDexsAssetCtxs.ts +8 -25
- package/src/src/api/subscription/_methods/allDexsClearinghouseState.ts +12 -35
- package/src/src/api/subscription/_methods/allMids.ts +12 -30
- package/src/src/api/subscription/_methods/assetCtxs.ts +12 -30
- package/src/src/api/subscription/_methods/bbo.ts +22 -55
- package/src/src/api/subscription/_methods/candle.ts +30 -75
- package/src/src/api/subscription/_methods/clearinghouseState.ts +16 -40
- package/src/src/api/subscription/_methods/explorerBlock.ts +17 -42
- package/src/src/api/subscription/_methods/explorerTxs.ts +5 -14
- package/src/src/api/subscription/_methods/l2Book.ts +28 -65
- package/src/src/api/subscription/_methods/notification.ts +10 -25
- package/src/src/api/subscription/_methods/openOrders.ts +16 -40
- package/src/src/api/subscription/_methods/orderUpdates.ts +46 -98
- package/src/src/api/subscription/_methods/spotAssetCtxs.ts +5 -14
- package/src/src/api/subscription/_methods/spotState.ts +14 -35
- package/src/src/api/subscription/_methods/trades.ts +7 -19
- package/src/src/api/subscription/_methods/twapStates.ts +16 -40
- package/src/src/api/subscription/_methods/userEvents.ts +66 -132
- package/src/src/api/subscription/_methods/userFills.ts +16 -40
- package/src/src/api/subscription/_methods/userFundings.ts +29 -68
- package/src/src/api/subscription/_methods/userHistoricalOrders.ts +14 -35
- package/src/src/api/subscription/_methods/userNonFundingLedgerUpdates.ts +14 -35
- package/src/src/api/subscription/_methods/userTwapHistory.ts +14 -35
- package/src/src/api/subscription/_methods/userTwapSliceFills.ts +14 -35
- package/src/src/api/subscription/_methods/webData2.ts +7 -19
- package/src/src/api/subscription/_methods/webData3.ts +39 -93
- package/src/src/api/subscription/client.ts +664 -29
- package/src/src/signing/_abstractWallet.ts +82 -136
- package/src/src/signing/_privateKeySigner.ts +2 -11
- package/src/src/signing/mod.ts +12 -10
- package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js.map +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { InfoConfig } from "./_methods/_base/types.js";
|
|
2
2
|
import { type ActiveAssetDataParameters, type ActiveAssetDataResponse } from "./_methods/activeAssetData.js";
|
|
3
3
|
import { type AlignedQuoteTokenInfoParameters, type AlignedQuoteTokenInfoResponse } from "./_methods/alignedQuoteTokenInfo.js";
|
|
4
|
+
import { type AllBorrowLendReserveStatesResponse } from "./_methods/allBorrowLendReserveStates.js";
|
|
4
5
|
import { type AllMidsParameters, type AllMidsResponse } from "./_methods/allMids.js";
|
|
5
6
|
import { type AllPerpMetasResponse } from "./_methods/allPerpMetas.js";
|
|
6
7
|
import { type BlockDetailsParameters, type BlockDetailsResponse } from "./_methods/blockDetails.js";
|
|
8
|
+
import { type BorrowLendReserveStateParameters, type BorrowLendReserveStateResponse } from "./_methods/borrowLendReserveState.js";
|
|
9
|
+
import { type BorrowLendUserStateParameters, type BorrowLendUserStateResponse } from "./_methods/borrowLendUserState.js";
|
|
7
10
|
import { type CandleSnapshotParameters, type CandleSnapshotResponse } from "./_methods/candleSnapshot.js";
|
|
8
11
|
import { type ClearinghouseStateParameters, type ClearinghouseStateResponse } from "./_methods/clearinghouseState.js";
|
|
9
12
|
import { type DelegationsParameters, type DelegationsResponse } from "./_methods/delegations.js";
|
|
@@ -48,6 +51,7 @@ import { type SubAccounts2Parameters, type SubAccounts2Response } from "./_metho
|
|
|
48
51
|
import { type TokenDetailsParameters, type TokenDetailsResponse } from "./_methods/tokenDetails.js";
|
|
49
52
|
import { type TwapHistoryParameters, type TwapHistoryResponse } from "./_methods/twapHistory.js";
|
|
50
53
|
import { type TxDetailsParameters, type TxDetailsResponse } from "./_methods/txDetails.js";
|
|
54
|
+
import { type UserBorrowLendInterestParameters, type UserBorrowLendInterestResponse } from "./_methods/userBorrowLendInterest.js";
|
|
51
55
|
import { type UserDetailsParameters, type UserDetailsResponse } from "./_methods/userDetails.js";
|
|
52
56
|
import { type UserDexAbstractionParameters, type UserDexAbstractionResponse } from "./_methods/userDexAbstraction.js";
|
|
53
57
|
import { type UserFeesParameters, type UserFeesResponse } from "./_methods/userFees.js";
|
|
@@ -88,151 +92,1660 @@ export declare class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
88
92
|
* ```
|
|
89
93
|
*/
|
|
90
94
|
constructor(config: C);
|
|
91
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Request user active asset data.
|
|
97
|
+
*
|
|
98
|
+
* @param params - Parameters specific to the API request.
|
|
99
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
100
|
+
*
|
|
101
|
+
* @returns User active asset data.
|
|
102
|
+
*
|
|
103
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
104
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```ts
|
|
108
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
109
|
+
*
|
|
110
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
111
|
+
* const client = new hl.InfoClient({ transport });
|
|
112
|
+
*
|
|
113
|
+
* const data = await client.activeAssetData({ user: "0x...", coin: "ETH" });
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-users-active-asset-data
|
|
117
|
+
*/
|
|
92
118
|
activeAssetData(params: ActiveAssetDataParameters, signal?: AbortSignal): Promise<ActiveAssetDataResponse>;
|
|
93
|
-
/**
|
|
119
|
+
/**
|
|
120
|
+
* Request supply, rate, and pending payment information for an aligned quote token.
|
|
121
|
+
*
|
|
122
|
+
* @param params - Parameters specific to the API request.
|
|
123
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
124
|
+
*
|
|
125
|
+
* @returns Supply, rate, and pending payment information for an aligned quote token.
|
|
126
|
+
*
|
|
127
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
128
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```ts
|
|
132
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
133
|
+
*
|
|
134
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
135
|
+
* const client = new hl.InfoClient({ transport });
|
|
136
|
+
*
|
|
137
|
+
* const data = await client.alignedQuoteTokenInfo({ token: 1328 });
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
94
140
|
alignedQuoteTokenInfo(params: AlignedQuoteTokenInfoParameters, signal?: AbortSignal): Promise<AlignedQuoteTokenInfoResponse>;
|
|
95
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* Request all borrow/lend reserve states.
|
|
143
|
+
*
|
|
144
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
145
|
+
*
|
|
146
|
+
* @returns Array of tuples of reserve IDs and their borrow/lend reserve state.
|
|
147
|
+
*
|
|
148
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
149
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
154
|
+
*
|
|
155
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
156
|
+
* const client = new hl.InfoClient({ transport });
|
|
157
|
+
*
|
|
158
|
+
* const data = await client.allBorrowLendReserveStates();
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-all-borrow-lend-reserve-states
|
|
162
|
+
*/
|
|
163
|
+
allBorrowLendReserveStates(signal?: AbortSignal): Promise<AllBorrowLendReserveStatesResponse>;
|
|
164
|
+
/**
|
|
165
|
+
* Request mid coin prices.
|
|
166
|
+
*
|
|
167
|
+
* @param params - Parameters specific to the API request.
|
|
168
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
169
|
+
*
|
|
170
|
+
* @returns Mapping of coin symbols to mid prices.
|
|
171
|
+
*
|
|
172
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
173
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* ```ts
|
|
177
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
178
|
+
*
|
|
179
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
180
|
+
* const client = new hl.InfoClient({ transport });
|
|
181
|
+
*
|
|
182
|
+
* const data = await client.allMids();
|
|
183
|
+
* ```
|
|
184
|
+
*
|
|
185
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-mids-for-all-coins
|
|
186
|
+
*/
|
|
96
187
|
allMids(params?: AllMidsParameters, signal?: AbortSignal): Promise<AllMidsResponse>;
|
|
97
188
|
allMids(signal?: AbortSignal): Promise<AllMidsResponse>;
|
|
98
|
-
/**
|
|
189
|
+
/**
|
|
190
|
+
* Request trading metadata for all DEXes.
|
|
191
|
+
*
|
|
192
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
193
|
+
*
|
|
194
|
+
* @returns Metadata for perpetual assets across all DEXes.
|
|
195
|
+
*
|
|
196
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
197
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* ```ts
|
|
201
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
202
|
+
*
|
|
203
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
204
|
+
* const client = new hl.InfoClient({ transport });
|
|
205
|
+
*
|
|
206
|
+
* const data = await client.allPerpMetas();
|
|
207
|
+
* ```
|
|
208
|
+
*/
|
|
99
209
|
allPerpMetas(signal?: AbortSignal): Promise<AllPerpMetasResponse>;
|
|
100
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* Request block details by block height.
|
|
212
|
+
*
|
|
213
|
+
* @param params - Parameters specific to the API request.
|
|
214
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
215
|
+
*
|
|
216
|
+
* @returns Response containing block information.
|
|
217
|
+
*
|
|
218
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
219
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* ```ts
|
|
223
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
224
|
+
*
|
|
225
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
226
|
+
* const client = new hl.InfoClient({ transport });
|
|
227
|
+
*
|
|
228
|
+
* const data = await client.blockDetails({ height: 123 });
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
101
231
|
blockDetails(params: BlockDetailsParameters, signal?: AbortSignal): Promise<BlockDetailsResponse>;
|
|
102
|
-
/**
|
|
232
|
+
/**
|
|
233
|
+
* Request borrow/lend reserve state.
|
|
234
|
+
*
|
|
235
|
+
* @param params - Parameters specific to the API request.
|
|
236
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
237
|
+
*
|
|
238
|
+
* @returns Borrow/lend reserve state.
|
|
239
|
+
*
|
|
240
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
241
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* ```ts
|
|
245
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
246
|
+
*
|
|
247
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
248
|
+
* const client = new hl.InfoClient({ transport });
|
|
249
|
+
*
|
|
250
|
+
* const data = await client.borrowLendReserveState({ token: 0 });
|
|
251
|
+
* ```
|
|
252
|
+
*
|
|
253
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-borrow-lend-reserve-state
|
|
254
|
+
*/
|
|
255
|
+
borrowLendReserveState(params: BorrowLendReserveStateParameters, signal?: AbortSignal): Promise<BorrowLendReserveStateResponse>;
|
|
256
|
+
/**
|
|
257
|
+
* Request borrow/lend user state.
|
|
258
|
+
*
|
|
259
|
+
* @param params - Parameters specific to the API request.
|
|
260
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
261
|
+
*
|
|
262
|
+
* @returns User's borrow/lend state.
|
|
263
|
+
*
|
|
264
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
265
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
266
|
+
*
|
|
267
|
+
* @example
|
|
268
|
+
* ```ts
|
|
269
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
270
|
+
*
|
|
271
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
272
|
+
* const client = new hl.InfoClient({ transport });
|
|
273
|
+
*
|
|
274
|
+
* const data = await client.borrowLendUserState({ user: "0x..." });
|
|
275
|
+
* ```
|
|
276
|
+
*
|
|
277
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-borrow-lend-user-state
|
|
278
|
+
*/
|
|
279
|
+
borrowLendUserState(params: BorrowLendUserStateParameters, signal?: AbortSignal): Promise<BorrowLendUserStateResponse>;
|
|
280
|
+
/**
|
|
281
|
+
* Request candlestick snapshots.
|
|
282
|
+
*
|
|
283
|
+
* @param params - Parameters specific to the API request.
|
|
284
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
285
|
+
*
|
|
286
|
+
* @returns Array of candlestick data points.
|
|
287
|
+
*
|
|
288
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
289
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* ```ts
|
|
293
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
294
|
+
*
|
|
295
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
296
|
+
* const client = new hl.InfoClient({ transport });
|
|
297
|
+
*
|
|
298
|
+
* const data = await client.candleSnapshot({ coin: "ETH", interval: "1h", startTime: Date.now() - 1000 * 60 * 60 * 24 });
|
|
299
|
+
* ```
|
|
300
|
+
*
|
|
301
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#candle-snapshot
|
|
302
|
+
*/
|
|
103
303
|
candleSnapshot(params: CandleSnapshotParameters, signal?: AbortSignal): Promise<CandleSnapshotResponse>;
|
|
104
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* Request clearinghouse state.
|
|
306
|
+
*
|
|
307
|
+
* @param params - Parameters specific to the API request.
|
|
308
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
309
|
+
*
|
|
310
|
+
* @returns Account summary for perpetual trading.
|
|
311
|
+
*
|
|
312
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
313
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* ```ts
|
|
317
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
318
|
+
*
|
|
319
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
320
|
+
* const client = new hl.InfoClient({ transport });
|
|
321
|
+
*
|
|
322
|
+
* const data = await client.clearinghouseState({ user: "0x..." });
|
|
323
|
+
* ```
|
|
324
|
+
*
|
|
325
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-users-perpetuals-account-summary
|
|
326
|
+
*/
|
|
105
327
|
clearinghouseState(params: ClearinghouseStateParameters, signal?: AbortSignal): Promise<ClearinghouseStateResponse>;
|
|
106
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* Request user staking delegations.
|
|
330
|
+
*
|
|
331
|
+
* @param params - Parameters specific to the API request.
|
|
332
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
333
|
+
*
|
|
334
|
+
* @returns Array of user's delegations to validators.
|
|
335
|
+
*
|
|
336
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
337
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
338
|
+
*
|
|
339
|
+
* @example
|
|
340
|
+
* ```ts
|
|
341
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
342
|
+
*
|
|
343
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
344
|
+
* const client = new hl.InfoClient({ transport });
|
|
345
|
+
*
|
|
346
|
+
* const data = await client.delegations({ user: "0x..." });
|
|
347
|
+
* ```
|
|
348
|
+
*
|
|
349
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-delegations
|
|
350
|
+
*/
|
|
107
351
|
delegations(params: DelegationsParameters, signal?: AbortSignal): Promise<DelegationsResponse>;
|
|
108
|
-
/**
|
|
352
|
+
/**
|
|
353
|
+
* Request user staking history.
|
|
354
|
+
*
|
|
355
|
+
* @param params - Parameters specific to the API request.
|
|
356
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
357
|
+
*
|
|
358
|
+
* @returns Array of records of staking events by a delegator.
|
|
359
|
+
*
|
|
360
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
361
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* ```ts
|
|
365
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
366
|
+
*
|
|
367
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
368
|
+
* const client = new hl.InfoClient({ transport });
|
|
369
|
+
*
|
|
370
|
+
* const data = await client.delegatorHistory({ user: "0x..." });
|
|
371
|
+
* ```
|
|
372
|
+
*
|
|
373
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-history
|
|
374
|
+
*/
|
|
109
375
|
delegatorHistory(params: DelegatorHistoryParameters, signal?: AbortSignal): Promise<DelegatorHistoryResponse>;
|
|
110
|
-
/**
|
|
376
|
+
/**
|
|
377
|
+
* Request user staking rewards.
|
|
378
|
+
*
|
|
379
|
+
* @param params - Parameters specific to the API request.
|
|
380
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
381
|
+
*
|
|
382
|
+
* @returns Array of rewards received from staking activities.
|
|
383
|
+
*
|
|
384
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
385
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
386
|
+
*
|
|
387
|
+
* @example
|
|
388
|
+
* ```ts
|
|
389
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
390
|
+
*
|
|
391
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
392
|
+
* const client = new hl.InfoClient({ transport });
|
|
393
|
+
*
|
|
394
|
+
* const data = await client.delegatorRewards({ user: "0x..." });
|
|
395
|
+
* ```
|
|
396
|
+
*
|
|
397
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-rewards
|
|
398
|
+
*/
|
|
111
399
|
delegatorRewards(params: DelegatorRewardsParameters, signal?: AbortSignal): Promise<DelegatorRewardsResponse>;
|
|
112
|
-
/**
|
|
400
|
+
/**
|
|
401
|
+
* Request user's staking summary.
|
|
402
|
+
*
|
|
403
|
+
* @param params - Parameters specific to the API request.
|
|
404
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
405
|
+
*
|
|
406
|
+
* @returns User's staking summary.
|
|
407
|
+
*
|
|
408
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
409
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
410
|
+
*
|
|
411
|
+
* @example
|
|
412
|
+
* ```ts
|
|
413
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
414
|
+
*
|
|
415
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
416
|
+
* const client = new hl.InfoClient({ transport });
|
|
417
|
+
*
|
|
418
|
+
* const data = await client.delegatorSummary({ user: "0x..." });
|
|
419
|
+
* ```
|
|
420
|
+
*
|
|
421
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-summary
|
|
422
|
+
*/
|
|
113
423
|
delegatorSummary(params: DelegatorSummaryParameters, signal?: AbortSignal): Promise<DelegatorSummaryResponse>;
|
|
114
|
-
/**
|
|
424
|
+
/**
|
|
425
|
+
* Request exchange system status information.
|
|
426
|
+
*
|
|
427
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
428
|
+
*
|
|
429
|
+
* @returns Exchange system status information.
|
|
430
|
+
*
|
|
431
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
432
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
433
|
+
*
|
|
434
|
+
* @example
|
|
435
|
+
* ```ts
|
|
436
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
437
|
+
*
|
|
438
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
439
|
+
* const client = new hl.InfoClient({ transport });
|
|
440
|
+
*
|
|
441
|
+
* const data = await client.exchangeStatus();
|
|
442
|
+
* ```
|
|
443
|
+
*/
|
|
115
444
|
exchangeStatus(signal?: AbortSignal): Promise<ExchangeStatusResponse>;
|
|
116
|
-
/**
|
|
445
|
+
/**
|
|
446
|
+
* Request user extra agents.
|
|
447
|
+
*
|
|
448
|
+
* @param params - Parameters specific to the API request.
|
|
449
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
450
|
+
*
|
|
451
|
+
* @returns Array of extra agent details for a user.
|
|
452
|
+
*
|
|
453
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
454
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
455
|
+
*
|
|
456
|
+
* @example
|
|
457
|
+
* ```ts
|
|
458
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
459
|
+
*
|
|
460
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
461
|
+
* const client = new hl.InfoClient({ transport });
|
|
462
|
+
*
|
|
463
|
+
* const data = await client.extraAgents({ user: "0x..." });
|
|
464
|
+
* ```
|
|
465
|
+
*/
|
|
117
466
|
extraAgents(params: ExtraAgentsParameters, signal?: AbortSignal): Promise<ExtraAgentsResponse>;
|
|
118
|
-
/**
|
|
467
|
+
/**
|
|
468
|
+
* Request frontend open orders.
|
|
469
|
+
*
|
|
470
|
+
* @param params - Parameters specific to the API request.
|
|
471
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
472
|
+
*
|
|
473
|
+
* @returns Array of open orders with additional display information.
|
|
474
|
+
*
|
|
475
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
476
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
477
|
+
*
|
|
478
|
+
* @example
|
|
479
|
+
* ```ts
|
|
480
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
481
|
+
*
|
|
482
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
483
|
+
* const client = new hl.InfoClient({ transport });
|
|
484
|
+
*
|
|
485
|
+
* const data = await client.frontendOpenOrders({ user: "0x..." });
|
|
486
|
+
* ```
|
|
487
|
+
*
|
|
488
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-open-orders-with-additional-frontend-info
|
|
489
|
+
*/
|
|
119
490
|
frontendOpenOrders(params: FrontendOpenOrdersParameters, signal?: AbortSignal): Promise<FrontendOpenOrdersResponse>;
|
|
120
|
-
/**
|
|
491
|
+
/**
|
|
492
|
+
* Request funding history.
|
|
493
|
+
*
|
|
494
|
+
* @param params - Parameters specific to the API request.
|
|
495
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
496
|
+
*
|
|
497
|
+
* @returns Array of historical funding rate records for an asset.
|
|
498
|
+
*
|
|
499
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
500
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
501
|
+
*
|
|
502
|
+
* @example
|
|
503
|
+
* ```ts
|
|
504
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
505
|
+
*
|
|
506
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
507
|
+
* const client = new hl.InfoClient({ transport });
|
|
508
|
+
*
|
|
509
|
+
* const data = await client.fundingHistory({ coin: "ETH", startTime: Date.now() - 1000 * 60 * 60 * 24 });
|
|
510
|
+
* ```
|
|
511
|
+
*
|
|
512
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-historical-funding-rates
|
|
513
|
+
*/
|
|
121
514
|
fundingHistory(params: FundingHistoryParameters, signal?: AbortSignal): Promise<FundingHistoryResponse>;
|
|
122
|
-
/**
|
|
515
|
+
/**
|
|
516
|
+
* Request gossip root IPs.
|
|
517
|
+
*
|
|
518
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
519
|
+
*
|
|
520
|
+
* @returns Array of gossip root IPs.
|
|
521
|
+
*
|
|
522
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
523
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
524
|
+
*
|
|
525
|
+
* @example
|
|
526
|
+
* ```ts
|
|
527
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
528
|
+
*
|
|
529
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
530
|
+
* const client = new hl.InfoClient({ transport });
|
|
531
|
+
*
|
|
532
|
+
* const data = await client.gossipRootIps();
|
|
533
|
+
* ```
|
|
534
|
+
*/
|
|
123
535
|
gossipRootIps(signal?: AbortSignal): Promise<GossipRootIpsResponse>;
|
|
124
|
-
/**
|
|
536
|
+
/**
|
|
537
|
+
* Request user historical orders.
|
|
538
|
+
*
|
|
539
|
+
* @param params - Parameters specific to the API request.
|
|
540
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
541
|
+
*
|
|
542
|
+
* @returns Array of frontend orders with current processing status.
|
|
543
|
+
*
|
|
544
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
545
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
546
|
+
*
|
|
547
|
+
* @example
|
|
548
|
+
* ```ts
|
|
549
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
550
|
+
*
|
|
551
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
552
|
+
* const client = new hl.InfoClient({ transport });
|
|
553
|
+
*
|
|
554
|
+
* const data = await client.historicalOrders({ user: "0x..." });
|
|
555
|
+
* ```
|
|
556
|
+
*
|
|
557
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-historical-orders
|
|
558
|
+
*/
|
|
125
559
|
historicalOrders(params: HistoricalOrdersParameters, signal?: AbortSignal): Promise<HistoricalOrdersResponse>;
|
|
126
|
-
/**
|
|
560
|
+
/**
|
|
561
|
+
* Request to check if a user is a VIP.
|
|
562
|
+
*
|
|
563
|
+
* @param params - Parameters specific to the API request.
|
|
564
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
565
|
+
*
|
|
566
|
+
* @returns Boolean indicating user's VIP status.
|
|
567
|
+
*
|
|
568
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
569
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
570
|
+
*
|
|
571
|
+
* @example
|
|
572
|
+
* ```ts
|
|
573
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
574
|
+
*
|
|
575
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
576
|
+
* const client = new hl.InfoClient({ transport });
|
|
577
|
+
*
|
|
578
|
+
* const data = await client.isVip({ user: "0x..." });
|
|
579
|
+
* ```
|
|
580
|
+
*/
|
|
127
581
|
isVip(params: IsVipParameters, signal?: AbortSignal): Promise<IsVipResponse>;
|
|
128
|
-
/**
|
|
582
|
+
/**
|
|
583
|
+
* Request L2 order book.
|
|
584
|
+
*
|
|
585
|
+
* @param params - Parameters specific to the API request.
|
|
586
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
587
|
+
*
|
|
588
|
+
* @returns L2 order book snapshot.
|
|
589
|
+
*
|
|
590
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
591
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
592
|
+
*
|
|
593
|
+
* @example
|
|
594
|
+
* ```ts
|
|
595
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
596
|
+
*
|
|
597
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
598
|
+
* const client = new hl.InfoClient({ transport });
|
|
599
|
+
*
|
|
600
|
+
* const data = await client.l2Book({ coin: "ETH", nSigFigs: 2 });
|
|
601
|
+
* ```
|
|
602
|
+
*
|
|
603
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#l2-book-snapshot
|
|
604
|
+
*/
|
|
129
605
|
l2Book(params: L2BookParameters, signal?: AbortSignal): Promise<L2BookResponse>;
|
|
130
|
-
/**
|
|
606
|
+
/**
|
|
607
|
+
* Request leading vaults for a user.
|
|
608
|
+
*
|
|
609
|
+
* @param params - Parameters specific to the API request.
|
|
610
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
611
|
+
*
|
|
612
|
+
* @returns Array of leading vaults for a user.
|
|
613
|
+
*
|
|
614
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
615
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
616
|
+
*
|
|
617
|
+
* @example
|
|
618
|
+
* ```ts
|
|
619
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
620
|
+
*
|
|
621
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
622
|
+
* const client = new hl.InfoClient({ transport });
|
|
623
|
+
*
|
|
624
|
+
* const data = await client.leadingVaults({ user: "0x..." });
|
|
625
|
+
* ```
|
|
626
|
+
*/
|
|
131
627
|
leadingVaults(params: LeadingVaultsParameters, signal?: AbortSignal): Promise<LeadingVaultsResponse>;
|
|
132
|
-
/**
|
|
628
|
+
/**
|
|
629
|
+
* Request legal verification status of a user.
|
|
630
|
+
*
|
|
631
|
+
* @param params - Parameters specific to the API request.
|
|
632
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
633
|
+
*
|
|
634
|
+
* @returns Legal verification status for a user.
|
|
635
|
+
*
|
|
636
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
637
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
638
|
+
*
|
|
639
|
+
* @example
|
|
640
|
+
* ```ts
|
|
641
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
642
|
+
*
|
|
643
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
644
|
+
* const client = new hl.InfoClient({ transport });
|
|
645
|
+
*
|
|
646
|
+
* const data = await client.legalCheck({ user: "0x..." });
|
|
647
|
+
* ```
|
|
648
|
+
*/
|
|
133
649
|
legalCheck(params: LegalCheckParameters, signal?: AbortSignal): Promise<LegalCheckResponse>;
|
|
134
|
-
/**
|
|
650
|
+
/**
|
|
651
|
+
* Request liquidatable.
|
|
652
|
+
*
|
|
653
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
654
|
+
*
|
|
655
|
+
* @returns unknown
|
|
656
|
+
*
|
|
657
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
658
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
659
|
+
*
|
|
660
|
+
* @example
|
|
661
|
+
* ```ts
|
|
662
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
663
|
+
*
|
|
664
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
665
|
+
* const client = new hl.InfoClient({ transport });
|
|
666
|
+
*
|
|
667
|
+
* const data = await client.liquidatable();
|
|
668
|
+
* ```
|
|
669
|
+
*/
|
|
135
670
|
liquidatable(signal?: AbortSignal): Promise<LiquidatableResponse>;
|
|
136
|
-
/**
|
|
671
|
+
/**
|
|
672
|
+
* Request margin table data.
|
|
673
|
+
*
|
|
674
|
+
* @param params - Parameters specific to the API request.
|
|
675
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
676
|
+
*
|
|
677
|
+
* @returns Margin requirements table with multiple tiers.
|
|
678
|
+
*
|
|
679
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
680
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
681
|
+
*
|
|
682
|
+
* @example
|
|
683
|
+
* ```ts
|
|
684
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
685
|
+
*
|
|
686
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
687
|
+
* const client = new hl.InfoClient({ transport });
|
|
688
|
+
*
|
|
689
|
+
* const data = await client.marginTable({ id: 1 });
|
|
690
|
+
* ```
|
|
691
|
+
*/
|
|
137
692
|
marginTable(params: MarginTableParameters, signal?: AbortSignal): Promise<MarginTableResponse>;
|
|
138
|
-
/**
|
|
693
|
+
/**
|
|
694
|
+
* Request builder fee approval.
|
|
695
|
+
*
|
|
696
|
+
* @param params - Parameters specific to the API request.
|
|
697
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
698
|
+
*
|
|
699
|
+
* @returns Maximum builder fee approval.
|
|
700
|
+
*
|
|
701
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
702
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
703
|
+
*
|
|
704
|
+
* @example
|
|
705
|
+
* ```ts
|
|
706
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
707
|
+
*
|
|
708
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
709
|
+
* const client = new hl.InfoClient({ transport });
|
|
710
|
+
*
|
|
711
|
+
* const data = await client.maxBuilderFee({ user: "0x...", builder: "0x..." });
|
|
712
|
+
* ```
|
|
713
|
+
*
|
|
714
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#check-builder-fee-approval
|
|
715
|
+
*/
|
|
139
716
|
maxBuilderFee(params: MaxBuilderFeeParameters, signal?: AbortSignal): Promise<MaxBuilderFeeResponse>;
|
|
140
|
-
/**
|
|
717
|
+
/**
|
|
718
|
+
* Request maximum market order notionals.
|
|
719
|
+
*
|
|
720
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
721
|
+
*
|
|
722
|
+
* @returns Maximum market order notionals.
|
|
723
|
+
*
|
|
724
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
725
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
726
|
+
*
|
|
727
|
+
* @example
|
|
728
|
+
* ```ts
|
|
729
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
730
|
+
*
|
|
731
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
732
|
+
* const client = new hl.InfoClient({ transport });
|
|
733
|
+
*
|
|
734
|
+
* const data = await client.maxMarketOrderNtls();
|
|
735
|
+
* ```
|
|
736
|
+
*/
|
|
141
737
|
maxMarketOrderNtls(signal?: AbortSignal): Promise<MaxMarketOrderNtlsResponse>;
|
|
142
|
-
/**
|
|
738
|
+
/**
|
|
739
|
+
* Request trading metadata.
|
|
740
|
+
*
|
|
741
|
+
* @param params - Parameters specific to the API request.
|
|
742
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
743
|
+
*
|
|
744
|
+
* @returns Metadata for perpetual assets.
|
|
745
|
+
*
|
|
746
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
747
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
748
|
+
*
|
|
749
|
+
* @example
|
|
750
|
+
* ```ts
|
|
751
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
752
|
+
*
|
|
753
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
754
|
+
* const client = new hl.InfoClient({ transport });
|
|
755
|
+
*
|
|
756
|
+
* const data = await client.meta();
|
|
757
|
+
* ```
|
|
758
|
+
*
|
|
759
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-perpetuals-metadata-universe-and-margin-tables
|
|
760
|
+
*/
|
|
143
761
|
meta(params?: MetaParameters, signal?: AbortSignal): Promise<MetaResponse>;
|
|
144
762
|
meta(signal?: AbortSignal): Promise<MetaResponse>;
|
|
145
|
-
/**
|
|
763
|
+
/**
|
|
764
|
+
* Request metadata and asset contexts.
|
|
765
|
+
*
|
|
766
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
767
|
+
*
|
|
768
|
+
* @returns Metadata and context for perpetual assets.
|
|
769
|
+
*
|
|
770
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
771
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
772
|
+
*
|
|
773
|
+
* @example
|
|
774
|
+
* ```ts
|
|
775
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
776
|
+
*
|
|
777
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
778
|
+
* const client = new hl.InfoClient({ transport });
|
|
779
|
+
*
|
|
780
|
+
* const data = await client.metaAndAssetCtxs();
|
|
781
|
+
* ```
|
|
782
|
+
*
|
|
783
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-perpetuals-asset-contexts-includes-mark-price-current-funding-open-interest-etc
|
|
784
|
+
*/
|
|
146
785
|
metaAndAssetCtxs(params?: MetaAndAssetCtxsParameters, signal?: AbortSignal): Promise<MetaAndAssetCtxsResponse>;
|
|
147
786
|
metaAndAssetCtxs(signal?: AbortSignal): Promise<MetaAndAssetCtxsResponse>;
|
|
148
|
-
/**
|
|
787
|
+
/**
|
|
788
|
+
* Request open orders.
|
|
789
|
+
*
|
|
790
|
+
* @param params - Parameters specific to the API request.
|
|
791
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
792
|
+
*
|
|
793
|
+
* @returns Array of open orders.
|
|
794
|
+
*
|
|
795
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
796
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
797
|
+
*
|
|
798
|
+
* @example
|
|
799
|
+
* ```ts
|
|
800
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
801
|
+
*
|
|
802
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
803
|
+
* const client = new hl.InfoClient({ transport });
|
|
804
|
+
*
|
|
805
|
+
* const data = await client.openOrders({ user: "0x..." });
|
|
806
|
+
* ```
|
|
807
|
+
*
|
|
808
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-open-orders
|
|
809
|
+
*/
|
|
149
810
|
openOrders(params: OpenOrdersParameters, signal?: AbortSignal): Promise<OpenOrdersResponse>;
|
|
150
|
-
/**
|
|
811
|
+
/**
|
|
812
|
+
* Request order status.
|
|
813
|
+
*
|
|
814
|
+
* @param params - Parameters specific to the API request.
|
|
815
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
816
|
+
*
|
|
817
|
+
* @returns Order status response.
|
|
818
|
+
*
|
|
819
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
820
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
821
|
+
*
|
|
822
|
+
* @example
|
|
823
|
+
* ```ts
|
|
824
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
825
|
+
*
|
|
826
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
827
|
+
* const client = new hl.InfoClient({ transport });
|
|
828
|
+
*
|
|
829
|
+
* const data = await client.orderStatus({ user: "0x...", oid: 12345 });
|
|
830
|
+
* ```
|
|
831
|
+
*
|
|
832
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-order-status-by-oid-or-cloid
|
|
833
|
+
*/
|
|
151
834
|
orderStatus(params: OrderStatusParameters, signal?: AbortSignal): Promise<OrderStatusResponse>;
|
|
152
|
-
/**
|
|
835
|
+
/**
|
|
836
|
+
* Request for the status of the perpetual deploy auction.
|
|
837
|
+
*
|
|
838
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
839
|
+
*
|
|
840
|
+
* @returns Status of the perpetual deploy auction.
|
|
841
|
+
*
|
|
842
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
843
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
844
|
+
*
|
|
845
|
+
* @example
|
|
846
|
+
* ```ts
|
|
847
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
848
|
+
*
|
|
849
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
850
|
+
* const client = new hl.InfoClient({ transport });
|
|
851
|
+
*
|
|
852
|
+
* const data = await client.perpDeployAuctionStatus();
|
|
853
|
+
* ```
|
|
854
|
+
*
|
|
855
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-information-about-the-perp-deploy-auction
|
|
856
|
+
*/
|
|
153
857
|
perpDeployAuctionStatus(signal?: AbortSignal): Promise<PerpDeployAuctionStatusResponse>;
|
|
154
|
-
/**
|
|
858
|
+
/**
|
|
859
|
+
* Request builder deployed perpetual market limits.
|
|
860
|
+
*
|
|
861
|
+
* @param params - Parameters specific to the API request.
|
|
862
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
863
|
+
*
|
|
864
|
+
* @returns Builder deployed perpetual market limits.
|
|
865
|
+
*
|
|
866
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
867
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
868
|
+
*
|
|
869
|
+
* @example
|
|
870
|
+
* ```ts
|
|
871
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
872
|
+
*
|
|
873
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
874
|
+
* const client = new hl.InfoClient({ transport });
|
|
875
|
+
*
|
|
876
|
+
* const data = await client.perpDexLimits({ dex: "test" });
|
|
877
|
+
* ```
|
|
878
|
+
*
|
|
879
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-builder-deployed-perp-market-limits
|
|
880
|
+
*/
|
|
155
881
|
perpDexLimits(params: PerpDexLimitsParameters, signal?: AbortSignal): Promise<PerpDexLimitsResponse>;
|
|
156
|
-
/**
|
|
882
|
+
/**
|
|
883
|
+
* Request all perpetual dexs.
|
|
884
|
+
*
|
|
885
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
886
|
+
*
|
|
887
|
+
* @returns Array of perpetual dexes (null is main dex).
|
|
888
|
+
*
|
|
889
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
890
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
891
|
+
*
|
|
892
|
+
* @example
|
|
893
|
+
* ```ts
|
|
894
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
895
|
+
*
|
|
896
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
897
|
+
* const client = new hl.InfoClient({ transport });
|
|
898
|
+
*
|
|
899
|
+
* const data = await client.perpDexs();
|
|
900
|
+
* ```
|
|
901
|
+
*
|
|
902
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-all-perpetual-dexs
|
|
903
|
+
*/
|
|
157
904
|
perpDexs(signal?: AbortSignal): Promise<PerpDexsResponse>;
|
|
158
|
-
/**
|
|
905
|
+
/**
|
|
906
|
+
* Request perp DEX status.
|
|
907
|
+
*
|
|
908
|
+
* @param params - Parameters specific to the API request.
|
|
909
|
+
* @param signal - An {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} can be used to cancel the request.
|
|
910
|
+
*
|
|
911
|
+
* @returns Status of a perp DEX.
|
|
912
|
+
*
|
|
913
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
914
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
915
|
+
*
|
|
916
|
+
* @example
|
|
917
|
+
* ```ts
|
|
918
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
919
|
+
*
|
|
920
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
921
|
+
* const client = new hl.InfoClient({ transport });
|
|
922
|
+
*
|
|
923
|
+
* const data = await client.perpDexStatus({ dex: "test" });
|
|
924
|
+
* ```
|
|
925
|
+
*
|
|
926
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#get-perp-market-status
|
|
927
|
+
*/
|
|
159
928
|
perpDexStatus(params: PerpDexStatusParameters, signal?: AbortSignal): Promise<PerpDexStatusResponse>;
|
|
160
|
-
/**
|
|
929
|
+
/**
|
|
930
|
+
* Request perpetuals at open interest cap.
|
|
931
|
+
*
|
|
932
|
+
* @param params - Parameters specific to the API request.
|
|
933
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
934
|
+
*
|
|
935
|
+
* @returns Array of perpetuals at open interest caps.
|
|
936
|
+
*
|
|
937
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
938
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
939
|
+
*
|
|
940
|
+
* @example
|
|
941
|
+
* ```ts
|
|
942
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
943
|
+
*
|
|
944
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
945
|
+
* const client = new hl.InfoClient({ transport });
|
|
946
|
+
*
|
|
947
|
+
* const data = await client.perpsAtOpenInterestCap();
|
|
948
|
+
* ```
|
|
949
|
+
*
|
|
950
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#query-perps-at-open-interest-caps
|
|
951
|
+
*/
|
|
161
952
|
perpsAtOpenInterestCap(params?: PerpsAtOpenInterestCapParameters, signal?: AbortSignal): Promise<PerpsAtOpenInterestCapResponse>;
|
|
162
953
|
perpsAtOpenInterestCap(signal?: AbortSignal): Promise<PerpsAtOpenInterestCapResponse>;
|
|
163
|
-
/**
|
|
954
|
+
/**
|
|
955
|
+
* Request user portfolio.
|
|
956
|
+
*
|
|
957
|
+
* @param params - Parameters specific to the API request.
|
|
958
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
959
|
+
*
|
|
960
|
+
* @returns Portfolio metrics grouped by time periods.
|
|
961
|
+
*
|
|
962
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
963
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
964
|
+
*
|
|
965
|
+
* @example
|
|
966
|
+
* ```ts
|
|
967
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
968
|
+
*
|
|
969
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
970
|
+
* const client = new hl.InfoClient({ transport });
|
|
971
|
+
*
|
|
972
|
+
* const data = await client.portfolio({ user: "0x..." });
|
|
973
|
+
* ```
|
|
974
|
+
*
|
|
975
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-portfolio
|
|
976
|
+
*/
|
|
164
977
|
portfolio(params: PortfolioParameters, signal?: AbortSignal): Promise<PortfolioResponse>;
|
|
165
|
-
/**
|
|
978
|
+
/**
|
|
979
|
+
* Request predicted funding rates.
|
|
980
|
+
*
|
|
981
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
982
|
+
*
|
|
983
|
+
* @returns Array of predicted funding rates.
|
|
984
|
+
*
|
|
985
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
986
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
987
|
+
*
|
|
988
|
+
* @example
|
|
989
|
+
* ```ts
|
|
990
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
991
|
+
*
|
|
992
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
993
|
+
* const client = new hl.InfoClient({ transport });
|
|
994
|
+
*
|
|
995
|
+
* const data = await client.predictedFundings();
|
|
996
|
+
* ```
|
|
997
|
+
*
|
|
998
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-predicted-funding-rates-for-different-venues
|
|
999
|
+
*/
|
|
166
1000
|
predictedFundings(signal?: AbortSignal): Promise<PredictedFundingsResponse>;
|
|
167
|
-
/**
|
|
1001
|
+
/**
|
|
1002
|
+
* Request user existence check before transfer.
|
|
1003
|
+
*
|
|
1004
|
+
* @param params - Parameters specific to the API request.
|
|
1005
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1006
|
+
*
|
|
1007
|
+
* @returns Pre-transfer user existence check result.
|
|
1008
|
+
*
|
|
1009
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1010
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1011
|
+
*
|
|
1012
|
+
* @example
|
|
1013
|
+
* ```ts
|
|
1014
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1015
|
+
*
|
|
1016
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1017
|
+
* const client = new hl.InfoClient({ transport });
|
|
1018
|
+
*
|
|
1019
|
+
* const data = await client.preTransferCheck({ user: "0x...", source: "0x..." });
|
|
1020
|
+
* ```
|
|
1021
|
+
*/
|
|
168
1022
|
preTransferCheck(params: PreTransferCheckParameters, signal?: AbortSignal): Promise<PreTransferCheckResponse>;
|
|
169
|
-
/**
|
|
1023
|
+
/**
|
|
1024
|
+
* Request recent trades.
|
|
1025
|
+
*
|
|
1026
|
+
* @param params - Parameters specific to the API request.
|
|
1027
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1028
|
+
*
|
|
1029
|
+
* @returns Array of recent trades.
|
|
1030
|
+
*
|
|
1031
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1032
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1033
|
+
*
|
|
1034
|
+
* @example
|
|
1035
|
+
* ```ts
|
|
1036
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1037
|
+
*
|
|
1038
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1039
|
+
* const client = new hl.InfoClient({ transport });
|
|
1040
|
+
*
|
|
1041
|
+
* const data = await client.recentTrades({ coin: "ETH" });
|
|
1042
|
+
* ```
|
|
1043
|
+
*/
|
|
170
1044
|
recentTrades(params: RecentTradesParameters, signal?: AbortSignal): Promise<RecentTradesResponse>;
|
|
171
|
-
/**
|
|
1045
|
+
/**
|
|
1046
|
+
* Request user referral.
|
|
1047
|
+
*
|
|
1048
|
+
* @param params - Parameters specific to the API request.
|
|
1049
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1050
|
+
*
|
|
1051
|
+
* @returns Referral details for a user.
|
|
1052
|
+
*
|
|
1053
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1054
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1055
|
+
*
|
|
1056
|
+
* @example
|
|
1057
|
+
* ```ts
|
|
1058
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1059
|
+
*
|
|
1060
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1061
|
+
* const client = new hl.InfoClient({ transport });
|
|
1062
|
+
*
|
|
1063
|
+
* const data = await client.referral({ user: "0x..." });
|
|
1064
|
+
* ```
|
|
1065
|
+
*
|
|
1066
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-referral-information
|
|
1067
|
+
*/
|
|
172
1068
|
referral(params: ReferralParameters, signal?: AbortSignal): Promise<ReferralResponse>;
|
|
173
|
-
/**
|
|
1069
|
+
/**
|
|
1070
|
+
* Request spot clearinghouse state.
|
|
1071
|
+
*
|
|
1072
|
+
* @param params - Parameters specific to the API request.
|
|
1073
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1074
|
+
*
|
|
1075
|
+
* @returns Account summary for spot trading.
|
|
1076
|
+
*
|
|
1077
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1078
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1079
|
+
*
|
|
1080
|
+
* @example
|
|
1081
|
+
* ```ts
|
|
1082
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1083
|
+
*
|
|
1084
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1085
|
+
* const client = new hl.InfoClient({ transport });
|
|
1086
|
+
*
|
|
1087
|
+
* const data = await client.spotClearinghouseState({ user: "0x..." });
|
|
1088
|
+
* ```
|
|
1089
|
+
*
|
|
1090
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-a-users-token-balances
|
|
1091
|
+
*/
|
|
174
1092
|
spotClearinghouseState(params: SpotClearinghouseStateParameters, signal?: AbortSignal): Promise<SpotClearinghouseStateResponse>;
|
|
175
|
-
/**
|
|
1093
|
+
/**
|
|
1094
|
+
* Request spot deploy state.
|
|
1095
|
+
*
|
|
1096
|
+
* @param params - Parameters specific to the API request.
|
|
1097
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1098
|
+
*
|
|
1099
|
+
* @returns Deploy state for spot tokens.
|
|
1100
|
+
*
|
|
1101
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1102
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1103
|
+
*
|
|
1104
|
+
* @example
|
|
1105
|
+
* ```ts
|
|
1106
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1107
|
+
*
|
|
1108
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1109
|
+
* const client = new hl.InfoClient({ transport });
|
|
1110
|
+
*
|
|
1111
|
+
* const data = await client.spotDeployState({ user: "0x..." });
|
|
1112
|
+
* ```
|
|
1113
|
+
*
|
|
1114
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-information-about-the-spot-deploy-auction
|
|
1115
|
+
*/
|
|
176
1116
|
spotDeployState(params: SpotDeployStateParameters, signal?: AbortSignal): Promise<SpotDeployStateResponse>;
|
|
177
|
-
/**
|
|
1117
|
+
/**
|
|
1118
|
+
* Request spot trading metadata.
|
|
1119
|
+
*
|
|
1120
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1121
|
+
*
|
|
1122
|
+
* @returns Metadata for spot assets.
|
|
1123
|
+
*
|
|
1124
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1125
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1126
|
+
*
|
|
1127
|
+
* @example
|
|
1128
|
+
* ```ts
|
|
1129
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1130
|
+
*
|
|
1131
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1132
|
+
* const client = new hl.InfoClient({ transport });
|
|
1133
|
+
*
|
|
1134
|
+
* const data = await client.spotMeta();
|
|
1135
|
+
* ```
|
|
1136
|
+
*
|
|
1137
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-spot-metadata
|
|
1138
|
+
*/
|
|
178
1139
|
spotMeta(signal?: AbortSignal): Promise<SpotMetaResponse>;
|
|
179
|
-
/**
|
|
1140
|
+
/**
|
|
1141
|
+
* Request spot metadata and asset contexts.
|
|
1142
|
+
*
|
|
1143
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1144
|
+
*
|
|
1145
|
+
* @returns Metadata and context for spot assets.
|
|
1146
|
+
*
|
|
1147
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1148
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1149
|
+
*
|
|
1150
|
+
* @example
|
|
1151
|
+
* ```ts
|
|
1152
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1153
|
+
*
|
|
1154
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1155
|
+
* const client = new hl.InfoClient({ transport });
|
|
1156
|
+
*
|
|
1157
|
+
* const data = await client.spotMetaAndAssetCtxs();
|
|
1158
|
+
* ```
|
|
1159
|
+
*
|
|
1160
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-spot-asset-contexts
|
|
1161
|
+
*/
|
|
180
1162
|
spotMetaAndAssetCtxs(signal?: AbortSignal): Promise<SpotMetaAndAssetCtxsResponse>;
|
|
181
|
-
/**
|
|
1163
|
+
/**
|
|
1164
|
+
* Request for the status of the spot deploy auction.
|
|
1165
|
+
*
|
|
1166
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1167
|
+
*
|
|
1168
|
+
* @returns Status of the spot deploy auction.
|
|
1169
|
+
*
|
|
1170
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1171
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1172
|
+
*
|
|
1173
|
+
* @example
|
|
1174
|
+
* ```ts
|
|
1175
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1176
|
+
*
|
|
1177
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1178
|
+
* const client = new hl.InfoClient({ transport });
|
|
1179
|
+
*
|
|
1180
|
+
* const data = await client.spotPairDeployAuctionStatus();
|
|
1181
|
+
* ```
|
|
1182
|
+
*
|
|
1183
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-information-about-the-spot-pair-deploy-auction
|
|
1184
|
+
*/
|
|
182
1185
|
spotPairDeployAuctionStatus(signal?: AbortSignal): Promise<SpotPairDeployAuctionStatusResponse>;
|
|
183
|
-
/**
|
|
1186
|
+
/**
|
|
1187
|
+
* Request user sub-accounts.
|
|
1188
|
+
*
|
|
1189
|
+
* @param params - Parameters specific to the API request.
|
|
1190
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1191
|
+
*
|
|
1192
|
+
* @returns Array of user sub-account or null if the user does not have any sub-accounts.
|
|
1193
|
+
*
|
|
1194
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1195
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1196
|
+
*
|
|
1197
|
+
* @example
|
|
1198
|
+
* ```ts
|
|
1199
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1200
|
+
*
|
|
1201
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1202
|
+
* const client = new hl.InfoClient({ transport });
|
|
1203
|
+
*
|
|
1204
|
+
* const data = await client.subAccounts({ user: "0x..." });
|
|
1205
|
+
* ```
|
|
1206
|
+
*
|
|
1207
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-subaccounts
|
|
1208
|
+
*/
|
|
184
1209
|
subAccounts(params: SubAccountsParameters, signal?: AbortSignal): Promise<SubAccountsResponse>;
|
|
185
|
-
/**
|
|
1210
|
+
/**
|
|
1211
|
+
* Request user sub-accounts V2.
|
|
1212
|
+
*
|
|
1213
|
+
* @param params - Parameters specific to the API request.
|
|
1214
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1215
|
+
*
|
|
1216
|
+
* @returns Array of user sub-account or null if the user does not have any sub-accounts.
|
|
1217
|
+
*
|
|
1218
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1219
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1220
|
+
*
|
|
1221
|
+
* @example
|
|
1222
|
+
* ```ts
|
|
1223
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1224
|
+
*
|
|
1225
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1226
|
+
* const client = new hl.InfoClient({ transport });
|
|
1227
|
+
*
|
|
1228
|
+
* const data = await client.subAccounts2({ user: "0x..." });
|
|
1229
|
+
* ```
|
|
1230
|
+
*/
|
|
186
1231
|
subAccounts2(params: SubAccounts2Parameters, signal?: AbortSignal): Promise<SubAccounts2Response>;
|
|
187
|
-
/**
|
|
1232
|
+
/**
|
|
1233
|
+
* Request token details.
|
|
1234
|
+
*
|
|
1235
|
+
* @param params - Parameters specific to the API request.
|
|
1236
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1237
|
+
*
|
|
1238
|
+
* @returns Details of a token.
|
|
1239
|
+
*
|
|
1240
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1241
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1242
|
+
*
|
|
1243
|
+
* @example
|
|
1244
|
+
* ```ts
|
|
1245
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1246
|
+
*
|
|
1247
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1248
|
+
* const client = new hl.InfoClient({ transport });
|
|
1249
|
+
*
|
|
1250
|
+
* const data = await client.tokenDetails({ tokenId: "0x..." });
|
|
1251
|
+
* ```
|
|
1252
|
+
*
|
|
1253
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-information-about-a-token
|
|
1254
|
+
*/
|
|
188
1255
|
tokenDetails(params: TokenDetailsParameters, signal?: AbortSignal): Promise<TokenDetailsResponse>;
|
|
189
|
-
/**
|
|
1256
|
+
/**
|
|
1257
|
+
* Request twap history of a user.
|
|
1258
|
+
*
|
|
1259
|
+
* @param params - Parameters specific to the API request.
|
|
1260
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1261
|
+
*
|
|
1262
|
+
* @returns Array of user's TWAP history.
|
|
1263
|
+
*
|
|
1264
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1265
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1266
|
+
*
|
|
1267
|
+
* @example
|
|
1268
|
+
* ```ts
|
|
1269
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1270
|
+
*
|
|
1271
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1272
|
+
* const client = new hl.InfoClient({ transport });
|
|
1273
|
+
*
|
|
1274
|
+
* const data = await client.twapHistory({ user: "0x..." });
|
|
1275
|
+
* ```
|
|
1276
|
+
*/
|
|
190
1277
|
twapHistory(params: TwapHistoryParameters, signal?: AbortSignal): Promise<TwapHistoryResponse>;
|
|
191
|
-
/**
|
|
1278
|
+
/**
|
|
1279
|
+
* Request transaction details by transaction hash.
|
|
1280
|
+
*
|
|
1281
|
+
* @param params - Parameters specific to the API request.
|
|
1282
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1283
|
+
*
|
|
1284
|
+
* @returns Transaction details.
|
|
1285
|
+
*
|
|
1286
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1287
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1288
|
+
*
|
|
1289
|
+
* @example
|
|
1290
|
+
* ```ts
|
|
1291
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1292
|
+
*
|
|
1293
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1294
|
+
* const client = new hl.InfoClient({ transport });
|
|
1295
|
+
*
|
|
1296
|
+
* const data = await client.txDetails({ hash: "0x..." });
|
|
1297
|
+
* ```
|
|
1298
|
+
*/
|
|
192
1299
|
txDetails(params: TxDetailsParameters, signal?: AbortSignal): Promise<TxDetailsResponse>;
|
|
193
|
-
/**
|
|
1300
|
+
/**
|
|
1301
|
+
* Request borrow/lend user interest.
|
|
1302
|
+
*
|
|
1303
|
+
* @param params - Parameters specific to the API request.
|
|
1304
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1305
|
+
*
|
|
1306
|
+
* @returns User's borrow/lend interest.
|
|
1307
|
+
*
|
|
1308
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1309
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1310
|
+
*
|
|
1311
|
+
* @example
|
|
1312
|
+
* ```ts
|
|
1313
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1314
|
+
*
|
|
1315
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1316
|
+
* const client = new hl.InfoClient({ transport });
|
|
1317
|
+
*
|
|
1318
|
+
* const data = await client.userBorrowLendInterest({ user: "0x...", startTime: 1725991229384 });
|
|
1319
|
+
* ```
|
|
1320
|
+
*
|
|
1321
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-borrow-lend-user-state
|
|
1322
|
+
*/
|
|
1323
|
+
userBorrowLendInterest(params: UserBorrowLendInterestParameters, signal?: AbortSignal): Promise<UserBorrowLendInterestResponse>;
|
|
1324
|
+
/**
|
|
1325
|
+
* Request array of user transaction details.
|
|
1326
|
+
*
|
|
1327
|
+
* @param params - Parameters specific to the API request.
|
|
1328
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1329
|
+
*
|
|
1330
|
+
* @returns Array of user transaction details.
|
|
1331
|
+
*
|
|
1332
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1333
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1334
|
+
*
|
|
1335
|
+
* @example
|
|
1336
|
+
* ```ts
|
|
1337
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1338
|
+
*
|
|
1339
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1340
|
+
* const client = new hl.InfoClient({ transport });
|
|
1341
|
+
*
|
|
1342
|
+
* const data = await client.userDetails({ user: "0x..." });
|
|
1343
|
+
* ```
|
|
1344
|
+
*/
|
|
194
1345
|
userDetails(params: UserDetailsParameters, signal?: AbortSignal): Promise<UserDetailsResponse>;
|
|
195
|
-
/**
|
|
1346
|
+
/**
|
|
1347
|
+
* Request user HIP-3 DEX abstraction state.
|
|
1348
|
+
*
|
|
1349
|
+
* @param params - Parameters specific to the API request.
|
|
1350
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1351
|
+
*
|
|
1352
|
+
* @returns User HIP-3 DEX abstraction state.
|
|
1353
|
+
*
|
|
1354
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1355
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1356
|
+
*
|
|
1357
|
+
* @example
|
|
1358
|
+
* ```ts
|
|
1359
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1360
|
+
*
|
|
1361
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1362
|
+
* const client = new hl.InfoClient({ transport });
|
|
1363
|
+
*
|
|
1364
|
+
* const data = await client.userDexAbstraction({ user: "0x..." });
|
|
1365
|
+
* ```
|
|
1366
|
+
*
|
|
1367
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-hip-3-dex-abstraction-state
|
|
1368
|
+
*/
|
|
196
1369
|
userDexAbstraction(params: UserDexAbstractionParameters, signal?: AbortSignal): Promise<UserDexAbstractionResponse>;
|
|
197
|
-
/**
|
|
1370
|
+
/**
|
|
1371
|
+
* Request user fees.
|
|
1372
|
+
*
|
|
1373
|
+
* @param params - Parameters specific to the API request.
|
|
1374
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1375
|
+
*
|
|
1376
|
+
* @returns User fees.
|
|
1377
|
+
*
|
|
1378
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1379
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1380
|
+
*
|
|
1381
|
+
* @example
|
|
1382
|
+
* ```ts
|
|
1383
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1384
|
+
*
|
|
1385
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1386
|
+
* const client = new hl.InfoClient({ transport });
|
|
1387
|
+
*
|
|
1388
|
+
* const data = await client.userFees({ user: "0x..." });
|
|
1389
|
+
* ```
|
|
1390
|
+
*
|
|
1391
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-fees
|
|
1392
|
+
*/
|
|
198
1393
|
userFees(params: UserFeesParameters, signal?: AbortSignal): Promise<UserFeesResponse>;
|
|
199
|
-
/**
|
|
1394
|
+
/**
|
|
1395
|
+
* Request array of user fills.
|
|
1396
|
+
*
|
|
1397
|
+
* @param params - Parameters specific to the API request.
|
|
1398
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1399
|
+
*
|
|
1400
|
+
* @returns Array of user trade fills.
|
|
1401
|
+
*
|
|
1402
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1403
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1404
|
+
*
|
|
1405
|
+
* @example
|
|
1406
|
+
* ```ts
|
|
1407
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1408
|
+
*
|
|
1409
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1410
|
+
* const client = new hl.InfoClient({ transport });
|
|
1411
|
+
*
|
|
1412
|
+
* const data = await client.userFills({ user: "0x..." });
|
|
1413
|
+
* ```
|
|
1414
|
+
*
|
|
1415
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-fills
|
|
1416
|
+
*/
|
|
200
1417
|
userFills(params: UserFillsParameters, signal?: AbortSignal): Promise<UserFillsResponse>;
|
|
201
|
-
/**
|
|
1418
|
+
/**
|
|
1419
|
+
* Request array of user fills by time.
|
|
1420
|
+
*
|
|
1421
|
+
* @param params - Parameters specific to the API request.
|
|
1422
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1423
|
+
*
|
|
1424
|
+
* @returns Array of user trade fills by time.
|
|
1425
|
+
*
|
|
1426
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1427
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1428
|
+
*
|
|
1429
|
+
* @example
|
|
1430
|
+
* ```ts
|
|
1431
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1432
|
+
*
|
|
1433
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1434
|
+
* const client = new hl.InfoClient({ transport });
|
|
1435
|
+
*
|
|
1436
|
+
* const data = await client.userFillsByTime({ user: "0x...", startTime: Date.now() - 1000 * 60 * 60 * 24 });
|
|
1437
|
+
* ```
|
|
1438
|
+
*
|
|
1439
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-fills-by-time
|
|
1440
|
+
*/
|
|
202
1441
|
userFillsByTime(params: UserFillsByTimeParameters, signal?: AbortSignal): Promise<UserFillsByTimeResponse>;
|
|
203
|
-
/**
|
|
1442
|
+
/**
|
|
1443
|
+
* Request array of user funding ledger updates.
|
|
1444
|
+
*
|
|
1445
|
+
* @param params - Parameters specific to the API request.
|
|
1446
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1447
|
+
*
|
|
1448
|
+
* @returns Array of user funding ledger updates.
|
|
1449
|
+
*
|
|
1450
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1451
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1452
|
+
*
|
|
1453
|
+
* @example
|
|
1454
|
+
* ```ts
|
|
1455
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1456
|
+
*
|
|
1457
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1458
|
+
* const client = new hl.InfoClient({ transport });
|
|
1459
|
+
*
|
|
1460
|
+
* const data = await client.userFunding({ user: "0x..." });
|
|
1461
|
+
* ```
|
|
1462
|
+
*
|
|
1463
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-a-users-funding-history-or-non-funding-ledger-updates
|
|
1464
|
+
*/
|
|
204
1465
|
userFunding(params: UserFundingParameters, signal?: AbortSignal): Promise<UserFundingResponse>;
|
|
205
|
-
/**
|
|
1466
|
+
/**
|
|
1467
|
+
* Request user non-funding ledger updates.
|
|
1468
|
+
*
|
|
1469
|
+
* @param params - Parameters specific to the API request.
|
|
1470
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1471
|
+
*
|
|
1472
|
+
* @returns Array of user's non-funding ledger update.
|
|
1473
|
+
*
|
|
1474
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1475
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1476
|
+
*
|
|
1477
|
+
* @example
|
|
1478
|
+
* ```ts
|
|
1479
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1480
|
+
*
|
|
1481
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1482
|
+
* const client = new hl.InfoClient({ transport });
|
|
1483
|
+
*
|
|
1484
|
+
* const data = await client.userNonFundingLedgerUpdates({ user: "0x..." });
|
|
1485
|
+
* ```
|
|
1486
|
+
*
|
|
1487
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-a-users-funding-history-or-non-funding-ledger-updates
|
|
1488
|
+
*/
|
|
206
1489
|
userNonFundingLedgerUpdates(params: UserNonFundingLedgerUpdatesParameters, signal?: AbortSignal): Promise<UserNonFundingLedgerUpdatesResponse>;
|
|
207
|
-
/**
|
|
1490
|
+
/**
|
|
1491
|
+
* Request user rate limits.
|
|
1492
|
+
*
|
|
1493
|
+
* @param params - Parameters specific to the API request.
|
|
1494
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1495
|
+
*
|
|
1496
|
+
* @returns User rate limits.
|
|
1497
|
+
*
|
|
1498
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1499
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1500
|
+
*
|
|
1501
|
+
* @example
|
|
1502
|
+
* ```ts
|
|
1503
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1504
|
+
*
|
|
1505
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1506
|
+
* const client = new hl.InfoClient({ transport });
|
|
1507
|
+
*
|
|
1508
|
+
* const data = await client.userRateLimit({ user: "0x..." });
|
|
1509
|
+
* ```
|
|
1510
|
+
*
|
|
1511
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-user-rate-limits
|
|
1512
|
+
*/
|
|
208
1513
|
userRateLimit(params: UserRateLimitParameters, signal?: AbortSignal): Promise<UserRateLimitResponse>;
|
|
209
|
-
/**
|
|
1514
|
+
/**
|
|
1515
|
+
* Request user role.
|
|
1516
|
+
*
|
|
1517
|
+
* @param params - Parameters specific to the API request.
|
|
1518
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1519
|
+
*
|
|
1520
|
+
* @returns User role.
|
|
1521
|
+
*
|
|
1522
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1523
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1524
|
+
*
|
|
1525
|
+
* @example
|
|
1526
|
+
* ```ts
|
|
1527
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1528
|
+
*
|
|
1529
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1530
|
+
* const client = new hl.InfoClient({ transport });
|
|
1531
|
+
*
|
|
1532
|
+
* const data = await client.userRole({ user: "0x..." });
|
|
1533
|
+
* ```
|
|
1534
|
+
*
|
|
1535
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-role
|
|
1536
|
+
*/
|
|
210
1537
|
userRole(params: UserRoleParameters, signal?: AbortSignal): Promise<UserRoleResponse>;
|
|
211
|
-
/**
|
|
1538
|
+
/**
|
|
1539
|
+
* Request multi-sig signers for a user.
|
|
1540
|
+
*
|
|
1541
|
+
* @param params - Parameters specific to the API request.
|
|
1542
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1543
|
+
*
|
|
1544
|
+
* @returns Multi-sig signers for a user or null if the user does not have any multi-sig signers.
|
|
1545
|
+
*
|
|
1546
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1547
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1548
|
+
*
|
|
1549
|
+
* @example
|
|
1550
|
+
* ```ts
|
|
1551
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1552
|
+
*
|
|
1553
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1554
|
+
* const client = new hl.InfoClient({ transport });
|
|
1555
|
+
*
|
|
1556
|
+
* const data = await client.userToMultiSigSigners({ user: "0x..." });
|
|
1557
|
+
* ```
|
|
1558
|
+
*/
|
|
212
1559
|
userToMultiSigSigners(params: UserToMultiSigSignersParameters, signal?: AbortSignal): Promise<UserToMultiSigSignersResponse>;
|
|
213
|
-
/**
|
|
1560
|
+
/**
|
|
1561
|
+
* Request user TWAP slice fills.
|
|
1562
|
+
*
|
|
1563
|
+
* @param params - Parameters specific to the API request.
|
|
1564
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1565
|
+
*
|
|
1566
|
+
* @returns Array of user's twap slice fills.
|
|
1567
|
+
*
|
|
1568
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1569
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1570
|
+
*
|
|
1571
|
+
* @example
|
|
1572
|
+
* ```ts
|
|
1573
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1574
|
+
*
|
|
1575
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1576
|
+
* const client = new hl.InfoClient({ transport });
|
|
1577
|
+
*
|
|
1578
|
+
* const data = await client.userTwapSliceFills({ user: "0x..." });
|
|
1579
|
+
* ```
|
|
1580
|
+
*
|
|
1581
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-twap-slice-fills
|
|
1582
|
+
*/
|
|
214
1583
|
userTwapSliceFills(params: UserTwapSliceFillsParameters, signal?: AbortSignal): Promise<UserTwapSliceFillsResponse>;
|
|
215
|
-
/**
|
|
1584
|
+
/**
|
|
1585
|
+
* Request user TWAP slice fills by time.
|
|
1586
|
+
*
|
|
1587
|
+
* @param params - Parameters specific to the API request.
|
|
1588
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1589
|
+
*
|
|
1590
|
+
* @returns Array of user's twap slice fill by time.
|
|
1591
|
+
*
|
|
1592
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1593
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1594
|
+
*
|
|
1595
|
+
* @example
|
|
1596
|
+
* ```ts
|
|
1597
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1598
|
+
*
|
|
1599
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1600
|
+
* const client = new hl.InfoClient({ transport });
|
|
1601
|
+
*
|
|
1602
|
+
* const data = await client.userTwapSliceFillsByTime({ user: "0x...", startTime: Date.now() - 1000 * 60 * 60 * 24 });
|
|
1603
|
+
* ```
|
|
1604
|
+
*/
|
|
216
1605
|
userTwapSliceFillsByTime(params: UserTwapSliceFillsByTimeParameters, signal?: AbortSignal): Promise<UserTwapSliceFillsByTimeResponse>;
|
|
217
|
-
/**
|
|
1606
|
+
/**
|
|
1607
|
+
* Request user vault deposits.
|
|
1608
|
+
*
|
|
1609
|
+
* @param params - Parameters specific to the API request.
|
|
1610
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1611
|
+
*
|
|
1612
|
+
* @returns Array of user's vault deposits.
|
|
1613
|
+
*
|
|
1614
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1615
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1616
|
+
*
|
|
1617
|
+
* @example
|
|
1618
|
+
* ```ts
|
|
1619
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1620
|
+
*
|
|
1621
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1622
|
+
* const client = new hl.InfoClient({ transport });
|
|
1623
|
+
*
|
|
1624
|
+
* const data = await client.userVaultEquities({ user: "0x..." });
|
|
1625
|
+
* ```
|
|
1626
|
+
*
|
|
1627
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-vault-deposits
|
|
1628
|
+
*/
|
|
218
1629
|
userVaultEquities(params: UserVaultEquitiesParameters, signal?: AbortSignal): Promise<UserVaultEquitiesResponse>;
|
|
219
|
-
/**
|
|
1630
|
+
/**
|
|
1631
|
+
* Request validator L1 votes.
|
|
1632
|
+
*
|
|
1633
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1634
|
+
*
|
|
1635
|
+
* @returns Array of L1 governance votes cast by validators.
|
|
1636
|
+
*
|
|
1637
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1638
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1639
|
+
*
|
|
1640
|
+
* @example
|
|
1641
|
+
* ```ts
|
|
1642
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1643
|
+
*
|
|
1644
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1645
|
+
* const client = new hl.InfoClient({ transport });
|
|
1646
|
+
*
|
|
1647
|
+
* const data = await client.validatorL1Votes();
|
|
1648
|
+
* ```
|
|
1649
|
+
*/
|
|
220
1650
|
validatorL1Votes(signal?: AbortSignal): Promise<ValidatorL1VotesResponse>;
|
|
221
|
-
/**
|
|
1651
|
+
/**
|
|
1652
|
+
* Request validator summaries.
|
|
1653
|
+
*
|
|
1654
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1655
|
+
*
|
|
1656
|
+
* @returns Array of validator performance statistics.
|
|
1657
|
+
*
|
|
1658
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1659
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1660
|
+
*
|
|
1661
|
+
* @example
|
|
1662
|
+
* ```ts
|
|
1663
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1664
|
+
*
|
|
1665
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1666
|
+
* const client = new hl.InfoClient({ transport });
|
|
1667
|
+
*
|
|
1668
|
+
* const data = await client.validatorSummaries();
|
|
1669
|
+
* ```
|
|
1670
|
+
*/
|
|
222
1671
|
validatorSummaries(signal?: AbortSignal): Promise<ValidatorSummariesResponse>;
|
|
223
|
-
/**
|
|
1672
|
+
/**
|
|
1673
|
+
* Request details of a vault.
|
|
1674
|
+
*
|
|
1675
|
+
* @param params - Parameters specific to the API request.
|
|
1676
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1677
|
+
*
|
|
1678
|
+
* @returns Details of a vault or null if the vault does not exist.
|
|
1679
|
+
*
|
|
1680
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1681
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1682
|
+
*
|
|
1683
|
+
* @example
|
|
1684
|
+
* ```ts
|
|
1685
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1686
|
+
*
|
|
1687
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1688
|
+
* const client = new hl.InfoClient({ transport });
|
|
1689
|
+
*
|
|
1690
|
+
* const data = await client.vaultDetails({ vaultAddress: "0x..." });
|
|
1691
|
+
* ```
|
|
1692
|
+
*
|
|
1693
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-details-for-a-vault
|
|
1694
|
+
*/
|
|
224
1695
|
vaultDetails(params: VaultDetailsParameters, signal?: AbortSignal): Promise<VaultDetailsResponse>;
|
|
225
|
-
/**
|
|
1696
|
+
/**
|
|
1697
|
+
* Request a list of vaults less than 2 hours old.
|
|
1698
|
+
*
|
|
1699
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1700
|
+
*
|
|
1701
|
+
* @returns Array of vaults less than 2 hours old.
|
|
1702
|
+
*
|
|
1703
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1704
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1705
|
+
*
|
|
1706
|
+
* @example
|
|
1707
|
+
* ```ts
|
|
1708
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1709
|
+
*
|
|
1710
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1711
|
+
* const client = new hl.InfoClient({ transport });
|
|
1712
|
+
*
|
|
1713
|
+
* const data = await client.vaultSummaries();
|
|
1714
|
+
* ```
|
|
1715
|
+
*/
|
|
226
1716
|
vaultSummaries(signal?: AbortSignal): Promise<VaultSummariesResponse>;
|
|
227
|
-
/**
|
|
1717
|
+
/**
|
|
1718
|
+
* Request comprehensive user and market data.
|
|
1719
|
+
*
|
|
1720
|
+
* @param params - Parameters specific to the API request.
|
|
1721
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1722
|
+
*
|
|
1723
|
+
* @returns Comprehensive user and market data.
|
|
1724
|
+
*
|
|
1725
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1726
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1727
|
+
*
|
|
1728
|
+
* @example
|
|
1729
|
+
* ```ts
|
|
1730
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1731
|
+
*
|
|
1732
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1733
|
+
* const client = new hl.InfoClient({ transport });
|
|
1734
|
+
*
|
|
1735
|
+
* const data = await client.webData2({ user: "0x..." });
|
|
1736
|
+
* ```
|
|
1737
|
+
*/
|
|
228
1738
|
webData2(params: WebData2Parameters, signal?: AbortSignal): Promise<WebData2Response>;
|
|
229
1739
|
}
|
|
230
1740
|
export type { InfoConfig } from "./_methods/_base/types.js";
|
|
231
1741
|
export type { ActiveAssetDataParameters, ActiveAssetDataResponse } from "./_methods/activeAssetData.js";
|
|
232
1742
|
export type { AlignedQuoteTokenInfoParameters, AlignedQuoteTokenInfoResponse, } from "./_methods/alignedQuoteTokenInfo.js";
|
|
1743
|
+
export type { AllBorrowLendReserveStatesResponse } from "./_methods/allBorrowLendReserveStates.js";
|
|
233
1744
|
export type { AllMidsParameters, AllMidsResponse } from "./_methods/allMids.js";
|
|
234
1745
|
export type { AllPerpMetasResponse } from "./_methods/allPerpMetas.js";
|
|
235
1746
|
export type { BlockDetailsParameters, BlockDetailsResponse } from "./_methods/blockDetails.js";
|
|
1747
|
+
export type { BorrowLendReserveStateParameters, BorrowLendReserveStateResponse, } from "./_methods/borrowLendReserveState.js";
|
|
1748
|
+
export type { BorrowLendUserStateParameters, BorrowLendUserStateResponse } from "./_methods/borrowLendUserState.js";
|
|
236
1749
|
export type { CandleSnapshotParameters, CandleSnapshotResponse } from "./_methods/candleSnapshot.js";
|
|
237
1750
|
export type { ClearinghouseStateParameters, ClearinghouseStateResponse } from "./_methods/clearinghouseState.js";
|
|
238
1751
|
export type { DelegationsParameters, DelegationsResponse } from "./_methods/delegations.js";
|
|
@@ -277,6 +1790,7 @@ export type { SubAccounts2Parameters, SubAccounts2Response } from "./_methods/su
|
|
|
277
1790
|
export type { TokenDetailsParameters, TokenDetailsResponse } from "./_methods/tokenDetails.js";
|
|
278
1791
|
export type { TwapHistoryParameters, TwapHistoryResponse } from "./_methods/twapHistory.js";
|
|
279
1792
|
export type { TxDetailsParameters, TxDetailsResponse } from "./_methods/txDetails.js";
|
|
1793
|
+
export type { UserBorrowLendInterestParameters, UserBorrowLendInterestResponse, } from "./_methods/userBorrowLendInterest.js";
|
|
280
1794
|
export type { UserDetailsParameters, UserDetailsResponse } from "./_methods/userDetails.js";
|
|
281
1795
|
export type { UserDexAbstractionParameters as UserDexAbstractionInfoParameters, UserDexAbstractionResponse as UserDexAbstractionInfoResponse, } from "./_methods/userDexAbstraction.js";
|
|
282
1796
|
export type { UserFeesParameters, UserFeesResponse } from "./_methods/userFees.js";
|