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