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