@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
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Methods Imports
|
|
3
3
|
// =============================================================
|
|
4
4
|
import { agentEnableDexAbstraction, } from "./_methods/agentEnableDexAbstraction.js";
|
|
5
|
+
import { agentSetAbstraction, } from "./_methods/agentSetAbstraction.js";
|
|
5
6
|
import { approveAgent, } from "./_methods/approveAgent.js";
|
|
6
7
|
import { approveBuilderFee, } from "./_methods/approveBuilderFee.js";
|
|
7
8
|
import { batchModify, } from "./_methods/batchModify.js";
|
|
@@ -42,6 +43,7 @@ import { updateLeverage, } from "./_methods/updateLeverage.js";
|
|
|
42
43
|
import { usdClassTransfer, } from "./_methods/usdClassTransfer.js";
|
|
43
44
|
import { usdSend, } from "./_methods/usdSend.js";
|
|
44
45
|
import { userDexAbstraction, } from "./_methods/userDexAbstraction.js";
|
|
46
|
+
import { userSetAbstraction, } from "./_methods/userSetAbstraction.js";
|
|
45
47
|
import { userPortfolioMargin, } from "./_methods/userPortfolioMargin.js";
|
|
46
48
|
import { validatorL1Stream, } from "./_methods/validatorL1Stream.js";
|
|
47
49
|
import { vaultDistribute, } from "./_methods/vaultDistribute.js";
|
|
@@ -105,95 +107,710 @@ export class ExchangeClient {
|
|
|
105
107
|
constructor(config) {
|
|
106
108
|
this.config_ = config;
|
|
107
109
|
}
|
|
108
|
-
/**
|
|
110
|
+
/**
|
|
111
|
+
* Enable HIP-3 DEX abstraction.
|
|
112
|
+
*
|
|
113
|
+
* @deprecated Use {@link agentSetAbstraction} instead.
|
|
114
|
+
*
|
|
115
|
+
* @param params - Parameters specific to the API request.
|
|
116
|
+
* @param opts - Request execution options.
|
|
117
|
+
*
|
|
118
|
+
* @returns Successful response without specific data.
|
|
119
|
+
*
|
|
120
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
121
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
122
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```ts
|
|
126
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
127
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
128
|
+
*
|
|
129
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
130
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
131
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
132
|
+
*
|
|
133
|
+
* await client.agentEnableDexAbstraction();
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction-agent
|
|
137
|
+
*/
|
|
109
138
|
agentEnableDexAbstraction(opts) {
|
|
110
139
|
return agentEnableDexAbstraction(this.config_, opts);
|
|
111
140
|
}
|
|
112
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* Set User abstraction mode (method for agent wallet).
|
|
143
|
+
*
|
|
144
|
+
* @param params - Parameters specific to the API request.
|
|
145
|
+
* @param opts - Request execution options.
|
|
146
|
+
*
|
|
147
|
+
* @returns Successful response without specific data.
|
|
148
|
+
*
|
|
149
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
150
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
151
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```ts
|
|
155
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
156
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
157
|
+
*
|
|
158
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
159
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
160
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
161
|
+
*
|
|
162
|
+
* await client.agentSetAbstraction({ abstraction: "u" });
|
|
163
|
+
* ```
|
|
164
|
+
*
|
|
165
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#set-user-abstraction-agent
|
|
166
|
+
*/
|
|
167
|
+
agentSetAbstraction(params, opts) {
|
|
168
|
+
return agentSetAbstraction(this.config_, params, opts);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Approve an agent to sign on behalf of the master account.
|
|
172
|
+
*
|
|
173
|
+
* @param params - Parameters specific to the API request.
|
|
174
|
+
* @param opts - Request execution options.
|
|
175
|
+
*
|
|
176
|
+
* @returns Successful response without specific data.
|
|
177
|
+
*
|
|
178
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
179
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
180
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```ts
|
|
184
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
185
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
186
|
+
*
|
|
187
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
188
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
189
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
190
|
+
*
|
|
191
|
+
* await client.approveAgent({ agentAddress: "0x...", agentName: "myAgent" });
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
194
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-an-api-wallet
|
|
195
|
+
*/
|
|
113
196
|
approveAgent(params, opts) {
|
|
114
197
|
return approveAgent(this.config_, params, opts);
|
|
115
198
|
}
|
|
116
|
-
/**
|
|
199
|
+
/**
|
|
200
|
+
* Approve a maximum fee rate for a builder.
|
|
201
|
+
*
|
|
202
|
+
* @param params - Parameters specific to the API request.
|
|
203
|
+
* @param opts - Request execution options.
|
|
204
|
+
*
|
|
205
|
+
* @returns Successful response without specific data.
|
|
206
|
+
*
|
|
207
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
208
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
209
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```ts
|
|
213
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
214
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
215
|
+
*
|
|
216
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
217
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
218
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
219
|
+
*
|
|
220
|
+
* await client.approveBuilderFee({ maxFeeRate: "0.01%", builder: "0x..." });
|
|
221
|
+
* ```
|
|
222
|
+
*
|
|
223
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-a-builder-fee
|
|
224
|
+
*/
|
|
117
225
|
approveBuilderFee(params, opts) {
|
|
118
226
|
return approveBuilderFee(this.config_, params, opts);
|
|
119
227
|
}
|
|
120
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* Modify multiple orders.
|
|
230
|
+
*
|
|
231
|
+
* @param params - Parameters specific to the API request.
|
|
232
|
+
* @param opts - Request execution options.
|
|
233
|
+
*
|
|
234
|
+
* @returns Successful variant of {@link OrderResponse} without error statuses.
|
|
235
|
+
*
|
|
236
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
237
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
238
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* ```ts
|
|
242
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
243
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
244
|
+
*
|
|
245
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
246
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
247
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
248
|
+
*
|
|
249
|
+
* const data = await client.batchModify({ modifies: [ { oid: 123, order: { a: 0, b: true, p: "31000", s: "0.2", r: false, t: { limit: { tif: "Gtc" } } } }, ] });
|
|
250
|
+
* ```
|
|
251
|
+
*
|
|
252
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-multiple-orders
|
|
253
|
+
*/
|
|
121
254
|
batchModify(params, opts) {
|
|
122
255
|
return batchModify(this.config_, params, opts);
|
|
123
256
|
}
|
|
124
|
-
/**
|
|
257
|
+
/**
|
|
258
|
+
* Borrow or lend assets.
|
|
259
|
+
*
|
|
260
|
+
* @param params - Parameters specific to the API request.
|
|
261
|
+
* @param opts - Request execution options.
|
|
262
|
+
*
|
|
263
|
+
* @returns Successful response without specific data.
|
|
264
|
+
*
|
|
265
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
266
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
267
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* ```ts
|
|
271
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
272
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
273
|
+
*
|
|
274
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
275
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
276
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
277
|
+
*
|
|
278
|
+
* const data = await client.borrowLend({ operation: "supply", token: 0, amount: "20" });
|
|
279
|
+
* ```
|
|
280
|
+
*/
|
|
125
281
|
borrowLend(params, opts) {
|
|
126
282
|
return borrowLend(this.config_, params, opts);
|
|
127
283
|
}
|
|
128
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Cancel order(s).
|
|
286
|
+
*
|
|
287
|
+
* @param params - Parameters specific to the API request.
|
|
288
|
+
* @param opts - Request execution options.
|
|
289
|
+
*
|
|
290
|
+
* @returns Successful variant of {@link CancelResponse} without error statuses.
|
|
291
|
+
*
|
|
292
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
293
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
294
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* ```ts
|
|
298
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
299
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
300
|
+
*
|
|
301
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
302
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
303
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
304
|
+
*
|
|
305
|
+
* const data = await client.cancel({ cancels: [ { a: 0, o: 123 }, ] });
|
|
306
|
+
* ```
|
|
307
|
+
*
|
|
308
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s
|
|
309
|
+
*/
|
|
129
310
|
cancel(params, opts) {
|
|
130
311
|
return cancel(this.config_, params, opts);
|
|
131
312
|
}
|
|
132
|
-
/**
|
|
313
|
+
/**
|
|
314
|
+
* Cancel order(s) by cloid.
|
|
315
|
+
*
|
|
316
|
+
* @param params - Parameters specific to the API request.
|
|
317
|
+
* @param opts - Request execution options.
|
|
318
|
+
*
|
|
319
|
+
* @returns Successful variant of {@link CancelResponse} without error statuses.
|
|
320
|
+
*
|
|
321
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
322
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
323
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
324
|
+
*
|
|
325
|
+
* @example
|
|
326
|
+
* ```ts
|
|
327
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
328
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
329
|
+
*
|
|
330
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
331
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
332
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
333
|
+
*
|
|
334
|
+
* const data = await client.cancelByCloid({ cancels: [ { asset: 0, cloid: "0x..." }, ] });
|
|
335
|
+
* ```
|
|
336
|
+
*
|
|
337
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s-by-cloid
|
|
338
|
+
*/
|
|
133
339
|
cancelByCloid(params, opts) {
|
|
134
340
|
return cancelByCloid(this.config_, params, opts);
|
|
135
341
|
}
|
|
136
|
-
/**
|
|
342
|
+
/**
|
|
343
|
+
* Transfer native token from the user spot account into staking for delegating to validators.
|
|
344
|
+
*
|
|
345
|
+
* @param params - Parameters specific to the API request.
|
|
346
|
+
* @param opts - Request execution options.
|
|
347
|
+
*
|
|
348
|
+
* @returns Successful response without specific data.
|
|
349
|
+
*
|
|
350
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
351
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
352
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
353
|
+
*
|
|
354
|
+
* @example
|
|
355
|
+
* ```ts
|
|
356
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
357
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
358
|
+
*
|
|
359
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
360
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
361
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
362
|
+
*
|
|
363
|
+
* await client.cDeposit({ wei: 1 * 1e8 });
|
|
364
|
+
* ```
|
|
365
|
+
*
|
|
366
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-into-staking
|
|
367
|
+
*/
|
|
137
368
|
cDeposit(params, opts) {
|
|
138
369
|
return cDeposit(this.config_, params, opts);
|
|
139
370
|
}
|
|
140
|
-
/**
|
|
371
|
+
/**
|
|
372
|
+
* Claim rewards from referral program.
|
|
373
|
+
*
|
|
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.claimRewards();
|
|
392
|
+
* ```
|
|
393
|
+
*/
|
|
141
394
|
claimRewards(opts) {
|
|
142
395
|
return claimRewards(this.config_, opts);
|
|
143
396
|
}
|
|
144
|
-
/**
|
|
397
|
+
/**
|
|
398
|
+
* Convert a single-signature account to a multi-signature account or vice versa.
|
|
399
|
+
*
|
|
400
|
+
* @param params - Parameters specific to the API request.
|
|
401
|
+
* @param opts - Request execution options.
|
|
402
|
+
*
|
|
403
|
+
* @returns Successful response without specific data.
|
|
404
|
+
*
|
|
405
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
406
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
407
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
408
|
+
*
|
|
409
|
+
* @example
|
|
410
|
+
* ```ts
|
|
411
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
412
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
413
|
+
*
|
|
414
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
415
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
416
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
417
|
+
*
|
|
418
|
+
* await client.convertToMultiSigUser({ signers: { authorizedUsers: ["0x...", "0x...", "0x..."], threshold: 2 } });
|
|
419
|
+
* ```
|
|
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
|
+
* await client.convertToMultiSigUser({ signers: null });
|
|
431
|
+
* ```
|
|
432
|
+
*
|
|
433
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/multi-sig
|
|
434
|
+
*/
|
|
145
435
|
convertToMultiSigUser(params, opts) {
|
|
146
436
|
return convertToMultiSigUser(this.config_, params, opts);
|
|
147
437
|
}
|
|
148
|
-
/**
|
|
438
|
+
/**
|
|
439
|
+
* Create a sub-account.
|
|
440
|
+
*
|
|
441
|
+
* @param params - Parameters specific to the API request.
|
|
442
|
+
* @param opts - Request execution options.
|
|
443
|
+
*
|
|
444
|
+
* @returns Response for creating a sub-account.
|
|
445
|
+
*
|
|
446
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
447
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
448
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
449
|
+
*
|
|
450
|
+
* @example
|
|
451
|
+
* ```ts
|
|
452
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
453
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
454
|
+
*
|
|
455
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
456
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
457
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
458
|
+
*
|
|
459
|
+
* const data = await client.createSubAccount({ name: "..." });
|
|
460
|
+
* ```
|
|
461
|
+
*/
|
|
149
462
|
createSubAccount(params, opts) {
|
|
150
463
|
return createSubAccount(this.config_, params, opts);
|
|
151
464
|
}
|
|
152
|
-
/**
|
|
465
|
+
/**
|
|
466
|
+
* Create a vault.
|
|
467
|
+
*
|
|
468
|
+
* @param params - Parameters specific to the API request.
|
|
469
|
+
* @param opts - Request execution options.
|
|
470
|
+
*
|
|
471
|
+
* @returns Response for creating a vault.
|
|
472
|
+
*
|
|
473
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
474
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
475
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
476
|
+
*
|
|
477
|
+
* @example
|
|
478
|
+
* ```ts
|
|
479
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
480
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
481
|
+
*
|
|
482
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
483
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
484
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
485
|
+
*
|
|
486
|
+
* const data = await client.createVault({ name: "...", description: "...", initialUsd: 100 * 1e6, nonce: Date.now() });
|
|
487
|
+
* ```
|
|
488
|
+
*/
|
|
153
489
|
createVault(params, opts) {
|
|
154
490
|
return createVault(this.config_, params, opts);
|
|
155
491
|
}
|
|
156
|
-
/**
|
|
492
|
+
/**
|
|
493
|
+
* Jail or unjail self as a validator signer.
|
|
494
|
+
*
|
|
495
|
+
* @param params - Parameters specific to the API request.
|
|
496
|
+
* @param opts - Request execution options.
|
|
497
|
+
*
|
|
498
|
+
* @returns Successful response without specific data.
|
|
499
|
+
*
|
|
500
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
501
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
502
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
503
|
+
*
|
|
504
|
+
* @example
|
|
505
|
+
* ```ts
|
|
506
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
507
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
508
|
+
*
|
|
509
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
510
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
511
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
512
|
+
*
|
|
513
|
+
* await client.cSignerAction({ jailSelf: null });
|
|
514
|
+
* ```
|
|
515
|
+
*
|
|
516
|
+
* @example
|
|
517
|
+
* ```ts
|
|
518
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
519
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
520
|
+
*
|
|
521
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
522
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
523
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
524
|
+
*
|
|
525
|
+
* await client.cSignerAction({ unjailSelf: null });
|
|
526
|
+
* ```
|
|
527
|
+
*/
|
|
157
528
|
cSignerAction(params, opts) {
|
|
158
529
|
return cSignerAction(this.config_, params, opts);
|
|
159
530
|
}
|
|
160
|
-
/**
|
|
531
|
+
/**
|
|
532
|
+
* Action related to validator management.
|
|
533
|
+
*
|
|
534
|
+
* @param params - Parameters specific to the API request.
|
|
535
|
+
* @param opts - Request execution options.
|
|
536
|
+
*
|
|
537
|
+
* @returns Successful response without specific data.
|
|
538
|
+
*
|
|
539
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
540
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
541
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
542
|
+
*
|
|
543
|
+
* @example
|
|
544
|
+
* ```ts
|
|
545
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
546
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
547
|
+
*
|
|
548
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
549
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
550
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
551
|
+
*
|
|
552
|
+
* await client.cValidatorAction({ changeProfile: { node_ip: { Ip: "1.2.3.4" }, name: "...", description: "...", unjailed: true, disable_delegations: false, commission_bps: null, signer: null } });
|
|
553
|
+
* ```
|
|
554
|
+
*/
|
|
161
555
|
cValidatorAction(params, opts) {
|
|
162
556
|
return cValidatorAction(this.config_, params, opts);
|
|
163
557
|
}
|
|
164
|
-
/**
|
|
558
|
+
/**
|
|
559
|
+
* Transfer native token from staking into the user's spot account.
|
|
560
|
+
*
|
|
561
|
+
* @param params - Parameters specific to the API request.
|
|
562
|
+
* @param opts - Request execution options.
|
|
563
|
+
*
|
|
564
|
+
* @returns Successful response without specific data.
|
|
565
|
+
*
|
|
566
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
567
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
568
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
569
|
+
*
|
|
570
|
+
* @example
|
|
571
|
+
* ```ts
|
|
572
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
573
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
574
|
+
*
|
|
575
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
576
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
577
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
578
|
+
*
|
|
579
|
+
* await client.cWithdraw({ wei: 1 * 1e8 });
|
|
580
|
+
* ```
|
|
581
|
+
*
|
|
582
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#withdraw-from-staking
|
|
583
|
+
*/
|
|
165
584
|
cWithdraw(params, opts) {
|
|
166
585
|
return cWithdraw(this.config_, params, opts);
|
|
167
586
|
}
|
|
168
|
-
/**
|
|
587
|
+
/**
|
|
588
|
+
* Configure block type for EVM transactions.
|
|
589
|
+
*
|
|
590
|
+
* @param params - Parameters specific to the API request.
|
|
591
|
+
* @param opts - Request execution options.
|
|
592
|
+
*
|
|
593
|
+
* @returns Successful response without specific data.
|
|
594
|
+
*
|
|
595
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
596
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
597
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
598
|
+
*
|
|
599
|
+
* @example
|
|
600
|
+
* ```ts
|
|
601
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
602
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
603
|
+
*
|
|
604
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
605
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
606
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
607
|
+
*
|
|
608
|
+
* await client.evmUserModify({ usingBigBlocks: true });
|
|
609
|
+
* ```
|
|
610
|
+
*
|
|
611
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/hyperevm/dual-block-architecture
|
|
612
|
+
*/
|
|
169
613
|
evmUserModify(params, opts) {
|
|
170
614
|
return evmUserModify(this.config_, params, opts);
|
|
171
615
|
}
|
|
172
|
-
/**
|
|
616
|
+
/**
|
|
617
|
+
* Link staking and trading accounts for fee discount attribution.
|
|
618
|
+
*
|
|
619
|
+
* @param params - Parameters specific to the API request.
|
|
620
|
+
* @param opts - Request execution options.
|
|
621
|
+
*
|
|
622
|
+
* @returns Successful response without specific data.
|
|
623
|
+
*
|
|
624
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
625
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
626
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
627
|
+
*
|
|
628
|
+
* @example
|
|
629
|
+
* ```ts
|
|
630
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
631
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
632
|
+
*
|
|
633
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
634
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
635
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
636
|
+
*
|
|
637
|
+
* await client.linkStakingUser({ user: "0x...", isFinalize: false });
|
|
638
|
+
* ```
|
|
639
|
+
*
|
|
640
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#staking-linking
|
|
641
|
+
*/
|
|
173
642
|
linkStakingUser(params, opts) {
|
|
174
643
|
return linkStakingUser(this.config_, params, opts);
|
|
175
644
|
}
|
|
176
|
-
/**
|
|
645
|
+
/**
|
|
646
|
+
* Modify an order.
|
|
647
|
+
*
|
|
648
|
+
* @param params - Parameters specific to the API request.
|
|
649
|
+
* @param opts - Request execution options.
|
|
650
|
+
*
|
|
651
|
+
* @returns Successful response without specific data.
|
|
652
|
+
*
|
|
653
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
654
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
655
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
656
|
+
*
|
|
657
|
+
* @example
|
|
658
|
+
* ```ts
|
|
659
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
660
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
661
|
+
*
|
|
662
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
663
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
664
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
665
|
+
*
|
|
666
|
+
* await client.modify({ oid: 123, order: { a: 0, b: true, p: "31000", s: "0.2", r: false, t: { limit: { tif: "Gtc" } }, c: "0x..." } });
|
|
667
|
+
* ```
|
|
668
|
+
*
|
|
669
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-an-order
|
|
670
|
+
*/
|
|
177
671
|
modify(params, opts) {
|
|
178
672
|
return modify(this.config_, params, opts);
|
|
179
673
|
}
|
|
180
|
-
/**
|
|
674
|
+
/**
|
|
675
|
+
* Place an order(s).
|
|
676
|
+
*
|
|
677
|
+
* @param params - Parameters specific to the API request.
|
|
678
|
+
* @param opts - Request execution options.
|
|
679
|
+
*
|
|
680
|
+
* @returns Successful variant of {@link OrderResponse} without error statuses.
|
|
681
|
+
*
|
|
682
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
683
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
684
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
685
|
+
*
|
|
686
|
+
* @example
|
|
687
|
+
* ```ts
|
|
688
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
689
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
690
|
+
*
|
|
691
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
692
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
693
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
694
|
+
*
|
|
695
|
+
* 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" });
|
|
696
|
+
* ```
|
|
697
|
+
*
|
|
698
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order
|
|
699
|
+
*/
|
|
181
700
|
order(params, opts) {
|
|
182
701
|
return order(this.config_, params, opts);
|
|
183
702
|
}
|
|
184
|
-
/**
|
|
703
|
+
/**
|
|
704
|
+
* This action does not do anything (no operation), but causes the nonce to be marked as used.
|
|
705
|
+
*
|
|
706
|
+
* @param params - Parameters specific to the API request.
|
|
707
|
+
* @param opts - Request execution options.
|
|
708
|
+
*
|
|
709
|
+
* @returns Successful response without specific data.
|
|
710
|
+
*
|
|
711
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
712
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
713
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
* ```ts
|
|
717
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
718
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
719
|
+
*
|
|
720
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
721
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
722
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
723
|
+
*
|
|
724
|
+
* await client.noop();
|
|
725
|
+
* ```
|
|
726
|
+
*
|
|
727
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#invalidate-pending-nonce-noop
|
|
728
|
+
*/
|
|
185
729
|
noop(opts) {
|
|
186
730
|
return noop(this.config_, opts);
|
|
187
731
|
}
|
|
188
|
-
/**
|
|
732
|
+
/**
|
|
733
|
+
* Deploying HIP-3 assets.
|
|
734
|
+
*
|
|
735
|
+
* @param params - Parameters specific to the API request.
|
|
736
|
+
* @param opts - Request execution options.
|
|
737
|
+
*
|
|
738
|
+
* @returns Successful response without specific data.
|
|
739
|
+
*
|
|
740
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
741
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
742
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
743
|
+
*
|
|
744
|
+
* @example
|
|
745
|
+
* ```ts
|
|
746
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
747
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
748
|
+
*
|
|
749
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
750
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
751
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
752
|
+
*
|
|
753
|
+
* await client.perpDeploy({ registerAsset: { maxGas: 1000000, assetRequest: { coin: "USDC", szDecimals: 8, oraclePx: "1", marginTableId: 1, onlyIsolated: false }, dex: "test", schema: null } });
|
|
754
|
+
* ```
|
|
755
|
+
*
|
|
756
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/hip-3-deployer-actions
|
|
757
|
+
*/
|
|
189
758
|
perpDeploy(params, opts) {
|
|
190
759
|
return perpDeploy(this.config_, params, opts);
|
|
191
760
|
}
|
|
192
|
-
/**
|
|
761
|
+
/**
|
|
762
|
+
* Create a referral code.
|
|
763
|
+
*
|
|
764
|
+
* @param params - Parameters specific to the API request.
|
|
765
|
+
* @param opts - Request execution options.
|
|
766
|
+
*
|
|
767
|
+
* @returns Successful response without specific data.
|
|
768
|
+
*
|
|
769
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
770
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
771
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
772
|
+
*
|
|
773
|
+
* @example
|
|
774
|
+
* ```ts
|
|
775
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
776
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
777
|
+
*
|
|
778
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
779
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
780
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
781
|
+
*
|
|
782
|
+
* await client.registerReferrer({ code: "..." });
|
|
783
|
+
* ```
|
|
784
|
+
*/
|
|
193
785
|
registerReferrer(params, opts) {
|
|
194
786
|
return registerReferrer(this.config_, params, opts);
|
|
195
787
|
}
|
|
196
|
-
/**
|
|
788
|
+
/**
|
|
789
|
+
* Reserve additional rate-limited actions for a fee.
|
|
790
|
+
*
|
|
791
|
+
* @param params - Parameters specific to the API request.
|
|
792
|
+
* @param opts - Request execution options.
|
|
793
|
+
*
|
|
794
|
+
* @returns Successful response without specific data.
|
|
795
|
+
*
|
|
796
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
797
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
798
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
799
|
+
*
|
|
800
|
+
* @example
|
|
801
|
+
* ```ts
|
|
802
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
803
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
804
|
+
*
|
|
805
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
806
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
807
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
808
|
+
*
|
|
809
|
+
* await client.reserveRequestWeight({ weight: 10 });
|
|
810
|
+
* ```
|
|
811
|
+
*
|
|
812
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#reserve-additional-actions
|
|
813
|
+
*/
|
|
197
814
|
reserveRequestWeight(params, opts) {
|
|
198
815
|
return reserveRequestWeight(this.config_, params, opts);
|
|
199
816
|
}
|
|
@@ -203,95 +820,685 @@ export class ExchangeClient {
|
|
|
203
820
|
const opts = isFirstArgParams ? maybeOpts : paramsOrOpts;
|
|
204
821
|
return scheduleCancel(this.config_, params, opts);
|
|
205
822
|
}
|
|
206
|
-
/**
|
|
823
|
+
/**
|
|
824
|
+
* Transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts.
|
|
825
|
+
*
|
|
826
|
+
* @param params - Parameters specific to the API request.
|
|
827
|
+
* @param opts - Request execution options.
|
|
828
|
+
*
|
|
829
|
+
* @returns Successful response without specific data.
|
|
830
|
+
*
|
|
831
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
832
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
833
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
834
|
+
*
|
|
835
|
+
* @example
|
|
836
|
+
* ```ts
|
|
837
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
838
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
839
|
+
*
|
|
840
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
841
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
842
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
843
|
+
*
|
|
844
|
+
* await client.sendAsset({ destination: "0x0000000000000000000000000000000000000001", sourceDex: "", destinationDex: "test", token: "USDC:0xeb62eee3685fc4c43992febcd9e75443", amount: "1" });
|
|
845
|
+
* ```
|
|
846
|
+
*
|
|
847
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#send-asset
|
|
848
|
+
*/
|
|
207
849
|
sendAsset(params, opts) {
|
|
208
850
|
return sendAsset(this.config_, params, opts);
|
|
209
851
|
}
|
|
210
|
-
/**
|
|
852
|
+
/**
|
|
853
|
+
* Set the display name in the leaderboard.
|
|
854
|
+
*
|
|
855
|
+
* @param params - Parameters specific to the API request.
|
|
856
|
+
* @param opts - Request execution options.
|
|
857
|
+
*
|
|
858
|
+
* @returns Successful response without specific data.
|
|
859
|
+
*
|
|
860
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
861
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
862
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
863
|
+
*
|
|
864
|
+
* @example
|
|
865
|
+
* ```ts
|
|
866
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
867
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
868
|
+
*
|
|
869
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
870
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
871
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
872
|
+
*
|
|
873
|
+
* await client.setDisplayName({ displayName: "..." });
|
|
874
|
+
* ```
|
|
875
|
+
*/
|
|
211
876
|
setDisplayName(params, opts) {
|
|
212
877
|
return setDisplayName(this.config_, params, opts);
|
|
213
878
|
}
|
|
214
|
-
/**
|
|
879
|
+
/**
|
|
880
|
+
* Set a referral code.
|
|
881
|
+
*
|
|
882
|
+
* @param params - Parameters specific to the API request.
|
|
883
|
+
* @param opts - Request execution options.
|
|
884
|
+
*
|
|
885
|
+
* @returns Successful response without specific data.
|
|
886
|
+
*
|
|
887
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
888
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
889
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
890
|
+
*
|
|
891
|
+
* @example
|
|
892
|
+
* ```ts
|
|
893
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
894
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
895
|
+
*
|
|
896
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
897
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
898
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
899
|
+
*
|
|
900
|
+
* await client.setReferrer({ code: "..." });
|
|
901
|
+
* ```
|
|
902
|
+
*/
|
|
215
903
|
setReferrer(params, opts) {
|
|
216
904
|
return setReferrer(this.config_, params, opts);
|
|
217
905
|
}
|
|
218
|
-
/**
|
|
906
|
+
/**
|
|
907
|
+
* Deploying HIP-1 and HIP-2 assets.
|
|
908
|
+
*
|
|
909
|
+
* @param params - Parameters specific to the API request.
|
|
910
|
+
* @param opts - Request execution options.
|
|
911
|
+
*
|
|
912
|
+
* @returns Successful response without specific data.
|
|
913
|
+
*
|
|
914
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
915
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
916
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
917
|
+
*
|
|
918
|
+
* @example
|
|
919
|
+
* ```ts
|
|
920
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
921
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
922
|
+
*
|
|
923
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
924
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
925
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
926
|
+
*
|
|
927
|
+
* await client.spotDeploy({ registerToken2: { spec: { name: "USDC", szDecimals: 8, weiDecimals: 8 }, maxGas: 1000000, fullName: "USD Coin" } });
|
|
928
|
+
* ```
|
|
929
|
+
*
|
|
930
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/deploying-hip-1-and-hip-2-assets
|
|
931
|
+
*/
|
|
219
932
|
spotDeploy(params, opts) {
|
|
220
933
|
return spotDeploy(this.config_, params, opts);
|
|
221
934
|
}
|
|
222
|
-
/**
|
|
935
|
+
/**
|
|
936
|
+
* Send spot assets to another address.
|
|
937
|
+
*
|
|
938
|
+
* @param params - Parameters specific to the API request.
|
|
939
|
+
* @param opts - Request execution options.
|
|
940
|
+
*
|
|
941
|
+
* @returns Successful response without specific data.
|
|
942
|
+
*
|
|
943
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
944
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
945
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
946
|
+
*
|
|
947
|
+
* @example
|
|
948
|
+
* ```ts
|
|
949
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
950
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
951
|
+
*
|
|
952
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
953
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
954
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
955
|
+
*
|
|
956
|
+
* await client.spotSend({ destination: "0x...", token: "USDC:0xeb62eee3685fc4c43992febcd9e75443", amount: "1" });
|
|
957
|
+
* ```
|
|
958
|
+
*
|
|
959
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-spot-transfer
|
|
960
|
+
*/
|
|
223
961
|
spotSend(params, opts) {
|
|
224
962
|
return spotSend(this.config_, params, opts);
|
|
225
963
|
}
|
|
226
|
-
/**
|
|
964
|
+
/**
|
|
965
|
+
* Opt Out of Spot Dusting.
|
|
966
|
+
*
|
|
967
|
+
* @param params - Parameters specific to the API request.
|
|
968
|
+
* @param opts - Request execution options.
|
|
969
|
+
*
|
|
970
|
+
* @returns Successful response without specific data.
|
|
971
|
+
*
|
|
972
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
973
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
974
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
975
|
+
*
|
|
976
|
+
* @example
|
|
977
|
+
* ```ts
|
|
978
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
979
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
980
|
+
*
|
|
981
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
982
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
983
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
984
|
+
*
|
|
985
|
+
* await client.spotUser({ toggleSpotDusting: { optOut: false } });
|
|
986
|
+
* ```
|
|
987
|
+
*/
|
|
227
988
|
spotUser(params, opts) {
|
|
228
989
|
return spotUser(this.config_, params, opts);
|
|
229
990
|
}
|
|
230
|
-
/**
|
|
991
|
+
/**
|
|
992
|
+
* Modify a sub-account.
|
|
993
|
+
*
|
|
994
|
+
* @param params - Parameters specific to the API request.
|
|
995
|
+
* @param opts - Request execution options.
|
|
996
|
+
*
|
|
997
|
+
* @returns Successful response without specific data.
|
|
998
|
+
*
|
|
999
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1000
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1001
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1002
|
+
*
|
|
1003
|
+
* @example
|
|
1004
|
+
* ```ts
|
|
1005
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1006
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1007
|
+
*
|
|
1008
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1009
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1010
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1011
|
+
*
|
|
1012
|
+
* await client.subAccountModify({ subAccountUser: "0x...", name: "..." });
|
|
1013
|
+
* ```
|
|
1014
|
+
*/
|
|
231
1015
|
subAccountModify(params, opts) {
|
|
232
1016
|
return subAccountModify(this.config_, params, opts);
|
|
233
1017
|
}
|
|
234
|
-
/**
|
|
1018
|
+
/**
|
|
1019
|
+
* Transfer between sub-accounts (spot).
|
|
1020
|
+
*
|
|
1021
|
+
* @param params - Parameters specific to the API request.
|
|
1022
|
+
* @param opts - Request execution options.
|
|
1023
|
+
*
|
|
1024
|
+
* @returns Successful response without specific data.
|
|
1025
|
+
*
|
|
1026
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1027
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1028
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1029
|
+
*
|
|
1030
|
+
* @example
|
|
1031
|
+
* ```ts
|
|
1032
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1033
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1034
|
+
*
|
|
1035
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1036
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1037
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1038
|
+
*
|
|
1039
|
+
* await client.subAccountSpotTransfer({ subAccountUser: "0x...", isDeposit: true, token: "USDC:0xeb62eee3685fc4c43992febcd9e75443", amount: "1" });
|
|
1040
|
+
* ```
|
|
1041
|
+
*/
|
|
235
1042
|
subAccountSpotTransfer(params, opts) {
|
|
236
1043
|
return subAccountSpotTransfer(this.config_, params, opts);
|
|
237
1044
|
}
|
|
238
|
-
/**
|
|
1045
|
+
/**
|
|
1046
|
+
* Transfer between sub-accounts (perpetual).
|
|
1047
|
+
*
|
|
1048
|
+
* @param params - Parameters specific to the API request.
|
|
1049
|
+
* @param opts - Request execution options.
|
|
1050
|
+
*
|
|
1051
|
+
* @returns Successful response without specific data.
|
|
1052
|
+
*
|
|
1053
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1054
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1055
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1056
|
+
*
|
|
1057
|
+
* @example
|
|
1058
|
+
* ```ts
|
|
1059
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1060
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1061
|
+
*
|
|
1062
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1063
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1064
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1065
|
+
*
|
|
1066
|
+
* await client.subAccountTransfer({ subAccountUser: "0x...", isDeposit: true, usd: 1 * 1e6 });
|
|
1067
|
+
* ```
|
|
1068
|
+
*/
|
|
239
1069
|
subAccountTransfer(params, opts) {
|
|
240
1070
|
return subAccountTransfer(this.config_, params, opts);
|
|
241
1071
|
}
|
|
242
|
-
/**
|
|
1072
|
+
/**
|
|
1073
|
+
* Delegate or undelegate native tokens to or from a validator.
|
|
1074
|
+
*
|
|
1075
|
+
* @param params - Parameters specific to the API request.
|
|
1076
|
+
* @param opts - Request execution options.
|
|
1077
|
+
*
|
|
1078
|
+
* @returns Successful response without specific data.
|
|
1079
|
+
*
|
|
1080
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1081
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1082
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1083
|
+
*
|
|
1084
|
+
* @example
|
|
1085
|
+
* ```ts
|
|
1086
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1087
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1088
|
+
*
|
|
1089
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1090
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1091
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1092
|
+
*
|
|
1093
|
+
* await client.tokenDelegate({ validator: "0x...", isUndelegate: true, wei: 1 * 1e8 });
|
|
1094
|
+
* ```
|
|
1095
|
+
*
|
|
1096
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#delegate-or-undelegate-stake-from-validator
|
|
1097
|
+
*/
|
|
243
1098
|
tokenDelegate(params, opts) {
|
|
244
1099
|
return tokenDelegate(this.config_, params, opts);
|
|
245
1100
|
}
|
|
246
|
-
/**
|
|
1101
|
+
/**
|
|
1102
|
+
* Cancel a TWAP order.
|
|
1103
|
+
*
|
|
1104
|
+
* @param params - Parameters specific to the API request.
|
|
1105
|
+
* @param opts - Request execution options.
|
|
1106
|
+
*
|
|
1107
|
+
* @returns Successful variant of {@link TwapCancelResponse} without error status.
|
|
1108
|
+
*
|
|
1109
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1110
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1111
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1112
|
+
*
|
|
1113
|
+
* @example
|
|
1114
|
+
* ```ts
|
|
1115
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1116
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1117
|
+
*
|
|
1118
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1119
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1120
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1121
|
+
*
|
|
1122
|
+
* const data = await client.twapCancel({ a: 0, t: 1 });
|
|
1123
|
+
* ```
|
|
1124
|
+
*
|
|
1125
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-a-twap-order
|
|
1126
|
+
*/
|
|
247
1127
|
twapCancel(params, opts) {
|
|
248
1128
|
return twapCancel(this.config_, params, opts);
|
|
249
1129
|
}
|
|
250
|
-
/**
|
|
1130
|
+
/**
|
|
1131
|
+
* Place a TWAP order.
|
|
1132
|
+
*
|
|
1133
|
+
* @param params - Parameters specific to the API request.
|
|
1134
|
+
* @param opts - Request execution options.
|
|
1135
|
+
*
|
|
1136
|
+
* @returns Successful variant of {@link TwapOrderResponse} without error status.
|
|
1137
|
+
*
|
|
1138
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1139
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1140
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1141
|
+
*
|
|
1142
|
+
* @example
|
|
1143
|
+
* ```ts
|
|
1144
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1145
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1146
|
+
*
|
|
1147
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1148
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1149
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1150
|
+
*
|
|
1151
|
+
* const data = await client.twapOrder({ twap: { a: 0, b: true, s: "1", r: false, m: 10, t: true } });
|
|
1152
|
+
* ```
|
|
1153
|
+
*
|
|
1154
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-a-twap-order
|
|
1155
|
+
*/
|
|
251
1156
|
twapOrder(params, opts) {
|
|
252
1157
|
return twapOrder(this.config_, params, opts);
|
|
253
1158
|
}
|
|
254
|
-
/**
|
|
1159
|
+
/**
|
|
1160
|
+
* Add or remove margin from isolated position.
|
|
1161
|
+
*
|
|
1162
|
+
* @param params - Parameters specific to the API request.
|
|
1163
|
+
* @param opts - Request execution options.
|
|
1164
|
+
*
|
|
1165
|
+
* @returns Successful response without specific data.
|
|
1166
|
+
*
|
|
1167
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1168
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1169
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1170
|
+
*
|
|
1171
|
+
* @example
|
|
1172
|
+
* ```ts
|
|
1173
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1174
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1175
|
+
*
|
|
1176
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1177
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1178
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1179
|
+
*
|
|
1180
|
+
* await client.updateIsolatedMargin({ asset: 0, isBuy: true, ntli: 1 * 1e6 });
|
|
1181
|
+
* ```
|
|
1182
|
+
*
|
|
1183
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-isolated-margin
|
|
1184
|
+
*/
|
|
255
1185
|
updateIsolatedMargin(params, opts) {
|
|
256
1186
|
return updateIsolatedMargin(this.config_, params, opts);
|
|
257
1187
|
}
|
|
258
|
-
/**
|
|
1188
|
+
/**
|
|
1189
|
+
* Update cross or isolated leverage on a coin.
|
|
1190
|
+
*
|
|
1191
|
+
* @param params - Parameters specific to the API request.
|
|
1192
|
+
* @param opts - Request execution options.
|
|
1193
|
+
*
|
|
1194
|
+
* @returns Successful response without specific data.
|
|
1195
|
+
*
|
|
1196
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1197
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1198
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1199
|
+
*
|
|
1200
|
+
* @example
|
|
1201
|
+
* ```ts
|
|
1202
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1203
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1204
|
+
*
|
|
1205
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1206
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1207
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1208
|
+
*
|
|
1209
|
+
* await client.updateLeverage({ asset: 0, isCross: true, leverage: 5 });
|
|
1210
|
+
* ```
|
|
1211
|
+
*
|
|
1212
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-leverage
|
|
1213
|
+
*/
|
|
259
1214
|
updateLeverage(params, opts) {
|
|
260
1215
|
return updateLeverage(this.config_, params, opts);
|
|
261
1216
|
}
|
|
262
|
-
/**
|
|
1217
|
+
/**
|
|
1218
|
+
* Transfer funds between Spot account and Perp account.
|
|
1219
|
+
*
|
|
1220
|
+
* @param params - Parameters specific to the API request.
|
|
1221
|
+
* @param opts - Request execution options.
|
|
1222
|
+
*
|
|
1223
|
+
* @returns Successful response without specific data.
|
|
1224
|
+
*
|
|
1225
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1226
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1227
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1228
|
+
*
|
|
1229
|
+
* @example
|
|
1230
|
+
* ```ts
|
|
1231
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1232
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1233
|
+
*
|
|
1234
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1235
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1236
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1237
|
+
*
|
|
1238
|
+
* await client.usdClassTransfer({ amount: "1", toPerp: true });
|
|
1239
|
+
* ```
|
|
1240
|
+
*
|
|
1241
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#transfer-from-spot-account-to-perp-account-and-vice-versa
|
|
1242
|
+
*/
|
|
263
1243
|
usdClassTransfer(params, opts) {
|
|
264
1244
|
return usdClassTransfer(this.config_, params, opts);
|
|
265
1245
|
}
|
|
266
|
-
/**
|
|
1246
|
+
/**
|
|
1247
|
+
* Send usd to another address.
|
|
1248
|
+
*
|
|
1249
|
+
* @param params - Parameters specific to the API request.
|
|
1250
|
+
* @param opts - Request execution options.
|
|
1251
|
+
*
|
|
1252
|
+
* @returns Successful response without specific data.
|
|
1253
|
+
*
|
|
1254
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1255
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1256
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1257
|
+
*
|
|
1258
|
+
* @example
|
|
1259
|
+
* ```ts
|
|
1260
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1261
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1262
|
+
*
|
|
1263
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1264
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1265
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1266
|
+
*
|
|
1267
|
+
* await client.usdSend({ destination: "0x...", amount: "1" });
|
|
1268
|
+
* ```
|
|
1269
|
+
*
|
|
1270
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-usdc-transfer
|
|
1271
|
+
*/
|
|
267
1272
|
usdSend(params, opts) {
|
|
268
1273
|
return usdSend(this.config_, params, opts);
|
|
269
1274
|
}
|
|
270
|
-
/**
|
|
1275
|
+
/**
|
|
1276
|
+
* Enable/disable HIP-3 DEX abstraction.
|
|
1277
|
+
*
|
|
1278
|
+
* @deprecated Use {@link userSetAbstraction} instead.
|
|
1279
|
+
*
|
|
1280
|
+
* @param params - Parameters specific to the API request.
|
|
1281
|
+
* @param opts - Request execution options.
|
|
1282
|
+
*
|
|
1283
|
+
* @returns Successful response without specific data.
|
|
1284
|
+
*
|
|
1285
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1286
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1287
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1288
|
+
*
|
|
1289
|
+
* @example
|
|
1290
|
+
* ```ts
|
|
1291
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1292
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1293
|
+
*
|
|
1294
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1295
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1296
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1297
|
+
*
|
|
1298
|
+
* await client.userDexAbstraction({ user: "0x...", enabled: true });
|
|
1299
|
+
* ```
|
|
1300
|
+
*
|
|
1301
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction
|
|
1302
|
+
*/
|
|
271
1303
|
userDexAbstraction(params, opts) {
|
|
272
1304
|
return userDexAbstraction(this.config_, params, opts);
|
|
273
1305
|
}
|
|
274
|
-
/**
|
|
1306
|
+
/**
|
|
1307
|
+
* Set User abstraction mode.
|
|
1308
|
+
*
|
|
1309
|
+
* @param params - Parameters specific to the API request.
|
|
1310
|
+
* @param opts - Request execution options.
|
|
1311
|
+
*
|
|
1312
|
+
* @returns Successful response without specific data.
|
|
1313
|
+
*
|
|
1314
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1315
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1316
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1317
|
+
*
|
|
1318
|
+
* @example
|
|
1319
|
+
* ```ts
|
|
1320
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1321
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1322
|
+
*
|
|
1323
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1324
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1325
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1326
|
+
*
|
|
1327
|
+
* await client.userSetAbstraction({ user: "0x...", abstraction: "dexAbstraction" });
|
|
1328
|
+
* ```
|
|
1329
|
+
*
|
|
1330
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#set-user-abstraction
|
|
1331
|
+
*/
|
|
1332
|
+
userSetAbstraction(params, opts) {
|
|
1333
|
+
return userSetAbstraction(this.config_, params, opts);
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Enable/disable user portfolio margin.
|
|
1337
|
+
*
|
|
1338
|
+
* @param params - Parameters specific to the API request.
|
|
1339
|
+
* @param opts - Request execution options.
|
|
1340
|
+
*
|
|
1341
|
+
* @returns Successful response without specific data.
|
|
1342
|
+
*
|
|
1343
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1344
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1345
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1346
|
+
*
|
|
1347
|
+
* @example
|
|
1348
|
+
* ```ts
|
|
1349
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1350
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1351
|
+
*
|
|
1352
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1353
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1354
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1355
|
+
*
|
|
1356
|
+
* await client.userPortfolioMargin({ user: "0x...", enabled: true });
|
|
1357
|
+
* ```
|
|
1358
|
+
*
|
|
1359
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
|
|
1360
|
+
*/
|
|
275
1361
|
userPortfolioMargin(params, opts) {
|
|
276
1362
|
return userPortfolioMargin(this.config_, params, opts);
|
|
277
1363
|
}
|
|
278
|
-
/**
|
|
1364
|
+
/**
|
|
1365
|
+
* Validator vote on risk-free rate for aligned quote asset.
|
|
1366
|
+
*
|
|
1367
|
+
* @param params - Parameters specific to the API request.
|
|
1368
|
+
* @param opts - Request execution options.
|
|
1369
|
+
*
|
|
1370
|
+
* @returns Successful response without specific data.
|
|
1371
|
+
*
|
|
1372
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1373
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1374
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1375
|
+
*
|
|
1376
|
+
* @example
|
|
1377
|
+
* ```ts
|
|
1378
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1379
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1380
|
+
*
|
|
1381
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1382
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1383
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1384
|
+
*
|
|
1385
|
+
* await client.validatorL1Stream({ riskFreeRate: "0.05" });
|
|
1386
|
+
* ```
|
|
1387
|
+
*
|
|
1388
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#validator-vote-on-risk-free-rate-for-aligned-quote-asset
|
|
1389
|
+
*/
|
|
279
1390
|
validatorL1Stream(params, opts) {
|
|
280
1391
|
return validatorL1Stream(this.config_, params, opts);
|
|
281
1392
|
}
|
|
282
|
-
/**
|
|
1393
|
+
/**
|
|
1394
|
+
* Distribute funds from a vault between followers.
|
|
1395
|
+
*
|
|
1396
|
+
* @param params - Parameters specific to the API request.
|
|
1397
|
+
* @param opts - Request execution options.
|
|
1398
|
+
*
|
|
1399
|
+
* @returns Successful response without specific data.
|
|
1400
|
+
*
|
|
1401
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1402
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1403
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1404
|
+
*
|
|
1405
|
+
* @example
|
|
1406
|
+
* ```ts
|
|
1407
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1408
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1409
|
+
*
|
|
1410
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1411
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1412
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1413
|
+
*
|
|
1414
|
+
* await client.vaultDistribute({ vaultAddress: "0x...", usd: 10 * 1e6 });
|
|
1415
|
+
* ```
|
|
1416
|
+
*/
|
|
283
1417
|
vaultDistribute(params, opts) {
|
|
284
1418
|
return vaultDistribute(this.config_, params, opts);
|
|
285
1419
|
}
|
|
286
|
-
/**
|
|
1420
|
+
/**
|
|
1421
|
+
* Modify a vault's configuration.
|
|
1422
|
+
*
|
|
1423
|
+
* @param params - Parameters specific to the API request.
|
|
1424
|
+
* @param opts - Request execution options.
|
|
1425
|
+
*
|
|
1426
|
+
* @returns Successful response without specific data.
|
|
1427
|
+
*
|
|
1428
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1429
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1430
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1431
|
+
*
|
|
1432
|
+
* @example
|
|
1433
|
+
* ```ts
|
|
1434
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1435
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1436
|
+
*
|
|
1437
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1438
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1439
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1440
|
+
*
|
|
1441
|
+
* await client.vaultModify({ vaultAddress: "0x...", allowDeposits: true, alwaysCloseOnWithdraw: false });
|
|
1442
|
+
* ```
|
|
1443
|
+
*/
|
|
287
1444
|
vaultModify(params, opts) {
|
|
288
1445
|
return vaultModify(this.config_, params, opts);
|
|
289
1446
|
}
|
|
290
|
-
/**
|
|
1447
|
+
/**
|
|
1448
|
+
* Deposit or withdraw from a vault.
|
|
1449
|
+
*
|
|
1450
|
+
* @param params - Parameters specific to the API request.
|
|
1451
|
+
* @param opts - Request execution options.
|
|
1452
|
+
*
|
|
1453
|
+
* @returns Successful response without specific data.
|
|
1454
|
+
*
|
|
1455
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1456
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1457
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1458
|
+
*
|
|
1459
|
+
* @example
|
|
1460
|
+
* ```ts
|
|
1461
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1462
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1463
|
+
*
|
|
1464
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1465
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1466
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1467
|
+
*
|
|
1468
|
+
* await client.vaultTransfer({ vaultAddress: "0x...", isDeposit: true, usd: 10 * 1e6 });
|
|
1469
|
+
* ```
|
|
1470
|
+
*
|
|
1471
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-or-withdraw-from-a-vault
|
|
1472
|
+
*/
|
|
291
1473
|
vaultTransfer(params, opts) {
|
|
292
1474
|
return vaultTransfer(this.config_, params, opts);
|
|
293
1475
|
}
|
|
294
|
-
/**
|
|
1476
|
+
/**
|
|
1477
|
+
* Initiate a withdrawal request.
|
|
1478
|
+
*
|
|
1479
|
+
* @param params - Parameters specific to the API request.
|
|
1480
|
+
* @param opts - Request execution options.
|
|
1481
|
+
*
|
|
1482
|
+
* @returns Successful response without specific data.
|
|
1483
|
+
*
|
|
1484
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1485
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1486
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1487
|
+
*
|
|
1488
|
+
* @example
|
|
1489
|
+
* ```ts
|
|
1490
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1491
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1492
|
+
*
|
|
1493
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1494
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1495
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1496
|
+
*
|
|
1497
|
+
* await client.withdraw3({ destination: "0x...", amount: "1" });
|
|
1498
|
+
* ```
|
|
1499
|
+
*
|
|
1500
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#initiate-a-withdrawal-request
|
|
1501
|
+
*/
|
|
295
1502
|
withdraw3(params, opts) {
|
|
296
1503
|
return withdraw3(this.config_, params, opts);
|
|
297
1504
|
}
|