@nktkas/hyperliquid 0.30.3 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +1 -3
- package/esm/bin/_utils.d.ts +33 -1
- package/esm/bin/_utils.d.ts.map +1 -1
- package/esm/bin/_utils.js +17 -1
- package/esm/bin/_utils.js.map +1 -1
- package/esm/bin/cli.js +288 -262
- package/esm/bin/cli.js.map +1 -1
- package/{script/deps/jsr.io/@std/async/1.1.0 → esm/deps/jsr.io/@std/async/1.1.1}/unstable_semaphore.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.js.map +1 -1
- package/esm/src/api/_schemas.d.ts +9 -0
- package/esm/src/api/_schemas.d.ts.map +1 -1
- package/esm/src/api/_schemas.js +10 -1
- package/esm/src/api/_schemas.js.map +1 -1
- package/esm/src/api/exchange/_methods/_base/_semaphore.js +1 -1
- package/esm/src/api/exchange/_methods/_base/commonSchemas.d.ts +16 -30
- package/esm/src/api/exchange/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/_base/commonSchemas.js +16 -16
- package/esm/src/api/exchange/_methods/_base/commonSchemas.js.map +1 -1
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +23 -60
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.js +11 -9
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/_methods/agentSetAbstraction.d.ts +126 -0
- package/esm/src/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/agentSetAbstraction.js +82 -0
- package/esm/src/api/exchange/_methods/agentSetAbstraction.js.map +1 -0
- package/esm/src/api/exchange/_methods/approveAgent.d.ts +37 -85
- package/esm/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/approveAgent.js +14 -14
- package/esm/src/api/exchange/_methods/approveAgent.js.map +1 -1
- package/esm/src/api/exchange/_methods/approveBuilderFee.d.ts +37 -85
- package/esm/src/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/approveBuilderFee.js +13 -13
- package/esm/src/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/esm/src/api/exchange/_methods/batchModify.d.ts +99 -431
- package/esm/src/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/batchModify.js +31 -36
- package/esm/src/api/exchange/_methods/batchModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/borrowLend.d.ts +38 -84
- package/esm/src/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/borrowLend.js +13 -13
- package/esm/src/api/exchange/_methods/borrowLend.js.map +1 -1
- package/esm/src/api/exchange/_methods/cDeposit.d.ts +34 -80
- package/esm/src/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cDeposit.js +12 -12
- package/esm/src/api/exchange/_methods/cDeposit.js.map +1 -1
- package/esm/src/api/exchange/_methods/cSignerAction.d.ts +32 -79
- package/esm/src/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cSignerAction.js +12 -12
- package/esm/src/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/esm/src/api/exchange/_methods/cValidatorAction.d.ts +107 -314
- package/esm/src/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cValidatorAction.js +37 -37
- package/esm/src/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/esm/src/api/exchange/_methods/cWithdraw.d.ts +34 -80
- package/esm/src/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cWithdraw.js +12 -12
- package/esm/src/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/esm/src/api/exchange/_methods/cancel.d.ts +38 -100
- package/esm/src/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cancel.js +24 -24
- package/esm/src/api/exchange/_methods/cancel.js.map +1 -1
- package/esm/src/api/exchange/_methods/cancelByCloid.d.ts +38 -110
- package/esm/src/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cancelByCloid.js +14 -14
- package/esm/src/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/esm/src/api/exchange/_methods/claimRewards.d.ts +21 -60
- package/esm/src/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/claimRewards.js +9 -9
- package/esm/src/api/exchange/_methods/claimRewards.js.map +1 -1
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.d.ts +58 -122
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.js +17 -18
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/esm/src/api/exchange/_methods/createSubAccount.d.ts +27 -65
- package/esm/src/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/createSubAccount.js +16 -16
- package/esm/src/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/esm/src/api/exchange/_methods/createVault.d.ts +36 -80
- package/esm/src/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/createVault.js +19 -20
- package/esm/src/api/exchange/_methods/createVault.js.map +1 -1
- package/esm/src/api/exchange/_methods/evmUserModify.d.ts +26 -67
- package/esm/src/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/evmUserModify.js +10 -10
- package/esm/src/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/linkStakingUser.d.ts +37 -85
- package/esm/src/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/linkStakingUser.js +13 -17
- package/esm/src/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/esm/src/api/exchange/_methods/modify.d.ts +81 -263
- package/esm/src/api/exchange/_methods/modify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/modify.js +29 -34
- package/esm/src/api/exchange/_methods/modify.js.map +1 -1
- package/esm/src/api/exchange/_methods/noop.d.ts +21 -60
- package/esm/src/api/exchange/_methods/noop.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/noop.js +9 -9
- package/esm/src/api/exchange/_methods/noop.js.map +1 -1
- package/esm/src/api/exchange/_methods/order.d.ts +105 -365
- package/esm/src/api/exchange/_methods/order.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/order.js +53 -61
- package/esm/src/api/exchange/_methods/order.js.map +1 -1
- package/esm/src/api/exchange/_methods/perpDeploy.d.ts +245 -679
- package/esm/src/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/perpDeploy.js +83 -107
- package/esm/src/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/esm/src/api/exchange/_methods/registerReferrer.d.ts +26 -67
- package/esm/src/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/registerReferrer.js +10 -10
- package/esm/src/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/esm/src/api/exchange/_methods/reserveRequestWeight.d.ts +26 -67
- package/esm/src/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/reserveRequestWeight.js +10 -11
- package/esm/src/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/esm/src/api/exchange/_methods/scheduleCancel.d.ts +27 -69
- package/esm/src/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/scheduleCancel.js +11 -13
- package/esm/src/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/esm/src/api/exchange/_methods/sendAsset.d.ts +59 -115
- package/esm/src/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/sendAsset.js +17 -17
- package/esm/src/api/exchange/_methods/sendAsset.js.map +1 -1
- package/esm/src/api/exchange/_methods/setDisplayName.d.ts +26 -67
- package/esm/src/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/setDisplayName.js +10 -11
- package/esm/src/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/esm/src/api/exchange/_methods/setReferrer.d.ts +26 -67
- package/esm/src/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/setReferrer.js +10 -10
- package/esm/src/api/exchange/_methods/setReferrer.js.map +1 -1
- package/esm/src/api/exchange/_methods/spotDeploy.d.ts +164 -419
- package/esm/src/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/spotDeploy.js +56 -68
- package/esm/src/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/esm/src/api/exchange/_methods/spotSend.d.ts +45 -95
- package/esm/src/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/spotSend.js +14 -14
- package/esm/src/api/exchange/_methods/spotSend.js.map +1 -1
- package/esm/src/api/exchange/_methods/spotUser.d.ts +32 -83
- package/esm/src/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/spotUser.js +12 -12
- package/esm/src/api/exchange/_methods/spotUser.js.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountModify.d.ts +29 -72
- package/esm/src/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountModify.js +11 -11
- package/esm/src/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +40 -87
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.js +13 -13
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountTransfer.d.ts +32 -77
- package/esm/src/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountTransfer.js +12 -12
- package/esm/src/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/tokenDelegate.d.ts +40 -90
- package/esm/src/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/tokenDelegate.js +14 -14
- package/esm/src/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/esm/src/api/exchange/_methods/twapCancel.d.ts +32 -81
- package/esm/src/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/twapCancel.js +22 -22
- package/esm/src/api/exchange/_methods/twapCancel.js.map +1 -1
- package/esm/src/api/exchange/_methods/twapOrder.d.ts +53 -153
- package/esm/src/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/twapOrder.js +31 -31
- package/esm/src/api/exchange/_methods/twapOrder.js.map +1 -1
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.d.ts +33 -79
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.js +13 -13
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/esm/src/api/exchange/_methods/updateLeverage.d.ts +38 -84
- package/esm/src/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/updateLeverage.js +13 -13
- package/esm/src/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/esm/src/api/exchange/_methods/usdClassTransfer.d.ts +37 -85
- package/esm/src/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/usdClassTransfer.js +13 -13
- package/esm/src/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/usdSend.d.ts +37 -85
- package/esm/src/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/usdSend.js +13 -13
- package/esm/src/api/exchange/_methods/usdSend.js.map +1 -1
- package/esm/src/api/exchange/_methods/userDexAbstraction.d.ts +39 -85
- package/esm/src/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/userDexAbstraction.js +15 -13
- package/esm/src/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts +37 -85
- package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js +13 -13
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- package/esm/src/api/exchange/_methods/userSetAbstraction.d.ts +145 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.js +92 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.js.map +1 -0
- package/esm/src/api/exchange/_methods/validatorL1Stream.d.ts +26 -67
- package/esm/src/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/validatorL1Stream.js +10 -10
- package/esm/src/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/esm/src/api/exchange/_methods/vaultDistribute.d.ts +29 -72
- package/esm/src/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/vaultDistribute.js +11 -12
- package/esm/src/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/esm/src/api/exchange/_methods/vaultModify.d.ts +32 -77
- package/esm/src/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/vaultModify.js +12 -12
- package/esm/src/api/exchange/_methods/vaultModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/vaultTransfer.d.ts +32 -77
- package/esm/src/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/vaultTransfer.js +12 -12
- package/esm/src/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/withdraw3.d.ts +37 -85
- package/esm/src/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/withdraw3.js +13 -13
- package/esm/src/api/exchange/_methods/withdraw3.js.map +1 -1
- package/esm/src/api/exchange/client.d.ts +1278 -48
- package/esm/src/api/exchange/client.d.ts.map +1 -1
- package/esm/src/api/exchange/client.js +1253 -46
- package/esm/src/api/exchange/client.js.map +1 -1
- package/esm/src/api/exchange/mod.d.ts +2 -0
- package/esm/src/api/exchange/mod.d.ts.map +1 -1
- package/esm/src/api/exchange/mod.js +2 -0
- package/esm/src/api/exchange/mod.js.map +1 -1
- package/esm/src/api/info/_methods/_base/commonSchemas.d.ts +100 -196
- package/esm/src/api/info/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/esm/src/api/info/_methods/_base/commonSchemas.js +103 -141
- package/esm/src/api/info/_methods/_base/commonSchemas.js.map +1 -1
- package/esm/src/api/info/_methods/activeAssetData.d.ts +19 -44
- package/esm/src/api/info/_methods/activeAssetData.d.ts.map +1 -1
- package/esm/src/api/info/_methods/activeAssetData.js +19 -19
- package/esm/src/api/info/_methods/activeAssetData.js.map +1 -1
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +11 -20
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.js +12 -12
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts +13 -33
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -1
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js +4 -7
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -1
- package/esm/src/api/info/_methods/allMids.d.ts +5 -10
- package/esm/src/api/info/_methods/allMids.d.ts.map +1 -1
- package/esm/src/api/info/_methods/allMids.js +5 -5
- package/esm/src/api/info/_methods/allMids.js.map +1 -1
- package/esm/src/api/info/_methods/allPerpMetas.d.ts +24 -91
- package/esm/src/api/info/_methods/allPerpMetas.d.ts.map +1 -1
- package/esm/src/api/info/_methods/allPerpMetas.js +4 -4
- package/esm/src/api/info/_methods/allPerpMetas.js.map +1 -1
- package/esm/src/api/info/_methods/blockDetails.d.ts +24 -92
- package/esm/src/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/blockDetails.js +15 -15
- package/esm/src/api/info/_methods/blockDetails.js.map +1 -1
- package/esm/src/api/info/_methods/borrowLendReserveState.d.ts +14 -26
- package/esm/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/borrowLendReserveState.js +14 -14
- package/esm/src/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts +18 -49
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/borrowLendUserState.js +18 -19
- package/esm/src/api/info/_methods/borrowLendUserState.js.map +1 -1
- package/esm/src/api/info/_methods/candleSnapshot.d.ts +21 -45
- package/esm/src/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/esm/src/api/info/_methods/candleSnapshot.js +21 -21
- package/esm/src/api/info/_methods/candleSnapshot.js.map +1 -1
- package/esm/src/api/info/_methods/clearinghouseState.d.ts +48 -165
- package/esm/src/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/clearinghouseState.js +48 -48
- package/esm/src/api/info/_methods/clearinghouseState.js.map +1 -1
- package/esm/src/api/info/_methods/delegations.d.ts +9 -16
- package/esm/src/api/info/_methods/delegations.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegations.js +9 -9
- package/esm/src/api/info/_methods/delegations.js.map +1 -1
- package/esm/src/api/info/_methods/delegatorHistory.d.ts +22 -68
- package/esm/src/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegatorHistory.js +22 -22
- package/esm/src/api/info/_methods/delegatorHistory.js.map +1 -1
- package/esm/src/api/info/_methods/delegatorRewards.d.ts +9 -16
- package/esm/src/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegatorRewards.js +9 -9
- package/esm/src/api/info/_methods/delegatorRewards.js.map +1 -1
- package/esm/src/api/info/_methods/delegatorSummary.d.ts +10 -18
- package/esm/src/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegatorSummary.js +10 -10
- package/esm/src/api/info/_methods/delegatorSummary.js.map +1 -1
- package/esm/src/api/info/_methods/exchangeStatus.d.ts +7 -12
- package/esm/src/api/info/_methods/exchangeStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/exchangeStatus.js +7 -7
- package/esm/src/api/info/_methods/exchangeStatus.js.map +1 -1
- package/esm/src/api/info/_methods/extraAgents.d.ts +9 -16
- package/esm/src/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/esm/src/api/info/_methods/extraAgents.js +9 -9
- package/esm/src/api/info/_methods/extraAgents.js.map +1 -1
- package/esm/src/api/info/_methods/frontendOpenOrders.d.ts +23 -61
- package/esm/src/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/esm/src/api/info/_methods/frontendOpenOrders.js +6 -6
- package/esm/src/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/esm/src/api/info/_methods/fundingHistory.d.ts +12 -22
- package/esm/src/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/esm/src/api/info/_methods/fundingHistory.js +12 -12
- package/esm/src/api/info/_methods/fundingHistory.js.map +1 -1
- package/esm/src/api/info/_methods/gossipRootIps.d.ts +4 -6
- package/esm/src/api/info/_methods/gossipRootIps.d.ts.map +1 -1
- package/esm/src/api/info/_methods/gossipRootIps.js +4 -4
- package/esm/src/api/info/_methods/gossipRootIps.js.map +1 -1
- package/esm/src/api/info/_methods/historicalOrders.d.ts +26 -84
- package/esm/src/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/esm/src/api/info/_methods/historicalOrders.js +9 -38
- package/esm/src/api/info/_methods/historicalOrders.js.map +1 -1
- package/esm/src/api/info/_methods/isVip.d.ts +5 -8
- package/esm/src/api/info/_methods/isVip.d.ts.map +1 -1
- package/esm/src/api/info/_methods/isVip.js +5 -5
- package/esm/src/api/info/_methods/isVip.js.map +1 -1
- package/esm/src/api/info/_methods/l2Book.d.ts +21 -52
- package/esm/src/api/info/_methods/l2Book.d.ts.map +1 -1
- package/esm/src/api/info/_methods/l2Book.js +18 -16
- package/esm/src/api/info/_methods/l2Book.js.map +1 -1
- package/esm/src/api/info/_methods/leadingVaults.d.ts +8 -14
- package/esm/src/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/esm/src/api/info/_methods/leadingVaults.js +8 -8
- package/esm/src/api/info/_methods/leadingVaults.js.map +1 -1
- package/esm/src/api/info/_methods/legalCheck.d.ts +9 -16
- package/esm/src/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/esm/src/api/info/_methods/legalCheck.js +9 -9
- package/esm/src/api/info/_methods/legalCheck.js.map +1 -1
- package/esm/src/api/info/_methods/liquidatable.d.ts +4 -6
- package/esm/src/api/info/_methods/liquidatable.d.ts.map +1 -1
- package/esm/src/api/info/_methods/liquidatable.js +4 -4
- package/esm/src/api/info/_methods/liquidatable.js.map +1 -1
- package/esm/src/api/info/_methods/marginTable.d.ts +11 -23
- package/esm/src/api/info/_methods/marginTable.d.ts.map +1 -1
- package/esm/src/api/info/_methods/marginTable.js +11 -11
- package/esm/src/api/info/_methods/marginTable.js.map +1 -1
- package/esm/src/api/info/_methods/maxBuilderFee.d.ts +6 -10
- package/esm/src/api/info/_methods/maxBuilderFee.d.ts.map +1 -1
- package/esm/src/api/info/_methods/maxBuilderFee.js +6 -6
- package/esm/src/api/info/_methods/maxBuilderFee.js.map +1 -1
- package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts +4 -6
- package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
- package/esm/src/api/info/_methods/maxMarketOrderNtls.js +5 -5
- package/esm/src/api/info/_methods/maxMarketOrderNtls.js.map +1 -1
- package/esm/src/api/info/_methods/meta.d.ts +25 -73
- package/esm/src/api/info/_methods/meta.d.ts.map +1 -1
- package/esm/src/api/info/_methods/meta.js +19 -22
- package/esm/src/api/info/_methods/meta.js.map +1 -1
- package/esm/src/api/info/_methods/metaAndAssetCtxs.d.ts +36 -126
- package/esm/src/api/info/_methods/metaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/metaAndAssetCtxs.js +5 -8
- package/esm/src/api/info/_methods/metaAndAssetCtxs.js.map +1 -1
- package/esm/src/api/info/_methods/openOrders.d.ts +16 -40
- package/esm/src/api/info/_methods/openOrders.d.ts.map +1 -1
- package/esm/src/api/info/_methods/openOrders.js +6 -6
- package/esm/src/api/info/_methods/openOrders.js.map +1 -1
- package/esm/src/api/info/_methods/orderStatus.d.ts +31 -116
- package/esm/src/api/info/_methods/orderStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/orderStatus.js +14 -45
- package/esm/src/api/info/_methods/orderStatus.js.map +1 -1
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.d.ts +10 -18
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.js +10 -10
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexLimits.d.ts +10 -18
- package/esm/src/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexLimits.js +10 -10
- package/esm/src/api/info/_methods/perpDexLimits.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexStatus.d.ts +7 -12
- package/esm/src/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexStatus.js +7 -7
- package/esm/src/api/info/_methods/perpDexStatus.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexs.d.ts +16 -42
- package/esm/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexs.js +17 -20
- package/esm/src/api/info/_methods/perpDexs.js.map +1 -1
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.d.ts +5 -8
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.js +5 -5
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.js.map +1 -1
- package/esm/src/api/info/_methods/portfolio.d.ts +37 -104
- package/esm/src/api/info/_methods/portfolio.d.ts.map +1 -1
- package/esm/src/api/info/_methods/portfolio.js +11 -11
- package/esm/src/api/info/_methods/portfolio.js.map +1 -1
- package/esm/src/api/info/_methods/preTransferCheck.d.ts +11 -20
- package/esm/src/api/info/_methods/preTransferCheck.d.ts.map +1 -1
- package/esm/src/api/info/_methods/preTransferCheck.js +11 -11
- package/esm/src/api/info/_methods/preTransferCheck.js.map +1 -1
- package/esm/src/api/info/_methods/predictedFundings.d.ts +8 -14
- package/esm/src/api/info/_methods/predictedFundings.d.ts.map +1 -1
- package/esm/src/api/info/_methods/predictedFundings.js +8 -8
- package/esm/src/api/info/_methods/predictedFundings.js.map +1 -1
- package/esm/src/api/info/_methods/recentTrades.d.ts +14 -26
- package/esm/src/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/esm/src/api/info/_methods/recentTrades.js +14 -14
- package/esm/src/api/info/_methods/recentTrades.js.map +1 -1
- package/esm/src/api/info/_methods/referral.d.ts +50 -170
- package/esm/src/api/info/_methods/referral.d.ts.map +1 -1
- package/esm/src/api/info/_methods/referral.js +50 -50
- package/esm/src/api/info/_methods/referral.js.map +1 -1
- package/esm/src/api/info/_methods/spotClearinghouseState.d.ts +19 -46
- package/esm/src/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotClearinghouseState.js +19 -19
- package/esm/src/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/esm/src/api/info/_methods/spotDeployState.d.ts +30 -96
- package/esm/src/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotDeployState.js +24 -24
- package/esm/src/api/info/_methods/spotDeployState.js.map +1 -1
- package/esm/src/api/info/_methods/spotMeta.d.ts +47 -98
- package/esm/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotMeta.js +47 -34
- package/esm/src/api/info/_methods/spotMeta.js.map +1 -1
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +50 -155
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.js +4 -7
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.js.map +1 -1
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +10 -24
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.js +4 -4
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.js.map +1 -1
- package/esm/src/api/info/_methods/subAccounts.d.ts +66 -323
- package/esm/src/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/esm/src/api/info/_methods/subAccounts.js +11 -11
- package/esm/src/api/info/_methods/subAccounts.js.map +1 -1
- package/esm/src/api/info/_methods/subAccounts2.d.ts +67 -325
- package/esm/src/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/esm/src/api/info/_methods/subAccounts2.js +11 -12
- package/esm/src/api/info/_methods/subAccounts2.js.map +1 -1
- package/esm/src/api/info/_methods/tokenDetails.d.ts +26 -54
- package/esm/src/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/tokenDetails.js +26 -26
- package/esm/src/api/info/_methods/tokenDetails.js.map +1 -1
- package/esm/src/api/info/_methods/twapHistory.d.ts +25 -76
- package/esm/src/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/esm/src/api/info/_methods/twapHistory.js +14 -18
- package/esm/src/api/info/_methods/twapHistory.js.map +1 -1
- package/esm/src/api/info/_methods/txDetails.d.ts +17 -60
- package/esm/src/api/info/_methods/txDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/txDetails.js +8 -8
- package/esm/src/api/info/_methods/txDetails.js.map +1 -1
- package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts +12 -22
- package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userBorrowLendInterest.js +12 -12
- package/esm/src/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- package/esm/src/api/info/_methods/userDetails.d.ts +17 -60
- package/esm/src/api/info/_methods/userDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userDetails.js +8 -8
- package/esm/src/api/info/_methods/userDetails.js.map +1 -1
- package/esm/src/api/info/_methods/userDexAbstraction.d.ts +5 -8
- package/esm/src/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userDexAbstraction.js +5 -5
- package/esm/src/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/esm/src/api/info/_methods/userFees.d.ts +52 -160
- package/esm/src/api/info/_methods/userFees.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFees.js +52 -59
- package/esm/src/api/info/_methods/userFees.js.map +1 -1
- package/esm/src/api/info/_methods/userFills.d.ts +30 -76
- package/esm/src/api/info/_methods/userFills.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFills.js +13 -13
- package/esm/src/api/info/_methods/userFills.js.map +1 -1
- package/esm/src/api/info/_methods/userFillsByTime.d.ts +32 -103
- package/esm/src/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFillsByTime.js +8 -8
- package/esm/src/api/info/_methods/userFillsByTime.js.map +1 -1
- package/esm/src/api/info/_methods/userFunding.d.ts +18 -41
- package/esm/src/api/info/_methods/userFunding.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFunding.js +18 -18
- package/esm/src/api/info/_methods/userFunding.js.map +1 -1
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +100 -324
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js +100 -100
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/src/api/info/_methods/userRateLimit.d.ts +10 -18
- package/esm/src/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userRateLimit.js +10 -10
- package/esm/src/api/info/_methods/userRateLimit.js.map +1 -1
- package/esm/src/api/info/_methods/userRole.d.ts +15 -34
- package/esm/src/api/info/_methods/userRole.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userRole.js +15 -15
- package/esm/src/api/info/_methods/userRole.js.map +1 -1
- package/esm/src/api/info/_methods/userToMultiSigSigners.d.ts +8 -14
- package/esm/src/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userToMultiSigSigners.js +8 -8
- package/esm/src/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFills.d.ts +25 -78
- package/esm/src/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFills.js +8 -8
- package/esm/src/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +28 -103
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.js +8 -8
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/esm/src/api/info/_methods/userVaultEquities.d.ts +9 -16
- package/esm/src/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userVaultEquities.js +9 -9
- package/esm/src/api/info/_methods/userVaultEquities.js.map +1 -1
- package/esm/src/api/info/_methods/validatorL1Votes.d.ts +9 -23
- package/esm/src/api/info/_methods/validatorL1Votes.d.ts.map +1 -1
- package/esm/src/api/info/_methods/validatorL1Votes.js +11 -11
- package/esm/src/api/info/_methods/validatorL1Votes.js.map +1 -1
- package/esm/src/api/info/_methods/validatorSummaries.d.ts +28 -78
- package/esm/src/api/info/_methods/validatorSummaries.d.ts.map +1 -1
- package/esm/src/api/info/_methods/validatorSummaries.js +22 -22
- package/esm/src/api/info/_methods/validatorSummaries.js.map +1 -1
- package/esm/src/api/info/_methods/vaultDetails.d.ts +77 -281
- package/esm/src/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/vaultDetails.js +39 -39
- package/esm/src/api/info/_methods/vaultDetails.js.map +1 -1
- package/esm/src/api/info/_methods/vaultSummaries.d.ts +18 -51
- package/esm/src/api/info/_methods/vaultSummaries.d.ts.map +1 -1
- package/esm/src/api/info/_methods/vaultSummaries.js +12 -12
- package/esm/src/api/info/_methods/vaultSummaries.js.map +1 -1
- package/esm/src/api/info/_methods/webData2.d.ts +149 -673
- package/esm/src/api/info/_methods/webData2.d.ts.map +1 -1
- package/esm/src/api/info/_methods/webData2.js +23 -23
- package/esm/src/api/info/_methods/webData2.js.map +1 -1
- package/esm/src/api/info/client.d.ts +1578 -80
- package/esm/src/api/info/client.d.ts.map +1 -1
- package/esm/src/api/info/client.js +1489 -78
- package/esm/src/api/info/client.js.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetCtx.d.ts +19 -58
- package/esm/src/api/subscription/_methods/activeAssetCtx.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetCtx.js +8 -8
- package/esm/src/api/subscription/_methods/activeAssetCtx.js.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetData.d.ts +19 -58
- package/esm/src/api/subscription/_methods/activeAssetData.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetData.js +6 -6
- package/esm/src/api/subscription/_methods/activeAssetData.js.map +1 -1
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +17 -50
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.js +8 -8
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.js.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +17 -54
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.js +6 -9
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +50 -255
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.js +8 -11
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.js.map +1 -1
- package/esm/src/api/subscription/_methods/allMids.d.ts +8 -20
- package/esm/src/api/subscription/_methods/allMids.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/allMids.js +8 -8
- package/esm/src/api/subscription/_methods/allMids.js.map +1 -1
- package/esm/src/api/subscription/_methods/assetCtxs.d.ts +19 -58
- package/esm/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/assetCtxs.js +8 -8
- package/esm/src/api/subscription/_methods/assetCtxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/bbo.d.ts +17 -48
- package/esm/src/api/subscription/_methods/bbo.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/bbo.js +14 -14
- package/esm/src/api/subscription/_methods/bbo.js.map +1 -1
- package/esm/src/api/subscription/_methods/candle.d.ts +17 -32
- package/esm/src/api/subscription/_methods/candle.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/candle.js +17 -17
- package/esm/src/api/subscription/_methods/candle.js.map +1 -1
- package/esm/src/api/subscription/_methods/clearinghouseState.d.ts +52 -259
- package/esm/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/clearinghouseState.js +10 -10
- package/esm/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
- package/esm/src/api/subscription/_methods/explorerBlock.d.ts +10 -18
- package/esm/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/explorerBlock.js +10 -10
- package/esm/src/api/subscription/_methods/explorerBlock.js.map +1 -1
- package/esm/src/api/subscription/_methods/explorerTxs.d.ts +13 -41
- package/esm/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/explorerTxs.js +4 -4
- package/esm/src/api/subscription/_methods/explorerTxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/l2Book.d.ts +21 -52
- package/esm/src/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/l2Book.js +18 -16
- package/esm/src/api/subscription/_methods/l2Book.js.map +1 -1
- package/esm/src/api/subscription/_methods/notification.d.ts +7 -12
- package/esm/src/api/subscription/_methods/notification.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/notification.js +7 -7
- package/esm/src/api/subscription/_methods/notification.js.map +1 -1
- package/esm/src/api/subscription/_methods/openOrders.d.ts +27 -103
- package/esm/src/api/subscription/_methods/openOrders.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/openOrders.js +10 -10
- package/esm/src/api/subscription/_methods/openOrders.js.map +1 -1
- package/esm/src/api/subscription/_methods/orderUpdates.d.ts +19 -56
- package/esm/src/api/subscription/_methods/orderUpdates.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/orderUpdates.js +9 -38
- package/esm/src/api/subscription/_methods/orderUpdates.js.map +1 -1
- package/esm/src/api/subscription/_methods/spotAssetCtxs.d.ts +13 -33
- package/esm/src/api/subscription/_methods/spotAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/spotAssetCtxs.js +4 -4
- package/esm/src/api/subscription/_methods/spotAssetCtxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/spotState.d.ts +22 -78
- package/esm/src/api/subscription/_methods/spotState.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/spotState.js +9 -9
- package/esm/src/api/subscription/_methods/spotState.js.map +1 -1
- package/esm/src/api/subscription/_methods/trades.d.ts +14 -35
- package/esm/src/api/subscription/_methods/trades.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/trades.js +5 -5
- package/esm/src/api/subscription/_methods/trades.js.map +1 -1
- package/esm/src/api/subscription/_methods/twapStates.d.ts +21 -62
- package/esm/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/twapStates.js +10 -10
- package/esm/src/api/subscription/_methods/twapStates.js.map +1 -1
- package/esm/src/api/subscription/_methods/userEvents.d.ts +91 -402
- package/esm/src/api/subscription/_methods/userEvents.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userEvents.js +27 -27
- package/esm/src/api/subscription/_methods/userEvents.js.map +1 -1
- package/esm/src/api/subscription/_methods/userFills.d.ts +34 -130
- package/esm/src/api/subscription/_methods/userFills.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userFills.js +10 -10
- package/esm/src/api/subscription/_methods/userFills.js.map +1 -1
- package/esm/src/api/subscription/_methods/userFundings.d.ts +16 -37
- package/esm/src/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userFundings.js +16 -16
- package/esm/src/api/subscription/_methods/userFundings.js.map +1 -1
- package/esm/src/api/subscription/_methods/userHistoricalOrders.d.ts +30 -134
- package/esm/src/api/subscription/_methods/userHistoricalOrders.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userHistoricalOrders.js +9 -9
- package/esm/src/api/subscription/_methods/userHistoricalOrders.js.map +1 -1
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +119 -565
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.js +9 -9
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapHistory.d.ts +29 -126
- package/esm/src/api/subscription/_methods/userTwapHistory.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapHistory.js +9 -9
- package/esm/src/api/subscription/_methods/userTwapHistory.js.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapSliceFills.d.ts +29 -124
- package/esm/src/api/subscription/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapSliceFills.js +9 -9
- package/esm/src/api/subscription/_methods/userTwapSliceFills.js.map +1 -1
- package/esm/src/api/subscription/_methods/webData2.d.ts +149 -818
- package/esm/src/api/subscription/_methods/webData2.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/webData2.js +5 -5
- package/esm/src/api/subscription/_methods/webData2.js.map +1 -1
- package/esm/src/api/subscription/_methods/webData3.d.ts +25 -71
- package/esm/src/api/subscription/_methods/webData3.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/webData3.js +22 -22
- package/esm/src/api/subscription/_methods/webData3.js.map +1 -1
- package/esm/src/api/subscription/client.d.ts +664 -29
- package/esm/src/api/subscription/client.d.ts.map +1 -1
- package/esm/src/api/subscription/client.js +618 -27
- package/esm/src/api/subscription/client.js.map +1 -1
- package/esm/src/signing/_abstractWallet.d.ts +33 -66
- package/esm/src/signing/_abstractWallet.d.ts.map +1 -1
- package/esm/src/signing/_abstractWallet.js +39 -63
- package/esm/src/signing/_abstractWallet.js.map +1 -1
- package/esm/src/signing/_privateKeySigner.d.ts.map +1 -1
- package/esm/src/signing/_privateKeySigner.js +2 -7
- package/esm/src/signing/_privateKeySigner.js.map +1 -1
- package/esm/src/signing/mod.d.ts.map +1 -1
- package/esm/src/signing/mod.js +11 -10
- package/esm/src/signing/mod.js.map +1 -1
- package/package.json +1 -1
- package/script/bin/_utils.d.ts +33 -1
- package/script/bin/_utils.d.ts.map +1 -1
- package/script/bin/_utils.js +17 -1
- package/script/bin/_utils.js.map +1 -1
- package/script/bin/cli.js +288 -262
- package/script/bin/cli.js.map +1 -1
- package/{esm/deps/jsr.io/@std/async/1.1.0 → script/deps/jsr.io/@std/async/1.1.1}/unstable_semaphore.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.js.map +1 -1
- package/script/src/api/_schemas.d.ts +9 -0
- package/script/src/api/_schemas.d.ts.map +1 -1
- package/script/src/api/_schemas.js +10 -1
- package/script/src/api/_schemas.js.map +1 -1
- package/script/src/api/exchange/_methods/_base/_semaphore.js +1 -1
- package/script/src/api/exchange/_methods/_base/commonSchemas.d.ts +16 -30
- package/script/src/api/exchange/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/_base/commonSchemas.js +16 -16
- package/script/src/api/exchange/_methods/_base/commonSchemas.js.map +1 -1
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +23 -60
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.js +11 -9
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/_methods/agentSetAbstraction.d.ts +126 -0
- package/script/src/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/agentSetAbstraction.js +119 -0
- package/script/src/api/exchange/_methods/agentSetAbstraction.js.map +1 -0
- package/script/src/api/exchange/_methods/approveAgent.d.ts +37 -85
- package/script/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/approveAgent.js +14 -14
- package/script/src/api/exchange/_methods/approveAgent.js.map +1 -1
- package/script/src/api/exchange/_methods/approveBuilderFee.d.ts +37 -85
- package/script/src/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/approveBuilderFee.js +13 -13
- package/script/src/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/script/src/api/exchange/_methods/batchModify.d.ts +99 -431
- package/script/src/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/batchModify.js +31 -36
- package/script/src/api/exchange/_methods/batchModify.js.map +1 -1
- package/script/src/api/exchange/_methods/borrowLend.d.ts +38 -84
- package/script/src/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/borrowLend.js +13 -13
- package/script/src/api/exchange/_methods/borrowLend.js.map +1 -1
- package/script/src/api/exchange/_methods/cDeposit.d.ts +34 -80
- package/script/src/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cDeposit.js +12 -12
- package/script/src/api/exchange/_methods/cDeposit.js.map +1 -1
- package/script/src/api/exchange/_methods/cSignerAction.d.ts +32 -79
- package/script/src/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cSignerAction.js +12 -12
- package/script/src/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/script/src/api/exchange/_methods/cValidatorAction.d.ts +107 -314
- package/script/src/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cValidatorAction.js +37 -37
- package/script/src/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/script/src/api/exchange/_methods/cWithdraw.d.ts +34 -80
- package/script/src/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cWithdraw.js +12 -12
- package/script/src/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/script/src/api/exchange/_methods/cancel.d.ts +38 -100
- package/script/src/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cancel.js +24 -24
- package/script/src/api/exchange/_methods/cancel.js.map +1 -1
- package/script/src/api/exchange/_methods/cancelByCloid.d.ts +38 -110
- package/script/src/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cancelByCloid.js +14 -14
- package/script/src/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/script/src/api/exchange/_methods/claimRewards.d.ts +21 -60
- package/script/src/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/claimRewards.js +9 -9
- package/script/src/api/exchange/_methods/claimRewards.js.map +1 -1
- package/script/src/api/exchange/_methods/convertToMultiSigUser.d.ts +58 -122
- package/script/src/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/convertToMultiSigUser.js +17 -18
- package/script/src/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/script/src/api/exchange/_methods/createSubAccount.d.ts +27 -65
- package/script/src/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/createSubAccount.js +16 -16
- package/script/src/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/script/src/api/exchange/_methods/createVault.d.ts +36 -80
- package/script/src/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/createVault.js +19 -20
- package/script/src/api/exchange/_methods/createVault.js.map +1 -1
- package/script/src/api/exchange/_methods/evmUserModify.d.ts +26 -67
- package/script/src/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/evmUserModify.js +10 -10
- package/script/src/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/script/src/api/exchange/_methods/linkStakingUser.d.ts +37 -85
- package/script/src/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/linkStakingUser.js +13 -17
- package/script/src/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/script/src/api/exchange/_methods/modify.d.ts +81 -263
- package/script/src/api/exchange/_methods/modify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/modify.js +29 -34
- package/script/src/api/exchange/_methods/modify.js.map +1 -1
- package/script/src/api/exchange/_methods/noop.d.ts +21 -60
- package/script/src/api/exchange/_methods/noop.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/noop.js +9 -9
- package/script/src/api/exchange/_methods/noop.js.map +1 -1
- package/script/src/api/exchange/_methods/order.d.ts +105 -365
- package/script/src/api/exchange/_methods/order.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/order.js +53 -61
- package/script/src/api/exchange/_methods/order.js.map +1 -1
- package/script/src/api/exchange/_methods/perpDeploy.d.ts +245 -679
- package/script/src/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/perpDeploy.js +83 -107
- package/script/src/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/script/src/api/exchange/_methods/registerReferrer.d.ts +26 -67
- package/script/src/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/registerReferrer.js +10 -10
- package/script/src/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/script/src/api/exchange/_methods/reserveRequestWeight.d.ts +26 -67
- package/script/src/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/reserveRequestWeight.js +10 -11
- package/script/src/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/script/src/api/exchange/_methods/scheduleCancel.d.ts +27 -69
- package/script/src/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/scheduleCancel.js +11 -13
- package/script/src/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/script/src/api/exchange/_methods/sendAsset.d.ts +59 -115
- package/script/src/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/sendAsset.js +17 -17
- package/script/src/api/exchange/_methods/sendAsset.js.map +1 -1
- package/script/src/api/exchange/_methods/setDisplayName.d.ts +26 -67
- package/script/src/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/setDisplayName.js +10 -11
- package/script/src/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/script/src/api/exchange/_methods/setReferrer.d.ts +26 -67
- package/script/src/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/setReferrer.js +10 -10
- package/script/src/api/exchange/_methods/setReferrer.js.map +1 -1
- package/script/src/api/exchange/_methods/spotDeploy.d.ts +164 -419
- package/script/src/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/spotDeploy.js +56 -68
- package/script/src/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/script/src/api/exchange/_methods/spotSend.d.ts +45 -95
- package/script/src/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/spotSend.js +14 -14
- package/script/src/api/exchange/_methods/spotSend.js.map +1 -1
- package/script/src/api/exchange/_methods/spotUser.d.ts +32 -83
- package/script/src/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/spotUser.js +12 -12
- package/script/src/api/exchange/_methods/spotUser.js.map +1 -1
- package/script/src/api/exchange/_methods/subAccountModify.d.ts +29 -72
- package/script/src/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/subAccountModify.js +11 -11
- package/script/src/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +40 -87
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.js +13 -13
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/subAccountTransfer.d.ts +32 -77
- package/script/src/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/subAccountTransfer.js +12 -12
- package/script/src/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/tokenDelegate.d.ts +40 -90
- package/script/src/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/tokenDelegate.js +14 -14
- package/script/src/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/script/src/api/exchange/_methods/twapCancel.d.ts +32 -81
- package/script/src/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/twapCancel.js +22 -22
- package/script/src/api/exchange/_methods/twapCancel.js.map +1 -1
- package/script/src/api/exchange/_methods/twapOrder.d.ts +53 -153
- package/script/src/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/twapOrder.js +31 -31
- package/script/src/api/exchange/_methods/twapOrder.js.map +1 -1
- package/script/src/api/exchange/_methods/updateIsolatedMargin.d.ts +33 -79
- package/script/src/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/updateIsolatedMargin.js +13 -13
- package/script/src/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/script/src/api/exchange/_methods/updateLeverage.d.ts +38 -84
- package/script/src/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/updateLeverage.js +13 -13
- package/script/src/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/script/src/api/exchange/_methods/usdClassTransfer.d.ts +37 -85
- package/script/src/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/usdClassTransfer.js +13 -13
- package/script/src/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/usdSend.d.ts +37 -85
- package/script/src/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/usdSend.js +13 -13
- package/script/src/api/exchange/_methods/usdSend.js.map +1 -1
- package/script/src/api/exchange/_methods/userDexAbstraction.d.ts +39 -85
- package/script/src/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/userDexAbstraction.js +15 -13
- package/script/src/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts +37 -85
- package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/userPortfolioMargin.js +13 -13
- package/script/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- package/script/src/api/exchange/_methods/userSetAbstraction.d.ts +145 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.js +129 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.js.map +1 -0
- package/script/src/api/exchange/_methods/validatorL1Stream.d.ts +26 -67
- package/script/src/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/validatorL1Stream.js +10 -10
- package/script/src/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/script/src/api/exchange/_methods/vaultDistribute.d.ts +29 -72
- package/script/src/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/vaultDistribute.js +11 -12
- package/script/src/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/script/src/api/exchange/_methods/vaultModify.d.ts +32 -77
- package/script/src/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/vaultModify.js +12 -12
- package/script/src/api/exchange/_methods/vaultModify.js.map +1 -1
- package/script/src/api/exchange/_methods/vaultTransfer.d.ts +32 -77
- package/script/src/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/vaultTransfer.js +12 -12
- package/script/src/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/withdraw3.d.ts +37 -85
- package/script/src/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/withdraw3.js +13 -13
- package/script/src/api/exchange/_methods/withdraw3.js.map +1 -1
- package/script/src/api/exchange/client.d.ts +1278 -48
- package/script/src/api/exchange/client.d.ts.map +1 -1
- package/script/src/api/exchange/client.js +1253 -46
- package/script/src/api/exchange/client.js.map +1 -1
- package/script/src/api/exchange/mod.d.ts +2 -0
- package/script/src/api/exchange/mod.d.ts.map +1 -1
- package/script/src/api/exchange/mod.js +2 -0
- package/script/src/api/exchange/mod.js.map +1 -1
- package/script/src/api/info/_methods/_base/commonSchemas.d.ts +100 -196
- package/script/src/api/info/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/script/src/api/info/_methods/_base/commonSchemas.js +103 -141
- package/script/src/api/info/_methods/_base/commonSchemas.js.map +1 -1
- package/script/src/api/info/_methods/activeAssetData.d.ts +19 -44
- package/script/src/api/info/_methods/activeAssetData.d.ts.map +1 -1
- package/script/src/api/info/_methods/activeAssetData.js +19 -19
- package/script/src/api/info/_methods/activeAssetData.js.map +1 -1
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +11 -20
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.js +12 -12
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts +13 -33
- package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -1
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js +4 -7
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -1
- package/script/src/api/info/_methods/allMids.d.ts +5 -10
- package/script/src/api/info/_methods/allMids.d.ts.map +1 -1
- package/script/src/api/info/_methods/allMids.js +5 -5
- package/script/src/api/info/_methods/allMids.js.map +1 -1
- package/script/src/api/info/_methods/allPerpMetas.d.ts +24 -91
- package/script/src/api/info/_methods/allPerpMetas.d.ts.map +1 -1
- package/script/src/api/info/_methods/allPerpMetas.js +4 -4
- package/script/src/api/info/_methods/allPerpMetas.js.map +1 -1
- package/script/src/api/info/_methods/blockDetails.d.ts +24 -92
- package/script/src/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/blockDetails.js +15 -15
- package/script/src/api/info/_methods/blockDetails.js.map +1 -1
- package/script/src/api/info/_methods/borrowLendReserveState.d.ts +14 -26
- package/script/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/script/src/api/info/_methods/borrowLendReserveState.js +14 -14
- package/script/src/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/script/src/api/info/_methods/borrowLendUserState.d.ts +18 -49
- package/script/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/script/src/api/info/_methods/borrowLendUserState.js +18 -19
- package/script/src/api/info/_methods/borrowLendUserState.js.map +1 -1
- package/script/src/api/info/_methods/candleSnapshot.d.ts +21 -45
- package/script/src/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/script/src/api/info/_methods/candleSnapshot.js +21 -21
- package/script/src/api/info/_methods/candleSnapshot.js.map +1 -1
- package/script/src/api/info/_methods/clearinghouseState.d.ts +48 -165
- package/script/src/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/script/src/api/info/_methods/clearinghouseState.js +48 -48
- package/script/src/api/info/_methods/clearinghouseState.js.map +1 -1
- package/script/src/api/info/_methods/delegations.d.ts +9 -16
- package/script/src/api/info/_methods/delegations.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegations.js +9 -9
- package/script/src/api/info/_methods/delegations.js.map +1 -1
- package/script/src/api/info/_methods/delegatorHistory.d.ts +22 -68
- package/script/src/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegatorHistory.js +22 -22
- package/script/src/api/info/_methods/delegatorHistory.js.map +1 -1
- package/script/src/api/info/_methods/delegatorRewards.d.ts +9 -16
- package/script/src/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegatorRewards.js +9 -9
- package/script/src/api/info/_methods/delegatorRewards.js.map +1 -1
- package/script/src/api/info/_methods/delegatorSummary.d.ts +10 -18
- package/script/src/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegatorSummary.js +10 -10
- package/script/src/api/info/_methods/delegatorSummary.js.map +1 -1
- package/script/src/api/info/_methods/exchangeStatus.d.ts +7 -12
- package/script/src/api/info/_methods/exchangeStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/exchangeStatus.js +7 -7
- package/script/src/api/info/_methods/exchangeStatus.js.map +1 -1
- package/script/src/api/info/_methods/extraAgents.d.ts +9 -16
- package/script/src/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/script/src/api/info/_methods/extraAgents.js +9 -9
- package/script/src/api/info/_methods/extraAgents.js.map +1 -1
- package/script/src/api/info/_methods/frontendOpenOrders.d.ts +23 -61
- package/script/src/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/script/src/api/info/_methods/frontendOpenOrders.js +6 -6
- package/script/src/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/script/src/api/info/_methods/fundingHistory.d.ts +12 -22
- package/script/src/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/script/src/api/info/_methods/fundingHistory.js +12 -12
- package/script/src/api/info/_methods/fundingHistory.js.map +1 -1
- package/script/src/api/info/_methods/gossipRootIps.d.ts +4 -6
- package/script/src/api/info/_methods/gossipRootIps.d.ts.map +1 -1
- package/script/src/api/info/_methods/gossipRootIps.js +4 -4
- package/script/src/api/info/_methods/gossipRootIps.js.map +1 -1
- package/script/src/api/info/_methods/historicalOrders.d.ts +26 -84
- package/script/src/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/script/src/api/info/_methods/historicalOrders.js +9 -38
- package/script/src/api/info/_methods/historicalOrders.js.map +1 -1
- package/script/src/api/info/_methods/isVip.d.ts +5 -8
- package/script/src/api/info/_methods/isVip.d.ts.map +1 -1
- package/script/src/api/info/_methods/isVip.js +5 -5
- package/script/src/api/info/_methods/isVip.js.map +1 -1
- package/script/src/api/info/_methods/l2Book.d.ts +21 -52
- package/script/src/api/info/_methods/l2Book.d.ts.map +1 -1
- package/script/src/api/info/_methods/l2Book.js +18 -16
- package/script/src/api/info/_methods/l2Book.js.map +1 -1
- package/script/src/api/info/_methods/leadingVaults.d.ts +8 -14
- package/script/src/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/script/src/api/info/_methods/leadingVaults.js +8 -8
- package/script/src/api/info/_methods/leadingVaults.js.map +1 -1
- package/script/src/api/info/_methods/legalCheck.d.ts +9 -16
- package/script/src/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/script/src/api/info/_methods/legalCheck.js +9 -9
- package/script/src/api/info/_methods/legalCheck.js.map +1 -1
- package/script/src/api/info/_methods/liquidatable.d.ts +4 -6
- package/script/src/api/info/_methods/liquidatable.d.ts.map +1 -1
- package/script/src/api/info/_methods/liquidatable.js +4 -4
- package/script/src/api/info/_methods/liquidatable.js.map +1 -1
- package/script/src/api/info/_methods/marginTable.d.ts +11 -23
- package/script/src/api/info/_methods/marginTable.d.ts.map +1 -1
- package/script/src/api/info/_methods/marginTable.js +11 -11
- package/script/src/api/info/_methods/marginTable.js.map +1 -1
- package/script/src/api/info/_methods/maxBuilderFee.d.ts +6 -10
- package/script/src/api/info/_methods/maxBuilderFee.d.ts.map +1 -1
- package/script/src/api/info/_methods/maxBuilderFee.js +6 -6
- package/script/src/api/info/_methods/maxBuilderFee.js.map +1 -1
- package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts +4 -6
- package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
- package/script/src/api/info/_methods/maxMarketOrderNtls.js +4 -4
- package/script/src/api/info/_methods/maxMarketOrderNtls.js.map +1 -1
- package/script/src/api/info/_methods/meta.d.ts +25 -73
- package/script/src/api/info/_methods/meta.d.ts.map +1 -1
- package/script/src/api/info/_methods/meta.js +19 -22
- package/script/src/api/info/_methods/meta.js.map +1 -1
- package/script/src/api/info/_methods/metaAndAssetCtxs.d.ts +36 -126
- package/script/src/api/info/_methods/metaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/_methods/metaAndAssetCtxs.js +5 -8
- package/script/src/api/info/_methods/metaAndAssetCtxs.js.map +1 -1
- package/script/src/api/info/_methods/openOrders.d.ts +16 -40
- package/script/src/api/info/_methods/openOrders.d.ts.map +1 -1
- package/script/src/api/info/_methods/openOrders.js +6 -6
- package/script/src/api/info/_methods/openOrders.js.map +1 -1
- package/script/src/api/info/_methods/orderStatus.d.ts +31 -116
- package/script/src/api/info/_methods/orderStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/orderStatus.js +14 -45
- package/script/src/api/info/_methods/orderStatus.js.map +1 -1
- package/script/src/api/info/_methods/perpDeployAuctionStatus.d.ts +10 -18
- package/script/src/api/info/_methods/perpDeployAuctionStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDeployAuctionStatus.js +10 -10
- package/script/src/api/info/_methods/perpDeployAuctionStatus.js.map +1 -1
- package/script/src/api/info/_methods/perpDexLimits.d.ts +10 -18
- package/script/src/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexLimits.js +10 -10
- package/script/src/api/info/_methods/perpDexLimits.js.map +1 -1
- package/script/src/api/info/_methods/perpDexStatus.d.ts +7 -12
- package/script/src/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexStatus.js +7 -7
- package/script/src/api/info/_methods/perpDexStatus.js.map +1 -1
- package/script/src/api/info/_methods/perpDexs.d.ts +16 -42
- package/script/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexs.js +17 -20
- package/script/src/api/info/_methods/perpDexs.js.map +1 -1
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.d.ts +5 -8
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.js +5 -5
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.js.map +1 -1
- package/script/src/api/info/_methods/portfolio.d.ts +37 -104
- package/script/src/api/info/_methods/portfolio.d.ts.map +1 -1
- package/script/src/api/info/_methods/portfolio.js +11 -11
- package/script/src/api/info/_methods/portfolio.js.map +1 -1
- package/script/src/api/info/_methods/preTransferCheck.d.ts +11 -20
- package/script/src/api/info/_methods/preTransferCheck.d.ts.map +1 -1
- package/script/src/api/info/_methods/preTransferCheck.js +11 -11
- package/script/src/api/info/_methods/preTransferCheck.js.map +1 -1
- package/script/src/api/info/_methods/predictedFundings.d.ts +8 -14
- package/script/src/api/info/_methods/predictedFundings.d.ts.map +1 -1
- package/script/src/api/info/_methods/predictedFundings.js +8 -8
- package/script/src/api/info/_methods/predictedFundings.js.map +1 -1
- package/script/src/api/info/_methods/recentTrades.d.ts +14 -26
- package/script/src/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/script/src/api/info/_methods/recentTrades.js +14 -14
- package/script/src/api/info/_methods/recentTrades.js.map +1 -1
- package/script/src/api/info/_methods/referral.d.ts +50 -170
- package/script/src/api/info/_methods/referral.d.ts.map +1 -1
- package/script/src/api/info/_methods/referral.js +50 -50
- package/script/src/api/info/_methods/referral.js.map +1 -1
- package/script/src/api/info/_methods/spotClearinghouseState.d.ts +19 -46
- package/script/src/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotClearinghouseState.js +19 -19
- package/script/src/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/script/src/api/info/_methods/spotDeployState.d.ts +30 -96
- package/script/src/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotDeployState.js +24 -24
- package/script/src/api/info/_methods/spotDeployState.js.map +1 -1
- package/script/src/api/info/_methods/spotMeta.d.ts +47 -98
- package/script/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotMeta.js +47 -34
- package/script/src/api/info/_methods/spotMeta.js.map +1 -1
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +50 -155
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.js +4 -7
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.js.map +1 -1
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +10 -24
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.js +4 -4
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.js.map +1 -1
- package/script/src/api/info/_methods/subAccounts.d.ts +66 -323
- package/script/src/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/script/src/api/info/_methods/subAccounts.js +11 -11
- package/script/src/api/info/_methods/subAccounts.js.map +1 -1
- package/script/src/api/info/_methods/subAccounts2.d.ts +67 -325
- package/script/src/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/script/src/api/info/_methods/subAccounts2.js +11 -12
- package/script/src/api/info/_methods/subAccounts2.js.map +1 -1
- package/script/src/api/info/_methods/tokenDetails.d.ts +26 -54
- package/script/src/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/tokenDetails.js +26 -26
- package/script/src/api/info/_methods/tokenDetails.js.map +1 -1
- package/script/src/api/info/_methods/twapHistory.d.ts +25 -76
- package/script/src/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/script/src/api/info/_methods/twapHistory.js +14 -18
- package/script/src/api/info/_methods/twapHistory.js.map +1 -1
- package/script/src/api/info/_methods/txDetails.d.ts +17 -60
- package/script/src/api/info/_methods/txDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/txDetails.js +8 -8
- package/script/src/api/info/_methods/txDetails.js.map +1 -1
- package/script/src/api/info/_methods/userBorrowLendInterest.d.ts +12 -22
- package/script/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/script/src/api/info/_methods/userBorrowLendInterest.js +12 -12
- package/script/src/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- package/script/src/api/info/_methods/userDetails.d.ts +17 -60
- package/script/src/api/info/_methods/userDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/userDetails.js +8 -8
- package/script/src/api/info/_methods/userDetails.js.map +1 -1
- package/script/src/api/info/_methods/userDexAbstraction.d.ts +5 -8
- package/script/src/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/src/api/info/_methods/userDexAbstraction.js +5 -5
- package/script/src/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/script/src/api/info/_methods/userFees.d.ts +52 -160
- package/script/src/api/info/_methods/userFees.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFees.js +52 -59
- package/script/src/api/info/_methods/userFees.js.map +1 -1
- package/script/src/api/info/_methods/userFills.d.ts +30 -76
- package/script/src/api/info/_methods/userFills.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFills.js +13 -13
- package/script/src/api/info/_methods/userFills.js.map +1 -1
- package/script/src/api/info/_methods/userFillsByTime.d.ts +32 -103
- package/script/src/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFillsByTime.js +8 -8
- package/script/src/api/info/_methods/userFillsByTime.js.map +1 -1
- package/script/src/api/info/_methods/userFunding.d.ts +18 -41
- package/script/src/api/info/_methods/userFunding.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFunding.js +18 -18
- package/script/src/api/info/_methods/userFunding.js.map +1 -1
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +100 -324
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js +100 -100
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/src/api/info/_methods/userRateLimit.d.ts +10 -18
- package/script/src/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/script/src/api/info/_methods/userRateLimit.js +10 -10
- package/script/src/api/info/_methods/userRateLimit.js.map +1 -1
- package/script/src/api/info/_methods/userRole.d.ts +15 -34
- package/script/src/api/info/_methods/userRole.d.ts.map +1 -1
- package/script/src/api/info/_methods/userRole.js +15 -15
- package/script/src/api/info/_methods/userRole.js.map +1 -1
- package/script/src/api/info/_methods/userToMultiSigSigners.d.ts +8 -14
- package/script/src/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/script/src/api/info/_methods/userToMultiSigSigners.js +8 -8
- package/script/src/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFills.d.ts +25 -78
- package/script/src/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFills.js +8 -8
- package/script/src/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +28 -103
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.js +8 -8
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/script/src/api/info/_methods/userVaultEquities.d.ts +9 -16
- package/script/src/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/script/src/api/info/_methods/userVaultEquities.js +9 -9
- package/script/src/api/info/_methods/userVaultEquities.js.map +1 -1
- package/script/src/api/info/_methods/validatorL1Votes.d.ts +9 -23
- package/script/src/api/info/_methods/validatorL1Votes.d.ts.map +1 -1
- package/script/src/api/info/_methods/validatorL1Votes.js +11 -11
- package/script/src/api/info/_methods/validatorL1Votes.js.map +1 -1
- package/script/src/api/info/_methods/validatorSummaries.d.ts +28 -78
- package/script/src/api/info/_methods/validatorSummaries.d.ts.map +1 -1
- package/script/src/api/info/_methods/validatorSummaries.js +22 -22
- package/script/src/api/info/_methods/validatorSummaries.js.map +1 -1
- package/script/src/api/info/_methods/vaultDetails.d.ts +77 -281
- package/script/src/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/vaultDetails.js +39 -39
- package/script/src/api/info/_methods/vaultDetails.js.map +1 -1
- package/script/src/api/info/_methods/vaultSummaries.d.ts +18 -51
- package/script/src/api/info/_methods/vaultSummaries.d.ts.map +1 -1
- package/script/src/api/info/_methods/vaultSummaries.js +12 -12
- package/script/src/api/info/_methods/vaultSummaries.js.map +1 -1
- package/script/src/api/info/_methods/webData2.d.ts +149 -673
- package/script/src/api/info/_methods/webData2.d.ts.map +1 -1
- package/script/src/api/info/_methods/webData2.js +23 -23
- package/script/src/api/info/_methods/webData2.js.map +1 -1
- package/script/src/api/info/client.d.ts +1578 -80
- package/script/src/api/info/client.d.ts.map +1 -1
- package/script/src/api/info/client.js +1489 -78
- package/script/src/api/info/client.js.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetCtx.d.ts +19 -58
- package/script/src/api/subscription/_methods/activeAssetCtx.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetCtx.js +8 -8
- package/script/src/api/subscription/_methods/activeAssetCtx.js.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetData.d.ts +19 -58
- package/script/src/api/subscription/_methods/activeAssetData.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetData.js +6 -6
- package/script/src/api/subscription/_methods/activeAssetData.js.map +1 -1
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +17 -50
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.js +8 -8
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.js.map +1 -1
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +17 -54
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.js +6 -9
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.js.map +1 -1
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +50 -255
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.js +8 -11
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.js.map +1 -1
- package/script/src/api/subscription/_methods/allMids.d.ts +8 -20
- package/script/src/api/subscription/_methods/allMids.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/allMids.js +8 -8
- package/script/src/api/subscription/_methods/allMids.js.map +1 -1
- package/script/src/api/subscription/_methods/assetCtxs.d.ts +19 -58
- package/script/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/assetCtxs.js +8 -8
- package/script/src/api/subscription/_methods/assetCtxs.js.map +1 -1
- package/script/src/api/subscription/_methods/bbo.d.ts +17 -48
- package/script/src/api/subscription/_methods/bbo.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/bbo.js +14 -14
- package/script/src/api/subscription/_methods/bbo.js.map +1 -1
- package/script/src/api/subscription/_methods/candle.d.ts +17 -32
- package/script/src/api/subscription/_methods/candle.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/candle.js +17 -17
- package/script/src/api/subscription/_methods/candle.js.map +1 -1
- package/script/src/api/subscription/_methods/clearinghouseState.d.ts +52 -259
- package/script/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/clearinghouseState.js +10 -10
- package/script/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
- package/script/src/api/subscription/_methods/explorerBlock.d.ts +10 -18
- package/script/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/explorerBlock.js +10 -10
- package/script/src/api/subscription/_methods/explorerBlock.js.map +1 -1
- package/script/src/api/subscription/_methods/explorerTxs.d.ts +13 -41
- package/script/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/explorerTxs.js +4 -4
- package/script/src/api/subscription/_methods/explorerTxs.js.map +1 -1
- package/script/src/api/subscription/_methods/l2Book.d.ts +21 -52
- package/script/src/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/l2Book.js +18 -16
- package/script/src/api/subscription/_methods/l2Book.js.map +1 -1
- package/script/src/api/subscription/_methods/notification.d.ts +7 -12
- package/script/src/api/subscription/_methods/notification.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/notification.js +7 -7
- package/script/src/api/subscription/_methods/notification.js.map +1 -1
- package/script/src/api/subscription/_methods/openOrders.d.ts +27 -103
- package/script/src/api/subscription/_methods/openOrders.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/openOrders.js +10 -10
- package/script/src/api/subscription/_methods/openOrders.js.map +1 -1
- package/script/src/api/subscription/_methods/orderUpdates.d.ts +19 -56
- package/script/src/api/subscription/_methods/orderUpdates.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/orderUpdates.js +9 -38
- package/script/src/api/subscription/_methods/orderUpdates.js.map +1 -1
- package/script/src/api/subscription/_methods/spotAssetCtxs.d.ts +13 -33
- package/script/src/api/subscription/_methods/spotAssetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/spotAssetCtxs.js +4 -4
- package/script/src/api/subscription/_methods/spotAssetCtxs.js.map +1 -1
- package/script/src/api/subscription/_methods/spotState.d.ts +22 -78
- package/script/src/api/subscription/_methods/spotState.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/spotState.js +9 -9
- package/script/src/api/subscription/_methods/spotState.js.map +1 -1
- package/script/src/api/subscription/_methods/trades.d.ts +14 -35
- package/script/src/api/subscription/_methods/trades.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/trades.js +5 -5
- package/script/src/api/subscription/_methods/trades.js.map +1 -1
- package/script/src/api/subscription/_methods/twapStates.d.ts +21 -62
- package/script/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/twapStates.js +10 -10
- package/script/src/api/subscription/_methods/twapStates.js.map +1 -1
- package/script/src/api/subscription/_methods/userEvents.d.ts +91 -402
- package/script/src/api/subscription/_methods/userEvents.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userEvents.js +27 -27
- package/script/src/api/subscription/_methods/userEvents.js.map +1 -1
- package/script/src/api/subscription/_methods/userFills.d.ts +34 -130
- package/script/src/api/subscription/_methods/userFills.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userFills.js +10 -10
- package/script/src/api/subscription/_methods/userFills.js.map +1 -1
- package/script/src/api/subscription/_methods/userFundings.d.ts +16 -37
- package/script/src/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userFundings.js +16 -16
- package/script/src/api/subscription/_methods/userFundings.js.map +1 -1
- package/script/src/api/subscription/_methods/userHistoricalOrders.d.ts +30 -134
- package/script/src/api/subscription/_methods/userHistoricalOrders.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userHistoricalOrders.js +9 -9
- package/script/src/api/subscription/_methods/userHistoricalOrders.js.map +1 -1
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +119 -565
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.js +9 -9
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/src/api/subscription/_methods/userTwapHistory.d.ts +29 -126
- package/script/src/api/subscription/_methods/userTwapHistory.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userTwapHistory.js +9 -9
- package/script/src/api/subscription/_methods/userTwapHistory.js.map +1 -1
- package/script/src/api/subscription/_methods/userTwapSliceFills.d.ts +29 -124
- package/script/src/api/subscription/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userTwapSliceFills.js +9 -9
- package/script/src/api/subscription/_methods/userTwapSliceFills.js.map +1 -1
- package/script/src/api/subscription/_methods/webData2.d.ts +149 -818
- package/script/src/api/subscription/_methods/webData2.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/webData2.js +5 -5
- package/script/src/api/subscription/_methods/webData2.js.map +1 -1
- package/script/src/api/subscription/_methods/webData3.d.ts +25 -71
- package/script/src/api/subscription/_methods/webData3.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/webData3.js +22 -22
- package/script/src/api/subscription/_methods/webData3.js.map +1 -1
- package/script/src/api/subscription/client.d.ts +664 -29
- package/script/src/api/subscription/client.d.ts.map +1 -1
- package/script/src/api/subscription/client.js +618 -27
- package/script/src/api/subscription/client.js.map +1 -1
- package/script/src/signing/_abstractWallet.d.ts +33 -66
- package/script/src/signing/_abstractWallet.d.ts.map +1 -1
- package/script/src/signing/_abstractWallet.js +39 -63
- package/script/src/signing/_abstractWallet.js.map +1 -1
- package/script/src/signing/_privateKeySigner.d.ts.map +1 -1
- package/script/src/signing/_privateKeySigner.js +2 -7
- package/script/src/signing/_privateKeySigner.js.map +1 -1
- package/script/src/signing/mod.d.ts.map +1 -1
- package/script/src/signing/mod.js +11 -10
- package/script/src/signing/mod.js.map +1 -1
- package/src/bin/_utils.ts +33 -1
- package/src/bin/cli.ts +295 -265
- package/src/src/api/_schemas.ts +10 -1
- package/src/src/api/exchange/_methods/_base/_semaphore.ts +1 -1
- package/src/src/api/exchange/_methods/_base/commonSchemas.ts +23 -61
- package/src/src/api/exchange/_methods/agentEnableDexAbstraction.ts +15 -34
- package/src/src/api/exchange/_methods/agentSetAbstraction.ts +109 -0
- package/src/src/api/exchange/_methods/approveAgent.ts +34 -67
- package/src/src/api/exchange/_methods/approveBuilderFee.ts +20 -53
- package/src/src/api/exchange/_methods/batchModify.ts +66 -143
- package/src/src/api/exchange/_methods/borrowLend.ts +21 -54
- package/src/src/api/exchange/_methods/cDeposit.ts +18 -49
- package/src/src/api/exchange/_methods/cSignerAction.ts +24 -54
- package/src/src/api/exchange/_methods/cValidatorAction.ts +72 -164
- package/src/src/api/exchange/_methods/cWithdraw.ts +18 -49
- package/src/src/api/exchange/_methods/cancel.ts +39 -90
- package/src/src/api/exchange/_methods/cancelByCloid.ts +21 -54
- package/src/src/api/exchange/_methods/claimRewards.ts +13 -34
- package/src/src/api/exchange/_methods/convertToMultiSigUser.ts +41 -85
- package/src/src/api/exchange/_methods/createSubAccount.ts +27 -65
- package/src/src/api/exchange/_methods/createVault.ts +32 -82
- package/src/src/api/exchange/_methods/evmUserModify.ts +15 -39
- package/src/src/api/exchange/_methods/linkStakingUser.ts +28 -69
- package/src/src/api/exchange/_methods/modify.ts +62 -134
- package/src/src/api/exchange/_methods/noop.ts +13 -34
- package/src/src/api/exchange/_methods/order.ts +116 -240
- package/src/src/api/exchange/_methods/perpDeploy.ts +178 -439
- package/src/src/api/exchange/_methods/registerReferrer.ts +15 -41
- package/src/src/api/exchange/_methods/reserveRequestWeight.ts +15 -40
- package/src/src/api/exchange/_methods/scheduleCancel.ts +22 -53
- package/src/src/api/exchange/_methods/sendAsset.ts +30 -75
- package/src/src/api/exchange/_methods/setDisplayName.ts +18 -46
- package/src/src/api/exchange/_methods/setReferrer.ts +15 -41
- package/src/src/api/exchange/_methods/spotDeploy.ts +114 -273
- package/src/src/api/exchange/_methods/spotSend.ts +22 -58
- package/src/src/api/exchange/_methods/spotUser.ts +18 -45
- package/src/src/api/exchange/_methods/subAccountModify.ts +17 -46
- package/src/src/api/exchange/_methods/subAccountSpotTransfer.ts +21 -54
- package/src/src/api/exchange/_methods/subAccountTransfer.ts +19 -50
- package/src/src/api/exchange/_methods/tokenDelegate.ts +22 -59
- package/src/src/api/exchange/_methods/twapCancel.ts +37 -85
- package/src/src/api/exchange/_methods/twapOrder.ts +53 -124
- package/src/src/api/exchange/_methods/updateIsolatedMargin.ts +21 -54
- package/src/src/api/exchange/_methods/updateLeverage.ts +21 -55
- package/src/src/api/exchange/_methods/usdClassTransfer.ts +20 -53
- package/src/src/api/exchange/_methods/usdSend.ts +20 -53
- package/src/src/api/exchange/_methods/userDexAbstraction.ts +22 -53
- package/src/src/api/exchange/_methods/userPortfolioMargin.ts +20 -53
- package/src/src/api/exchange/_methods/userSetAbstraction.ts +123 -0
- package/src/src/api/exchange/_methods/validatorL1Stream.ts +15 -39
- package/src/src/api/exchange/_methods/vaultDistribute.ts +20 -50
- package/src/src/api/exchange/_methods/vaultModify.ts +19 -49
- package/src/src/api/exchange/_methods/vaultTransfer.ts +19 -50
- package/src/src/api/exchange/_methods/withdraw3.ts +20 -53
- package/src/src/api/exchange/client.ts +1322 -59
- package/src/src/api/exchange/mod.ts +2 -0
- package/src/src/api/info/_methods/_base/commonSchemas.ts +242 -550
- package/src/src/api/info/_methods/activeAssetData.ts +37 -87
- package/src/src/api/info/_methods/alignedQuoteTokenInfo.ts +22 -49
- package/src/src/api/info/_methods/allBorrowLendReserveStates.ts +5 -19
- package/src/src/api/info/_methods/allMids.ts +7 -19
- package/src/src/api/info/_methods/allPerpMetas.ts +5 -14
- package/src/src/api/info/_methods/blockDetails.ts +24 -61
- package/src/src/api/info/_methods/borrowLendReserveState.ts +24 -60
- package/src/src/api/info/_methods/borrowLendUserState.ts +34 -73
- package/src/src/api/info/_methods/candleSnapshot.ts +37 -91
- package/src/src/api/info/_methods/clearinghouseState.ts +91 -214
- package/src/src/api/info/_methods/delegations.ts +15 -36
- package/src/src/api/info/_methods/delegatorHistory.ts +43 -92
- package/src/src/api/info/_methods/delegatorRewards.ts +15 -36
- package/src/src/api/info/_methods/delegatorSummary.ts +16 -40
- package/src/src/api/info/_methods/exchangeStatus.ts +10 -25
- package/src/src/api/info/_methods/extraAgents.ts +15 -37
- package/src/src/api/info/_methods/frontendOpenOrders.ts +9 -24
- package/src/src/api/info/_methods/fundingHistory.ts +21 -51
- package/src/src/api/info/_methods/gossipRootIps.ts +5 -14
- package/src/src/api/info/_methods/historicalOrders.ts +46 -98
- package/src/src/api/info/_methods/isVip.ts +7 -19
- package/src/src/api/info/_methods/l2Book.ts +29 -66
- package/src/src/api/info/_methods/leadingVaults.ts +13 -31
- package/src/src/api/info/_methods/legalCheck.ts +14 -35
- package/src/src/api/info/_methods/liquidatable.ts +5 -14
- package/src/src/api/info/_methods/marginTable.ts +19 -44
- package/src/src/api/info/_methods/maxBuilderFee.ts +9 -24
- package/src/src/api/info/_methods/maxMarketOrderNtls.ts +6 -17
- package/src/src/api/info/_methods/meta.ts +35 -89
- package/src/src/api/info/_methods/metaAndAssetCtxs.ts +7 -22
- package/src/src/api/info/_methods/openOrders.ts +9 -24
- package/src/src/api/info/_methods/orderStatus.ts +57 -125
- package/src/src/api/info/_methods/perpDeployAuctionStatus.ts +16 -40
- package/src/src/api/info/_methods/perpDexLimits.ts +17 -41
- package/src/src/api/info/_methods/perpDexStatus.ts +10 -25
- package/src/src/api/info/_methods/perpDexs.ts +31 -81
- package/src/src/api/info/_methods/perpsAtOpenInterestCap.ts +7 -19
- package/src/src/api/info/_methods/portfolio.ts +24 -49
- package/src/src/api/info/_methods/preTransferCheck.ts +18 -45
- package/src/src/api/info/_methods/predictedFundings.ts +27 -45
- package/src/src/api/info/_methods/recentTrades.ts +25 -62
- package/src/src/api/info/_methods/referral.ts +106 -234
- package/src/src/api/info/_methods/spotClearinghouseState.ts +37 -82
- package/src/src/api/info/_methods/spotDeployState.ts +44 -104
- package/src/src/api/info/_methods/spotMeta.ts +78 -144
- package/src/src/api/info/_methods/spotMetaAndAssetCtxs.ts +5 -17
- package/src/src/api/info/_methods/spotPairDeployAuctionStatus.ts +5 -14
- package/src/src/api/info/_methods/subAccounts.ts +20 -48
- package/src/src/api/info/_methods/subAccounts2.ts +23 -50
- package/src/src/api/info/_methods/tokenDetails.ts +49 -119
- package/src/src/api/info/_methods/twapHistory.ts +34 -73
- package/src/src/api/info/_methods/txDetails.ts +12 -31
- package/src/src/api/info/_methods/userBorrowLendInterest.ts +22 -51
- package/src/src/api/info/_methods/userDetails.ts +12 -30
- package/src/src/api/info/_methods/userDexAbstraction.ts +7 -19
- package/src/src/api/info/_methods/userFees.ts +103 -243
- package/src/src/api/info/_methods/userFills.ts +27 -57
- package/src/src/api/info/_methods/userFillsByTime.ts +13 -34
- package/src/src/api/info/_methods/userFunding.ts +31 -77
- package/src/src/api/info/_methods/userNonFundingLedgerUpdates.ts +249 -538
- package/src/src/api/info/_methods/userRateLimit.ts +16 -40
- package/src/src/api/info/_methods/userRole.ts +28 -61
- package/src/src/api/info/_methods/userToMultiSigSigners.ts +13 -33
- package/src/src/api/info/_methods/userTwapSliceFills.ts +13 -31
- package/src/src/api/info/_methods/userTwapSliceFillsByTime.ts +13 -34
- package/src/src/api/info/_methods/userVaultEquities.ts +15 -36
- package/src/src/api/info/_methods/validatorL1Votes.ts +22 -40
- package/src/src/api/info/_methods/validatorSummaries.ts +41 -96
- package/src/src/api/info/_methods/vaultDetails.ts +76 -181
- package/src/src/api/info/_methods/vaultSummaries.ts +21 -51
- package/src/src/api/info/_methods/webData2.ts +42 -105
- package/src/src/api/info/client.ts +1580 -82
- package/src/src/api/subscription/_methods/activeAssetCtx.ts +12 -30
- package/src/src/api/subscription/_methods/activeAssetData.ts +9 -24
- package/src/src/api/subscription/_methods/activeSpotAssetCtx.ts +12 -30
- package/src/src/api/subscription/_methods/allDexsAssetCtxs.ts +8 -25
- package/src/src/api/subscription/_methods/allDexsClearinghouseState.ts +12 -35
- package/src/src/api/subscription/_methods/allMids.ts +12 -30
- package/src/src/api/subscription/_methods/assetCtxs.ts +12 -30
- package/src/src/api/subscription/_methods/bbo.ts +22 -55
- package/src/src/api/subscription/_methods/candle.ts +30 -75
- package/src/src/api/subscription/_methods/clearinghouseState.ts +16 -40
- package/src/src/api/subscription/_methods/explorerBlock.ts +17 -42
- package/src/src/api/subscription/_methods/explorerTxs.ts +5 -14
- package/src/src/api/subscription/_methods/l2Book.ts +28 -65
- package/src/src/api/subscription/_methods/notification.ts +10 -25
- package/src/src/api/subscription/_methods/openOrders.ts +16 -40
- package/src/src/api/subscription/_methods/orderUpdates.ts +46 -98
- package/src/src/api/subscription/_methods/spotAssetCtxs.ts +5 -14
- package/src/src/api/subscription/_methods/spotState.ts +14 -35
- package/src/src/api/subscription/_methods/trades.ts +7 -19
- package/src/src/api/subscription/_methods/twapStates.ts +16 -40
- package/src/src/api/subscription/_methods/userEvents.ts +66 -132
- package/src/src/api/subscription/_methods/userFills.ts +16 -40
- package/src/src/api/subscription/_methods/userFundings.ts +29 -68
- package/src/src/api/subscription/_methods/userHistoricalOrders.ts +14 -35
- package/src/src/api/subscription/_methods/userNonFundingLedgerUpdates.ts +14 -35
- package/src/src/api/subscription/_methods/userTwapHistory.ts +14 -35
- package/src/src/api/subscription/_methods/userTwapSliceFills.ts +14 -35
- package/src/src/api/subscription/_methods/webData2.ts +7 -19
- package/src/src/api/subscription/_methods/webData3.ts +39 -93
- package/src/src/api/subscription/client.ts +664 -29
- package/src/src/signing/_abstractWallet.ts +82 -136
- package/src/src/signing/_privateKeySigner.ts +2 -11
- package/src/src/signing/mod.ts +12 -10
- /package/esm/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.js +0 -0
- /package/src/deps/jsr.io/@std/async/{1.1.0 → 1.1.1}/unstable_semaphore.ts +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ExchangeConfig, ExchangeSingleWalletConfig } from "./_methods/_base/execute.js";
|
|
2
2
|
import { type AgentEnableDexAbstractionOptions, type AgentEnableDexAbstractionSuccessResponse } from "./_methods/agentEnableDexAbstraction.js";
|
|
3
|
+
import { type AgentSetAbstractionOptions, type AgentSetAbstractionParameters, type AgentSetAbstractionSuccessResponse } from "./_methods/agentSetAbstraction.js";
|
|
3
4
|
import { type ApproveAgentOptions, type ApproveAgentParameters, type ApproveAgentSuccessResponse } from "./_methods/approveAgent.js";
|
|
4
5
|
import { type ApproveBuilderFeeOptions, type ApproveBuilderFeeParameters, type ApproveBuilderFeeSuccessResponse } from "./_methods/approveBuilderFee.js";
|
|
5
6
|
import { type BatchModifyOptions, type BatchModifyParameters, type BatchModifySuccessResponse } from "./_methods/batchModify.js";
|
|
@@ -40,6 +41,7 @@ import { type UpdateLeverageOptions, type UpdateLeverageParameters, type UpdateL
|
|
|
40
41
|
import { type UsdClassTransferOptions, type UsdClassTransferParameters, type UsdClassTransferSuccessResponse } from "./_methods/usdClassTransfer.js";
|
|
41
42
|
import { type UsdSendOptions, type UsdSendParameters, type UsdSendSuccessResponse } from "./_methods/usdSend.js";
|
|
42
43
|
import { type UserDexAbstractionOptions, type UserDexAbstractionParameters, type UserDexAbstractionSuccessResponse } from "./_methods/userDexAbstraction.js";
|
|
44
|
+
import { type UserSetAbstractionOptions, type UserSetAbstractionParameters, type UserSetAbstractionSuccessResponse } from "./_methods/userSetAbstraction.js";
|
|
43
45
|
import { type UserPortfolioMarginOptions, type UserPortfolioMarginParameters, type UserPortfolioMarginSuccessResponse } from "./_methods/userPortfolioMargin.js";
|
|
44
46
|
import { type ValidatorL1StreamOptions, type ValidatorL1StreamParameters, type ValidatorL1StreamSuccessResponse } from "./_methods/validatorL1Stream.js";
|
|
45
47
|
import { type VaultDistributeOptions, type VaultDistributeParameters, type VaultDistributeSuccessResponse } from "./_methods/vaultDistribute.js";
|
|
@@ -98,105 +100,1332 @@ export declare class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWal
|
|
|
98
100
|
* ```
|
|
99
101
|
*/
|
|
100
102
|
constructor(config: C);
|
|
101
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Enable HIP-3 DEX abstraction.
|
|
105
|
+
*
|
|
106
|
+
* @deprecated Use {@link agentSetAbstraction} instead.
|
|
107
|
+
*
|
|
108
|
+
* @param params - Parameters specific to the API request.
|
|
109
|
+
* @param opts - Request execution options.
|
|
110
|
+
*
|
|
111
|
+
* @returns Successful response without specific data.
|
|
112
|
+
*
|
|
113
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
114
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
115
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
120
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
121
|
+
*
|
|
122
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
123
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
124
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
125
|
+
*
|
|
126
|
+
* await client.agentEnableDexAbstraction();
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction-agent
|
|
130
|
+
*/
|
|
102
131
|
agentEnableDexAbstraction(opts?: AgentEnableDexAbstractionOptions): Promise<AgentEnableDexAbstractionSuccessResponse>;
|
|
103
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* Set User abstraction mode (method for agent wallet).
|
|
134
|
+
*
|
|
135
|
+
* @param params - Parameters specific to the API request.
|
|
136
|
+
* @param opts - Request execution options.
|
|
137
|
+
*
|
|
138
|
+
* @returns Successful response without specific data.
|
|
139
|
+
*
|
|
140
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
141
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
142
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```ts
|
|
146
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
147
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
148
|
+
*
|
|
149
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
150
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
151
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
152
|
+
*
|
|
153
|
+
* await client.agentSetAbstraction({ abstraction: "u" });
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
156
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#set-user-abstraction-agent
|
|
157
|
+
*/
|
|
158
|
+
agentSetAbstraction(params: AgentSetAbstractionParameters, opts?: AgentSetAbstractionOptions): Promise<AgentSetAbstractionSuccessResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* Approve an agent to sign on behalf of the master account.
|
|
161
|
+
*
|
|
162
|
+
* @param params - Parameters specific to the API request.
|
|
163
|
+
* @param opts - Request execution options.
|
|
164
|
+
*
|
|
165
|
+
* @returns Successful response without specific data.
|
|
166
|
+
*
|
|
167
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
168
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
169
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```ts
|
|
173
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
174
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
175
|
+
*
|
|
176
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
177
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
178
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
179
|
+
*
|
|
180
|
+
* await client.approveAgent({ agentAddress: "0x...", agentName: "myAgent" });
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
183
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-an-api-wallet
|
|
184
|
+
*/
|
|
104
185
|
approveAgent(params: ApproveAgentParameters, opts?: ApproveAgentOptions): Promise<ApproveAgentSuccessResponse>;
|
|
105
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Approve a maximum fee rate for a builder.
|
|
188
|
+
*
|
|
189
|
+
* @param params - Parameters specific to the API request.
|
|
190
|
+
* @param opts - Request execution options.
|
|
191
|
+
*
|
|
192
|
+
* @returns Successful response without specific data.
|
|
193
|
+
*
|
|
194
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
195
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
196
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```ts
|
|
200
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
201
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
202
|
+
*
|
|
203
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
204
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
205
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
206
|
+
*
|
|
207
|
+
* await client.approveBuilderFee({ maxFeeRate: "0.01%", builder: "0x..." });
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-a-builder-fee
|
|
211
|
+
*/
|
|
106
212
|
approveBuilderFee(params: ApproveBuilderFeeParameters, opts?: ApproveBuilderFeeOptions): Promise<ApproveBuilderFeeSuccessResponse>;
|
|
107
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* Modify multiple orders.
|
|
215
|
+
*
|
|
216
|
+
* @param params - Parameters specific to the API request.
|
|
217
|
+
* @param opts - Request execution options.
|
|
218
|
+
*
|
|
219
|
+
* @returns Successful variant of {@link OrderResponse} without error statuses.
|
|
220
|
+
*
|
|
221
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
222
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
223
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ```ts
|
|
227
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
228
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
229
|
+
*
|
|
230
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
231
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
232
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
233
|
+
*
|
|
234
|
+
* const data = await client.batchModify({ modifies: [ { oid: 123, order: { a: 0, b: true, p: "31000", s: "0.2", r: false, t: { limit: { tif: "Gtc" } } } }, ] });
|
|
235
|
+
* ```
|
|
236
|
+
*
|
|
237
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-multiple-orders
|
|
238
|
+
*/
|
|
108
239
|
batchModify(params: BatchModifyParameters, opts?: BatchModifyOptions): Promise<BatchModifySuccessResponse>;
|
|
109
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Borrow or lend assets.
|
|
242
|
+
*
|
|
243
|
+
* @param params - Parameters specific to the API request.
|
|
244
|
+
* @param opts - Request execution options.
|
|
245
|
+
*
|
|
246
|
+
* @returns Successful response without specific data.
|
|
247
|
+
*
|
|
248
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
249
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
250
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* ```ts
|
|
254
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
255
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
256
|
+
*
|
|
257
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
258
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
259
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
260
|
+
*
|
|
261
|
+
* const data = await client.borrowLend({ operation: "supply", token: 0, amount: "20" });
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
110
264
|
borrowLend(params: BorrowLendParameters, opts?: BorrowLendOptions): Promise<BorrowLendSuccessResponse>;
|
|
111
|
-
/**
|
|
265
|
+
/**
|
|
266
|
+
* Cancel order(s).
|
|
267
|
+
*
|
|
268
|
+
* @param params - Parameters specific to the API request.
|
|
269
|
+
* @param opts - Request execution options.
|
|
270
|
+
*
|
|
271
|
+
* @returns Successful variant of {@link CancelResponse} without error statuses.
|
|
272
|
+
*
|
|
273
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
274
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
275
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```ts
|
|
279
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
280
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
281
|
+
*
|
|
282
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
283
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
284
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
285
|
+
*
|
|
286
|
+
* const data = await client.cancel({ cancels: [ { a: 0, o: 123 }, ] });
|
|
287
|
+
* ```
|
|
288
|
+
*
|
|
289
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s
|
|
290
|
+
*/
|
|
112
291
|
cancel(params: CancelParameters, opts?: CancelOptions): Promise<CancelSuccessResponse>;
|
|
113
|
-
/**
|
|
292
|
+
/**
|
|
293
|
+
* Cancel order(s) by cloid.
|
|
294
|
+
*
|
|
295
|
+
* @param params - Parameters specific to the API request.
|
|
296
|
+
* @param opts - Request execution options.
|
|
297
|
+
*
|
|
298
|
+
* @returns Successful variant of {@link CancelResponse} without error statuses.
|
|
299
|
+
*
|
|
300
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
301
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
302
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* ```ts
|
|
306
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
307
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
308
|
+
*
|
|
309
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
310
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
311
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
312
|
+
*
|
|
313
|
+
* const data = await client.cancelByCloid({ cancels: [ { asset: 0, cloid: "0x..." }, ] });
|
|
314
|
+
* ```
|
|
315
|
+
*
|
|
316
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s-by-cloid
|
|
317
|
+
*/
|
|
114
318
|
cancelByCloid(params: CancelByCloidParameters, opts?: CancelByCloidOptions): Promise<CancelByCloidSuccessResponse>;
|
|
115
|
-
/**
|
|
319
|
+
/**
|
|
320
|
+
* Transfer native token from the user spot account into staking for delegating to validators.
|
|
321
|
+
*
|
|
322
|
+
* @param params - Parameters specific to the API request.
|
|
323
|
+
* @param opts - Request execution options.
|
|
324
|
+
*
|
|
325
|
+
* @returns Successful response without specific data.
|
|
326
|
+
*
|
|
327
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
328
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
329
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* ```ts
|
|
333
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
334
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
335
|
+
*
|
|
336
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
337
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
338
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
339
|
+
*
|
|
340
|
+
* await client.cDeposit({ wei: 1 * 1e8 });
|
|
341
|
+
* ```
|
|
342
|
+
*
|
|
343
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-into-staking
|
|
344
|
+
*/
|
|
116
345
|
cDeposit(params: CDepositParameters, opts?: CDepositOptions): Promise<CDepositSuccessResponse>;
|
|
117
|
-
/**
|
|
346
|
+
/**
|
|
347
|
+
* Claim rewards from referral program.
|
|
348
|
+
*
|
|
349
|
+
* @param opts - Request execution options.
|
|
350
|
+
*
|
|
351
|
+
* @returns Successful response without specific data.
|
|
352
|
+
*
|
|
353
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
354
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
355
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
* ```ts
|
|
359
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
360
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
361
|
+
*
|
|
362
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
363
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
364
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
365
|
+
*
|
|
366
|
+
* await client.claimRewards();
|
|
367
|
+
* ```
|
|
368
|
+
*/
|
|
118
369
|
claimRewards(opts?: ClaimRewardsOptions): Promise<ClaimRewardsSuccessResponse>;
|
|
119
|
-
/**
|
|
370
|
+
/**
|
|
371
|
+
* Convert a single-signature account to a multi-signature account or vice versa.
|
|
372
|
+
*
|
|
373
|
+
* @param params - Parameters specific to the API request.
|
|
374
|
+
* @param opts - Request execution options.
|
|
375
|
+
*
|
|
376
|
+
* @returns Successful response without specific data.
|
|
377
|
+
*
|
|
378
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
379
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
380
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
* ```ts
|
|
384
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
385
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
386
|
+
*
|
|
387
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
388
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
389
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
390
|
+
*
|
|
391
|
+
* await client.convertToMultiSigUser({ signers: { authorizedUsers: ["0x...", "0x...", "0x..."], threshold: 2 } });
|
|
392
|
+
* ```
|
|
393
|
+
*
|
|
394
|
+
* @example
|
|
395
|
+
* ```ts
|
|
396
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
397
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
398
|
+
*
|
|
399
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
400
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
401
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
402
|
+
*
|
|
403
|
+
* await client.convertToMultiSigUser({ signers: null });
|
|
404
|
+
* ```
|
|
405
|
+
*
|
|
406
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/multi-sig
|
|
407
|
+
*/
|
|
120
408
|
convertToMultiSigUser(params: ConvertToMultiSigUserParameters, opts?: ConvertToMultiSigUserOptions): Promise<ConvertToMultiSigUserSuccessResponse>;
|
|
121
|
-
/**
|
|
409
|
+
/**
|
|
410
|
+
* Create a sub-account.
|
|
411
|
+
*
|
|
412
|
+
* @param params - Parameters specific to the API request.
|
|
413
|
+
* @param opts - Request execution options.
|
|
414
|
+
*
|
|
415
|
+
* @returns Response for creating a sub-account.
|
|
416
|
+
*
|
|
417
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
418
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
419
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
420
|
+
*
|
|
421
|
+
* @example
|
|
422
|
+
* ```ts
|
|
423
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
424
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
425
|
+
*
|
|
426
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
427
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
428
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
429
|
+
*
|
|
430
|
+
* const data = await client.createSubAccount({ name: "..." });
|
|
431
|
+
* ```
|
|
432
|
+
*/
|
|
122
433
|
createSubAccount(params: CreateSubAccountParameters, opts?: CreateSubAccountOptions): Promise<CreateSubAccountSuccessResponse>;
|
|
123
|
-
/**
|
|
434
|
+
/**
|
|
435
|
+
* Create a vault.
|
|
436
|
+
*
|
|
437
|
+
* @param params - Parameters specific to the API request.
|
|
438
|
+
* @param opts - Request execution options.
|
|
439
|
+
*
|
|
440
|
+
* @returns Response for creating a vault.
|
|
441
|
+
*
|
|
442
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
443
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
444
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
445
|
+
*
|
|
446
|
+
* @example
|
|
447
|
+
* ```ts
|
|
448
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
449
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
450
|
+
*
|
|
451
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
452
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
453
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
454
|
+
*
|
|
455
|
+
* const data = await client.createVault({ name: "...", description: "...", initialUsd: 100 * 1e6, nonce: Date.now() });
|
|
456
|
+
* ```
|
|
457
|
+
*/
|
|
124
458
|
createVault(params: CreateVaultParameters, opts?: CreateVaultOptions): Promise<CreateVaultSuccessResponse>;
|
|
125
|
-
/**
|
|
459
|
+
/**
|
|
460
|
+
* Jail or unjail self as a validator signer.
|
|
461
|
+
*
|
|
462
|
+
* @param params - Parameters specific to the API request.
|
|
463
|
+
* @param opts - Request execution options.
|
|
464
|
+
*
|
|
465
|
+
* @returns Successful response without specific data.
|
|
466
|
+
*
|
|
467
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
468
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
469
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
470
|
+
*
|
|
471
|
+
* @example
|
|
472
|
+
* ```ts
|
|
473
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
474
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
475
|
+
*
|
|
476
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
477
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
478
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
479
|
+
*
|
|
480
|
+
* await client.cSignerAction({ jailSelf: null });
|
|
481
|
+
* ```
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* ```ts
|
|
485
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
486
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
487
|
+
*
|
|
488
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
489
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
490
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
491
|
+
*
|
|
492
|
+
* await client.cSignerAction({ unjailSelf: null });
|
|
493
|
+
* ```
|
|
494
|
+
*/
|
|
126
495
|
cSignerAction(params: CSignerActionParameters, opts?: CSignerActionOptions): Promise<CSignerActionSuccessResponse>;
|
|
127
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* Action related to validator management.
|
|
498
|
+
*
|
|
499
|
+
* @param params - Parameters specific to the API request.
|
|
500
|
+
* @param opts - Request execution options.
|
|
501
|
+
*
|
|
502
|
+
* @returns Successful response without specific data.
|
|
503
|
+
*
|
|
504
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
505
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
506
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
507
|
+
*
|
|
508
|
+
* @example
|
|
509
|
+
* ```ts
|
|
510
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
511
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
512
|
+
*
|
|
513
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
514
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
515
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
516
|
+
*
|
|
517
|
+
* await client.cValidatorAction({ changeProfile: { node_ip: { Ip: "1.2.3.4" }, name: "...", description: "...", unjailed: true, disable_delegations: false, commission_bps: null, signer: null } });
|
|
518
|
+
* ```
|
|
519
|
+
*/
|
|
128
520
|
cValidatorAction(params: CValidatorActionParameters, opts?: CValidatorActionOptions): Promise<CValidatorActionSuccessResponse>;
|
|
129
|
-
/**
|
|
521
|
+
/**
|
|
522
|
+
* Transfer native token from staking into the user's spot account.
|
|
523
|
+
*
|
|
524
|
+
* @param params - Parameters specific to the API request.
|
|
525
|
+
* @param opts - Request execution options.
|
|
526
|
+
*
|
|
527
|
+
* @returns Successful response without specific data.
|
|
528
|
+
*
|
|
529
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
530
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
531
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
532
|
+
*
|
|
533
|
+
* @example
|
|
534
|
+
* ```ts
|
|
535
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
536
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
537
|
+
*
|
|
538
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
539
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
540
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
541
|
+
*
|
|
542
|
+
* await client.cWithdraw({ wei: 1 * 1e8 });
|
|
543
|
+
* ```
|
|
544
|
+
*
|
|
545
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#withdraw-from-staking
|
|
546
|
+
*/
|
|
130
547
|
cWithdraw(params: CWithdrawParameters, opts?: CWithdrawOptions): Promise<CWithdrawSuccessResponse>;
|
|
131
|
-
/**
|
|
548
|
+
/**
|
|
549
|
+
* Configure block type for EVM transactions.
|
|
550
|
+
*
|
|
551
|
+
* @param params - Parameters specific to the API request.
|
|
552
|
+
* @param opts - Request execution options.
|
|
553
|
+
*
|
|
554
|
+
* @returns Successful response without specific data.
|
|
555
|
+
*
|
|
556
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
557
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
558
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
559
|
+
*
|
|
560
|
+
* @example
|
|
561
|
+
* ```ts
|
|
562
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
563
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
564
|
+
*
|
|
565
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
566
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
567
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
568
|
+
*
|
|
569
|
+
* await client.evmUserModify({ usingBigBlocks: true });
|
|
570
|
+
* ```
|
|
571
|
+
*
|
|
572
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/hyperevm/dual-block-architecture
|
|
573
|
+
*/
|
|
132
574
|
evmUserModify(params: EvmUserModifyParameters, opts?: EvmUserModifyOptions): Promise<EvmUserModifySuccessResponse>;
|
|
133
|
-
/**
|
|
575
|
+
/**
|
|
576
|
+
* Link staking and trading accounts for fee discount attribution.
|
|
577
|
+
*
|
|
578
|
+
* @param params - Parameters specific to the API request.
|
|
579
|
+
* @param opts - Request execution options.
|
|
580
|
+
*
|
|
581
|
+
* @returns Successful response without specific data.
|
|
582
|
+
*
|
|
583
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
584
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
585
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
586
|
+
*
|
|
587
|
+
* @example
|
|
588
|
+
* ```ts
|
|
589
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
590
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
591
|
+
*
|
|
592
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
593
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
594
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
595
|
+
*
|
|
596
|
+
* await client.linkStakingUser({ user: "0x...", isFinalize: false });
|
|
597
|
+
* ```
|
|
598
|
+
*
|
|
599
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#staking-linking
|
|
600
|
+
*/
|
|
134
601
|
linkStakingUser(params: LinkStakingUserParameters, opts?: LinkStakingUserOptions): Promise<LinkStakingUserSuccessResponse>;
|
|
135
|
-
/**
|
|
602
|
+
/**
|
|
603
|
+
* Modify an order.
|
|
604
|
+
*
|
|
605
|
+
* @param params - Parameters specific to the API request.
|
|
606
|
+
* @param opts - Request execution options.
|
|
607
|
+
*
|
|
608
|
+
* @returns Successful response without specific data.
|
|
609
|
+
*
|
|
610
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
611
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
612
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
613
|
+
*
|
|
614
|
+
* @example
|
|
615
|
+
* ```ts
|
|
616
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
617
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
618
|
+
*
|
|
619
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
620
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
621
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
622
|
+
*
|
|
623
|
+
* await client.modify({ oid: 123, order: { a: 0, b: true, p: "31000", s: "0.2", r: false, t: { limit: { tif: "Gtc" } }, c: "0x..." } });
|
|
624
|
+
* ```
|
|
625
|
+
*
|
|
626
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-an-order
|
|
627
|
+
*/
|
|
136
628
|
modify(params: ModifyParameters, opts?: ModifyOptions): Promise<ModifySuccessResponse>;
|
|
137
|
-
/**
|
|
629
|
+
/**
|
|
630
|
+
* Place an order(s).
|
|
631
|
+
*
|
|
632
|
+
* @param params - Parameters specific to the API request.
|
|
633
|
+
* @param opts - Request execution options.
|
|
634
|
+
*
|
|
635
|
+
* @returns Successful variant of {@link OrderResponse} without error statuses.
|
|
636
|
+
*
|
|
637
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
638
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
639
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
640
|
+
*
|
|
641
|
+
* @example
|
|
642
|
+
* ```ts
|
|
643
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
644
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
645
|
+
*
|
|
646
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
647
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
648
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
649
|
+
*
|
|
650
|
+
* const data = await client.order({ orders: [ { a: 0, b: true, p: "30000", s: "0.1", r: false, t: { limit: { tif: "Gtc" } }, c: "0x..." }, ], grouping: "na" });
|
|
651
|
+
* ```
|
|
652
|
+
*
|
|
653
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order
|
|
654
|
+
*/
|
|
138
655
|
order(params: OrderParameters, opts?: OrderOptions): Promise<OrderSuccessResponse>;
|
|
139
|
-
/**
|
|
656
|
+
/**
|
|
657
|
+
* This action does not do anything (no operation), but causes the nonce to be marked as used.
|
|
658
|
+
*
|
|
659
|
+
* @param params - Parameters specific to the API request.
|
|
660
|
+
* @param opts - Request execution options.
|
|
661
|
+
*
|
|
662
|
+
* @returns Successful response without specific data.
|
|
663
|
+
*
|
|
664
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
665
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
666
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
667
|
+
*
|
|
668
|
+
* @example
|
|
669
|
+
* ```ts
|
|
670
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
671
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
672
|
+
*
|
|
673
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
674
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
675
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
676
|
+
*
|
|
677
|
+
* await client.noop();
|
|
678
|
+
* ```
|
|
679
|
+
*
|
|
680
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#invalidate-pending-nonce-noop
|
|
681
|
+
*/
|
|
140
682
|
noop(opts?: NoopOptions): Promise<NoopSuccessResponse>;
|
|
141
|
-
/**
|
|
683
|
+
/**
|
|
684
|
+
* Deploying HIP-3 assets.
|
|
685
|
+
*
|
|
686
|
+
* @param params - Parameters specific to the API request.
|
|
687
|
+
* @param opts - Request execution options.
|
|
688
|
+
*
|
|
689
|
+
* @returns Successful response without specific data.
|
|
690
|
+
*
|
|
691
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
692
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
693
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
694
|
+
*
|
|
695
|
+
* @example
|
|
696
|
+
* ```ts
|
|
697
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
698
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
699
|
+
*
|
|
700
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
701
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
702
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
703
|
+
*
|
|
704
|
+
* await client.perpDeploy({ registerAsset: { maxGas: 1000000, assetRequest: { coin: "USDC", szDecimals: 8, oraclePx: "1", marginTableId: 1, onlyIsolated: false }, dex: "test", schema: null } });
|
|
705
|
+
* ```
|
|
706
|
+
*
|
|
707
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/hip-3-deployer-actions
|
|
708
|
+
*/
|
|
142
709
|
perpDeploy(params: PerpDeployParameters, opts?: PerpDeployOptions): Promise<PerpDeploySuccessResponse>;
|
|
143
|
-
/**
|
|
710
|
+
/**
|
|
711
|
+
* Create a referral code.
|
|
712
|
+
*
|
|
713
|
+
* @param params - Parameters specific to the API request.
|
|
714
|
+
* @param opts - Request execution options.
|
|
715
|
+
*
|
|
716
|
+
* @returns Successful response without specific data.
|
|
717
|
+
*
|
|
718
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
719
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
720
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
721
|
+
*
|
|
722
|
+
* @example
|
|
723
|
+
* ```ts
|
|
724
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
725
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
726
|
+
*
|
|
727
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
728
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
729
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
730
|
+
*
|
|
731
|
+
* await client.registerReferrer({ code: "..." });
|
|
732
|
+
* ```
|
|
733
|
+
*/
|
|
144
734
|
registerReferrer(params: RegisterReferrerParameters, opts?: RegisterReferrerOptions): Promise<RegisterReferrerSuccessResponse>;
|
|
145
|
-
/**
|
|
735
|
+
/**
|
|
736
|
+
* Reserve additional rate-limited actions for a fee.
|
|
737
|
+
*
|
|
738
|
+
* @param params - Parameters specific to the API request.
|
|
739
|
+
* @param opts - Request execution options.
|
|
740
|
+
*
|
|
741
|
+
* @returns Successful response without specific data.
|
|
742
|
+
*
|
|
743
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
744
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
745
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
746
|
+
*
|
|
747
|
+
* @example
|
|
748
|
+
* ```ts
|
|
749
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
750
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
751
|
+
*
|
|
752
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
753
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
754
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
755
|
+
*
|
|
756
|
+
* await client.reserveRequestWeight({ weight: 10 });
|
|
757
|
+
* ```
|
|
758
|
+
*
|
|
759
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#reserve-additional-actions
|
|
760
|
+
*/
|
|
146
761
|
reserveRequestWeight(params: ReserveRequestWeightParameters, opts?: ReserveRequestWeightOptions): Promise<ReserveRequestWeightSuccessResponse>;
|
|
147
|
-
/**
|
|
762
|
+
/**
|
|
763
|
+
* Schedule a cancel-all operation at a future time.
|
|
764
|
+
*
|
|
765
|
+
* @param params - Parameters specific to the API request.
|
|
766
|
+
* @param opts - Request execution options.
|
|
767
|
+
*
|
|
768
|
+
* @returns Successful response without specific data.
|
|
769
|
+
*
|
|
770
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
771
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
772
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
773
|
+
*
|
|
774
|
+
* @example
|
|
775
|
+
* ```ts
|
|
776
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
777
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
778
|
+
*
|
|
779
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
780
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
781
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
782
|
+
*
|
|
783
|
+
* await client.scheduleCancel({ time: Date.now() + 10_000 });
|
|
784
|
+
* ```
|
|
785
|
+
*
|
|
786
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#schedule-cancel-dead-mans-switch
|
|
787
|
+
*/
|
|
148
788
|
scheduleCancel(params?: ScheduleCancelParameters, opts?: ScheduleCancelOptions): Promise<ScheduleCancelSuccessResponse>;
|
|
149
789
|
scheduleCancel(opts?: ScheduleCancelOptions): Promise<ScheduleCancelSuccessResponse>;
|
|
150
|
-
/**
|
|
790
|
+
/**
|
|
791
|
+
* Transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts.
|
|
792
|
+
*
|
|
793
|
+
* @param params - Parameters specific to the API request.
|
|
794
|
+
* @param opts - Request execution options.
|
|
795
|
+
*
|
|
796
|
+
* @returns Successful response without specific data.
|
|
797
|
+
*
|
|
798
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
799
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
800
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
801
|
+
*
|
|
802
|
+
* @example
|
|
803
|
+
* ```ts
|
|
804
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
805
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
806
|
+
*
|
|
807
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
808
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
809
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
810
|
+
*
|
|
811
|
+
* await client.sendAsset({ destination: "0x0000000000000000000000000000000000000001", sourceDex: "", destinationDex: "test", token: "USDC:0xeb62eee3685fc4c43992febcd9e75443", amount: "1" });
|
|
812
|
+
* ```
|
|
813
|
+
*
|
|
814
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#send-asset
|
|
815
|
+
*/
|
|
151
816
|
sendAsset(params: SendAssetParameters, opts?: SendAssetOptions): Promise<SendAssetSuccessResponse>;
|
|
152
|
-
/**
|
|
817
|
+
/**
|
|
818
|
+
* Set the display name in the leaderboard.
|
|
819
|
+
*
|
|
820
|
+
* @param params - Parameters specific to the API request.
|
|
821
|
+
* @param opts - Request execution options.
|
|
822
|
+
*
|
|
823
|
+
* @returns Successful response without specific data.
|
|
824
|
+
*
|
|
825
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
826
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
827
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
828
|
+
*
|
|
829
|
+
* @example
|
|
830
|
+
* ```ts
|
|
831
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
832
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
833
|
+
*
|
|
834
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
835
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
836
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
837
|
+
*
|
|
838
|
+
* await client.setDisplayName({ displayName: "..." });
|
|
839
|
+
* ```
|
|
840
|
+
*/
|
|
153
841
|
setDisplayName(params: SetDisplayNameParameters, opts?: SetDisplayNameOptions): Promise<SetDisplayNameSuccessResponse>;
|
|
154
|
-
/**
|
|
842
|
+
/**
|
|
843
|
+
* Set a referral code.
|
|
844
|
+
*
|
|
845
|
+
* @param params - Parameters specific to the API request.
|
|
846
|
+
* @param opts - Request execution options.
|
|
847
|
+
*
|
|
848
|
+
* @returns Successful response without specific data.
|
|
849
|
+
*
|
|
850
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
851
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
852
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
853
|
+
*
|
|
854
|
+
* @example
|
|
855
|
+
* ```ts
|
|
856
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
857
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
858
|
+
*
|
|
859
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
860
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
861
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
862
|
+
*
|
|
863
|
+
* await client.setReferrer({ code: "..." });
|
|
864
|
+
* ```
|
|
865
|
+
*/
|
|
155
866
|
setReferrer(params: SetReferrerParameters, opts?: SetReferrerOptions): Promise<SetReferrerSuccessResponse>;
|
|
156
|
-
/**
|
|
867
|
+
/**
|
|
868
|
+
* Deploying HIP-1 and HIP-2 assets.
|
|
869
|
+
*
|
|
870
|
+
* @param params - Parameters specific to the API request.
|
|
871
|
+
* @param opts - Request execution options.
|
|
872
|
+
*
|
|
873
|
+
* @returns Successful response without specific data.
|
|
874
|
+
*
|
|
875
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
876
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
877
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
878
|
+
*
|
|
879
|
+
* @example
|
|
880
|
+
* ```ts
|
|
881
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
882
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
883
|
+
*
|
|
884
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
885
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
886
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
887
|
+
*
|
|
888
|
+
* await client.spotDeploy({ registerToken2: { spec: { name: "USDC", szDecimals: 8, weiDecimals: 8 }, maxGas: 1000000, fullName: "USD Coin" } });
|
|
889
|
+
* ```
|
|
890
|
+
*
|
|
891
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/deploying-hip-1-and-hip-2-assets
|
|
892
|
+
*/
|
|
157
893
|
spotDeploy(params: SpotDeployParameters, opts?: SpotDeployOptions): Promise<SpotDeploySuccessResponse>;
|
|
158
|
-
/**
|
|
894
|
+
/**
|
|
895
|
+
* Send spot assets to another address.
|
|
896
|
+
*
|
|
897
|
+
* @param params - Parameters specific to the API request.
|
|
898
|
+
* @param opts - Request execution options.
|
|
899
|
+
*
|
|
900
|
+
* @returns Successful response without specific data.
|
|
901
|
+
*
|
|
902
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
903
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
904
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
905
|
+
*
|
|
906
|
+
* @example
|
|
907
|
+
* ```ts
|
|
908
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
909
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
910
|
+
*
|
|
911
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
912
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
913
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
914
|
+
*
|
|
915
|
+
* await client.spotSend({ destination: "0x...", token: "USDC:0xeb62eee3685fc4c43992febcd9e75443", amount: "1" });
|
|
916
|
+
* ```
|
|
917
|
+
*
|
|
918
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-spot-transfer
|
|
919
|
+
*/
|
|
159
920
|
spotSend(params: SpotSendParameters, opts?: SpotSendOptions): Promise<SpotSendSuccessResponse>;
|
|
160
|
-
/**
|
|
921
|
+
/**
|
|
922
|
+
* Opt Out of Spot Dusting.
|
|
923
|
+
*
|
|
924
|
+
* @param params - Parameters specific to the API request.
|
|
925
|
+
* @param opts - Request execution options.
|
|
926
|
+
*
|
|
927
|
+
* @returns Successful response without specific data.
|
|
928
|
+
*
|
|
929
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
930
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
931
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
932
|
+
*
|
|
933
|
+
* @example
|
|
934
|
+
* ```ts
|
|
935
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
936
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
937
|
+
*
|
|
938
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
939
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
940
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
941
|
+
*
|
|
942
|
+
* await client.spotUser({ toggleSpotDusting: { optOut: false } });
|
|
943
|
+
* ```
|
|
944
|
+
*/
|
|
161
945
|
spotUser(params: SpotUserParameters, opts?: SpotUserOptions): Promise<SpotUserSuccessResponse>;
|
|
162
|
-
/**
|
|
946
|
+
/**
|
|
947
|
+
* Modify a sub-account.
|
|
948
|
+
*
|
|
949
|
+
* @param params - Parameters specific to the API request.
|
|
950
|
+
* @param opts - Request execution options.
|
|
951
|
+
*
|
|
952
|
+
* @returns Successful response without specific data.
|
|
953
|
+
*
|
|
954
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
955
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
956
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
957
|
+
*
|
|
958
|
+
* @example
|
|
959
|
+
* ```ts
|
|
960
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
961
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
962
|
+
*
|
|
963
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
964
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
965
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
966
|
+
*
|
|
967
|
+
* await client.subAccountModify({ subAccountUser: "0x...", name: "..." });
|
|
968
|
+
* ```
|
|
969
|
+
*/
|
|
163
970
|
subAccountModify(params: SubAccountModifyParameters, opts?: SubAccountModifyOptions): Promise<SubAccountModifySuccessResponse>;
|
|
164
|
-
/**
|
|
971
|
+
/**
|
|
972
|
+
* Transfer between sub-accounts (spot).
|
|
973
|
+
*
|
|
974
|
+
* @param params - Parameters specific to the API request.
|
|
975
|
+
* @param opts - Request execution options.
|
|
976
|
+
*
|
|
977
|
+
* @returns Successful response without specific data.
|
|
978
|
+
*
|
|
979
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
980
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
981
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
982
|
+
*
|
|
983
|
+
* @example
|
|
984
|
+
* ```ts
|
|
985
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
986
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
987
|
+
*
|
|
988
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
989
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
990
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
991
|
+
*
|
|
992
|
+
* await client.subAccountSpotTransfer({ subAccountUser: "0x...", isDeposit: true, token: "USDC:0xeb62eee3685fc4c43992febcd9e75443", amount: "1" });
|
|
993
|
+
* ```
|
|
994
|
+
*/
|
|
165
995
|
subAccountSpotTransfer(params: SubAccountSpotTransferParameters, opts?: SubAccountSpotTransferOptions): Promise<SubAccountSpotTransferSuccessResponse>;
|
|
166
|
-
/**
|
|
996
|
+
/**
|
|
997
|
+
* Transfer between sub-accounts (perpetual).
|
|
998
|
+
*
|
|
999
|
+
* @param params - Parameters specific to the API request.
|
|
1000
|
+
* @param opts - Request execution options.
|
|
1001
|
+
*
|
|
1002
|
+
* @returns Successful response without specific data.
|
|
1003
|
+
*
|
|
1004
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1005
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1006
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1007
|
+
*
|
|
1008
|
+
* @example
|
|
1009
|
+
* ```ts
|
|
1010
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1011
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1012
|
+
*
|
|
1013
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1014
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1015
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1016
|
+
*
|
|
1017
|
+
* await client.subAccountTransfer({ subAccountUser: "0x...", isDeposit: true, usd: 1 * 1e6 });
|
|
1018
|
+
* ```
|
|
1019
|
+
*/
|
|
167
1020
|
subAccountTransfer(params: SubAccountTransferParameters, opts?: SubAccountTransferOptions): Promise<SubAccountTransferSuccessResponse>;
|
|
168
|
-
/**
|
|
1021
|
+
/**
|
|
1022
|
+
* Delegate or undelegate native tokens to or from a validator.
|
|
1023
|
+
*
|
|
1024
|
+
* @param params - Parameters specific to the API request.
|
|
1025
|
+
* @param opts - Request execution options.
|
|
1026
|
+
*
|
|
1027
|
+
* @returns Successful response without specific data.
|
|
1028
|
+
*
|
|
1029
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1030
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1031
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1032
|
+
*
|
|
1033
|
+
* @example
|
|
1034
|
+
* ```ts
|
|
1035
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1036
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1037
|
+
*
|
|
1038
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1039
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1040
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1041
|
+
*
|
|
1042
|
+
* await client.tokenDelegate({ validator: "0x...", isUndelegate: true, wei: 1 * 1e8 });
|
|
1043
|
+
* ```
|
|
1044
|
+
*
|
|
1045
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#delegate-or-undelegate-stake-from-validator
|
|
1046
|
+
*/
|
|
169
1047
|
tokenDelegate(params: TokenDelegateParameters, opts?: TokenDelegateOptions): Promise<TokenDelegateSuccessResponse>;
|
|
170
|
-
/**
|
|
1048
|
+
/**
|
|
1049
|
+
* Cancel a TWAP order.
|
|
1050
|
+
*
|
|
1051
|
+
* @param params - Parameters specific to the API request.
|
|
1052
|
+
* @param opts - Request execution options.
|
|
1053
|
+
*
|
|
1054
|
+
* @returns Successful variant of {@link TwapCancelResponse} without error status.
|
|
1055
|
+
*
|
|
1056
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1057
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1058
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1059
|
+
*
|
|
1060
|
+
* @example
|
|
1061
|
+
* ```ts
|
|
1062
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1063
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1064
|
+
*
|
|
1065
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1066
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1067
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1068
|
+
*
|
|
1069
|
+
* const data = await client.twapCancel({ a: 0, t: 1 });
|
|
1070
|
+
* ```
|
|
1071
|
+
*
|
|
1072
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-a-twap-order
|
|
1073
|
+
*/
|
|
171
1074
|
twapCancel(params: TwapCancelParameters, opts?: TwapCancelOptions): Promise<TwapCancelSuccessResponse>;
|
|
172
|
-
/**
|
|
1075
|
+
/**
|
|
1076
|
+
* Place a TWAP order.
|
|
1077
|
+
*
|
|
1078
|
+
* @param params - Parameters specific to the API request.
|
|
1079
|
+
* @param opts - Request execution options.
|
|
1080
|
+
*
|
|
1081
|
+
* @returns Successful variant of {@link TwapOrderResponse} without error status.
|
|
1082
|
+
*
|
|
1083
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1084
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1085
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1086
|
+
*
|
|
1087
|
+
* @example
|
|
1088
|
+
* ```ts
|
|
1089
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1090
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1091
|
+
*
|
|
1092
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1093
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1094
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1095
|
+
*
|
|
1096
|
+
* const data = await client.twapOrder({ twap: { a: 0, b: true, s: "1", r: false, m: 10, t: true } });
|
|
1097
|
+
* ```
|
|
1098
|
+
*
|
|
1099
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-a-twap-order
|
|
1100
|
+
*/
|
|
173
1101
|
twapOrder(params: TwapOrderParameters, opts?: TwapOrderOptions): Promise<TwapOrderSuccessResponse>;
|
|
174
|
-
/**
|
|
1102
|
+
/**
|
|
1103
|
+
* Add or remove margin from isolated position.
|
|
1104
|
+
*
|
|
1105
|
+
* @param params - Parameters specific to the API request.
|
|
1106
|
+
* @param opts - Request execution options.
|
|
1107
|
+
*
|
|
1108
|
+
* @returns Successful response without specific data.
|
|
1109
|
+
*
|
|
1110
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1111
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1112
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1113
|
+
*
|
|
1114
|
+
* @example
|
|
1115
|
+
* ```ts
|
|
1116
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1117
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1118
|
+
*
|
|
1119
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1120
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1121
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1122
|
+
*
|
|
1123
|
+
* await client.updateIsolatedMargin({ asset: 0, isBuy: true, ntli: 1 * 1e6 });
|
|
1124
|
+
* ```
|
|
1125
|
+
*
|
|
1126
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-isolated-margin
|
|
1127
|
+
*/
|
|
175
1128
|
updateIsolatedMargin(params: UpdateIsolatedMarginParameters, opts?: UpdateIsolatedMarginOptions): Promise<UpdateIsolatedMarginSuccessResponse>;
|
|
176
|
-
/**
|
|
1129
|
+
/**
|
|
1130
|
+
* Update cross or isolated leverage on a coin.
|
|
1131
|
+
*
|
|
1132
|
+
* @param params - Parameters specific to the API request.
|
|
1133
|
+
* @param opts - Request execution options.
|
|
1134
|
+
*
|
|
1135
|
+
* @returns Successful response without specific data.
|
|
1136
|
+
*
|
|
1137
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1138
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1139
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1140
|
+
*
|
|
1141
|
+
* @example
|
|
1142
|
+
* ```ts
|
|
1143
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1144
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1145
|
+
*
|
|
1146
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1147
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1148
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1149
|
+
*
|
|
1150
|
+
* await client.updateLeverage({ asset: 0, isCross: true, leverage: 5 });
|
|
1151
|
+
* ```
|
|
1152
|
+
*
|
|
1153
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-leverage
|
|
1154
|
+
*/
|
|
177
1155
|
updateLeverage(params: UpdateLeverageParameters, opts?: UpdateLeverageOptions): Promise<UpdateLeverageSuccessResponse>;
|
|
178
|
-
/**
|
|
1156
|
+
/**
|
|
1157
|
+
* Transfer funds between Spot account and Perp account.
|
|
1158
|
+
*
|
|
1159
|
+
* @param params - Parameters specific to the API request.
|
|
1160
|
+
* @param opts - Request execution options.
|
|
1161
|
+
*
|
|
1162
|
+
* @returns Successful response without specific data.
|
|
1163
|
+
*
|
|
1164
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1165
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1166
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1167
|
+
*
|
|
1168
|
+
* @example
|
|
1169
|
+
* ```ts
|
|
1170
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1171
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1172
|
+
*
|
|
1173
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1174
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1175
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1176
|
+
*
|
|
1177
|
+
* await client.usdClassTransfer({ amount: "1", toPerp: true });
|
|
1178
|
+
* ```
|
|
1179
|
+
*
|
|
1180
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#transfer-from-spot-account-to-perp-account-and-vice-versa
|
|
1181
|
+
*/
|
|
179
1182
|
usdClassTransfer(params: UsdClassTransferParameters, opts?: UsdClassTransferOptions): Promise<UsdClassTransferSuccessResponse>;
|
|
180
|
-
/**
|
|
1183
|
+
/**
|
|
1184
|
+
* Send usd to another address.
|
|
1185
|
+
*
|
|
1186
|
+
* @param params - Parameters specific to the API request.
|
|
1187
|
+
* @param opts - Request execution options.
|
|
1188
|
+
*
|
|
1189
|
+
* @returns Successful response without specific data.
|
|
1190
|
+
*
|
|
1191
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1192
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1193
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1194
|
+
*
|
|
1195
|
+
* @example
|
|
1196
|
+
* ```ts
|
|
1197
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1198
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1199
|
+
*
|
|
1200
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1201
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1202
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1203
|
+
*
|
|
1204
|
+
* await client.usdSend({ destination: "0x...", amount: "1" });
|
|
1205
|
+
* ```
|
|
1206
|
+
*
|
|
1207
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-usdc-transfer
|
|
1208
|
+
*/
|
|
181
1209
|
usdSend(params: UsdSendParameters, opts?: UsdSendOptions): Promise<UsdSendSuccessResponse>;
|
|
182
|
-
/**
|
|
1210
|
+
/**
|
|
1211
|
+
* Enable/disable HIP-3 DEX abstraction.
|
|
1212
|
+
*
|
|
1213
|
+
* @deprecated Use {@link userSetAbstraction} instead.
|
|
1214
|
+
*
|
|
1215
|
+
* @param params - Parameters specific to the API request.
|
|
1216
|
+
* @param opts - Request execution options.
|
|
1217
|
+
*
|
|
1218
|
+
* @returns Successful response without specific data.
|
|
1219
|
+
*
|
|
1220
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1221
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1222
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1223
|
+
*
|
|
1224
|
+
* @example
|
|
1225
|
+
* ```ts
|
|
1226
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1227
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1228
|
+
*
|
|
1229
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1230
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1231
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1232
|
+
*
|
|
1233
|
+
* await client.userDexAbstraction({ user: "0x...", enabled: true });
|
|
1234
|
+
* ```
|
|
1235
|
+
*
|
|
1236
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction
|
|
1237
|
+
*/
|
|
183
1238
|
userDexAbstraction(params: UserDexAbstractionParameters, opts?: UserDexAbstractionOptions): Promise<UserDexAbstractionSuccessResponse>;
|
|
184
|
-
/**
|
|
1239
|
+
/**
|
|
1240
|
+
* Set User abstraction mode.
|
|
1241
|
+
*
|
|
1242
|
+
* @param params - Parameters specific to the API request.
|
|
1243
|
+
* @param opts - Request execution options.
|
|
1244
|
+
*
|
|
1245
|
+
* @returns Successful response without specific data.
|
|
1246
|
+
*
|
|
1247
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1248
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1249
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1250
|
+
*
|
|
1251
|
+
* @example
|
|
1252
|
+
* ```ts
|
|
1253
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1254
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1255
|
+
*
|
|
1256
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1257
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1258
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1259
|
+
*
|
|
1260
|
+
* await client.userSetAbstraction({ user: "0x...", abstraction: "dexAbstraction" });
|
|
1261
|
+
* ```
|
|
1262
|
+
*
|
|
1263
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#set-user-abstraction
|
|
1264
|
+
*/
|
|
1265
|
+
userSetAbstraction(params: UserSetAbstractionParameters, opts?: UserSetAbstractionOptions): Promise<UserSetAbstractionSuccessResponse>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Enable/disable user portfolio margin.
|
|
1268
|
+
*
|
|
1269
|
+
* @param params - Parameters specific to the API request.
|
|
1270
|
+
* @param opts - Request execution options.
|
|
1271
|
+
*
|
|
1272
|
+
* @returns Successful response without specific data.
|
|
1273
|
+
*
|
|
1274
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1275
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1276
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1277
|
+
*
|
|
1278
|
+
* @example
|
|
1279
|
+
* ```ts
|
|
1280
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1281
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1282
|
+
*
|
|
1283
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1284
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1285
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1286
|
+
*
|
|
1287
|
+
* await client.userPortfolioMargin({ user: "0x...", enabled: true });
|
|
1288
|
+
* ```
|
|
1289
|
+
*
|
|
1290
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
|
|
1291
|
+
*/
|
|
185
1292
|
userPortfolioMargin(params: UserPortfolioMarginParameters, opts?: UserPortfolioMarginOptions): Promise<UserPortfolioMarginSuccessResponse>;
|
|
186
|
-
/**
|
|
1293
|
+
/**
|
|
1294
|
+
* Validator vote on risk-free rate for aligned quote asset.
|
|
1295
|
+
*
|
|
1296
|
+
* @param params - Parameters specific to the API request.
|
|
1297
|
+
* @param opts - Request execution options.
|
|
1298
|
+
*
|
|
1299
|
+
* @returns Successful response without specific data.
|
|
1300
|
+
*
|
|
1301
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1302
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1303
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1304
|
+
*
|
|
1305
|
+
* @example
|
|
1306
|
+
* ```ts
|
|
1307
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1308
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1309
|
+
*
|
|
1310
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1311
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1312
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1313
|
+
*
|
|
1314
|
+
* await client.validatorL1Stream({ riskFreeRate: "0.05" });
|
|
1315
|
+
* ```
|
|
1316
|
+
*
|
|
1317
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#validator-vote-on-risk-free-rate-for-aligned-quote-asset
|
|
1318
|
+
*/
|
|
187
1319
|
validatorL1Stream(params: ValidatorL1StreamParameters, opts?: ValidatorL1StreamOptions): Promise<ValidatorL1StreamSuccessResponse>;
|
|
188
|
-
/**
|
|
1320
|
+
/**
|
|
1321
|
+
* Distribute funds from a vault between followers.
|
|
1322
|
+
*
|
|
1323
|
+
* @param params - Parameters specific to the API request.
|
|
1324
|
+
* @param opts - Request execution options.
|
|
1325
|
+
*
|
|
1326
|
+
* @returns Successful response without specific data.
|
|
1327
|
+
*
|
|
1328
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1329
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1330
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1331
|
+
*
|
|
1332
|
+
* @example
|
|
1333
|
+
* ```ts
|
|
1334
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1335
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1336
|
+
*
|
|
1337
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1338
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1339
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1340
|
+
*
|
|
1341
|
+
* await client.vaultDistribute({ vaultAddress: "0x...", usd: 10 * 1e6 });
|
|
1342
|
+
* ```
|
|
1343
|
+
*/
|
|
189
1344
|
vaultDistribute(params: VaultDistributeParameters, opts?: VaultDistributeOptions): Promise<VaultDistributeSuccessResponse>;
|
|
190
|
-
/**
|
|
1345
|
+
/**
|
|
1346
|
+
* Modify a vault's configuration.
|
|
1347
|
+
*
|
|
1348
|
+
* @param params - Parameters specific to the API request.
|
|
1349
|
+
* @param opts - Request execution options.
|
|
1350
|
+
*
|
|
1351
|
+
* @returns Successful response without specific data.
|
|
1352
|
+
*
|
|
1353
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1354
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1355
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1356
|
+
*
|
|
1357
|
+
* @example
|
|
1358
|
+
* ```ts
|
|
1359
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1360
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1361
|
+
*
|
|
1362
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1363
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1364
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1365
|
+
*
|
|
1366
|
+
* await client.vaultModify({ vaultAddress: "0x...", allowDeposits: true, alwaysCloseOnWithdraw: false });
|
|
1367
|
+
* ```
|
|
1368
|
+
*/
|
|
191
1369
|
vaultModify(params: VaultModifyParameters, opts?: VaultModifyOptions): Promise<VaultModifySuccessResponse>;
|
|
192
|
-
/**
|
|
1370
|
+
/**
|
|
1371
|
+
* Deposit or withdraw from a vault.
|
|
1372
|
+
*
|
|
1373
|
+
* @param params - Parameters specific to the API request.
|
|
1374
|
+
* @param opts - Request execution options.
|
|
1375
|
+
*
|
|
1376
|
+
* @returns Successful response without specific data.
|
|
1377
|
+
*
|
|
1378
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1379
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1380
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1381
|
+
*
|
|
1382
|
+
* @example
|
|
1383
|
+
* ```ts
|
|
1384
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1385
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1386
|
+
*
|
|
1387
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1388
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1389
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1390
|
+
*
|
|
1391
|
+
* await client.vaultTransfer({ vaultAddress: "0x...", isDeposit: true, usd: 10 * 1e6 });
|
|
1392
|
+
* ```
|
|
1393
|
+
*
|
|
1394
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-or-withdraw-from-a-vault
|
|
1395
|
+
*/
|
|
193
1396
|
vaultTransfer(params: VaultTransferParameters, opts?: VaultTransferOptions): Promise<VaultTransferSuccessResponse>;
|
|
194
|
-
/**
|
|
1397
|
+
/**
|
|
1398
|
+
* Initiate a withdrawal request.
|
|
1399
|
+
*
|
|
1400
|
+
* @param params - Parameters specific to the API request.
|
|
1401
|
+
* @param opts - Request execution options.
|
|
1402
|
+
*
|
|
1403
|
+
* @returns Successful response without specific data.
|
|
1404
|
+
*
|
|
1405
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1406
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1407
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1408
|
+
*
|
|
1409
|
+
* @example
|
|
1410
|
+
* ```ts
|
|
1411
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1412
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1413
|
+
*
|
|
1414
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1415
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1416
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1417
|
+
*
|
|
1418
|
+
* await client.withdraw3({ destination: "0x...", amount: "1" });
|
|
1419
|
+
* ```
|
|
1420
|
+
*
|
|
1421
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#initiate-a-withdrawal-request
|
|
1422
|
+
*/
|
|
195
1423
|
withdraw3(params: Withdraw3Parameters, opts?: Withdraw3Options): Promise<Withdraw3SuccessResponse>;
|
|
196
1424
|
}
|
|
197
1425
|
export type { ExchangeMultiSigConfig, ExchangeSingleWalletConfig } from "./_methods/_base/execute.js";
|
|
198
1426
|
export { ApiRequestError } from "./_methods/_base/errors.js";
|
|
199
1427
|
export type { AgentEnableDexAbstractionOptions, AgentEnableDexAbstractionSuccessResponse, } from "./_methods/agentEnableDexAbstraction.js";
|
|
1428
|
+
export type { AgentSetAbstractionOptions, AgentSetAbstractionParameters, AgentSetAbstractionSuccessResponse, } from "./_methods/agentSetAbstraction.js";
|
|
200
1429
|
export type { ApproveAgentOptions, ApproveAgentParameters, ApproveAgentSuccessResponse, } from "./_methods/approveAgent.js";
|
|
201
1430
|
export type { ApproveBuilderFeeOptions, ApproveBuilderFeeParameters, ApproveBuilderFeeSuccessResponse, } from "./_methods/approveBuilderFee.js";
|
|
202
1431
|
export type { BatchModifyOptions, BatchModifyParameters, BatchModifySuccessResponse } from "./_methods/batchModify.js";
|
|
@@ -236,7 +1465,8 @@ export type { UpdateIsolatedMarginOptions, UpdateIsolatedMarginParameters, Updat
|
|
|
236
1465
|
export type { UpdateLeverageOptions, UpdateLeverageParameters, UpdateLeverageSuccessResponse, } from "./_methods/updateLeverage.js";
|
|
237
1466
|
export type { UsdClassTransferOptions, UsdClassTransferParameters, UsdClassTransferSuccessResponse, } from "./_methods/usdClassTransfer.js";
|
|
238
1467
|
export type { UsdSendOptions, UsdSendParameters, UsdSendSuccessResponse } from "./_methods/usdSend.js";
|
|
239
|
-
export type { UserDexAbstractionOptions, UserDexAbstractionParameters, UserDexAbstractionSuccessResponse, } from "./_methods/userDexAbstraction.js";
|
|
1468
|
+
export type { UserDexAbstractionOptions, UserDexAbstractionOptions as UserDexAbstractionExchangeOptions, UserDexAbstractionParameters, UserDexAbstractionParameters as UserDexAbstractionExchangeParameters, UserDexAbstractionSuccessResponse, UserDexAbstractionSuccessResponse as UserDexAbstractionExchangeSuccessResponse, } from "./_methods/userDexAbstraction.js";
|
|
1469
|
+
export type { UserSetAbstractionOptions, UserSetAbstractionParameters, UserSetAbstractionSuccessResponse, } from "./_methods/userSetAbstraction.js";
|
|
240
1470
|
export type { UserPortfolioMarginOptions, UserPortfolioMarginParameters, UserPortfolioMarginSuccessResponse, } from "./_methods/userPortfolioMargin.js";
|
|
241
1471
|
export type { ValidatorL1StreamOptions, ValidatorL1StreamParameters, ValidatorL1StreamSuccessResponse, } from "./_methods/validatorL1Stream.js";
|
|
242
1472
|
export type { VaultDistributeOptions, VaultDistributeParameters, VaultDistributeSuccessResponse, } from "./_methods/vaultDistribute.js";
|