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