@nktkas/hyperliquid 0.30.3 → 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/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 -262
- package/esm/bin/cli.js.map +1 -1
- package/{script/deps/jsr.io/@std/async/1.1.0 → esm/deps/jsr.io/@std/async/1.1.1}/unstable_semaphore.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.js.map +1 -1
- 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/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 +37 -85
- package/esm/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/approveAgent.js +14 -14
- 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 +99 -431
- 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 +38 -84
- package/esm/src/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/borrowLend.js +13 -13
- package/esm/src/api/exchange/_methods/borrowLend.js.map +1 -1
- 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 +81 -263
- 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 +105 -365
- 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 +59 -115
- 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 +45 -95
- 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 +37 -85
- 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 +37 -85
- package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js +13 -13
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- 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 +37 -85
- 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 +1278 -48
- package/esm/src/api/exchange/client.d.ts.map +1 -1
- package/esm/src/api/exchange/client.js +1253 -46
- package/esm/src/api/exchange/client.js.map +1 -1
- package/esm/src/api/exchange/mod.d.ts +2 -0
- package/esm/src/api/exchange/mod.d.ts.map +1 -1
- package/esm/src/api/exchange/mod.js +2 -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 +19 -19
- 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 +13 -33
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -1
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js +4 -7
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -1
- 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 +14 -26
- package/esm/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/borrowLendReserveState.js +14 -14
- package/esm/src/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts +18 -49
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/borrowLendUserState.js +18 -19
- package/esm/src/api/info/_methods/borrowLendUserState.js.map +1 -1
- 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 +16 -42
- package/esm/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexs.js +17 -20
- 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 +47 -98
- package/esm/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotMeta.js +47 -34
- package/esm/src/api/info/_methods/spotMeta.js.map +1 -1
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +50 -155
- 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 +12 -22
- package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userBorrowLendInterest.js +12 -12
- package/esm/src/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- 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 +100 -324
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js +100 -100
- 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 +1578 -80
- package/esm/src/api/info/client.d.ts.map +1 -1
- package/esm/src/api/info/client.js +1489 -78
- package/esm/src/api/info/client.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 +119 -565
- 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 -262
- package/script/bin/cli.js.map +1 -1
- package/{esm/deps/jsr.io/@std/async/1.1.0 → script/deps/jsr.io/@std/async/1.1.1}/unstable_semaphore.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.js.map +1 -1
- 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/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 +37 -85
- package/script/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/approveAgent.js +14 -14
- 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 +99 -431
- 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 +38 -84
- package/script/src/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/borrowLend.js +13 -13
- package/script/src/api/exchange/_methods/borrowLend.js.map +1 -1
- 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 +81 -263
- 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 +105 -365
- 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 +59 -115
- 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 +45 -95
- 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 +37 -85
- 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 +37 -85
- package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/userPortfolioMargin.js +13 -13
- package/script/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- 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 +37 -85
- 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 +1278 -48
- package/script/src/api/exchange/client.d.ts.map +1 -1
- package/script/src/api/exchange/client.js +1253 -46
- package/script/src/api/exchange/client.js.map +1 -1
- package/script/src/api/exchange/mod.d.ts +2 -0
- package/script/src/api/exchange/mod.d.ts.map +1 -1
- package/script/src/api/exchange/mod.js +2 -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 +13 -33
- package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -1
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js +4 -7
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -1
- 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 +14 -26
- package/script/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/script/src/api/info/_methods/borrowLendReserveState.js +14 -14
- package/script/src/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/script/src/api/info/_methods/borrowLendUserState.d.ts +18 -49
- package/script/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/script/src/api/info/_methods/borrowLendUserState.js +18 -19
- package/script/src/api/info/_methods/borrowLendUserState.js.map +1 -1
- 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 +16 -42
- package/script/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexs.js +17 -20
- 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 +47 -98
- package/script/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotMeta.js +47 -34
- package/script/src/api/info/_methods/spotMeta.js.map +1 -1
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +50 -155
- 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 +12 -22
- package/script/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/script/src/api/info/_methods/userBorrowLendInterest.js +12 -12
- package/script/src/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- 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 +100 -324
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js +100 -100
- 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 +1578 -80
- package/script/src/api/info/client.d.ts.map +1 -1
- package/script/src/api/info/client.js +1489 -78
- package/script/src/api/info/client.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 +119 -565
- 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 -265
- 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 +34 -67
- 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 +21 -54
- 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 +20 -53
- 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 +1322 -59
- package/src/src/api/exchange/mod.ts +2 -0
- package/src/src/api/info/_methods/_base/commonSchemas.ts +242 -550
- package/src/src/api/info/_methods/activeAssetData.ts +37 -87
- package/src/src/api/info/_methods/alignedQuoteTokenInfo.ts +22 -49
- package/src/src/api/info/_methods/allBorrowLendReserveStates.ts +5 -19
- 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 +24 -60
- package/src/src/api/info/_methods/borrowLendUserState.ts +34 -73
- 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 -81
- 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 -144
- 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 +22 -51
- 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 -538
- 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 +1580 -82
- 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.1.0 → 1.1.1}/unstable_semaphore.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.js +0 -0
- /package/src/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.ts +0 -0
|
@@ -212,7 +212,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
212
212
|
this.config_ = config;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
/**
|
|
215
|
+
/**
|
|
216
|
+
* Request user active asset data.
|
|
217
|
+
*
|
|
218
|
+
* @param params - Parameters specific to the API request.
|
|
219
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
220
|
+
*
|
|
221
|
+
* @returns User active asset data.
|
|
222
|
+
*
|
|
223
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
224
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* ```ts
|
|
228
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
229
|
+
*
|
|
230
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
231
|
+
* const client = new hl.InfoClient({ transport });
|
|
232
|
+
*
|
|
233
|
+
* const data = await client.activeAssetData({ user: "0x...", coin: "ETH" });
|
|
234
|
+
* ```
|
|
235
|
+
*
|
|
236
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-users-active-asset-data
|
|
237
|
+
*/
|
|
216
238
|
activeAssetData(
|
|
217
239
|
params: ActiveAssetDataParameters,
|
|
218
240
|
signal?: AbortSignal,
|
|
@@ -220,7 +242,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
220
242
|
return activeAssetData(this.config_, params, signal);
|
|
221
243
|
}
|
|
222
244
|
|
|
223
|
-
/**
|
|
245
|
+
/**
|
|
246
|
+
* Request supply, rate, and pending payment information for an aligned quote token.
|
|
247
|
+
*
|
|
248
|
+
* @param params - Parameters specific to the API request.
|
|
249
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
250
|
+
*
|
|
251
|
+
* @returns Supply, rate, and pending payment information for an aligned quote token.
|
|
252
|
+
*
|
|
253
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
254
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* ```ts
|
|
258
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
259
|
+
*
|
|
260
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
261
|
+
* const client = new hl.InfoClient({ transport });
|
|
262
|
+
*
|
|
263
|
+
* const data = await client.alignedQuoteTokenInfo({ token: 1328 });
|
|
264
|
+
* ```
|
|
265
|
+
*/
|
|
224
266
|
alignedQuoteTokenInfo(
|
|
225
267
|
params: AlignedQuoteTokenInfoParameters,
|
|
226
268
|
signal?: AbortSignal,
|
|
@@ -228,14 +270,57 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
228
270
|
return alignedQuoteTokenInfo(this.config_, params, signal);
|
|
229
271
|
}
|
|
230
272
|
|
|
231
|
-
/**
|
|
273
|
+
/**
|
|
274
|
+
* Request all borrow/lend reserve states.
|
|
275
|
+
*
|
|
276
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
277
|
+
*
|
|
278
|
+
* @returns Array of tuples of reserve IDs and their borrow/lend reserve state.
|
|
279
|
+
*
|
|
280
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
281
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```ts
|
|
285
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
286
|
+
*
|
|
287
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
288
|
+
* const client = new hl.InfoClient({ transport });
|
|
289
|
+
*
|
|
290
|
+
* const data = await client.allBorrowLendReserveStates();
|
|
291
|
+
* ```
|
|
292
|
+
*
|
|
293
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-all-borrow-lend-reserve-states
|
|
294
|
+
*/
|
|
232
295
|
allBorrowLendReserveStates(
|
|
233
296
|
signal?: AbortSignal,
|
|
234
297
|
): Promise<AllBorrowLendReserveStatesResponse> {
|
|
235
298
|
return allBorrowLendReserveStates(this.config_, signal);
|
|
236
299
|
}
|
|
237
300
|
|
|
238
|
-
/**
|
|
301
|
+
/**
|
|
302
|
+
* Request mid coin prices.
|
|
303
|
+
*
|
|
304
|
+
* @param params - Parameters specific to the API request.
|
|
305
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
306
|
+
*
|
|
307
|
+
* @returns Mapping of coin symbols to mid prices.
|
|
308
|
+
*
|
|
309
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
310
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
311
|
+
*
|
|
312
|
+
* @example
|
|
313
|
+
* ```ts
|
|
314
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
315
|
+
*
|
|
316
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
317
|
+
* const client = new hl.InfoClient({ transport });
|
|
318
|
+
*
|
|
319
|
+
* const data = await client.allMids();
|
|
320
|
+
* ```
|
|
321
|
+
*
|
|
322
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-mids-for-all-coins
|
|
323
|
+
*/
|
|
239
324
|
allMids(
|
|
240
325
|
params?: AllMidsParameters,
|
|
241
326
|
signal?: AbortSignal,
|
|
@@ -252,14 +337,53 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
252
337
|
return allMids(this.config_, params, signal);
|
|
253
338
|
}
|
|
254
339
|
|
|
255
|
-
/**
|
|
340
|
+
/**
|
|
341
|
+
* Request trading metadata for all DEXes.
|
|
342
|
+
*
|
|
343
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
344
|
+
*
|
|
345
|
+
* @returns Metadata for perpetual assets across all DEXes.
|
|
346
|
+
*
|
|
347
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
348
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
* ```ts
|
|
352
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
353
|
+
*
|
|
354
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
355
|
+
* const client = new hl.InfoClient({ transport });
|
|
356
|
+
*
|
|
357
|
+
* const data = await client.allPerpMetas();
|
|
358
|
+
* ```
|
|
359
|
+
*/
|
|
256
360
|
allPerpMetas(
|
|
257
361
|
signal?: AbortSignal,
|
|
258
362
|
): Promise<AllPerpMetasResponse> {
|
|
259
363
|
return allPerpMetas(this.config_, signal);
|
|
260
364
|
}
|
|
261
365
|
|
|
262
|
-
/**
|
|
366
|
+
/**
|
|
367
|
+
* Request block details by block height.
|
|
368
|
+
*
|
|
369
|
+
* @param params - Parameters specific to the API request.
|
|
370
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
371
|
+
*
|
|
372
|
+
* @returns Response containing block information.
|
|
373
|
+
*
|
|
374
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
375
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* ```ts
|
|
379
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
380
|
+
*
|
|
381
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
382
|
+
* const client = new hl.InfoClient({ transport });
|
|
383
|
+
*
|
|
384
|
+
* const data = await client.blockDetails({ height: 123 });
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
263
387
|
blockDetails(
|
|
264
388
|
params: BlockDetailsParameters,
|
|
265
389
|
signal?: AbortSignal,
|
|
@@ -267,7 +391,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
267
391
|
return blockDetails(this.config_, params, signal);
|
|
268
392
|
}
|
|
269
393
|
|
|
270
|
-
/**
|
|
394
|
+
/**
|
|
395
|
+
* Request borrow/lend reserve state.
|
|
396
|
+
*
|
|
397
|
+
* @param params - Parameters specific to the API request.
|
|
398
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
399
|
+
*
|
|
400
|
+
* @returns Borrow/lend reserve state.
|
|
401
|
+
*
|
|
402
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
403
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
404
|
+
*
|
|
405
|
+
* @example
|
|
406
|
+
* ```ts
|
|
407
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
408
|
+
*
|
|
409
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
410
|
+
* const client = new hl.InfoClient({ transport });
|
|
411
|
+
*
|
|
412
|
+
* const data = await client.borrowLendReserveState({ token: 0 });
|
|
413
|
+
* ```
|
|
414
|
+
*
|
|
415
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-borrow-lend-reserve-state
|
|
416
|
+
*/
|
|
271
417
|
borrowLendReserveState(
|
|
272
418
|
params: BorrowLendReserveStateParameters,
|
|
273
419
|
signal?: AbortSignal,
|
|
@@ -275,7 +421,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
275
421
|
return borrowLendReserveState(this.config_, params, signal);
|
|
276
422
|
}
|
|
277
423
|
|
|
278
|
-
/**
|
|
424
|
+
/**
|
|
425
|
+
* Request borrow/lend user state.
|
|
426
|
+
*
|
|
427
|
+
* @param params - Parameters specific to the API request.
|
|
428
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
429
|
+
*
|
|
430
|
+
* @returns User's borrow/lend state.
|
|
431
|
+
*
|
|
432
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
433
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
434
|
+
*
|
|
435
|
+
* @example
|
|
436
|
+
* ```ts
|
|
437
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
438
|
+
*
|
|
439
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
440
|
+
* const client = new hl.InfoClient({ transport });
|
|
441
|
+
*
|
|
442
|
+
* const data = await client.borrowLendUserState({ user: "0x..." });
|
|
443
|
+
* ```
|
|
444
|
+
*
|
|
445
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-borrow-lend-user-state
|
|
446
|
+
*/
|
|
279
447
|
borrowLendUserState(
|
|
280
448
|
params: BorrowLendUserStateParameters,
|
|
281
449
|
signal?: AbortSignal,
|
|
@@ -283,7 +451,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
283
451
|
return borrowLendUserState(this.config_, params, signal);
|
|
284
452
|
}
|
|
285
453
|
|
|
286
|
-
/**
|
|
454
|
+
/**
|
|
455
|
+
* Request candlestick snapshots.
|
|
456
|
+
*
|
|
457
|
+
* @param params - Parameters specific to the API request.
|
|
458
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
459
|
+
*
|
|
460
|
+
* @returns Array of candlestick data points.
|
|
461
|
+
*
|
|
462
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
463
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
464
|
+
*
|
|
465
|
+
* @example
|
|
466
|
+
* ```ts
|
|
467
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
468
|
+
*
|
|
469
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
470
|
+
* const client = new hl.InfoClient({ transport });
|
|
471
|
+
*
|
|
472
|
+
* const data = await client.candleSnapshot({ coin: "ETH", interval: "1h", startTime: Date.now() - 1000 * 60 * 60 * 24 });
|
|
473
|
+
* ```
|
|
474
|
+
*
|
|
475
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#candle-snapshot
|
|
476
|
+
*/
|
|
287
477
|
candleSnapshot(
|
|
288
478
|
params: CandleSnapshotParameters,
|
|
289
479
|
signal?: AbortSignal,
|
|
@@ -291,7 +481,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
291
481
|
return candleSnapshot(this.config_, params, signal);
|
|
292
482
|
}
|
|
293
483
|
|
|
294
|
-
/**
|
|
484
|
+
/**
|
|
485
|
+
* Request clearinghouse state.
|
|
486
|
+
*
|
|
487
|
+
* @param params - Parameters specific to the API request.
|
|
488
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
489
|
+
*
|
|
490
|
+
* @returns Account summary for perpetual trading.
|
|
491
|
+
*
|
|
492
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
493
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
494
|
+
*
|
|
495
|
+
* @example
|
|
496
|
+
* ```ts
|
|
497
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
498
|
+
*
|
|
499
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
500
|
+
* const client = new hl.InfoClient({ transport });
|
|
501
|
+
*
|
|
502
|
+
* const data = await client.clearinghouseState({ user: "0x..." });
|
|
503
|
+
* ```
|
|
504
|
+
*
|
|
505
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-users-perpetuals-account-summary
|
|
506
|
+
*/
|
|
295
507
|
clearinghouseState(
|
|
296
508
|
params: ClearinghouseStateParameters,
|
|
297
509
|
signal?: AbortSignal,
|
|
@@ -299,7 +511,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
299
511
|
return clearinghouseState(this.config_, params, signal);
|
|
300
512
|
}
|
|
301
513
|
|
|
302
|
-
/**
|
|
514
|
+
/**
|
|
515
|
+
* Request user staking delegations.
|
|
516
|
+
*
|
|
517
|
+
* @param params - Parameters specific to the API request.
|
|
518
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
519
|
+
*
|
|
520
|
+
* @returns Array of user's delegations to validators.
|
|
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.delegations({ user: "0x..." });
|
|
533
|
+
* ```
|
|
534
|
+
*
|
|
535
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-delegations
|
|
536
|
+
*/
|
|
303
537
|
delegations(
|
|
304
538
|
params: DelegationsParameters,
|
|
305
539
|
signal?: AbortSignal,
|
|
@@ -307,7 +541,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
307
541
|
return delegations(this.config_, params, signal);
|
|
308
542
|
}
|
|
309
543
|
|
|
310
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* Request user staking history.
|
|
546
|
+
*
|
|
547
|
+
* @param params - Parameters specific to the API request.
|
|
548
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
549
|
+
*
|
|
550
|
+
* @returns Array of records of staking events by a delegator.
|
|
551
|
+
*
|
|
552
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
553
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
554
|
+
*
|
|
555
|
+
* @example
|
|
556
|
+
* ```ts
|
|
557
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
558
|
+
*
|
|
559
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
560
|
+
* const client = new hl.InfoClient({ transport });
|
|
561
|
+
*
|
|
562
|
+
* const data = await client.delegatorHistory({ user: "0x..." });
|
|
563
|
+
* ```
|
|
564
|
+
*
|
|
565
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-history
|
|
566
|
+
*/
|
|
311
567
|
delegatorHistory(
|
|
312
568
|
params: DelegatorHistoryParameters,
|
|
313
569
|
signal?: AbortSignal,
|
|
@@ -315,7 +571,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
315
571
|
return delegatorHistory(this.config_, params, signal);
|
|
316
572
|
}
|
|
317
573
|
|
|
318
|
-
/**
|
|
574
|
+
/**
|
|
575
|
+
* Request user staking rewards.
|
|
576
|
+
*
|
|
577
|
+
* @param params - Parameters specific to the API request.
|
|
578
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
579
|
+
*
|
|
580
|
+
* @returns Array of rewards received from staking activities.
|
|
581
|
+
*
|
|
582
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
583
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
584
|
+
*
|
|
585
|
+
* @example
|
|
586
|
+
* ```ts
|
|
587
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
588
|
+
*
|
|
589
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
590
|
+
* const client = new hl.InfoClient({ transport });
|
|
591
|
+
*
|
|
592
|
+
* const data = await client.delegatorRewards({ user: "0x..." });
|
|
593
|
+
* ```
|
|
594
|
+
*
|
|
595
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-rewards
|
|
596
|
+
*/
|
|
319
597
|
delegatorRewards(
|
|
320
598
|
params: DelegatorRewardsParameters,
|
|
321
599
|
signal?: AbortSignal,
|
|
@@ -323,7 +601,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
323
601
|
return delegatorRewards(this.config_, params, signal);
|
|
324
602
|
}
|
|
325
603
|
|
|
326
|
-
/**
|
|
604
|
+
/**
|
|
605
|
+
* Request user's staking summary.
|
|
606
|
+
*
|
|
607
|
+
* @param params - Parameters specific to the API request.
|
|
608
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
609
|
+
*
|
|
610
|
+
* @returns User's staking summary.
|
|
611
|
+
*
|
|
612
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
613
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
614
|
+
*
|
|
615
|
+
* @example
|
|
616
|
+
* ```ts
|
|
617
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
618
|
+
*
|
|
619
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
620
|
+
* const client = new hl.InfoClient({ transport });
|
|
621
|
+
*
|
|
622
|
+
* const data = await client.delegatorSummary({ user: "0x..." });
|
|
623
|
+
* ```
|
|
624
|
+
*
|
|
625
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-staking-summary
|
|
626
|
+
*/
|
|
327
627
|
delegatorSummary(
|
|
328
628
|
params: DelegatorSummaryParameters,
|
|
329
629
|
signal?: AbortSignal,
|
|
@@ -331,14 +631,53 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
331
631
|
return delegatorSummary(this.config_, params, signal);
|
|
332
632
|
}
|
|
333
633
|
|
|
334
|
-
/**
|
|
634
|
+
/**
|
|
635
|
+
* Request exchange system status information.
|
|
636
|
+
*
|
|
637
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
638
|
+
*
|
|
639
|
+
* @returns Exchange system status information.
|
|
640
|
+
*
|
|
641
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
642
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
643
|
+
*
|
|
644
|
+
* @example
|
|
645
|
+
* ```ts
|
|
646
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
647
|
+
*
|
|
648
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
649
|
+
* const client = new hl.InfoClient({ transport });
|
|
650
|
+
*
|
|
651
|
+
* const data = await client.exchangeStatus();
|
|
652
|
+
* ```
|
|
653
|
+
*/
|
|
335
654
|
exchangeStatus(
|
|
336
655
|
signal?: AbortSignal,
|
|
337
656
|
): Promise<ExchangeStatusResponse> {
|
|
338
657
|
return exchangeStatus(this.config_, signal);
|
|
339
658
|
}
|
|
340
659
|
|
|
341
|
-
/**
|
|
660
|
+
/**
|
|
661
|
+
* Request user extra agents.
|
|
662
|
+
*
|
|
663
|
+
* @param params - Parameters specific to the API request.
|
|
664
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
665
|
+
*
|
|
666
|
+
* @returns Array of extra agent details for a user.
|
|
667
|
+
*
|
|
668
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
669
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
670
|
+
*
|
|
671
|
+
* @example
|
|
672
|
+
* ```ts
|
|
673
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
674
|
+
*
|
|
675
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
676
|
+
* const client = new hl.InfoClient({ transport });
|
|
677
|
+
*
|
|
678
|
+
* const data = await client.extraAgents({ user: "0x..." });
|
|
679
|
+
* ```
|
|
680
|
+
*/
|
|
342
681
|
extraAgents(
|
|
343
682
|
params: ExtraAgentsParameters,
|
|
344
683
|
signal?: AbortSignal,
|
|
@@ -346,7 +685,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
346
685
|
return extraAgents(this.config_, params, signal);
|
|
347
686
|
}
|
|
348
687
|
|
|
349
|
-
/**
|
|
688
|
+
/**
|
|
689
|
+
* Request frontend open orders.
|
|
690
|
+
*
|
|
691
|
+
* @param params - Parameters specific to the API request.
|
|
692
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
693
|
+
*
|
|
694
|
+
* @returns Array of open orders with additional display information.
|
|
695
|
+
*
|
|
696
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
697
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
698
|
+
*
|
|
699
|
+
* @example
|
|
700
|
+
* ```ts
|
|
701
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
702
|
+
*
|
|
703
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
704
|
+
* const client = new hl.InfoClient({ transport });
|
|
705
|
+
*
|
|
706
|
+
* const data = await client.frontendOpenOrders({ user: "0x..." });
|
|
707
|
+
* ```
|
|
708
|
+
*
|
|
709
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-open-orders-with-additional-frontend-info
|
|
710
|
+
*/
|
|
350
711
|
frontendOpenOrders(
|
|
351
712
|
params: FrontendOpenOrdersParameters,
|
|
352
713
|
signal?: AbortSignal,
|
|
@@ -354,7 +715,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
354
715
|
return frontendOpenOrders(this.config_, params, signal);
|
|
355
716
|
}
|
|
356
717
|
|
|
357
|
-
/**
|
|
718
|
+
/**
|
|
719
|
+
* Request funding history.
|
|
720
|
+
*
|
|
721
|
+
* @param params - Parameters specific to the API request.
|
|
722
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
723
|
+
*
|
|
724
|
+
* @returns Array of historical funding rate records for an asset.
|
|
725
|
+
*
|
|
726
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
727
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
728
|
+
*
|
|
729
|
+
* @example
|
|
730
|
+
* ```ts
|
|
731
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
732
|
+
*
|
|
733
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
734
|
+
* const client = new hl.InfoClient({ transport });
|
|
735
|
+
*
|
|
736
|
+
* const data = await client.fundingHistory({ coin: "ETH", startTime: Date.now() - 1000 * 60 * 60 * 24 });
|
|
737
|
+
* ```
|
|
738
|
+
*
|
|
739
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-historical-funding-rates
|
|
740
|
+
*/
|
|
358
741
|
fundingHistory(
|
|
359
742
|
params: FundingHistoryParameters,
|
|
360
743
|
signal?: AbortSignal,
|
|
@@ -362,22 +745,83 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
362
745
|
return fundingHistory(this.config_, params, signal);
|
|
363
746
|
}
|
|
364
747
|
|
|
365
|
-
/**
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
748
|
+
/**
|
|
749
|
+
* Request gossip root IPs.
|
|
750
|
+
*
|
|
751
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
752
|
+
*
|
|
753
|
+
* @returns Array of gossip root IPs.
|
|
754
|
+
*
|
|
755
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
756
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
757
|
+
*
|
|
758
|
+
* @example
|
|
759
|
+
* ```ts
|
|
760
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
761
|
+
*
|
|
762
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
763
|
+
* const client = new hl.InfoClient({ transport });
|
|
764
|
+
*
|
|
765
|
+
* const data = await client.gossipRootIps();
|
|
766
|
+
* ```
|
|
767
|
+
*/
|
|
768
|
+
gossipRootIps(
|
|
769
|
+
signal?: AbortSignal,
|
|
770
|
+
): Promise<GossipRootIpsResponse> {
|
|
771
|
+
return gossipRootIps(this.config_, signal);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Request user historical orders.
|
|
776
|
+
*
|
|
777
|
+
* @param params - Parameters specific to the API request.
|
|
778
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
779
|
+
*
|
|
780
|
+
* @returns Array of frontend orders with current processing status.
|
|
781
|
+
*
|
|
782
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
783
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
784
|
+
*
|
|
785
|
+
* @example
|
|
786
|
+
* ```ts
|
|
787
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
788
|
+
*
|
|
789
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
790
|
+
* const client = new hl.InfoClient({ transport });
|
|
791
|
+
*
|
|
792
|
+
* const data = await client.historicalOrders({ user: "0x..." });
|
|
793
|
+
* ```
|
|
794
|
+
*
|
|
795
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-historical-orders
|
|
796
|
+
*/
|
|
797
|
+
historicalOrders(
|
|
798
|
+
params: HistoricalOrdersParameters,
|
|
799
|
+
signal?: AbortSignal,
|
|
376
800
|
): Promise<HistoricalOrdersResponse> {
|
|
377
801
|
return historicalOrders(this.config_, params, signal);
|
|
378
802
|
}
|
|
379
803
|
|
|
380
|
-
/**
|
|
804
|
+
/**
|
|
805
|
+
* Request to check if a user is a VIP.
|
|
806
|
+
*
|
|
807
|
+
* @param params - Parameters specific to the API request.
|
|
808
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
809
|
+
*
|
|
810
|
+
* @returns Boolean indicating user's VIP status.
|
|
811
|
+
*
|
|
812
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
813
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
814
|
+
*
|
|
815
|
+
* @example
|
|
816
|
+
* ```ts
|
|
817
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
818
|
+
*
|
|
819
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
820
|
+
* const client = new hl.InfoClient({ transport });
|
|
821
|
+
*
|
|
822
|
+
* const data = await client.isVip({ user: "0x..." });
|
|
823
|
+
* ```
|
|
824
|
+
*/
|
|
381
825
|
isVip(
|
|
382
826
|
params: IsVipParameters,
|
|
383
827
|
signal?: AbortSignal,
|
|
@@ -385,7 +829,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
385
829
|
return isVip(this.config_, params, signal);
|
|
386
830
|
}
|
|
387
831
|
|
|
388
|
-
/**
|
|
832
|
+
/**
|
|
833
|
+
* Request L2 order book.
|
|
834
|
+
*
|
|
835
|
+
* @param params - Parameters specific to the API request.
|
|
836
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
837
|
+
*
|
|
838
|
+
* @returns L2 order book snapshot.
|
|
839
|
+
*
|
|
840
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
841
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
842
|
+
*
|
|
843
|
+
* @example
|
|
844
|
+
* ```ts
|
|
845
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
846
|
+
*
|
|
847
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
848
|
+
* const client = new hl.InfoClient({ transport });
|
|
849
|
+
*
|
|
850
|
+
* const data = await client.l2Book({ coin: "ETH", nSigFigs: 2 });
|
|
851
|
+
* ```
|
|
852
|
+
*
|
|
853
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#l2-book-snapshot
|
|
854
|
+
*/
|
|
389
855
|
l2Book(
|
|
390
856
|
params: L2BookParameters,
|
|
391
857
|
signal?: AbortSignal,
|
|
@@ -393,7 +859,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
393
859
|
return l2Book(this.config_, params, signal);
|
|
394
860
|
}
|
|
395
861
|
|
|
396
|
-
/**
|
|
862
|
+
/**
|
|
863
|
+
* Request leading vaults for a user.
|
|
864
|
+
*
|
|
865
|
+
* @param params - Parameters specific to the API request.
|
|
866
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
867
|
+
*
|
|
868
|
+
* @returns Array of leading vaults for a user.
|
|
869
|
+
*
|
|
870
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
871
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
872
|
+
*
|
|
873
|
+
* @example
|
|
874
|
+
* ```ts
|
|
875
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
876
|
+
*
|
|
877
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
878
|
+
* const client = new hl.InfoClient({ transport });
|
|
879
|
+
*
|
|
880
|
+
* const data = await client.leadingVaults({ user: "0x..." });
|
|
881
|
+
* ```
|
|
882
|
+
*/
|
|
397
883
|
leadingVaults(
|
|
398
884
|
params: LeadingVaultsParameters,
|
|
399
885
|
signal?: AbortSignal,
|
|
@@ -401,7 +887,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
401
887
|
return leadingVaults(this.config_, params, signal);
|
|
402
888
|
}
|
|
403
889
|
|
|
404
|
-
/**
|
|
890
|
+
/**
|
|
891
|
+
* Request legal verification status of a user.
|
|
892
|
+
*
|
|
893
|
+
* @param params - Parameters specific to the API request.
|
|
894
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
895
|
+
*
|
|
896
|
+
* @returns Legal verification status for a user.
|
|
897
|
+
*
|
|
898
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
899
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
900
|
+
*
|
|
901
|
+
* @example
|
|
902
|
+
* ```ts
|
|
903
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
904
|
+
*
|
|
905
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
906
|
+
* const client = new hl.InfoClient({ transport });
|
|
907
|
+
*
|
|
908
|
+
* const data = await client.legalCheck({ user: "0x..." });
|
|
909
|
+
* ```
|
|
910
|
+
*/
|
|
405
911
|
legalCheck(
|
|
406
912
|
params: LegalCheckParameters,
|
|
407
913
|
signal?: AbortSignal,
|
|
@@ -409,14 +915,53 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
409
915
|
return legalCheck(this.config_, params, signal);
|
|
410
916
|
}
|
|
411
917
|
|
|
412
|
-
/**
|
|
918
|
+
/**
|
|
919
|
+
* Request liquidatable.
|
|
920
|
+
*
|
|
921
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
922
|
+
*
|
|
923
|
+
* @returns unknown
|
|
924
|
+
*
|
|
925
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
926
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
927
|
+
*
|
|
928
|
+
* @example
|
|
929
|
+
* ```ts
|
|
930
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
931
|
+
*
|
|
932
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
933
|
+
* const client = new hl.InfoClient({ transport });
|
|
934
|
+
*
|
|
935
|
+
* const data = await client.liquidatable();
|
|
936
|
+
* ```
|
|
937
|
+
*/
|
|
413
938
|
liquidatable(
|
|
414
939
|
signal?: AbortSignal,
|
|
415
940
|
): Promise<LiquidatableResponse> {
|
|
416
941
|
return liquidatable(this.config_, signal);
|
|
417
942
|
}
|
|
418
943
|
|
|
419
|
-
/**
|
|
944
|
+
/**
|
|
945
|
+
* Request margin table data.
|
|
946
|
+
*
|
|
947
|
+
* @param params - Parameters specific to the API request.
|
|
948
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
949
|
+
*
|
|
950
|
+
* @returns Margin requirements table with multiple tiers.
|
|
951
|
+
*
|
|
952
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
953
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
954
|
+
*
|
|
955
|
+
* @example
|
|
956
|
+
* ```ts
|
|
957
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
958
|
+
*
|
|
959
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
960
|
+
* const client = new hl.InfoClient({ transport });
|
|
961
|
+
*
|
|
962
|
+
* const data = await client.marginTable({ id: 1 });
|
|
963
|
+
* ```
|
|
964
|
+
*/
|
|
420
965
|
marginTable(
|
|
421
966
|
params: MarginTableParameters,
|
|
422
967
|
signal?: AbortSignal,
|
|
@@ -424,7 +969,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
424
969
|
return marginTable(this.config_, params, signal);
|
|
425
970
|
}
|
|
426
971
|
|
|
427
|
-
/**
|
|
972
|
+
/**
|
|
973
|
+
* Request builder fee approval.
|
|
974
|
+
*
|
|
975
|
+
* @param params - Parameters specific to the API request.
|
|
976
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
977
|
+
*
|
|
978
|
+
* @returns Maximum builder fee approval.
|
|
979
|
+
*
|
|
980
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
981
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
982
|
+
*
|
|
983
|
+
* @example
|
|
984
|
+
* ```ts
|
|
985
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
986
|
+
*
|
|
987
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
988
|
+
* const client = new hl.InfoClient({ transport });
|
|
989
|
+
*
|
|
990
|
+
* const data = await client.maxBuilderFee({ user: "0x...", builder: "0x..." });
|
|
991
|
+
* ```
|
|
992
|
+
*
|
|
993
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#check-builder-fee-approval
|
|
994
|
+
*/
|
|
428
995
|
maxBuilderFee(
|
|
429
996
|
params: MaxBuilderFeeParameters,
|
|
430
997
|
signal?: AbortSignal,
|
|
@@ -432,14 +999,55 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
432
999
|
return maxBuilderFee(this.config_, params, signal);
|
|
433
1000
|
}
|
|
434
1001
|
|
|
435
|
-
/**
|
|
1002
|
+
/**
|
|
1003
|
+
* Request maximum market order notionals.
|
|
1004
|
+
*
|
|
1005
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1006
|
+
*
|
|
1007
|
+
* @returns Maximum market order notionals.
|
|
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.maxMarketOrderNtls();
|
|
1020
|
+
* ```
|
|
1021
|
+
*/
|
|
436
1022
|
maxMarketOrderNtls(
|
|
437
1023
|
signal?: AbortSignal,
|
|
438
1024
|
): Promise<MaxMarketOrderNtlsResponse> {
|
|
439
1025
|
return maxMarketOrderNtls(this.config_, signal);
|
|
440
1026
|
}
|
|
441
1027
|
|
|
442
|
-
/**
|
|
1028
|
+
/**
|
|
1029
|
+
* Request trading metadata.
|
|
1030
|
+
*
|
|
1031
|
+
* @param params - Parameters specific to the API request.
|
|
1032
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1033
|
+
*
|
|
1034
|
+
* @returns Metadata for perpetual assets.
|
|
1035
|
+
*
|
|
1036
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1037
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1038
|
+
*
|
|
1039
|
+
* @example
|
|
1040
|
+
* ```ts
|
|
1041
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1042
|
+
*
|
|
1043
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1044
|
+
* const client = new hl.InfoClient({ transport });
|
|
1045
|
+
*
|
|
1046
|
+
* const data = await client.meta();
|
|
1047
|
+
* ```
|
|
1048
|
+
*
|
|
1049
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-perpetuals-metadata-universe-and-margin-tables
|
|
1050
|
+
*/
|
|
443
1051
|
meta(
|
|
444
1052
|
params?: MetaParameters,
|
|
445
1053
|
signal?: AbortSignal,
|
|
@@ -456,7 +1064,28 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
456
1064
|
return meta(this.config_, params, signal);
|
|
457
1065
|
}
|
|
458
1066
|
|
|
459
|
-
/**
|
|
1067
|
+
/**
|
|
1068
|
+
* Request metadata and asset contexts.
|
|
1069
|
+
*
|
|
1070
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1071
|
+
*
|
|
1072
|
+
* @returns Metadata and context for perpetual assets.
|
|
1073
|
+
*
|
|
1074
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1075
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1076
|
+
*
|
|
1077
|
+
* @example
|
|
1078
|
+
* ```ts
|
|
1079
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1080
|
+
*
|
|
1081
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1082
|
+
* const client = new hl.InfoClient({ transport });
|
|
1083
|
+
*
|
|
1084
|
+
* const data = await client.metaAndAssetCtxs();
|
|
1085
|
+
* ```
|
|
1086
|
+
*
|
|
1087
|
+
* @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
|
|
1088
|
+
*/
|
|
460
1089
|
metaAndAssetCtxs(
|
|
461
1090
|
params?: MetaAndAssetCtxsParameters,
|
|
462
1091
|
signal?: AbortSignal,
|
|
@@ -473,7 +1102,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
473
1102
|
return metaAndAssetCtxs(this.config_, params, signal);
|
|
474
1103
|
}
|
|
475
1104
|
|
|
476
|
-
/**
|
|
1105
|
+
/**
|
|
1106
|
+
* Request open orders.
|
|
1107
|
+
*
|
|
1108
|
+
* @param params - Parameters specific to the API request.
|
|
1109
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1110
|
+
*
|
|
1111
|
+
* @returns Array of open orders.
|
|
1112
|
+
*
|
|
1113
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1114
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1115
|
+
*
|
|
1116
|
+
* @example
|
|
1117
|
+
* ```ts
|
|
1118
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1119
|
+
*
|
|
1120
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1121
|
+
* const client = new hl.InfoClient({ transport });
|
|
1122
|
+
*
|
|
1123
|
+
* const data = await client.openOrders({ user: "0x..." });
|
|
1124
|
+
* ```
|
|
1125
|
+
*
|
|
1126
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-open-orders
|
|
1127
|
+
*/
|
|
477
1128
|
openOrders(
|
|
478
1129
|
params: OpenOrdersParameters,
|
|
479
1130
|
signal?: AbortSignal,
|
|
@@ -481,7 +1132,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
481
1132
|
return openOrders(this.config_, params, signal);
|
|
482
1133
|
}
|
|
483
1134
|
|
|
484
|
-
/**
|
|
1135
|
+
/**
|
|
1136
|
+
* Request order status.
|
|
1137
|
+
*
|
|
1138
|
+
* @param params - Parameters specific to the API request.
|
|
1139
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1140
|
+
*
|
|
1141
|
+
* @returns Order status response.
|
|
1142
|
+
*
|
|
1143
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1144
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1145
|
+
*
|
|
1146
|
+
* @example
|
|
1147
|
+
* ```ts
|
|
1148
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1149
|
+
*
|
|
1150
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1151
|
+
* const client = new hl.InfoClient({ transport });
|
|
1152
|
+
*
|
|
1153
|
+
* const data = await client.orderStatus({ user: "0x...", oid: 12345 });
|
|
1154
|
+
* ```
|
|
1155
|
+
*
|
|
1156
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-order-status-by-oid-or-cloid
|
|
1157
|
+
*/
|
|
485
1158
|
orderStatus(
|
|
486
1159
|
params: OrderStatusParameters,
|
|
487
1160
|
signal?: AbortSignal,
|
|
@@ -489,14 +1162,57 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
489
1162
|
return orderStatus(this.config_, params, signal);
|
|
490
1163
|
}
|
|
491
1164
|
|
|
492
|
-
/**
|
|
1165
|
+
/**
|
|
1166
|
+
* Request for the status of the perpetual deploy auction.
|
|
1167
|
+
*
|
|
1168
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1169
|
+
*
|
|
1170
|
+
* @returns Status of the perpetual deploy auction.
|
|
1171
|
+
*
|
|
1172
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1173
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1174
|
+
*
|
|
1175
|
+
* @example
|
|
1176
|
+
* ```ts
|
|
1177
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1178
|
+
*
|
|
1179
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1180
|
+
* const client = new hl.InfoClient({ transport });
|
|
1181
|
+
*
|
|
1182
|
+
* const data = await client.perpDeployAuctionStatus();
|
|
1183
|
+
* ```
|
|
1184
|
+
*
|
|
1185
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-information-about-the-perp-deploy-auction
|
|
1186
|
+
*/
|
|
493
1187
|
perpDeployAuctionStatus(
|
|
494
1188
|
signal?: AbortSignal,
|
|
495
1189
|
): Promise<PerpDeployAuctionStatusResponse> {
|
|
496
1190
|
return perpDeployAuctionStatus(this.config_, signal);
|
|
497
1191
|
}
|
|
498
1192
|
|
|
499
|
-
/**
|
|
1193
|
+
/**
|
|
1194
|
+
* Request builder deployed perpetual market limits.
|
|
1195
|
+
*
|
|
1196
|
+
* @param params - Parameters specific to the API request.
|
|
1197
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1198
|
+
*
|
|
1199
|
+
* @returns Builder deployed perpetual market limits.
|
|
1200
|
+
*
|
|
1201
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1202
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1203
|
+
*
|
|
1204
|
+
* @example
|
|
1205
|
+
* ```ts
|
|
1206
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1207
|
+
*
|
|
1208
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1209
|
+
* const client = new hl.InfoClient({ transport });
|
|
1210
|
+
*
|
|
1211
|
+
* const data = await client.perpDexLimits({ dex: "test" });
|
|
1212
|
+
* ```
|
|
1213
|
+
*
|
|
1214
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-builder-deployed-perp-market-limits
|
|
1215
|
+
*/
|
|
500
1216
|
perpDexLimits(
|
|
501
1217
|
params: PerpDexLimitsParameters,
|
|
502
1218
|
signal?: AbortSignal,
|
|
@@ -504,14 +1220,57 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
504
1220
|
return perpDexLimits(this.config_, params, signal);
|
|
505
1221
|
}
|
|
506
1222
|
|
|
507
|
-
/**
|
|
1223
|
+
/**
|
|
1224
|
+
* Request all perpetual dexs.
|
|
1225
|
+
*
|
|
1226
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1227
|
+
*
|
|
1228
|
+
* @returns Array of perpetual dexes (null is main dex).
|
|
1229
|
+
*
|
|
1230
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1231
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1232
|
+
*
|
|
1233
|
+
* @example
|
|
1234
|
+
* ```ts
|
|
1235
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1236
|
+
*
|
|
1237
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1238
|
+
* const client = new hl.InfoClient({ transport });
|
|
1239
|
+
*
|
|
1240
|
+
* const data = await client.perpDexs();
|
|
1241
|
+
* ```
|
|
1242
|
+
*
|
|
1243
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-all-perpetual-dexs
|
|
1244
|
+
*/
|
|
508
1245
|
perpDexs(
|
|
509
1246
|
signal?: AbortSignal,
|
|
510
1247
|
): Promise<PerpDexsResponse> {
|
|
511
1248
|
return perpDexs(this.config_, signal);
|
|
512
1249
|
}
|
|
513
1250
|
|
|
514
|
-
/**
|
|
1251
|
+
/**
|
|
1252
|
+
* Request perp DEX status.
|
|
1253
|
+
*
|
|
1254
|
+
* @param params - Parameters specific to the API request.
|
|
1255
|
+
* @param signal - An {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} can be used to cancel the request.
|
|
1256
|
+
*
|
|
1257
|
+
* @returns Status of a perp DEX.
|
|
1258
|
+
*
|
|
1259
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1260
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1261
|
+
*
|
|
1262
|
+
* @example
|
|
1263
|
+
* ```ts
|
|
1264
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1265
|
+
*
|
|
1266
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1267
|
+
* const client = new hl.InfoClient({ transport });
|
|
1268
|
+
*
|
|
1269
|
+
* const data = await client.perpDexStatus({ dex: "test" });
|
|
1270
|
+
* ```
|
|
1271
|
+
*
|
|
1272
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#get-perp-market-status
|
|
1273
|
+
*/
|
|
515
1274
|
perpDexStatus(
|
|
516
1275
|
params: PerpDexStatusParameters,
|
|
517
1276
|
signal?: AbortSignal,
|
|
@@ -519,9 +1278,31 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
519
1278
|
return perpDexStatus(this.config_, params, signal);
|
|
520
1279
|
}
|
|
521
1280
|
|
|
522
|
-
/**
|
|
523
|
-
|
|
524
|
-
|
|
1281
|
+
/**
|
|
1282
|
+
* Request perpetuals at open interest cap.
|
|
1283
|
+
*
|
|
1284
|
+
* @param params - Parameters specific to the API request.
|
|
1285
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1286
|
+
*
|
|
1287
|
+
* @returns Array of perpetuals at open interest caps.
|
|
1288
|
+
*
|
|
1289
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1290
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1291
|
+
*
|
|
1292
|
+
* @example
|
|
1293
|
+
* ```ts
|
|
1294
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1295
|
+
*
|
|
1296
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1297
|
+
* const client = new hl.InfoClient({ transport });
|
|
1298
|
+
*
|
|
1299
|
+
* const data = await client.perpsAtOpenInterestCap();
|
|
1300
|
+
* ```
|
|
1301
|
+
*
|
|
1302
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#query-perps-at-open-interest-caps
|
|
1303
|
+
*/
|
|
1304
|
+
perpsAtOpenInterestCap(
|
|
1305
|
+
params?: PerpsAtOpenInterestCapParameters,
|
|
525
1306
|
signal?: AbortSignal,
|
|
526
1307
|
): Promise<PerpsAtOpenInterestCapResponse>;
|
|
527
1308
|
perpsAtOpenInterestCap(
|
|
@@ -536,7 +1317,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
536
1317
|
return perpsAtOpenInterestCap(this.config_, params, signal);
|
|
537
1318
|
}
|
|
538
1319
|
|
|
539
|
-
/**
|
|
1320
|
+
/**
|
|
1321
|
+
* Request user portfolio.
|
|
1322
|
+
*
|
|
1323
|
+
* @param params - Parameters specific to the API request.
|
|
1324
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1325
|
+
*
|
|
1326
|
+
* @returns Portfolio metrics grouped by time periods.
|
|
1327
|
+
*
|
|
1328
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1329
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1330
|
+
*
|
|
1331
|
+
* @example
|
|
1332
|
+
* ```ts
|
|
1333
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1334
|
+
*
|
|
1335
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1336
|
+
* const client = new hl.InfoClient({ transport });
|
|
1337
|
+
*
|
|
1338
|
+
* const data = await client.portfolio({ user: "0x..." });
|
|
1339
|
+
* ```
|
|
1340
|
+
*
|
|
1341
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-portfolio
|
|
1342
|
+
*/
|
|
540
1343
|
portfolio(
|
|
541
1344
|
params: PortfolioParameters,
|
|
542
1345
|
signal?: AbortSignal,
|
|
@@ -544,14 +1347,55 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
544
1347
|
return portfolio(this.config_, params, signal);
|
|
545
1348
|
}
|
|
546
1349
|
|
|
547
|
-
/**
|
|
1350
|
+
/**
|
|
1351
|
+
* Request predicted funding rates.
|
|
1352
|
+
*
|
|
1353
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1354
|
+
*
|
|
1355
|
+
* @returns Array of predicted funding rates.
|
|
1356
|
+
*
|
|
1357
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1358
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1359
|
+
*
|
|
1360
|
+
* @example
|
|
1361
|
+
* ```ts
|
|
1362
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1363
|
+
*
|
|
1364
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1365
|
+
* const client = new hl.InfoClient({ transport });
|
|
1366
|
+
*
|
|
1367
|
+
* const data = await client.predictedFundings();
|
|
1368
|
+
* ```
|
|
1369
|
+
*
|
|
1370
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-predicted-funding-rates-for-different-venues
|
|
1371
|
+
*/
|
|
548
1372
|
predictedFundings(
|
|
549
1373
|
signal?: AbortSignal,
|
|
550
1374
|
): Promise<PredictedFundingsResponse> {
|
|
551
1375
|
return predictedFundings(this.config_, signal);
|
|
552
1376
|
}
|
|
553
1377
|
|
|
554
|
-
/**
|
|
1378
|
+
/**
|
|
1379
|
+
* Request user existence check before transfer.
|
|
1380
|
+
*
|
|
1381
|
+
* @param params - Parameters specific to the API request.
|
|
1382
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1383
|
+
*
|
|
1384
|
+
* @returns Pre-transfer user existence check result.
|
|
1385
|
+
*
|
|
1386
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1387
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1388
|
+
*
|
|
1389
|
+
* @example
|
|
1390
|
+
* ```ts
|
|
1391
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1392
|
+
*
|
|
1393
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1394
|
+
* const client = new hl.InfoClient({ transport });
|
|
1395
|
+
*
|
|
1396
|
+
* const data = await client.preTransferCheck({ user: "0x...", source: "0x..." });
|
|
1397
|
+
* ```
|
|
1398
|
+
*/
|
|
555
1399
|
preTransferCheck(
|
|
556
1400
|
params: PreTransferCheckParameters,
|
|
557
1401
|
signal?: AbortSignal,
|
|
@@ -559,7 +1403,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
559
1403
|
return preTransferCheck(this.config_, params, signal);
|
|
560
1404
|
}
|
|
561
1405
|
|
|
562
|
-
/**
|
|
1406
|
+
/**
|
|
1407
|
+
* Request recent trades.
|
|
1408
|
+
*
|
|
1409
|
+
* @param params - Parameters specific to the API request.
|
|
1410
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1411
|
+
*
|
|
1412
|
+
* @returns Array of recent trades.
|
|
1413
|
+
*
|
|
1414
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1415
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1416
|
+
*
|
|
1417
|
+
* @example
|
|
1418
|
+
* ```ts
|
|
1419
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1420
|
+
*
|
|
1421
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1422
|
+
* const client = new hl.InfoClient({ transport });
|
|
1423
|
+
*
|
|
1424
|
+
* const data = await client.recentTrades({ coin: "ETH" });
|
|
1425
|
+
* ```
|
|
1426
|
+
*/
|
|
563
1427
|
recentTrades(
|
|
564
1428
|
params: RecentTradesParameters,
|
|
565
1429
|
signal?: AbortSignal,
|
|
@@ -567,7 +1431,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
567
1431
|
return recentTrades(this.config_, params, signal);
|
|
568
1432
|
}
|
|
569
1433
|
|
|
570
|
-
/**
|
|
1434
|
+
/**
|
|
1435
|
+
* Request user referral.
|
|
1436
|
+
*
|
|
1437
|
+
* @param params - Parameters specific to the API request.
|
|
1438
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1439
|
+
*
|
|
1440
|
+
* @returns Referral details for a user.
|
|
1441
|
+
*
|
|
1442
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1443
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1444
|
+
*
|
|
1445
|
+
* @example
|
|
1446
|
+
* ```ts
|
|
1447
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1448
|
+
*
|
|
1449
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1450
|
+
* const client = new hl.InfoClient({ transport });
|
|
1451
|
+
*
|
|
1452
|
+
* const data = await client.referral({ user: "0x..." });
|
|
1453
|
+
* ```
|
|
1454
|
+
*
|
|
1455
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-referral-information
|
|
1456
|
+
*/
|
|
571
1457
|
referral(
|
|
572
1458
|
params: ReferralParameters,
|
|
573
1459
|
signal?: AbortSignal,
|
|
@@ -575,7 +1461,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
575
1461
|
return referral(this.config_, params, signal);
|
|
576
1462
|
}
|
|
577
1463
|
|
|
578
|
-
/**
|
|
1464
|
+
/**
|
|
1465
|
+
* Request spot clearinghouse state.
|
|
1466
|
+
*
|
|
1467
|
+
* @param params - Parameters specific to the API request.
|
|
1468
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1469
|
+
*
|
|
1470
|
+
* @returns Account summary for spot trading.
|
|
1471
|
+
*
|
|
1472
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1473
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1474
|
+
*
|
|
1475
|
+
* @example
|
|
1476
|
+
* ```ts
|
|
1477
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1478
|
+
*
|
|
1479
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1480
|
+
* const client = new hl.InfoClient({ transport });
|
|
1481
|
+
*
|
|
1482
|
+
* const data = await client.spotClearinghouseState({ user: "0x..." });
|
|
1483
|
+
* ```
|
|
1484
|
+
*
|
|
1485
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-a-users-token-balances
|
|
1486
|
+
*/
|
|
579
1487
|
spotClearinghouseState(
|
|
580
1488
|
params: SpotClearinghouseStateParameters,
|
|
581
1489
|
signal?: AbortSignal,
|
|
@@ -583,7 +1491,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
583
1491
|
return spotClearinghouseState(this.config_, params, signal);
|
|
584
1492
|
}
|
|
585
1493
|
|
|
586
|
-
/**
|
|
1494
|
+
/**
|
|
1495
|
+
* Request spot deploy state.
|
|
1496
|
+
*
|
|
1497
|
+
* @param params - Parameters specific to the API request.
|
|
1498
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1499
|
+
*
|
|
1500
|
+
* @returns Deploy state for spot tokens.
|
|
1501
|
+
*
|
|
1502
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1503
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1504
|
+
*
|
|
1505
|
+
* @example
|
|
1506
|
+
* ```ts
|
|
1507
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1508
|
+
*
|
|
1509
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1510
|
+
* const client = new hl.InfoClient({ transport });
|
|
1511
|
+
*
|
|
1512
|
+
* const data = await client.spotDeployState({ user: "0x..." });
|
|
1513
|
+
* ```
|
|
1514
|
+
*
|
|
1515
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-information-about-the-spot-deploy-auction
|
|
1516
|
+
*/
|
|
587
1517
|
spotDeployState(
|
|
588
1518
|
params: SpotDeployStateParameters,
|
|
589
1519
|
signal?: AbortSignal,
|
|
@@ -591,28 +1521,113 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
591
1521
|
return spotDeployState(this.config_, params, signal);
|
|
592
1522
|
}
|
|
593
1523
|
|
|
594
|
-
/**
|
|
1524
|
+
/**
|
|
1525
|
+
* Request spot trading metadata.
|
|
1526
|
+
*
|
|
1527
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1528
|
+
*
|
|
1529
|
+
* @returns Metadata for spot assets.
|
|
1530
|
+
*
|
|
1531
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1532
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1533
|
+
*
|
|
1534
|
+
* @example
|
|
1535
|
+
* ```ts
|
|
1536
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1537
|
+
*
|
|
1538
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1539
|
+
* const client = new hl.InfoClient({ transport });
|
|
1540
|
+
*
|
|
1541
|
+
* const data = await client.spotMeta();
|
|
1542
|
+
* ```
|
|
1543
|
+
*
|
|
1544
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-spot-metadata
|
|
1545
|
+
*/
|
|
595
1546
|
spotMeta(
|
|
596
1547
|
signal?: AbortSignal,
|
|
597
1548
|
): Promise<SpotMetaResponse> {
|
|
598
1549
|
return spotMeta(this.config_, signal);
|
|
599
1550
|
}
|
|
600
1551
|
|
|
601
|
-
/**
|
|
1552
|
+
/**
|
|
1553
|
+
* Request spot metadata and asset contexts.
|
|
1554
|
+
*
|
|
1555
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1556
|
+
*
|
|
1557
|
+
* @returns Metadata and context for spot assets.
|
|
1558
|
+
*
|
|
1559
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1560
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1561
|
+
*
|
|
1562
|
+
* @example
|
|
1563
|
+
* ```ts
|
|
1564
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1565
|
+
*
|
|
1566
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1567
|
+
* const client = new hl.InfoClient({ transport });
|
|
1568
|
+
*
|
|
1569
|
+
* const data = await client.spotMetaAndAssetCtxs();
|
|
1570
|
+
* ```
|
|
1571
|
+
*
|
|
1572
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-spot-asset-contexts
|
|
1573
|
+
*/
|
|
602
1574
|
spotMetaAndAssetCtxs(
|
|
603
1575
|
signal?: AbortSignal,
|
|
604
1576
|
): Promise<SpotMetaAndAssetCtxsResponse> {
|
|
605
1577
|
return spotMetaAndAssetCtxs(this.config_, signal);
|
|
606
1578
|
}
|
|
607
1579
|
|
|
608
|
-
/**
|
|
1580
|
+
/**
|
|
1581
|
+
* Request for the status of the spot deploy auction.
|
|
1582
|
+
*
|
|
1583
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1584
|
+
*
|
|
1585
|
+
* @returns Status of the spot deploy auction.
|
|
1586
|
+
*
|
|
1587
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1588
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1589
|
+
*
|
|
1590
|
+
* @example
|
|
1591
|
+
* ```ts
|
|
1592
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1593
|
+
*
|
|
1594
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1595
|
+
* const client = new hl.InfoClient({ transport });
|
|
1596
|
+
*
|
|
1597
|
+
* const data = await client.spotPairDeployAuctionStatus();
|
|
1598
|
+
* ```
|
|
1599
|
+
*
|
|
1600
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-information-about-the-spot-pair-deploy-auction
|
|
1601
|
+
*/
|
|
609
1602
|
spotPairDeployAuctionStatus(
|
|
610
1603
|
signal?: AbortSignal,
|
|
611
1604
|
): Promise<SpotPairDeployAuctionStatusResponse> {
|
|
612
1605
|
return spotPairDeployAuctionStatus(this.config_, signal);
|
|
613
1606
|
}
|
|
614
1607
|
|
|
615
|
-
/**
|
|
1608
|
+
/**
|
|
1609
|
+
* Request user sub-accounts.
|
|
1610
|
+
*
|
|
1611
|
+
* @param params - Parameters specific to the API request.
|
|
1612
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1613
|
+
*
|
|
1614
|
+
* @returns Array of user sub-account or null if the user does not have any sub-accounts.
|
|
1615
|
+
*
|
|
1616
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1617
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1618
|
+
*
|
|
1619
|
+
* @example
|
|
1620
|
+
* ```ts
|
|
1621
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1622
|
+
*
|
|
1623
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1624
|
+
* const client = new hl.InfoClient({ transport });
|
|
1625
|
+
*
|
|
1626
|
+
* const data = await client.subAccounts({ user: "0x..." });
|
|
1627
|
+
* ```
|
|
1628
|
+
*
|
|
1629
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-subaccounts
|
|
1630
|
+
*/
|
|
616
1631
|
subAccounts(
|
|
617
1632
|
params: SubAccountsParameters,
|
|
618
1633
|
signal?: AbortSignal,
|
|
@@ -620,7 +1635,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
620
1635
|
return subAccounts(this.config_, params, signal);
|
|
621
1636
|
}
|
|
622
1637
|
|
|
623
|
-
/**
|
|
1638
|
+
/**
|
|
1639
|
+
* Request user sub-accounts V2.
|
|
1640
|
+
*
|
|
1641
|
+
* @param params - Parameters specific to the API request.
|
|
1642
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1643
|
+
*
|
|
1644
|
+
* @returns Array of user sub-account or null if the user does not have any sub-accounts.
|
|
1645
|
+
*
|
|
1646
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1647
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1648
|
+
*
|
|
1649
|
+
* @example
|
|
1650
|
+
* ```ts
|
|
1651
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1652
|
+
*
|
|
1653
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1654
|
+
* const client = new hl.InfoClient({ transport });
|
|
1655
|
+
*
|
|
1656
|
+
* const data = await client.subAccounts2({ user: "0x..." });
|
|
1657
|
+
* ```
|
|
1658
|
+
*/
|
|
624
1659
|
subAccounts2(
|
|
625
1660
|
params: SubAccounts2Parameters,
|
|
626
1661
|
signal?: AbortSignal,
|
|
@@ -628,7 +1663,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
628
1663
|
return subAccounts2(this.config_, params, signal);
|
|
629
1664
|
}
|
|
630
1665
|
|
|
631
|
-
/**
|
|
1666
|
+
/**
|
|
1667
|
+
* Request token details.
|
|
1668
|
+
*
|
|
1669
|
+
* @param params - Parameters specific to the API request.
|
|
1670
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1671
|
+
*
|
|
1672
|
+
* @returns Details of a token.
|
|
1673
|
+
*
|
|
1674
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1675
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1676
|
+
*
|
|
1677
|
+
* @example
|
|
1678
|
+
* ```ts
|
|
1679
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1680
|
+
*
|
|
1681
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1682
|
+
* const client = new hl.InfoClient({ transport });
|
|
1683
|
+
*
|
|
1684
|
+
* const data = await client.tokenDetails({ tokenId: "0x..." });
|
|
1685
|
+
* ```
|
|
1686
|
+
*
|
|
1687
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot#retrieve-information-about-a-token
|
|
1688
|
+
*/
|
|
632
1689
|
tokenDetails(
|
|
633
1690
|
params: TokenDetailsParameters,
|
|
634
1691
|
signal?: AbortSignal,
|
|
@@ -636,7 +1693,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
636
1693
|
return tokenDetails(this.config_, params, signal);
|
|
637
1694
|
}
|
|
638
1695
|
|
|
639
|
-
/**
|
|
1696
|
+
/**
|
|
1697
|
+
* Request twap history of a user.
|
|
1698
|
+
*
|
|
1699
|
+
* @param params - Parameters specific to the API request.
|
|
1700
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1701
|
+
*
|
|
1702
|
+
* @returns Array of user's TWAP history.
|
|
1703
|
+
*
|
|
1704
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1705
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1706
|
+
*
|
|
1707
|
+
* @example
|
|
1708
|
+
* ```ts
|
|
1709
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1710
|
+
*
|
|
1711
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1712
|
+
* const client = new hl.InfoClient({ transport });
|
|
1713
|
+
*
|
|
1714
|
+
* const data = await client.twapHistory({ user: "0x..." });
|
|
1715
|
+
* ```
|
|
1716
|
+
*/
|
|
640
1717
|
twapHistory(
|
|
641
1718
|
params: TwapHistoryParameters,
|
|
642
1719
|
signal?: AbortSignal,
|
|
@@ -644,7 +1721,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
644
1721
|
return twapHistory(this.config_, params, signal);
|
|
645
1722
|
}
|
|
646
1723
|
|
|
647
|
-
/**
|
|
1724
|
+
/**
|
|
1725
|
+
* Request transaction details by transaction hash.
|
|
1726
|
+
*
|
|
1727
|
+
* @param params - Parameters specific to the API request.
|
|
1728
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1729
|
+
*
|
|
1730
|
+
* @returns Transaction details.
|
|
1731
|
+
*
|
|
1732
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1733
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1734
|
+
*
|
|
1735
|
+
* @example
|
|
1736
|
+
* ```ts
|
|
1737
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1738
|
+
*
|
|
1739
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1740
|
+
* const client = new hl.InfoClient({ transport });
|
|
1741
|
+
*
|
|
1742
|
+
* const data = await client.txDetails({ hash: "0x..." });
|
|
1743
|
+
* ```
|
|
1744
|
+
*/
|
|
648
1745
|
txDetails(
|
|
649
1746
|
params: TxDetailsParameters,
|
|
650
1747
|
signal?: AbortSignal,
|
|
@@ -652,7 +1749,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
652
1749
|
return txDetails(this.config_, params, signal);
|
|
653
1750
|
}
|
|
654
1751
|
|
|
655
|
-
/**
|
|
1752
|
+
/**
|
|
1753
|
+
* Request borrow/lend user interest.
|
|
1754
|
+
*
|
|
1755
|
+
* @param params - Parameters specific to the API request.
|
|
1756
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1757
|
+
*
|
|
1758
|
+
* @returns User's borrow/lend interest.
|
|
1759
|
+
*
|
|
1760
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1761
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1762
|
+
*
|
|
1763
|
+
* @example
|
|
1764
|
+
* ```ts
|
|
1765
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1766
|
+
*
|
|
1767
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1768
|
+
* const client = new hl.InfoClient({ transport });
|
|
1769
|
+
*
|
|
1770
|
+
* const data = await client.userBorrowLendInterest({ user: "0x...", startTime: 1725991229384 });
|
|
1771
|
+
* ```
|
|
1772
|
+
*
|
|
1773
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-borrow-lend-user-state
|
|
1774
|
+
*/
|
|
656
1775
|
userBorrowLendInterest(
|
|
657
1776
|
params: UserBorrowLendInterestParameters,
|
|
658
1777
|
signal?: AbortSignal,
|
|
@@ -660,7 +1779,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
660
1779
|
return userBorrowLendInterest(this.config_, params, signal);
|
|
661
1780
|
}
|
|
662
1781
|
|
|
663
|
-
/**
|
|
1782
|
+
/**
|
|
1783
|
+
* Request array of user transaction details.
|
|
1784
|
+
*
|
|
1785
|
+
* @param params - Parameters specific to the API request.
|
|
1786
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1787
|
+
*
|
|
1788
|
+
* @returns Array of user transaction details.
|
|
1789
|
+
*
|
|
1790
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1791
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1792
|
+
*
|
|
1793
|
+
* @example
|
|
1794
|
+
* ```ts
|
|
1795
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1796
|
+
*
|
|
1797
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1798
|
+
* const client = new hl.InfoClient({ transport });
|
|
1799
|
+
*
|
|
1800
|
+
* const data = await client.userDetails({ user: "0x..." });
|
|
1801
|
+
* ```
|
|
1802
|
+
*/
|
|
664
1803
|
userDetails(
|
|
665
1804
|
params: UserDetailsParameters,
|
|
666
1805
|
signal?: AbortSignal,
|
|
@@ -668,7 +1807,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
668
1807
|
return userDetails(this.config_, params, signal);
|
|
669
1808
|
}
|
|
670
1809
|
|
|
671
|
-
/**
|
|
1810
|
+
/**
|
|
1811
|
+
* Request user HIP-3 DEX abstraction state.
|
|
1812
|
+
*
|
|
1813
|
+
* @param params - Parameters specific to the API request.
|
|
1814
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1815
|
+
*
|
|
1816
|
+
* @returns User HIP-3 DEX abstraction state.
|
|
1817
|
+
*
|
|
1818
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1819
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1820
|
+
*
|
|
1821
|
+
* @example
|
|
1822
|
+
* ```ts
|
|
1823
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1824
|
+
*
|
|
1825
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1826
|
+
* const client = new hl.InfoClient({ transport });
|
|
1827
|
+
*
|
|
1828
|
+
* const data = await client.userDexAbstraction({ user: "0x..." });
|
|
1829
|
+
* ```
|
|
1830
|
+
*
|
|
1831
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-hip-3-dex-abstraction-state
|
|
1832
|
+
*/
|
|
672
1833
|
userDexAbstraction(
|
|
673
1834
|
params: UserDexAbstractionParameters,
|
|
674
1835
|
signal?: AbortSignal,
|
|
@@ -676,7 +1837,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
676
1837
|
return userDexAbstraction(this.config_, params, signal);
|
|
677
1838
|
}
|
|
678
1839
|
|
|
679
|
-
/**
|
|
1840
|
+
/**
|
|
1841
|
+
* Request user fees.
|
|
1842
|
+
*
|
|
1843
|
+
* @param params - Parameters specific to the API request.
|
|
1844
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1845
|
+
*
|
|
1846
|
+
* @returns User fees.
|
|
1847
|
+
*
|
|
1848
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1849
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1850
|
+
*
|
|
1851
|
+
* @example
|
|
1852
|
+
* ```ts
|
|
1853
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1854
|
+
*
|
|
1855
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1856
|
+
* const client = new hl.InfoClient({ transport });
|
|
1857
|
+
*
|
|
1858
|
+
* const data = await client.userFees({ user: "0x..." });
|
|
1859
|
+
* ```
|
|
1860
|
+
*
|
|
1861
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-fees
|
|
1862
|
+
*/
|
|
680
1863
|
userFees(
|
|
681
1864
|
params: UserFeesParameters,
|
|
682
1865
|
signal?: AbortSignal,
|
|
@@ -684,7 +1867,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
684
1867
|
return userFees(this.config_, params, signal);
|
|
685
1868
|
}
|
|
686
1869
|
|
|
687
|
-
/**
|
|
1870
|
+
/**
|
|
1871
|
+
* Request array of user fills.
|
|
1872
|
+
*
|
|
1873
|
+
* @param params - Parameters specific to the API request.
|
|
1874
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1875
|
+
*
|
|
1876
|
+
* @returns Array of user trade fills.
|
|
1877
|
+
*
|
|
1878
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1879
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1880
|
+
*
|
|
1881
|
+
* @example
|
|
1882
|
+
* ```ts
|
|
1883
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1884
|
+
*
|
|
1885
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1886
|
+
* const client = new hl.InfoClient({ transport });
|
|
1887
|
+
*
|
|
1888
|
+
* const data = await client.userFills({ user: "0x..." });
|
|
1889
|
+
* ```
|
|
1890
|
+
*
|
|
1891
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-fills
|
|
1892
|
+
*/
|
|
688
1893
|
userFills(
|
|
689
1894
|
params: UserFillsParameters,
|
|
690
1895
|
signal?: AbortSignal,
|
|
@@ -692,7 +1897,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
692
1897
|
return userFills(this.config_, params, signal);
|
|
693
1898
|
}
|
|
694
1899
|
|
|
695
|
-
/**
|
|
1900
|
+
/**
|
|
1901
|
+
* Request array of user fills by time.
|
|
1902
|
+
*
|
|
1903
|
+
* @param params - Parameters specific to the API request.
|
|
1904
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1905
|
+
*
|
|
1906
|
+
* @returns Array of user trade fills by time.
|
|
1907
|
+
*
|
|
1908
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1909
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1910
|
+
*
|
|
1911
|
+
* @example
|
|
1912
|
+
* ```ts
|
|
1913
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1914
|
+
*
|
|
1915
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1916
|
+
* const client = new hl.InfoClient({ transport });
|
|
1917
|
+
*
|
|
1918
|
+
* const data = await client.userFillsByTime({ user: "0x...", startTime: Date.now() - 1000 * 60 * 60 * 24 });
|
|
1919
|
+
* ```
|
|
1920
|
+
*
|
|
1921
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-fills-by-time
|
|
1922
|
+
*/
|
|
696
1923
|
userFillsByTime(
|
|
697
1924
|
params: UserFillsByTimeParameters,
|
|
698
1925
|
signal?: AbortSignal,
|
|
@@ -700,7 +1927,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
700
1927
|
return userFillsByTime(this.config_, params, signal);
|
|
701
1928
|
}
|
|
702
1929
|
|
|
703
|
-
/**
|
|
1930
|
+
/**
|
|
1931
|
+
* Request array of user funding ledger updates.
|
|
1932
|
+
*
|
|
1933
|
+
* @param params - Parameters specific to the API request.
|
|
1934
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1935
|
+
*
|
|
1936
|
+
* @returns Array of user funding ledger updates.
|
|
1937
|
+
*
|
|
1938
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1939
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1940
|
+
*
|
|
1941
|
+
* @example
|
|
1942
|
+
* ```ts
|
|
1943
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1944
|
+
*
|
|
1945
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1946
|
+
* const client = new hl.InfoClient({ transport });
|
|
1947
|
+
*
|
|
1948
|
+
* const data = await client.userFunding({ user: "0x..." });
|
|
1949
|
+
* ```
|
|
1950
|
+
*
|
|
1951
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-a-users-funding-history-or-non-funding-ledger-updates
|
|
1952
|
+
*/
|
|
704
1953
|
userFunding(
|
|
705
1954
|
params: UserFundingParameters,
|
|
706
1955
|
signal?: AbortSignal,
|
|
@@ -708,7 +1957,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
708
1957
|
return userFunding(this.config_, params, signal);
|
|
709
1958
|
}
|
|
710
1959
|
|
|
711
|
-
/**
|
|
1960
|
+
/**
|
|
1961
|
+
* Request user non-funding ledger updates.
|
|
1962
|
+
*
|
|
1963
|
+
* @param params - Parameters specific to the API request.
|
|
1964
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1965
|
+
*
|
|
1966
|
+
* @returns Array of user's non-funding ledger update.
|
|
1967
|
+
*
|
|
1968
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1969
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1970
|
+
*
|
|
1971
|
+
* @example
|
|
1972
|
+
* ```ts
|
|
1973
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1974
|
+
*
|
|
1975
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1976
|
+
* const client = new hl.InfoClient({ transport });
|
|
1977
|
+
*
|
|
1978
|
+
* const data = await client.userNonFundingLedgerUpdates({ user: "0x..." });
|
|
1979
|
+
* ```
|
|
1980
|
+
*
|
|
1981
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-a-users-funding-history-or-non-funding-ledger-updates
|
|
1982
|
+
*/
|
|
712
1983
|
userNonFundingLedgerUpdates(
|
|
713
1984
|
params: UserNonFundingLedgerUpdatesParameters,
|
|
714
1985
|
signal?: AbortSignal,
|
|
@@ -716,7 +1987,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
716
1987
|
return userNonFundingLedgerUpdates(this.config_, params, signal);
|
|
717
1988
|
}
|
|
718
1989
|
|
|
719
|
-
/**
|
|
1990
|
+
/**
|
|
1991
|
+
* Request user rate limits.
|
|
1992
|
+
*
|
|
1993
|
+
* @param params - Parameters specific to the API request.
|
|
1994
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
1995
|
+
*
|
|
1996
|
+
* @returns User rate limits.
|
|
1997
|
+
*
|
|
1998
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1999
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2000
|
+
*
|
|
2001
|
+
* @example
|
|
2002
|
+
* ```ts
|
|
2003
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2004
|
+
*
|
|
2005
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2006
|
+
* const client = new hl.InfoClient({ transport });
|
|
2007
|
+
*
|
|
2008
|
+
* const data = await client.userRateLimit({ user: "0x..." });
|
|
2009
|
+
* ```
|
|
2010
|
+
*
|
|
2011
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-user-rate-limits
|
|
2012
|
+
*/
|
|
720
2013
|
userRateLimit(
|
|
721
2014
|
params: UserRateLimitParameters,
|
|
722
2015
|
signal?: AbortSignal,
|
|
@@ -724,7 +2017,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
724
2017
|
return userRateLimit(this.config_, params, signal);
|
|
725
2018
|
}
|
|
726
2019
|
|
|
727
|
-
/**
|
|
2020
|
+
/**
|
|
2021
|
+
* Request user role.
|
|
2022
|
+
*
|
|
2023
|
+
* @param params - Parameters specific to the API request.
|
|
2024
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2025
|
+
*
|
|
2026
|
+
* @returns User role.
|
|
2027
|
+
*
|
|
2028
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2029
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2030
|
+
*
|
|
2031
|
+
* @example
|
|
2032
|
+
* ```ts
|
|
2033
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2034
|
+
*
|
|
2035
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2036
|
+
* const client = new hl.InfoClient({ transport });
|
|
2037
|
+
*
|
|
2038
|
+
* const data = await client.userRole({ user: "0x..." });
|
|
2039
|
+
* ```
|
|
2040
|
+
*
|
|
2041
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#query-a-users-role
|
|
2042
|
+
*/
|
|
728
2043
|
userRole(
|
|
729
2044
|
params: UserRoleParameters,
|
|
730
2045
|
signal?: AbortSignal,
|
|
@@ -732,7 +2047,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
732
2047
|
return userRole(this.config_, params, signal);
|
|
733
2048
|
}
|
|
734
2049
|
|
|
735
|
-
/**
|
|
2050
|
+
/**
|
|
2051
|
+
* Request multi-sig signers for a user.
|
|
2052
|
+
*
|
|
2053
|
+
* @param params - Parameters specific to the API request.
|
|
2054
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2055
|
+
*
|
|
2056
|
+
* @returns Multi-sig signers for a user or null if the user does not have any multi-sig signers.
|
|
2057
|
+
*
|
|
2058
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2059
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2060
|
+
*
|
|
2061
|
+
* @example
|
|
2062
|
+
* ```ts
|
|
2063
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2064
|
+
*
|
|
2065
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2066
|
+
* const client = new hl.InfoClient({ transport });
|
|
2067
|
+
*
|
|
2068
|
+
* const data = await client.userToMultiSigSigners({ user: "0x..." });
|
|
2069
|
+
* ```
|
|
2070
|
+
*/
|
|
736
2071
|
userToMultiSigSigners(
|
|
737
2072
|
params: UserToMultiSigSignersParameters,
|
|
738
2073
|
signal?: AbortSignal,
|
|
@@ -740,7 +2075,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
740
2075
|
return userToMultiSigSigners(this.config_, params, signal);
|
|
741
2076
|
}
|
|
742
2077
|
|
|
743
|
-
/**
|
|
2078
|
+
/**
|
|
2079
|
+
* Request user TWAP slice fills.
|
|
2080
|
+
*
|
|
2081
|
+
* @param params - Parameters specific to the API request.
|
|
2082
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2083
|
+
*
|
|
2084
|
+
* @returns Array of user's twap slice fills.
|
|
2085
|
+
*
|
|
2086
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2087
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2088
|
+
*
|
|
2089
|
+
* @example
|
|
2090
|
+
* ```ts
|
|
2091
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2092
|
+
*
|
|
2093
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2094
|
+
* const client = new hl.InfoClient({ transport });
|
|
2095
|
+
*
|
|
2096
|
+
* const data = await client.userTwapSliceFills({ user: "0x..." });
|
|
2097
|
+
* ```
|
|
2098
|
+
*
|
|
2099
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-twap-slice-fills
|
|
2100
|
+
*/
|
|
744
2101
|
userTwapSliceFills(
|
|
745
2102
|
params: UserTwapSliceFillsParameters,
|
|
746
2103
|
signal?: AbortSignal,
|
|
@@ -748,7 +2105,27 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
748
2105
|
return userTwapSliceFills(this.config_, params, signal);
|
|
749
2106
|
}
|
|
750
2107
|
|
|
751
|
-
/**
|
|
2108
|
+
/**
|
|
2109
|
+
* Request user TWAP slice fills by time.
|
|
2110
|
+
*
|
|
2111
|
+
* @param params - Parameters specific to the API request.
|
|
2112
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2113
|
+
*
|
|
2114
|
+
* @returns Array of user's twap slice fill by time.
|
|
2115
|
+
*
|
|
2116
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2117
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2118
|
+
*
|
|
2119
|
+
* @example
|
|
2120
|
+
* ```ts
|
|
2121
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2122
|
+
*
|
|
2123
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2124
|
+
* const client = new hl.InfoClient({ transport });
|
|
2125
|
+
*
|
|
2126
|
+
* const data = await client.userTwapSliceFillsByTime({ user: "0x...", startTime: Date.now() - 1000 * 60 * 60 * 24 });
|
|
2127
|
+
* ```
|
|
2128
|
+
*/
|
|
752
2129
|
userTwapSliceFillsByTime(
|
|
753
2130
|
params: UserTwapSliceFillsByTimeParameters,
|
|
754
2131
|
signal?: AbortSignal,
|
|
@@ -756,7 +2133,29 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
756
2133
|
return userTwapSliceFillsByTime(this.config_, params, signal);
|
|
757
2134
|
}
|
|
758
2135
|
|
|
759
|
-
/**
|
|
2136
|
+
/**
|
|
2137
|
+
* Request user vault deposits.
|
|
2138
|
+
*
|
|
2139
|
+
* @param params - Parameters specific to the API request.
|
|
2140
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2141
|
+
*
|
|
2142
|
+
* @returns Array of user's vault deposits.
|
|
2143
|
+
*
|
|
2144
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2145
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2146
|
+
*
|
|
2147
|
+
* @example
|
|
2148
|
+
* ```ts
|
|
2149
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2150
|
+
*
|
|
2151
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2152
|
+
* const client = new hl.InfoClient({ transport });
|
|
2153
|
+
*
|
|
2154
|
+
* const data = await client.userVaultEquities({ user: "0x..." });
|
|
2155
|
+
* ```
|
|
2156
|
+
*
|
|
2157
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-a-users-vault-deposits
|
|
2158
|
+
*/
|
|
760
2159
|
userVaultEquities(
|
|
761
2160
|
params: UserVaultEquitiesParameters,
|
|
762
2161
|
signal?: AbortSignal,
|
|
@@ -764,21 +2163,81 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
764
2163
|
return userVaultEquities(this.config_, params, signal);
|
|
765
2164
|
}
|
|
766
2165
|
|
|
767
|
-
/**
|
|
2166
|
+
/**
|
|
2167
|
+
* Request validator L1 votes.
|
|
2168
|
+
*
|
|
2169
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2170
|
+
*
|
|
2171
|
+
* @returns Array of L1 governance votes cast by validators.
|
|
2172
|
+
*
|
|
2173
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2174
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2175
|
+
*
|
|
2176
|
+
* @example
|
|
2177
|
+
* ```ts
|
|
2178
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2179
|
+
*
|
|
2180
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2181
|
+
* const client = new hl.InfoClient({ transport });
|
|
2182
|
+
*
|
|
2183
|
+
* const data = await client.validatorL1Votes();
|
|
2184
|
+
* ```
|
|
2185
|
+
*/
|
|
768
2186
|
validatorL1Votes(
|
|
769
2187
|
signal?: AbortSignal,
|
|
770
2188
|
): Promise<ValidatorL1VotesResponse> {
|
|
771
2189
|
return validatorL1Votes(this.config_, signal);
|
|
772
2190
|
}
|
|
773
2191
|
|
|
774
|
-
/**
|
|
2192
|
+
/**
|
|
2193
|
+
* Request validator summaries.
|
|
2194
|
+
*
|
|
2195
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2196
|
+
*
|
|
2197
|
+
* @returns Array of validator performance statistics.
|
|
2198
|
+
*
|
|
2199
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2200
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2201
|
+
*
|
|
2202
|
+
* @example
|
|
2203
|
+
* ```ts
|
|
2204
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2205
|
+
*
|
|
2206
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2207
|
+
* const client = new hl.InfoClient({ transport });
|
|
2208
|
+
*
|
|
2209
|
+
* const data = await client.validatorSummaries();
|
|
2210
|
+
* ```
|
|
2211
|
+
*/
|
|
775
2212
|
validatorSummaries(
|
|
776
2213
|
signal?: AbortSignal,
|
|
777
2214
|
): Promise<ValidatorSummariesResponse> {
|
|
778
2215
|
return validatorSummaries(this.config_, signal);
|
|
779
2216
|
}
|
|
780
2217
|
|
|
781
|
-
/**
|
|
2218
|
+
/**
|
|
2219
|
+
* Request details of a vault.
|
|
2220
|
+
*
|
|
2221
|
+
* @param params - Parameters specific to the API request.
|
|
2222
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2223
|
+
*
|
|
2224
|
+
* @returns Details of a vault or null if the vault does not exist.
|
|
2225
|
+
*
|
|
2226
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2227
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2228
|
+
*
|
|
2229
|
+
* @example
|
|
2230
|
+
* ```ts
|
|
2231
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2232
|
+
*
|
|
2233
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2234
|
+
* const client = new hl.InfoClient({ transport });
|
|
2235
|
+
*
|
|
2236
|
+
* const data = await client.vaultDetails({ vaultAddress: "0x..." });
|
|
2237
|
+
* ```
|
|
2238
|
+
*
|
|
2239
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint#retrieve-details-for-a-vault
|
|
2240
|
+
*/
|
|
782
2241
|
vaultDetails(
|
|
783
2242
|
params: VaultDetailsParameters,
|
|
784
2243
|
signal?: AbortSignal,
|
|
@@ -786,14 +2245,53 @@ export class InfoClient<C extends InfoConfig = InfoConfig> {
|
|
|
786
2245
|
return vaultDetails(this.config_, params, signal);
|
|
787
2246
|
}
|
|
788
2247
|
|
|
789
|
-
/**
|
|
2248
|
+
/**
|
|
2249
|
+
* Request a list of vaults less than 2 hours old.
|
|
2250
|
+
*
|
|
2251
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2252
|
+
*
|
|
2253
|
+
* @returns Array of vaults less than 2 hours old.
|
|
2254
|
+
*
|
|
2255
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2256
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2257
|
+
*
|
|
2258
|
+
* @example
|
|
2259
|
+
* ```ts
|
|
2260
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2261
|
+
*
|
|
2262
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2263
|
+
* const client = new hl.InfoClient({ transport });
|
|
2264
|
+
*
|
|
2265
|
+
* const data = await client.vaultSummaries();
|
|
2266
|
+
* ```
|
|
2267
|
+
*/
|
|
790
2268
|
vaultSummaries(
|
|
791
2269
|
signal?: AbortSignal,
|
|
792
2270
|
): Promise<VaultSummariesResponse> {
|
|
793
2271
|
return vaultSummaries(this.config_, signal);
|
|
794
2272
|
}
|
|
795
2273
|
|
|
796
|
-
/**
|
|
2274
|
+
/**
|
|
2275
|
+
* Request comprehensive user and market data.
|
|
2276
|
+
*
|
|
2277
|
+
* @param params - Parameters specific to the API request.
|
|
2278
|
+
* @param signal - {@link https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal} to cancel the request.
|
|
2279
|
+
*
|
|
2280
|
+
* @returns Comprehensive user and market data.
|
|
2281
|
+
*
|
|
2282
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
2283
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
2284
|
+
*
|
|
2285
|
+
* @example
|
|
2286
|
+
* ```ts
|
|
2287
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
2288
|
+
*
|
|
2289
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
2290
|
+
* const client = new hl.InfoClient({ transport });
|
|
2291
|
+
*
|
|
2292
|
+
* const data = await client.webData2({ user: "0x..." });
|
|
2293
|
+
* ```
|
|
2294
|
+
*/
|
|
797
2295
|
webData2(
|
|
798
2296
|
params: WebData2Parameters,
|
|
799
2297
|
signal?: AbortSignal,
|