@nktkas/hyperliquid 0.26.0 → 0.27.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/README.md +84 -57
- package/bin/cli.ts +1 -0
- package/dist/bin/cli.js +1 -0
- package/dist/bin/cli.js.map +1 -1
- package/dist/src/api/_base.d.ts.map +1 -1
- package/dist/src/api/_base.js +3 -1
- package/dist/src/api/_base.js.map +1 -1
- package/dist/src/api/exchange/_base/_execute.d.ts +10 -0
- package/dist/src/api/exchange/_base/_execute.d.ts.map +1 -1
- package/dist/src/api/exchange/_base/_execute.js +20 -5
- package/dist/src/api/exchange/_base/_execute.js.map +1 -1
- package/dist/src/api/exchange/_base/_nonce.d.ts +4 -10
- package/dist/src/api/exchange/_base/_nonce.d.ts.map +1 -1
- package/dist/src/api/exchange/_base/_nonce.js +10 -1
- package/dist/src/api/exchange/_base/_nonce.js.map +1 -1
- package/dist/src/api/exchange/_base/_types.d.ts +44 -0
- package/dist/src/api/exchange/_base/_types.d.ts.map +1 -1
- package/dist/src/api/exchange/_base/mod.d.ts +0 -1
- package/dist/src/api/exchange/_base/mod.d.ts.map +1 -1
- package/dist/src/api/exchange/_base/mod.js +0 -1
- package/dist/src/api/exchange/_base/mod.js.map +1 -1
- package/dist/src/api/exchange/agentEnableDexAbstraction.d.ts +39 -7
- package/dist/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -1
- package/dist/src/api/exchange/agentEnableDexAbstraction.js +20 -8
- package/dist/src/api/exchange/agentEnableDexAbstraction.js.map +1 -1
- package/dist/src/api/exchange/approveAgent.d.ts +38 -6
- package/dist/src/api/exchange/approveAgent.d.ts.map +1 -1
- package/dist/src/api/exchange/approveAgent.js +18 -6
- package/dist/src/api/exchange/approveAgent.js.map +1 -1
- package/dist/src/api/exchange/approveBuilderFee.d.ts +38 -6
- package/dist/src/api/exchange/approveBuilderFee.d.ts.map +1 -1
- package/dist/src/api/exchange/approveBuilderFee.js +18 -6
- package/dist/src/api/exchange/approveBuilderFee.js.map +1 -1
- package/dist/src/api/exchange/batchModify.d.ts +114 -6
- package/dist/src/api/exchange/batchModify.d.ts.map +1 -1
- package/dist/src/api/exchange/batchModify.js +17 -6
- package/dist/src/api/exchange/batchModify.js.map +1 -1
- package/dist/src/api/exchange/cDeposit.d.ts +38 -6
- package/dist/src/api/exchange/cDeposit.d.ts.map +1 -1
- package/dist/src/api/exchange/cDeposit.js +18 -6
- package/dist/src/api/exchange/cDeposit.js.map +1 -1
- package/dist/src/api/exchange/cSignerAction.d.ts +36 -11
- package/dist/src/api/exchange/cSignerAction.d.ts.map +1 -1
- package/dist/src/api/exchange/cSignerAction.js +16 -11
- package/dist/src/api/exchange/cSignerAction.js.map +1 -1
- package/dist/src/api/exchange/cValidatorAction.d.ts +36 -11
- package/dist/src/api/exchange/cValidatorAction.d.ts.map +1 -1
- package/dist/src/api/exchange/cValidatorAction.js +16 -11
- package/dist/src/api/exchange/cValidatorAction.js.map +1 -1
- package/dist/src/api/exchange/cWithdraw.d.ts +38 -6
- package/dist/src/api/exchange/cWithdraw.d.ts.map +1 -1
- package/dist/src/api/exchange/cWithdraw.js +18 -6
- package/dist/src/api/exchange/cWithdraw.js.map +1 -1
- package/dist/src/api/exchange/cancel.d.ts +9 -35
- package/dist/src/api/exchange/cancel.d.ts.map +1 -1
- package/dist/src/api/exchange/cancel.js +15 -22
- package/dist/src/api/exchange/cancel.js.map +1 -1
- package/dist/src/api/exchange/cancelByCloid.d.ts +46 -6
- package/dist/src/api/exchange/cancelByCloid.d.ts.map +1 -1
- package/dist/src/api/exchange/cancelByCloid.js +17 -6
- package/dist/src/api/exchange/cancelByCloid.js.map +1 -1
- package/dist/src/api/exchange/claimRewards.d.ts +35 -10
- package/dist/src/api/exchange/claimRewards.d.ts.map +1 -1
- package/dist/src/api/exchange/claimRewards.js +16 -11
- package/dist/src/api/exchange/claimRewards.js.map +1 -1
- package/dist/src/api/exchange/convertToMultiSigUser.d.ts +38 -17
- package/dist/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -1
- package/dist/src/api/exchange/convertToMultiSigUser.js +19 -7
- package/dist/src/api/exchange/convertToMultiSigUser.js.map +1 -1
- package/dist/src/api/exchange/createSubAccount.d.ts +23 -10
- package/dist/src/api/exchange/createSubAccount.d.ts.map +1 -1
- package/dist/src/api/exchange/createSubAccount.js +26 -20
- package/dist/src/api/exchange/createSubAccount.js.map +1 -1
- package/dist/src/api/exchange/createVault.d.ts +23 -10
- package/dist/src/api/exchange/createVault.d.ts.map +1 -1
- package/dist/src/api/exchange/createVault.js +26 -20
- package/dist/src/api/exchange/createVault.js.map +1 -1
- package/dist/src/api/exchange/evmUserModify.d.ts +38 -6
- package/dist/src/api/exchange/evmUserModify.d.ts.map +1 -1
- package/dist/src/api/exchange/evmUserModify.js +18 -6
- package/dist/src/api/exchange/evmUserModify.js.map +1 -1
- package/dist/src/api/exchange/linkStakingUser.d.ts +38 -6
- package/dist/src/api/exchange/linkStakingUser.d.ts.map +1 -1
- package/dist/src/api/exchange/linkStakingUser.js +18 -6
- package/dist/src/api/exchange/linkStakingUser.js.map +1 -1
- package/dist/src/api/exchange/modify.d.ts +38 -6
- package/dist/src/api/exchange/modify.d.ts.map +1 -1
- package/dist/src/api/exchange/modify.js +18 -6
- package/dist/src/api/exchange/modify.js.map +1 -1
- package/dist/src/api/exchange/multiSig.d.ts +1362 -12
- package/dist/src/api/exchange/multiSig.d.ts.map +1 -1
- package/dist/src/api/exchange/multiSig.js +99 -45
- package/dist/src/api/exchange/multiSig.js.map +1 -1
- package/dist/src/api/exchange/noop.d.ts +37 -5
- package/dist/src/api/exchange/noop.d.ts.map +1 -1
- package/dist/src/api/exchange/noop.js +18 -6
- package/dist/src/api/exchange/noop.js.map +1 -1
- package/dist/src/api/exchange/order.d.ts +9 -111
- package/dist/src/api/exchange/order.d.ts.map +1 -1
- package/dist/src/api/exchange/order.js +15 -45
- package/dist/src/api/exchange/order.js.map +1 -1
- package/dist/src/api/exchange/perpDeploy.d.ts +38 -6
- package/dist/src/api/exchange/perpDeploy.d.ts.map +1 -1
- package/dist/src/api/exchange/perpDeploy.js +18 -6
- package/dist/src/api/exchange/perpDeploy.js.map +1 -1
- package/dist/src/api/exchange/registerReferrer.d.ts +36 -11
- package/dist/src/api/exchange/registerReferrer.d.ts.map +1 -1
- package/dist/src/api/exchange/registerReferrer.js +16 -11
- package/dist/src/api/exchange/registerReferrer.js.map +1 -1
- package/dist/src/api/exchange/reserveRequestWeight.d.ts +38 -6
- package/dist/src/api/exchange/reserveRequestWeight.d.ts.map +1 -1
- package/dist/src/api/exchange/reserveRequestWeight.js +18 -6
- package/dist/src/api/exchange/reserveRequestWeight.js.map +1 -1
- package/dist/src/api/exchange/scheduleCancel.d.ts +39 -7
- package/dist/src/api/exchange/scheduleCancel.d.ts.map +1 -1
- package/dist/src/api/exchange/scheduleCancel.js +17 -5
- package/dist/src/api/exchange/scheduleCancel.js.map +1 -1
- package/dist/src/api/exchange/sendAsset.d.ts +40 -8
- package/dist/src/api/exchange/sendAsset.d.ts.map +1 -1
- package/dist/src/api/exchange/sendAsset.js +20 -8
- package/dist/src/api/exchange/sendAsset.js.map +1 -1
- package/dist/src/api/exchange/setDisplayName.d.ts +36 -11
- package/dist/src/api/exchange/setDisplayName.d.ts.map +1 -1
- package/dist/src/api/exchange/setDisplayName.js +16 -11
- package/dist/src/api/exchange/setDisplayName.js.map +1 -1
- package/dist/src/api/exchange/setReferrer.d.ts +36 -11
- package/dist/src/api/exchange/setReferrer.d.ts.map +1 -1
- package/dist/src/api/exchange/setReferrer.js +16 -11
- package/dist/src/api/exchange/setReferrer.js.map +1 -1
- package/dist/src/api/exchange/spotDeploy.d.ts +38 -6
- package/dist/src/api/exchange/spotDeploy.d.ts.map +1 -1
- package/dist/src/api/exchange/spotDeploy.js +18 -6
- package/dist/src/api/exchange/spotDeploy.js.map +1 -1
- package/dist/src/api/exchange/spotSend.d.ts +38 -6
- package/dist/src/api/exchange/spotSend.d.ts.map +1 -1
- package/dist/src/api/exchange/spotSend.js +18 -6
- package/dist/src/api/exchange/spotSend.js.map +1 -1
- package/dist/src/api/exchange/spotUser.d.ts +36 -11
- package/dist/src/api/exchange/spotUser.d.ts.map +1 -1
- package/dist/src/api/exchange/spotUser.js +16 -11
- package/dist/src/api/exchange/spotUser.js.map +1 -1
- package/dist/src/api/exchange/subAccountModify.d.ts +36 -11
- package/dist/src/api/exchange/subAccountModify.d.ts.map +1 -1
- package/dist/src/api/exchange/subAccountModify.js +16 -11
- package/dist/src/api/exchange/subAccountModify.js.map +1 -1
- package/dist/src/api/exchange/subAccountSpotTransfer.d.ts +36 -11
- package/dist/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -1
- package/dist/src/api/exchange/subAccountSpotTransfer.js +16 -11
- package/dist/src/api/exchange/subAccountSpotTransfer.js.map +1 -1
- package/dist/src/api/exchange/subAccountTransfer.d.ts +36 -11
- package/dist/src/api/exchange/subAccountTransfer.d.ts.map +1 -1
- package/dist/src/api/exchange/subAccountTransfer.js +16 -11
- package/dist/src/api/exchange/subAccountTransfer.js.map +1 -1
- package/dist/src/api/exchange/tokenDelegate.d.ts +38 -6
- package/dist/src/api/exchange/tokenDelegate.d.ts.map +1 -1
- package/dist/src/api/exchange/tokenDelegate.js +18 -6
- package/dist/src/api/exchange/tokenDelegate.js.map +1 -1
- package/dist/src/api/exchange/twapCancel.d.ts +9 -35
- package/dist/src/api/exchange/twapCancel.d.ts.map +1 -1
- package/dist/src/api/exchange/twapCancel.js +15 -22
- package/dist/src/api/exchange/twapCancel.js.map +1 -1
- package/dist/src/api/exchange/twapOrder.d.ts +9 -59
- package/dist/src/api/exchange/twapOrder.d.ts.map +1 -1
- package/dist/src/api/exchange/twapOrder.js +15 -28
- package/dist/src/api/exchange/twapOrder.js.map +1 -1
- package/dist/src/api/exchange/updateIsolatedMargin.d.ts +38 -6
- package/dist/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -1
- package/dist/src/api/exchange/updateIsolatedMargin.js +18 -6
- package/dist/src/api/exchange/updateIsolatedMargin.js.map +1 -1
- package/dist/src/api/exchange/updateLeverage.d.ts +38 -6
- package/dist/src/api/exchange/updateLeverage.d.ts.map +1 -1
- package/dist/src/api/exchange/updateLeverage.js +18 -6
- package/dist/src/api/exchange/updateLeverage.js.map +1 -1
- package/dist/src/api/exchange/usdClassTransfer.d.ts +38 -6
- package/dist/src/api/exchange/usdClassTransfer.d.ts.map +1 -1
- package/dist/src/api/exchange/usdClassTransfer.js +18 -6
- package/dist/src/api/exchange/usdClassTransfer.js.map +1 -1
- package/dist/src/api/exchange/usdSend.d.ts +38 -6
- package/dist/src/api/exchange/usdSend.d.ts.map +1 -1
- package/dist/src/api/exchange/usdSend.js +18 -6
- package/dist/src/api/exchange/usdSend.js.map +1 -1
- package/dist/src/api/exchange/userDexAbstraction.d.ts +44 -12
- package/dist/src/api/exchange/userDexAbstraction.d.ts.map +1 -1
- package/dist/src/api/exchange/userDexAbstraction.js +22 -10
- package/dist/src/api/exchange/userDexAbstraction.js.map +1 -1
- package/dist/src/api/exchange/validatorL1Stream.d.ts +116 -0
- package/dist/src/api/exchange/validatorL1Stream.d.ts.map +1 -0
- package/dist/src/api/exchange/validatorL1Stream.js +84 -0
- package/dist/src/api/exchange/validatorL1Stream.js.map +1 -0
- package/dist/src/api/exchange/vaultDistribute.d.ts +36 -11
- package/dist/src/api/exchange/vaultDistribute.d.ts.map +1 -1
- package/dist/src/api/exchange/vaultDistribute.js +16 -11
- package/dist/src/api/exchange/vaultDistribute.js.map +1 -1
- package/dist/src/api/exchange/vaultModify.d.ts +36 -11
- package/dist/src/api/exchange/vaultModify.d.ts.map +1 -1
- package/dist/src/api/exchange/vaultModify.js +16 -11
- package/dist/src/api/exchange/vaultModify.js.map +1 -1
- package/dist/src/api/exchange/vaultTransfer.d.ts +38 -6
- package/dist/src/api/exchange/vaultTransfer.d.ts.map +1 -1
- package/dist/src/api/exchange/vaultTransfer.js +18 -6
- package/dist/src/api/exchange/vaultTransfer.js.map +1 -1
- package/dist/src/api/exchange/withdraw3.d.ts +38 -6
- package/dist/src/api/exchange/withdraw3.d.ts.map +1 -1
- package/dist/src/api/exchange/withdraw3.js +18 -6
- package/dist/src/api/exchange/withdraw3.js.map +1 -1
- package/dist/src/api/exchange/~client.d.ts +121 -451
- package/dist/src/api/exchange/~client.d.ts.map +1 -1
- package/dist/src/api/exchange/~client.js +33 -21
- package/dist/src/api/exchange/~client.js.map +1 -1
- package/dist/src/api/exchange/~mod.d.ts +2 -1
- package/dist/src/api/exchange/~mod.d.ts.map +1 -1
- package/dist/src/api/exchange/~mod.js +2 -1
- package/dist/src/api/exchange/~mod.js.map +1 -1
- package/dist/src/api/info/activeAssetData.d.ts +2 -2
- package/dist/src/api/info/activeAssetData.d.ts.map +1 -1
- package/dist/src/api/info/activeAssetData.js +8 -2
- package/dist/src/api/info/activeAssetData.js.map +1 -1
- package/dist/src/api/info/alignedQuoteTokenInfo.d.ts +2 -2
- package/dist/src/api/info/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/dist/src/api/info/alignedQuoteTokenInfo.js +8 -2
- package/dist/src/api/info/alignedQuoteTokenInfo.js.map +1 -1
- package/dist/src/api/info/allMids.d.ts +2 -2
- package/dist/src/api/info/allMids.d.ts.map +1 -1
- package/dist/src/api/info/allMids.js +8 -2
- package/dist/src/api/info/allMids.js.map +1 -1
- package/dist/src/api/info/allPerpMetas.d.ts +1 -1
- package/dist/src/api/info/allPerpMetas.d.ts.map +1 -1
- package/dist/src/api/info/allPerpMetas.js +7 -2
- package/dist/src/api/info/allPerpMetas.js.map +1 -1
- package/dist/src/api/info/blockDetails.d.ts +3 -3
- package/dist/src/api/info/blockDetails.d.ts.map +1 -1
- package/dist/src/api/info/blockDetails.js +8 -2
- package/dist/src/api/info/blockDetails.js.map +1 -1
- package/dist/src/api/info/candleSnapshot.d.ts +2 -2
- package/dist/src/api/info/candleSnapshot.d.ts.map +1 -1
- package/dist/src/api/info/candleSnapshot.js +8 -2
- package/dist/src/api/info/candleSnapshot.js.map +1 -1
- package/dist/src/api/info/clearinghouseState.d.ts +2 -2
- package/dist/src/api/info/clearinghouseState.d.ts.map +1 -1
- package/dist/src/api/info/clearinghouseState.js +8 -2
- package/dist/src/api/info/clearinghouseState.js.map +1 -1
- package/dist/src/api/info/delegations.d.ts +2 -2
- package/dist/src/api/info/delegations.d.ts.map +1 -1
- package/dist/src/api/info/delegations.js +8 -2
- package/dist/src/api/info/delegations.js.map +1 -1
- package/dist/src/api/info/delegatorHistory.d.ts +2 -2
- package/dist/src/api/info/delegatorHistory.d.ts.map +1 -1
- package/dist/src/api/info/delegatorHistory.js +8 -2
- package/dist/src/api/info/delegatorHistory.js.map +1 -1
- package/dist/src/api/info/delegatorRewards.d.ts +2 -2
- package/dist/src/api/info/delegatorRewards.d.ts.map +1 -1
- package/dist/src/api/info/delegatorRewards.js +8 -2
- package/dist/src/api/info/delegatorRewards.js.map +1 -1
- package/dist/src/api/info/delegatorSummary.d.ts +2 -2
- package/dist/src/api/info/delegatorSummary.d.ts.map +1 -1
- package/dist/src/api/info/delegatorSummary.js +8 -2
- package/dist/src/api/info/delegatorSummary.js.map +1 -1
- package/dist/src/api/info/exchangeStatus.d.ts +1 -1
- package/dist/src/api/info/exchangeStatus.d.ts.map +1 -1
- package/dist/src/api/info/exchangeStatus.js +8 -3
- package/dist/src/api/info/exchangeStatus.js.map +1 -1
- package/dist/src/api/info/extraAgents.d.ts +2 -2
- package/dist/src/api/info/extraAgents.d.ts.map +1 -1
- package/dist/src/api/info/extraAgents.js +8 -2
- package/dist/src/api/info/extraAgents.js.map +1 -1
- package/dist/src/api/info/frontendOpenOrders.d.ts +2 -2
- package/dist/src/api/info/frontendOpenOrders.d.ts.map +1 -1
- package/dist/src/api/info/frontendOpenOrders.js +8 -2
- package/dist/src/api/info/frontendOpenOrders.js.map +1 -1
- package/dist/src/api/info/fundingHistory.d.ts +2 -2
- package/dist/src/api/info/fundingHistory.d.ts.map +1 -1
- package/dist/src/api/info/fundingHistory.js +8 -2
- package/dist/src/api/info/fundingHistory.js.map +1 -1
- package/dist/src/api/info/gossipRootIps.d.ts +1 -1
- package/dist/src/api/info/gossipRootIps.d.ts.map +1 -1
- package/dist/src/api/info/gossipRootIps.js +7 -3
- package/dist/src/api/info/gossipRootIps.js.map +1 -1
- package/dist/src/api/info/historicalOrders.d.ts +2 -2
- package/dist/src/api/info/historicalOrders.d.ts.map +1 -1
- package/dist/src/api/info/historicalOrders.js +8 -2
- package/dist/src/api/info/historicalOrders.js.map +1 -1
- package/dist/src/api/info/isVip.d.ts +2 -2
- package/dist/src/api/info/isVip.d.ts.map +1 -1
- package/dist/src/api/info/isVip.js +8 -2
- package/dist/src/api/info/isVip.js.map +1 -1
- package/dist/src/api/info/l2Book.d.ts +2 -2
- package/dist/src/api/info/l2Book.d.ts.map +1 -1
- package/dist/src/api/info/l2Book.js +8 -2
- package/dist/src/api/info/l2Book.js.map +1 -1
- package/dist/src/api/info/leadingVaults.d.ts +2 -2
- package/dist/src/api/info/leadingVaults.d.ts.map +1 -1
- package/dist/src/api/info/leadingVaults.js +8 -2
- package/dist/src/api/info/leadingVaults.js.map +1 -1
- package/dist/src/api/info/legalCheck.d.ts +2 -2
- package/dist/src/api/info/legalCheck.d.ts.map +1 -1
- package/dist/src/api/info/legalCheck.js +8 -2
- package/dist/src/api/info/legalCheck.js.map +1 -1
- package/dist/src/api/info/liquidatable.d.ts +1 -1
- package/dist/src/api/info/liquidatable.d.ts.map +1 -1
- package/dist/src/api/info/liquidatable.js +7 -3
- package/dist/src/api/info/liquidatable.js.map +1 -1
- package/dist/src/api/info/marginTable.d.ts +2 -2
- package/dist/src/api/info/marginTable.d.ts.map +1 -1
- package/dist/src/api/info/marginTable.js +8 -2
- package/dist/src/api/info/marginTable.js.map +1 -1
- package/dist/src/api/info/maxBuilderFee.d.ts +2 -2
- package/dist/src/api/info/maxBuilderFee.d.ts.map +1 -1
- package/dist/src/api/info/maxBuilderFee.js +8 -2
- package/dist/src/api/info/maxBuilderFee.js.map +1 -1
- package/dist/src/api/info/maxMarketOrderNtls.d.ts +1 -1
- package/dist/src/api/info/maxMarketOrderNtls.d.ts.map +1 -1
- package/dist/src/api/info/maxMarketOrderNtls.js +8 -2
- package/dist/src/api/info/maxMarketOrderNtls.js.map +1 -1
- package/dist/src/api/info/meta.d.ts +2 -2
- package/dist/src/api/info/meta.d.ts.map +1 -1
- package/dist/src/api/info/meta.js +8 -2
- package/dist/src/api/info/meta.js.map +1 -1
- package/dist/src/api/info/metaAndAssetCtxs.d.ts +2 -2
- package/dist/src/api/info/metaAndAssetCtxs.d.ts.map +1 -1
- package/dist/src/api/info/metaAndAssetCtxs.js +8 -2
- package/dist/src/api/info/metaAndAssetCtxs.js.map +1 -1
- package/dist/src/api/info/openOrders.d.ts +2 -2
- package/dist/src/api/info/openOrders.d.ts.map +1 -1
- package/dist/src/api/info/openOrders.js +8 -2
- package/dist/src/api/info/openOrders.js.map +1 -1
- package/dist/src/api/info/orderStatus.d.ts +2 -2
- package/dist/src/api/info/orderStatus.d.ts.map +1 -1
- package/dist/src/api/info/orderStatus.js +8 -2
- package/dist/src/api/info/orderStatus.js.map +1 -1
- package/dist/src/api/info/perpDeployAuctionStatus.d.ts +1 -1
- package/dist/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -1
- package/dist/src/api/info/perpDeployAuctionStatus.js +8 -3
- package/dist/src/api/info/perpDeployAuctionStatus.js.map +1 -1
- package/dist/src/api/info/perpDexLimits.d.ts +2 -2
- package/dist/src/api/info/perpDexLimits.d.ts.map +1 -1
- package/dist/src/api/info/perpDexLimits.js +8 -2
- package/dist/src/api/info/perpDexLimits.js.map +1 -1
- package/dist/src/api/info/perpDexs.d.ts +1 -1
- package/dist/src/api/info/perpDexs.d.ts.map +1 -1
- package/dist/src/api/info/perpDexs.js +8 -3
- package/dist/src/api/info/perpDexs.js.map +1 -1
- package/dist/src/api/info/perpsAtOpenInterestCap.d.ts +2 -2
- package/dist/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/dist/src/api/info/perpsAtOpenInterestCap.js +7 -2
- package/dist/src/api/info/perpsAtOpenInterestCap.js.map +1 -1
- package/dist/src/api/info/portfolio.d.ts +2 -2
- package/dist/src/api/info/portfolio.d.ts.map +1 -1
- package/dist/src/api/info/portfolio.js +8 -2
- package/dist/src/api/info/portfolio.js.map +1 -1
- package/dist/src/api/info/preTransferCheck.d.ts +2 -2
- package/dist/src/api/info/preTransferCheck.d.ts.map +1 -1
- package/dist/src/api/info/preTransferCheck.js +8 -2
- package/dist/src/api/info/preTransferCheck.js.map +1 -1
- package/dist/src/api/info/predictedFundings.d.ts +1 -1
- package/dist/src/api/info/predictedFundings.d.ts.map +1 -1
- package/dist/src/api/info/predictedFundings.js +8 -3
- package/dist/src/api/info/predictedFundings.js.map +1 -1
- package/dist/src/api/info/recentTrades.d.ts +2 -2
- package/dist/src/api/info/recentTrades.d.ts.map +1 -1
- package/dist/src/api/info/recentTrades.js +8 -2
- package/dist/src/api/info/recentTrades.js.map +1 -1
- package/dist/src/api/info/referral.d.ts +2 -2
- package/dist/src/api/info/referral.d.ts.map +1 -1
- package/dist/src/api/info/referral.js +8 -2
- package/dist/src/api/info/referral.js.map +1 -1
- package/dist/src/api/info/spotClearinghouseState.d.ts +2 -2
- package/dist/src/api/info/spotClearinghouseState.d.ts.map +1 -1
- package/dist/src/api/info/spotClearinghouseState.js +8 -2
- package/dist/src/api/info/spotClearinghouseState.js.map +1 -1
- package/dist/src/api/info/spotDeployState.d.ts +2 -2
- package/dist/src/api/info/spotDeployState.d.ts.map +1 -1
- package/dist/src/api/info/spotDeployState.js +8 -2
- package/dist/src/api/info/spotDeployState.js.map +1 -1
- package/dist/src/api/info/spotMeta.d.ts +1 -1
- package/dist/src/api/info/spotMeta.d.ts.map +1 -1
- package/dist/src/api/info/spotMeta.js +8 -3
- package/dist/src/api/info/spotMeta.js.map +1 -1
- package/dist/src/api/info/spotMetaAndAssetCtxs.d.ts +1 -1
- package/dist/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/dist/src/api/info/spotMetaAndAssetCtxs.js +8 -3
- package/dist/src/api/info/spotMetaAndAssetCtxs.js.map +1 -1
- package/dist/src/api/info/spotPairDeployAuctionStatus.d.ts +1 -1
- package/dist/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/dist/src/api/info/spotPairDeployAuctionStatus.js +8 -3
- package/dist/src/api/info/spotPairDeployAuctionStatus.js.map +1 -1
- package/dist/src/api/info/subAccounts.d.ts +2 -2
- package/dist/src/api/info/subAccounts.d.ts.map +1 -1
- package/dist/src/api/info/subAccounts.js +8 -2
- package/dist/src/api/info/subAccounts.js.map +1 -1
- package/dist/src/api/info/subAccounts2.d.ts +2 -2
- package/dist/src/api/info/subAccounts2.d.ts.map +1 -1
- package/dist/src/api/info/subAccounts2.js +8 -2
- package/dist/src/api/info/subAccounts2.js.map +1 -1
- package/dist/src/api/info/tokenDetails.d.ts +2 -2
- package/dist/src/api/info/tokenDetails.d.ts.map +1 -1
- package/dist/src/api/info/tokenDetails.js +8 -2
- package/dist/src/api/info/tokenDetails.js.map +1 -1
- package/dist/src/api/info/twapHistory.d.ts +2 -2
- package/dist/src/api/info/twapHistory.d.ts.map +1 -1
- package/dist/src/api/info/twapHistory.js +8 -2
- package/dist/src/api/info/twapHistory.js.map +1 -1
- package/dist/src/api/info/txDetails.d.ts +3 -3
- package/dist/src/api/info/txDetails.d.ts.map +1 -1
- package/dist/src/api/info/txDetails.js +8 -2
- package/dist/src/api/info/txDetails.js.map +1 -1
- package/dist/src/api/info/userDetails.d.ts +3 -3
- package/dist/src/api/info/userDetails.d.ts.map +1 -1
- package/dist/src/api/info/userDetails.js +8 -2
- package/dist/src/api/info/userDetails.js.map +1 -1
- package/dist/src/api/info/userDexAbstraction.d.ts +8 -8
- package/dist/src/api/info/userDexAbstraction.d.ts.map +1 -1
- package/dist/src/api/info/userDexAbstraction.js +11 -5
- package/dist/src/api/info/userDexAbstraction.js.map +1 -1
- package/dist/src/api/info/userFees.d.ts +2 -2
- package/dist/src/api/info/userFees.d.ts.map +1 -1
- package/dist/src/api/info/userFees.js +8 -2
- package/dist/src/api/info/userFees.js.map +1 -1
- package/dist/src/api/info/userFills.d.ts +2 -2
- package/dist/src/api/info/userFills.d.ts.map +1 -1
- package/dist/src/api/info/userFills.js +8 -2
- package/dist/src/api/info/userFills.js.map +1 -1
- package/dist/src/api/info/userFillsByTime.d.ts +2 -2
- package/dist/src/api/info/userFillsByTime.d.ts.map +1 -1
- package/dist/src/api/info/userFillsByTime.js +8 -2
- package/dist/src/api/info/userFillsByTime.js.map +1 -1
- package/dist/src/api/info/userFunding.d.ts +2 -2
- package/dist/src/api/info/userFunding.d.ts.map +1 -1
- package/dist/src/api/info/userFunding.js +8 -2
- package/dist/src/api/info/userFunding.js.map +1 -1
- package/dist/src/api/info/userNonFundingLedgerUpdates.d.ts +2 -2
- package/dist/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/dist/src/api/info/userNonFundingLedgerUpdates.js +8 -2
- package/dist/src/api/info/userNonFundingLedgerUpdates.js.map +1 -1
- package/dist/src/api/info/userRateLimit.d.ts +2 -2
- package/dist/src/api/info/userRateLimit.d.ts.map +1 -1
- package/dist/src/api/info/userRateLimit.js +8 -2
- package/dist/src/api/info/userRateLimit.js.map +1 -1
- package/dist/src/api/info/userRole.d.ts +2 -2
- package/dist/src/api/info/userRole.d.ts.map +1 -1
- package/dist/src/api/info/userRole.js +8 -2
- package/dist/src/api/info/userRole.js.map +1 -1
- package/dist/src/api/info/userToMultiSigSigners.d.ts +2 -2
- package/dist/src/api/info/userToMultiSigSigners.d.ts.map +1 -1
- package/dist/src/api/info/userToMultiSigSigners.js +8 -2
- package/dist/src/api/info/userToMultiSigSigners.js.map +1 -1
- package/dist/src/api/info/userTwapSliceFills.d.ts +2 -2
- package/dist/src/api/info/userTwapSliceFills.d.ts.map +1 -1
- package/dist/src/api/info/userTwapSliceFills.js +8 -2
- package/dist/src/api/info/userTwapSliceFills.js.map +1 -1
- package/dist/src/api/info/userTwapSliceFillsByTime.d.ts +2 -2
- package/dist/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/dist/src/api/info/userTwapSliceFillsByTime.js +8 -2
- package/dist/src/api/info/userTwapSliceFillsByTime.js.map +1 -1
- package/dist/src/api/info/userVaultEquities.d.ts +2 -2
- package/dist/src/api/info/userVaultEquities.d.ts.map +1 -1
- package/dist/src/api/info/userVaultEquities.js +8 -2
- package/dist/src/api/info/userVaultEquities.js.map +1 -1
- package/dist/src/api/info/validatorL1Votes.d.ts +1 -1
- package/dist/src/api/info/validatorL1Votes.d.ts.map +1 -1
- package/dist/src/api/info/validatorL1Votes.js +8 -3
- package/dist/src/api/info/validatorL1Votes.js.map +1 -1
- package/dist/src/api/info/validatorSummaries.d.ts +1 -1
- package/dist/src/api/info/validatorSummaries.d.ts.map +1 -1
- package/dist/src/api/info/validatorSummaries.js +8 -3
- package/dist/src/api/info/validatorSummaries.js.map +1 -1
- package/dist/src/api/info/vaultDetails.d.ts +2 -2
- package/dist/src/api/info/vaultDetails.d.ts.map +1 -1
- package/dist/src/api/info/vaultDetails.js +8 -2
- package/dist/src/api/info/vaultDetails.js.map +1 -1
- package/dist/src/api/info/vaultSummaries.d.ts +1 -1
- package/dist/src/api/info/vaultSummaries.d.ts.map +1 -1
- package/dist/src/api/info/vaultSummaries.js +8 -3
- package/dist/src/api/info/vaultSummaries.js.map +1 -1
- package/dist/src/api/info/webData2.d.ts +2 -2
- package/dist/src/api/info/webData2.d.ts.map +1 -1
- package/dist/src/api/info/webData2.js +8 -2
- package/dist/src/api/info/webData2.js.map +1 -1
- package/dist/src/api/info/~client.d.ts +134 -1344
- package/dist/src/api/info/~client.d.ts.map +1 -1
- package/dist/src/api/info/~client.js.map +1 -1
- package/dist/src/api/subscription/activeAssetCtx.d.ts +3 -3
- package/dist/src/api/subscription/activeAssetCtx.d.ts.map +1 -1
- package/dist/src/api/subscription/activeAssetCtx.js +8 -2
- package/dist/src/api/subscription/activeAssetCtx.js.map +1 -1
- package/dist/src/api/subscription/activeAssetData.d.ts +3 -3
- package/dist/src/api/subscription/activeAssetData.d.ts.map +1 -1
- package/dist/src/api/subscription/activeAssetData.js +8 -2
- package/dist/src/api/subscription/activeAssetData.js.map +1 -1
- package/dist/src/api/subscription/activeSpotAssetCtx.d.ts +3 -3
- package/dist/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -1
- package/dist/src/api/subscription/activeSpotAssetCtx.js +8 -2
- package/dist/src/api/subscription/activeSpotAssetCtx.js.map +1 -1
- package/dist/src/api/subscription/allMids.d.ts +3 -3
- package/dist/src/api/subscription/allMids.d.ts.map +1 -1
- package/dist/src/api/subscription/allMids.js +8 -2
- package/dist/src/api/subscription/allMids.js.map +1 -1
- package/dist/src/api/subscription/assetCtxs.d.ts +3 -3
- package/dist/src/api/subscription/assetCtxs.d.ts.map +1 -1
- package/dist/src/api/subscription/assetCtxs.js +8 -2
- package/dist/src/api/subscription/assetCtxs.js.map +1 -1
- package/dist/src/api/subscription/bbo.d.ts +3 -3
- package/dist/src/api/subscription/bbo.d.ts.map +1 -1
- package/dist/src/api/subscription/bbo.js +8 -2
- package/dist/src/api/subscription/bbo.js.map +1 -1
- package/dist/src/api/subscription/candle.d.ts +3 -3
- package/dist/src/api/subscription/candle.d.ts.map +1 -1
- package/dist/src/api/subscription/candle.js +7 -2
- package/dist/src/api/subscription/candle.js.map +1 -1
- package/dist/src/api/subscription/clearinghouseState.d.ts +3 -3
- package/dist/src/api/subscription/clearinghouseState.d.ts.map +1 -1
- package/dist/src/api/subscription/clearinghouseState.js +8 -2
- package/dist/src/api/subscription/clearinghouseState.js.map +1 -1
- package/dist/src/api/subscription/explorerBlock.d.ts +2 -2
- package/dist/src/api/subscription/explorerBlock.d.ts.map +1 -1
- package/dist/src/api/subscription/explorerBlock.js +8 -2
- package/dist/src/api/subscription/explorerBlock.js.map +1 -1
- package/dist/src/api/subscription/explorerTxs.d.ts +2 -2
- package/dist/src/api/subscription/explorerTxs.d.ts.map +1 -1
- package/dist/src/api/subscription/explorerTxs.js +8 -2
- package/dist/src/api/subscription/explorerTxs.js.map +1 -1
- package/dist/src/api/subscription/l2Book.d.ts +3 -3
- package/dist/src/api/subscription/l2Book.d.ts.map +1 -1
- package/dist/src/api/subscription/l2Book.js +8 -2
- package/dist/src/api/subscription/l2Book.js.map +1 -1
- package/dist/src/api/subscription/notification.d.ts +3 -3
- package/dist/src/api/subscription/notification.d.ts.map +1 -1
- package/dist/src/api/subscription/notification.js +8 -2
- package/dist/src/api/subscription/notification.js.map +1 -1
- package/dist/src/api/subscription/openOrders.d.ts +3 -3
- package/dist/src/api/subscription/openOrders.d.ts.map +1 -1
- package/dist/src/api/subscription/openOrders.js +8 -2
- package/dist/src/api/subscription/openOrders.js.map +1 -1
- package/dist/src/api/subscription/orderUpdates.d.ts +3 -3
- package/dist/src/api/subscription/orderUpdates.d.ts.map +1 -1
- package/dist/src/api/subscription/orderUpdates.js +8 -2
- package/dist/src/api/subscription/orderUpdates.js.map +1 -1
- package/dist/src/api/subscription/spotAssetCtxs.d.ts +67 -0
- package/dist/src/api/subscription/spotAssetCtxs.d.ts.map +1 -0
- package/dist/src/api/subscription/spotAssetCtxs.js +67 -0
- package/dist/src/api/subscription/spotAssetCtxs.js.map +1 -0
- package/dist/src/api/subscription/spotState.d.ts +3 -3
- package/dist/src/api/subscription/spotState.d.ts.map +1 -1
- package/dist/src/api/subscription/spotState.js +8 -2
- package/dist/src/api/subscription/spotState.js.map +1 -1
- package/dist/src/api/subscription/trades.d.ts +3 -3
- package/dist/src/api/subscription/trades.d.ts.map +1 -1
- package/dist/src/api/subscription/trades.js +7 -2
- package/dist/src/api/subscription/trades.js.map +1 -1
- package/dist/src/api/subscription/userEvents.d.ts +3 -3
- package/dist/src/api/subscription/userEvents.d.ts.map +1 -1
- package/dist/src/api/subscription/userEvents.js +8 -2
- package/dist/src/api/subscription/userEvents.js.map +1 -1
- package/dist/src/api/subscription/userFills.d.ts +3 -3
- package/dist/src/api/subscription/userFills.d.ts.map +1 -1
- package/dist/src/api/subscription/userFills.js +8 -2
- package/dist/src/api/subscription/userFills.js.map +1 -1
- package/dist/src/api/subscription/userFundings.d.ts +3 -3
- package/dist/src/api/subscription/userFundings.d.ts.map +1 -1
- package/dist/src/api/subscription/userFundings.js +8 -2
- package/dist/src/api/subscription/userFundings.js.map +1 -1
- package/dist/src/api/subscription/userHistoricalOrders.d.ts +3 -3
- package/dist/src/api/subscription/userHistoricalOrders.d.ts.map +1 -1
- package/dist/src/api/subscription/userHistoricalOrders.js +8 -2
- package/dist/src/api/subscription/userHistoricalOrders.js.map +1 -1
- package/dist/src/api/subscription/userNonFundingLedgerUpdates.d.ts +3 -3
- package/dist/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/dist/src/api/subscription/userNonFundingLedgerUpdates.js +8 -2
- package/dist/src/api/subscription/userNonFundingLedgerUpdates.js.map +1 -1
- package/dist/src/api/subscription/userTwapHistory.d.ts +3 -3
- package/dist/src/api/subscription/userTwapHistory.d.ts.map +1 -1
- package/dist/src/api/subscription/userTwapHistory.js +8 -2
- package/dist/src/api/subscription/userTwapHistory.js.map +1 -1
- package/dist/src/api/subscription/userTwapSliceFills.d.ts +3 -3
- package/dist/src/api/subscription/userTwapSliceFills.d.ts.map +1 -1
- package/dist/src/api/subscription/userTwapSliceFills.js +8 -2
- package/dist/src/api/subscription/userTwapSliceFills.js.map +1 -1
- package/dist/src/api/subscription/webData2.d.ts +3 -3
- package/dist/src/api/subscription/webData2.d.ts.map +1 -1
- package/dist/src/api/subscription/webData2.js +8 -2
- package/dist/src/api/subscription/webData2.js.map +1 -1
- package/dist/src/api/subscription/webData3.d.ts +3 -3
- package/dist/src/api/subscription/webData3.d.ts.map +1 -1
- package/dist/src/api/subscription/webData3.js +8 -2
- package/dist/src/api/subscription/webData3.js.map +1 -1
- package/dist/src/api/subscription/~client.d.ts +46 -25
- package/dist/src/api/subscription/~client.d.ts.map +1 -1
- package/dist/src/api/subscription/~client.js +22 -0
- package/dist/src/api/subscription/~client.js.map +1 -1
- package/dist/src/api/subscription/~mod.d.ts +1 -0
- package/dist/src/api/subscription/~mod.d.ts.map +1 -1
- package/dist/src/api/subscription/~mod.js +1 -0
- package/dist/src/api/subscription/~mod.js.map +1 -1
- package/dist/src/signing/mod.d.ts +6 -6
- package/dist/src/signing/mod.js +6 -6
- package/package.json +1 -1
- package/src/api/_base.ts +6 -2
- package/src/api/exchange/_base/_execute.ts +36 -5
- package/src/api/exchange/_base/_nonce.ts +12 -1
- package/src/api/exchange/_base/_types.ts +26 -0
- package/src/api/exchange/_base/mod.ts +0 -1
- package/src/api/exchange/agentEnableDexAbstraction.ts +36 -16
- package/src/api/exchange/approveAgent.ts +37 -16
- package/src/api/exchange/approveBuilderFee.ts +37 -16
- package/src/api/exchange/batchModify.ts +32 -16
- package/src/api/exchange/cDeposit.ts +37 -16
- package/src/api/exchange/cSignerAction.ts +34 -20
- package/src/api/exchange/cValidatorAction.ts +34 -20
- package/src/api/exchange/cWithdraw.ts +37 -16
- package/src/api/exchange/cancel.ts +27 -49
- package/src/api/exchange/cancelByCloid.ts +32 -15
- package/src/api/exchange/claimRewards.ts +32 -19
- package/src/api/exchange/convertToMultiSigUser.ts +38 -18
- package/src/api/exchange/createSubAccount.ts +50 -36
- package/src/api/exchange/createVault.ts +50 -36
- package/src/api/exchange/evmUserModify.ts +36 -15
- package/src/api/exchange/linkStakingUser.ts +37 -16
- package/src/api/exchange/modify.ts +36 -16
- package/src/api/exchange/multiSig.ts +118 -73
- package/src/api/exchange/noop.ts +34 -14
- package/src/api/exchange/order.ts +27 -99
- package/src/api/exchange/perpDeploy.ts +36 -15
- package/src/api/exchange/registerReferrer.ts +34 -20
- package/src/api/exchange/reserveRequestWeight.ts +36 -15
- package/src/api/exchange/scheduleCancel.ts +38 -17
- package/src/api/exchange/sendAsset.ts +39 -18
- package/src/api/exchange/setDisplayName.ts +34 -20
- package/src/api/exchange/setReferrer.ts +34 -20
- package/src/api/exchange/spotDeploy.ts +36 -15
- package/src/api/exchange/spotSend.ts +37 -16
- package/src/api/exchange/spotUser.ts +34 -20
- package/src/api/exchange/subAccountModify.ts +34 -20
- package/src/api/exchange/subAccountSpotTransfer.ts +34 -20
- package/src/api/exchange/subAccountTransfer.ts +34 -20
- package/src/api/exchange/tokenDelegate.ts +37 -16
- package/src/api/exchange/twapCancel.ts +27 -49
- package/src/api/exchange/twapOrder.ts +27 -61
- package/src/api/exchange/updateIsolatedMargin.ts +36 -15
- package/src/api/exchange/updateLeverage.ts +36 -15
- package/src/api/exchange/usdClassTransfer.ts +37 -16
- package/src/api/exchange/usdSend.ts +37 -16
- package/src/api/exchange/userDexAbstraction.ts +48 -27
- package/src/api/exchange/validatorL1Stream.ts +136 -0
- package/src/api/exchange/vaultDistribute.ts +34 -20
- package/src/api/exchange/vaultModify.ts +34 -20
- package/src/api/exchange/vaultTransfer.ts +36 -15
- package/src/api/exchange/withdraw3.ts +37 -16
- package/src/api/exchange/~client.ts +225 -121
- package/src/api/exchange/~mod.ts +2 -1
- package/src/api/info/activeAssetData.ts +11 -4
- package/src/api/info/alignedQuoteTokenInfo.ts +11 -4
- package/src/api/info/allMids.ts +11 -4
- package/src/api/info/allPerpMetas.ts +10 -5
- package/src/api/info/blockDetails.ts +12 -5
- package/src/api/info/candleSnapshot.ts +11 -5
- package/src/api/info/clearinghouseState.ts +11 -4
- package/src/api/info/delegations.ts +11 -4
- package/src/api/info/delegatorHistory.ts +11 -4
- package/src/api/info/delegatorRewards.ts +11 -4
- package/src/api/info/delegatorSummary.ts +11 -4
- package/src/api/info/exchangeStatus.ts +11 -4
- package/src/api/info/extraAgents.ts +11 -4
- package/src/api/info/frontendOpenOrders.ts +11 -5
- package/src/api/info/fundingHistory.ts +11 -4
- package/src/api/info/gossipRootIps.ts +9 -4
- package/src/api/info/historicalOrders.ts +11 -5
- package/src/api/info/isVip.ts +11 -4
- package/src/api/info/l2Book.ts +11 -5
- package/src/api/info/leadingVaults.ts +11 -4
- package/src/api/info/legalCheck.ts +11 -4
- package/src/api/info/liquidatable.ts +9 -4
- package/src/api/info/marginTable.ts +11 -4
- package/src/api/info/maxBuilderFee.ts +11 -4
- package/src/api/info/maxMarketOrderNtls.ts +11 -4
- package/src/api/info/meta.ts +11 -5
- package/src/api/info/metaAndAssetCtxs.ts +11 -5
- package/src/api/info/openOrders.ts +11 -5
- package/src/api/info/orderStatus.ts +11 -5
- package/src/api/info/perpDeployAuctionStatus.ts +11 -4
- package/src/api/info/perpDexLimits.ts +11 -4
- package/src/api/info/perpDexs.ts +11 -4
- package/src/api/info/perpsAtOpenInterestCap.ts +9 -4
- package/src/api/info/portfolio.ts +11 -4
- package/src/api/info/preTransferCheck.ts +11 -4
- package/src/api/info/predictedFundings.ts +11 -4
- package/src/api/info/recentTrades.ts +11 -4
- package/src/api/info/referral.ts +11 -4
- package/src/api/info/spotClearinghouseState.ts +11 -5
- package/src/api/info/spotDeployState.ts +11 -4
- package/src/api/info/spotMeta.ts +11 -4
- package/src/api/info/spotMetaAndAssetCtxs.ts +11 -5
- package/src/api/info/spotPairDeployAuctionStatus.ts +11 -4
- package/src/api/info/subAccounts.ts +11 -5
- package/src/api/info/subAccounts2.ts +11 -5
- package/src/api/info/tokenDetails.ts +11 -4
- package/src/api/info/twapHistory.ts +11 -5
- package/src/api/info/txDetails.ts +12 -5
- package/src/api/info/userDetails.ts +12 -6
- package/src/api/info/userDexAbstraction.ts +19 -12
- package/src/api/info/userFees.ts +11 -4
- package/src/api/info/userFills.ts +11 -5
- package/src/api/info/userFillsByTime.ts +11 -5
- package/src/api/info/userFunding.ts +11 -4
- package/src/api/info/userNonFundingLedgerUpdates.ts +11 -4
- package/src/api/info/userRateLimit.ts +11 -4
- package/src/api/info/userRole.ts +11 -4
- package/src/api/info/userToMultiSigSigners.ts +11 -4
- package/src/api/info/userTwapSliceFills.ts +11 -5
- package/src/api/info/userTwapSliceFillsByTime.ts +11 -5
- package/src/api/info/userVaultEquities.ts +11 -4
- package/src/api/info/validatorL1Votes.ts +11 -4
- package/src/api/info/validatorSummaries.ts +11 -4
- package/src/api/info/vaultDetails.ts +11 -5
- package/src/api/info/vaultSummaries.ts +11 -4
- package/src/api/info/webData2.ts +11 -5
- package/src/api/info/~client.ts +263 -141
- package/src/api/subscription/activeAssetCtx.ts +12 -5
- package/src/api/subscription/activeAssetData.ts +12 -6
- package/src/api/subscription/activeSpotAssetCtx.ts +12 -5
- package/src/api/subscription/allMids.ts +12 -5
- package/src/api/subscription/assetCtxs.ts +12 -5
- package/src/api/subscription/bbo.ts +12 -6
- package/src/api/subscription/candle.ts +11 -6
- package/src/api/subscription/clearinghouseState.ts +12 -6
- package/src/api/subscription/explorerBlock.ts +12 -5
- package/src/api/subscription/explorerTxs.ts +12 -5
- package/src/api/subscription/l2Book.ts +12 -6
- package/src/api/subscription/notification.ts +12 -5
- package/src/api/subscription/openOrders.ts +12 -6
- package/src/api/subscription/orderUpdates.ts +12 -6
- package/src/api/subscription/spotAssetCtxs.ts +118 -0
- package/src/api/subscription/spotState.ts +12 -6
- package/src/api/subscription/trades.ts +11 -6
- package/src/api/subscription/userEvents.ts +12 -6
- package/src/api/subscription/userFills.ts +12 -6
- package/src/api/subscription/userFundings.ts +12 -5
- package/src/api/subscription/userHistoricalOrders.ts +12 -6
- package/src/api/subscription/userNonFundingLedgerUpdates.ts +12 -6
- package/src/api/subscription/userTwapHistory.ts +12 -6
- package/src/api/subscription/userTwapSliceFills.ts +12 -6
- package/src/api/subscription/webData2.ts +12 -6
- package/src/api/subscription/webData3.ts +12 -6
- package/src/api/subscription/~client.ts +104 -25
- package/src/api/subscription/~mod.ts +1 -0
- package/src/signing/mod.ts +6 -6
- package/dist/src/api/exchange/_base/_helpers.d.ts +0 -11
- package/dist/src/api/exchange/_base/_helpers.d.ts.map +0 -1
- package/dist/src/api/exchange/_base/_helpers.js +0 -18
- package/dist/src/api/exchange/_base/_helpers.js.map +0 -1
- package/src/api/exchange/_base/_helpers.ts +0 -26
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, Decimal, type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { Subscription } from "../../transport/base.ts";
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
import { Address, Decimal, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
8
|
+
import { FillSchema, TwapFillSchema, TwapStateSchema, TwapStatusSchema } from "../_common_schemas.ts";
|
|
9
9
|
|
|
10
10
|
/** Subscription to user events for a specific user. */
|
|
11
11
|
export const UserEventsRequest = /* @__PURE__ */ (() => {
|
|
@@ -233,7 +233,13 @@ export const UserEventsEvent = /* @__PURE__ */ (() => {
|
|
|
233
233
|
})();
|
|
234
234
|
export type UserEventsEvent = v.InferOutput<typeof UserEventsEvent>;
|
|
235
235
|
|
|
236
|
-
//
|
|
236
|
+
// ============================================================
|
|
237
|
+
// Execution Logic
|
|
238
|
+
// ============================================================
|
|
239
|
+
|
|
240
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
241
|
+
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
242
|
+
import type { Subscription } from "../../transport/base.ts";
|
|
237
243
|
|
|
238
244
|
/** Request parameters for the {@linkcode userEvents} function. */
|
|
239
245
|
export type UserEventsParameters = Omit<v.InferInput<typeof UserEventsRequest>, "type">;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser } from "../_base.ts";
|
|
3
|
-
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { Subscription } from "../../transport/base.ts";
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
import { Address } from "../_base.ts";
|
|
8
|
+
import { FillSchema } from "../_common_schemas.ts";
|
|
9
9
|
|
|
10
10
|
/** Subscription to user fill events for a specific user. */
|
|
11
11
|
export const UserFillsRequest = /* @__PURE__ */ (() => {
|
|
@@ -57,7 +57,13 @@ export const UserFillsEvent = /* @__PURE__ */ (() => {
|
|
|
57
57
|
})();
|
|
58
58
|
export type UserFillsEvent = v.InferOutput<typeof UserFillsEvent>;
|
|
59
59
|
|
|
60
|
-
//
|
|
60
|
+
// ============================================================
|
|
61
|
+
// Execution Logic
|
|
62
|
+
// ============================================================
|
|
63
|
+
|
|
64
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
65
|
+
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
66
|
+
import type { Subscription } from "../../transport/base.ts";
|
|
61
67
|
|
|
62
68
|
/** Request parameters for the {@linkcode userFills} function. */
|
|
63
69
|
export type UserFillsParameters = Omit<v.InferInput<typeof UserFillsRequest>, "type">;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, Decimal, type DeepImmutable, parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { Subscription } from "../../transport/base.ts";
|
|
5
2
|
|
|
6
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, Decimal, UnsignedInteger } from "../_base.ts";
|
|
7
8
|
|
|
8
9
|
/** Subscription to user funding events for a specific user. */
|
|
9
10
|
export const UserFundingsRequest = /* @__PURE__ */ (() => {
|
|
@@ -87,7 +88,13 @@ export const UserFundingsEvent = /* @__PURE__ */ (() => {
|
|
|
87
88
|
})();
|
|
88
89
|
export type UserFundingsEvent = v.InferOutput<typeof UserFundingsEvent>;
|
|
89
90
|
|
|
90
|
-
//
|
|
91
|
+
// ============================================================
|
|
92
|
+
// Execution Logic
|
|
93
|
+
// ============================================================
|
|
94
|
+
|
|
95
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
96
|
+
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
97
|
+
import type { Subscription } from "../../transport/base.ts";
|
|
91
98
|
|
|
92
99
|
/** Request parameters for the {@linkcode userFundings} function. */
|
|
93
100
|
export type UserFundingsParameters = Omit<v.InferInput<typeof UserFundingsRequest>, "type">;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { Subscription } from "../../transport/base.ts";
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
import { Address, UnsignedInteger } from "../_base.ts";
|
|
8
|
+
import { DetailedOrderSchema, OrderProcessingStatusSchema } from "../_common_schemas.ts";
|
|
9
9
|
|
|
10
10
|
/** Subscription to user historical orders for a specific user. */
|
|
11
11
|
export const UserHistoricalOrdersRequest = /* @__PURE__ */ (() => {
|
|
@@ -68,7 +68,13 @@ export const UserHistoricalOrdersEvent = /* @__PURE__ */ (() => {
|
|
|
68
68
|
})();
|
|
69
69
|
export type UserHistoricalOrdersEvent = v.InferOutput<typeof UserHistoricalOrdersEvent>;
|
|
70
70
|
|
|
71
|
-
//
|
|
71
|
+
// ============================================================
|
|
72
|
+
// Execution Logic
|
|
73
|
+
// ============================================================
|
|
74
|
+
|
|
75
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
76
|
+
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
77
|
+
import type { Subscription } from "../../transport/base.ts";
|
|
72
78
|
|
|
73
79
|
/** Request parameters for the {@linkcode userHistoricalOrders} function. */
|
|
74
80
|
export type UserHistoricalOrdersParameters = Omit<v.InferInput<typeof UserHistoricalOrdersRequest>, "type">;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser } from "../_base.ts";
|
|
3
|
-
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { Subscription } from "../../transport/base.ts";
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
import { Address } from "../_base.ts";
|
|
8
|
+
import { UserNonFundingLedgerUpdatesResponse } from "../info/userNonFundingLedgerUpdates.ts";
|
|
9
9
|
|
|
10
10
|
/** Subscription to user non-funding ledger updates for a specific user. */
|
|
11
11
|
export const UserNonFundingLedgerUpdatesRequest = /* @__PURE__ */ (() => {
|
|
@@ -49,7 +49,13 @@ export const UserNonFundingLedgerUpdatesEvent = /* @__PURE__ */ (() => {
|
|
|
49
49
|
})();
|
|
50
50
|
export type UserNonFundingLedgerUpdatesEvent = v.InferOutput<typeof UserNonFundingLedgerUpdatesEvent>;
|
|
51
51
|
|
|
52
|
-
//
|
|
52
|
+
// ============================================================
|
|
53
|
+
// Execution Logic
|
|
54
|
+
// ============================================================
|
|
55
|
+
|
|
56
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
57
|
+
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
58
|
+
import type { Subscription } from "../../transport/base.ts";
|
|
53
59
|
|
|
54
60
|
/** Request parameters for the {@linkcode userNonFundingLedgerUpdates} function. */
|
|
55
61
|
export type UserNonFundingLedgerUpdatesParameters = Omit<
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { Subscription } from "../../transport/base.ts";
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
import { Address, UnsignedInteger } from "../_base.ts";
|
|
8
|
+
import { TwapStateSchema, TwapStatusSchema } from "../_common_schemas.ts";
|
|
9
9
|
|
|
10
10
|
/** Subscription to user TWAP history events for a specific user. */
|
|
11
11
|
export const UserTwapHistoryRequest = /* @__PURE__ */ (() => {
|
|
@@ -73,7 +73,13 @@ export const UserTwapHistoryEvent = /* @__PURE__ */ (() => {
|
|
|
73
73
|
})();
|
|
74
74
|
export type UserTwapHistoryEvent = v.InferOutput<typeof UserTwapHistoryEvent>;
|
|
75
75
|
|
|
76
|
-
//
|
|
76
|
+
// ============================================================
|
|
77
|
+
// Execution Logic
|
|
78
|
+
// ============================================================
|
|
79
|
+
|
|
80
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
81
|
+
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
82
|
+
import type { Subscription } from "../../transport/base.ts";
|
|
77
83
|
|
|
78
84
|
/** Request parameters for the {@linkcode userTwapHistory} function. */
|
|
79
85
|
export type UserTwapHistoryParameters = Omit<v.InferInput<typeof UserTwapHistoryRequest>, "type">;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { Subscription } from "../../transport/base.ts";
|
|
5
2
|
|
|
6
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
import { Address, UnsignedInteger } from "../_base.ts";
|
|
8
|
+
import { TwapFillSchema } from "../_common_schemas.ts";
|
|
9
9
|
|
|
10
10
|
/** Subscription to user TWAP slice fill events for a specific user. */
|
|
11
11
|
export const UserTwapSliceFillsRequest = /* @__PURE__ */ (() => {
|
|
@@ -62,7 +62,13 @@ export const UserTwapSliceFillsEvent = /* @__PURE__ */ (() => {
|
|
|
62
62
|
})();
|
|
63
63
|
export type UserTwapSliceFillsEvent = v.InferOutput<typeof UserTwapSliceFillsEvent>;
|
|
64
64
|
|
|
65
|
-
//
|
|
65
|
+
// ============================================================
|
|
66
|
+
// Execution Logic
|
|
67
|
+
// ============================================================
|
|
68
|
+
|
|
69
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
70
|
+
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
71
|
+
import type { Subscription } from "../../transport/base.ts";
|
|
66
72
|
|
|
67
73
|
/** Request parameters for the {@linkcode userTwapSliceFills} function. */
|
|
68
74
|
export type UserTwapSliceFillsParameters = Omit<v.InferInput<typeof UserTwapSliceFillsRequest>, "type">;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { Subscription } from "../../transport/base.ts";
|
|
5
2
|
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
import { DetailedOrderSchema, TwapStateSchema } from "../_common_schemas.ts";
|
|
7
9
|
import { MetaAndAssetCtxsResponse } from "../info/metaAndAssetCtxs.ts";
|
|
8
10
|
import { ClearinghouseStateResponse } from "../info/clearinghouseState.ts";
|
|
9
11
|
import { SpotClearinghouseStateResponse } from "../info/spotClearinghouseState.ts";
|
|
10
12
|
import { SpotMetaAndAssetCtxsResponse } from "../info/spotMetaAndAssetCtxs.ts";
|
|
11
13
|
|
|
12
|
-
// -------------------- Schemas --------------------
|
|
13
|
-
|
|
14
14
|
/** Subscription to comprehensive user and market data events. */
|
|
15
15
|
export const WebData2Request = /* @__PURE__ */ (() => {
|
|
16
16
|
return v.pipe(
|
|
@@ -137,7 +137,13 @@ export const WebData2Event = /* @__PURE__ */ (() => {
|
|
|
137
137
|
})();
|
|
138
138
|
export type WebData2Event = v.InferOutput<typeof WebData2Event>;
|
|
139
139
|
|
|
140
|
-
//
|
|
140
|
+
// ============================================================
|
|
141
|
+
// Execution Logic
|
|
142
|
+
// ============================================================
|
|
143
|
+
|
|
144
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
145
|
+
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
146
|
+
import type { Subscription } from "../../transport/base.ts";
|
|
141
147
|
|
|
142
148
|
/** Request parameters for the {@linkcode webData2} function. */
|
|
143
149
|
export type WebData2Parameters = Omit<v.InferInput<typeof WebData2Request>, "type">;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { Subscription } from "../../transport/base.ts";
|
|
5
2
|
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
import { DetailedOrderSchema } from "../_common_schemas.ts";
|
|
7
9
|
import { MetaAndAssetCtxsResponse } from "../info/metaAndAssetCtxs.ts";
|
|
8
10
|
import { ClearinghouseStateResponse } from "../info/clearinghouseState.ts";
|
|
9
11
|
|
|
10
|
-
// -------------------- Schemas --------------------
|
|
11
|
-
|
|
12
12
|
/** Subscription to comprehensive user and market data events. */
|
|
13
13
|
export const WebData3Request = /* @__PURE__ */ (() => {
|
|
14
14
|
return v.pipe(
|
|
@@ -136,7 +136,13 @@ export const WebData3Event = /* @__PURE__ */ (() => {
|
|
|
136
136
|
})();
|
|
137
137
|
export type WebData3Event = v.InferOutput<typeof WebData3Event>;
|
|
138
138
|
|
|
139
|
-
//
|
|
139
|
+
// ============================================================
|
|
140
|
+
// Execution Logic
|
|
141
|
+
// ============================================================
|
|
142
|
+
|
|
143
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
144
|
+
import type { SubscriptionRequestConfig } from "./_types.ts";
|
|
145
|
+
import type { Subscription } from "../../transport/base.ts";
|
|
140
146
|
|
|
141
147
|
/** Request parameters for the {@linkcode webData3} function. */
|
|
142
148
|
export type WebData3Parameters = Omit<v.InferInput<typeof WebData3Request>, "type">;
|
|
@@ -16,6 +16,7 @@ import { l2Book } from "./l2Book.ts";
|
|
|
16
16
|
import { notification } from "./notification.ts";
|
|
17
17
|
import { openOrders } from "./openOrders.ts";
|
|
18
18
|
import { orderUpdates } from "./orderUpdates.ts";
|
|
19
|
+
import { spotAssetCtxs } from "./spotAssetCtxs.ts";
|
|
19
20
|
import { spotState } from "./spotState.ts";
|
|
20
21
|
import { trades } from "./trades.ts";
|
|
21
22
|
import { userEvents } from "./userEvents.ts";
|
|
@@ -69,6 +70,10 @@ export type {
|
|
|
69
70
|
OrderUpdatesEvent as WsOrderUpdatesEvent,
|
|
70
71
|
OrderUpdatesParameters as WsOrderUpdatesParameters,
|
|
71
72
|
} from "./orderUpdates.ts";
|
|
73
|
+
export type {
|
|
74
|
+
SpotAssetCtxsEvent as WsSpotAssetCtxsEvent,
|
|
75
|
+
SpotAssetCtxsParameters as WsSpotAssetCtxsParameters,
|
|
76
|
+
} from "./spotAssetCtxs.ts";
|
|
72
77
|
export type { SpotStateEvent as WsSpotStateEvent, SpotStateParameters as WsSpotStateParameters } from "./spotState.ts";
|
|
73
78
|
export type { TradesEvent as WsTradesEvent, TradesParameters as WsTradesParameters } from "./trades.ts";
|
|
74
79
|
export type {
|
|
@@ -145,7 +150,9 @@ export class SubscriptionClient<
|
|
|
145
150
|
* const sub = await client.activeAssetCtx({ coin: "ETH" }, (data) => console.log(data));
|
|
146
151
|
* ```
|
|
147
152
|
*/
|
|
148
|
-
activeAssetCtx(
|
|
153
|
+
activeAssetCtx(
|
|
154
|
+
...args: OmitFirst<OverloadedParameters<typeof activeAssetCtx>>
|
|
155
|
+
): ReturnType<typeof activeAssetCtx> {
|
|
149
156
|
return activeAssetCtx(this, ...args);
|
|
150
157
|
}
|
|
151
158
|
|
|
@@ -168,7 +175,9 @@ export class SubscriptionClient<
|
|
|
168
175
|
* const sub = await client.activeAssetData({ coin: "ETH", user: "0x..." }, (data) => console.log(data));
|
|
169
176
|
* ```
|
|
170
177
|
*/
|
|
171
|
-
activeAssetData(
|
|
178
|
+
activeAssetData(
|
|
179
|
+
...args: OmitFirst<OverloadedParameters<typeof activeAssetData>>
|
|
180
|
+
): ReturnType<typeof activeAssetData> {
|
|
172
181
|
return activeAssetData(this, ...args);
|
|
173
182
|
}
|
|
174
183
|
|
|
@@ -191,7 +200,9 @@ export class SubscriptionClient<
|
|
|
191
200
|
* const sub = await client.activeSpotAssetCtx({ coin: "@1" }, (data) => console.log(data));
|
|
192
201
|
* ```
|
|
193
202
|
*/
|
|
194
|
-
activeSpotAssetCtx(
|
|
203
|
+
activeSpotAssetCtx(
|
|
204
|
+
...args: OmitFirst<OverloadedParameters<typeof activeSpotAssetCtx>>
|
|
205
|
+
): ReturnType<typeof activeSpotAssetCtx> {
|
|
195
206
|
return activeSpotAssetCtx(this, ...args);
|
|
196
207
|
}
|
|
197
208
|
|
|
@@ -214,7 +225,9 @@ export class SubscriptionClient<
|
|
|
214
225
|
* const sub = await client.allMids((data) => console.log(data));
|
|
215
226
|
* ```
|
|
216
227
|
*/
|
|
217
|
-
allMids(
|
|
228
|
+
allMids(
|
|
229
|
+
...args: OmitFirst<OverloadedParameters<typeof allMids>>
|
|
230
|
+
): ReturnType<typeof allMids> {
|
|
218
231
|
return allMids(
|
|
219
232
|
this,
|
|
220
233
|
// @ts-ignore: TypeScript can't resolve overloaded signatures from parameter unions
|
|
@@ -241,7 +254,9 @@ export class SubscriptionClient<
|
|
|
241
254
|
* const sub = await client.assetCtxs((data) => console.log(data));
|
|
242
255
|
* ```
|
|
243
256
|
*/
|
|
244
|
-
assetCtxs(
|
|
257
|
+
assetCtxs(
|
|
258
|
+
...args: OmitFirst<OverloadedParameters<typeof assetCtxs>>
|
|
259
|
+
): ReturnType<typeof assetCtxs> {
|
|
245
260
|
return assetCtxs(
|
|
246
261
|
this,
|
|
247
262
|
// @ts-ignore: TypeScript can't resolve overloaded signatures from parameter unions
|
|
@@ -268,7 +283,9 @@ export class SubscriptionClient<
|
|
|
268
283
|
* const sub = await client.bbo({ coin: "ETH" }, (data) => console.log(data));
|
|
269
284
|
* ```
|
|
270
285
|
*/
|
|
271
|
-
bbo(
|
|
286
|
+
bbo(
|
|
287
|
+
...args: OmitFirst<OverloadedParameters<typeof bbo>>
|
|
288
|
+
): ReturnType<typeof bbo> {
|
|
272
289
|
return bbo(this, ...args);
|
|
273
290
|
}
|
|
274
291
|
|
|
@@ -291,7 +308,9 @@ export class SubscriptionClient<
|
|
|
291
308
|
* const sub = await client.candle({ coin: "ETH", interval: "1h" }, (data) => console.log(data));
|
|
292
309
|
* ```
|
|
293
310
|
*/
|
|
294
|
-
candle(
|
|
311
|
+
candle(
|
|
312
|
+
...args: OmitFirst<OverloadedParameters<typeof candle>>
|
|
313
|
+
): ReturnType<typeof candle> {
|
|
295
314
|
return candle(this, ...args);
|
|
296
315
|
}
|
|
297
316
|
|
|
@@ -314,7 +333,9 @@ export class SubscriptionClient<
|
|
|
314
333
|
* const sub = await client.clearinghouseState({ user: "0x..." }, (data) => console.log(data));
|
|
315
334
|
* ```
|
|
316
335
|
*/
|
|
317
|
-
clearinghouseState(
|
|
336
|
+
clearinghouseState(
|
|
337
|
+
...args: OmitFirst<OverloadedParameters<typeof clearinghouseState>>
|
|
338
|
+
): ReturnType<typeof clearinghouseState> {
|
|
318
339
|
return clearinghouseState(this, ...args);
|
|
319
340
|
}
|
|
320
341
|
|
|
@@ -337,7 +358,9 @@ export class SubscriptionClient<
|
|
|
337
358
|
* const sub = await client.explorerBlock((data) => console.log(data));
|
|
338
359
|
* ```
|
|
339
360
|
*/
|
|
340
|
-
explorerBlock(
|
|
361
|
+
explorerBlock(
|
|
362
|
+
...args: OmitFirst<OverloadedParameters<typeof explorerBlock>>
|
|
363
|
+
): ReturnType<typeof explorerBlock> {
|
|
341
364
|
return explorerBlock(this, ...args);
|
|
342
365
|
}
|
|
343
366
|
|
|
@@ -360,7 +383,9 @@ export class SubscriptionClient<
|
|
|
360
383
|
* const sub = await client.explorerTxs((data) => console.log(data));
|
|
361
384
|
* ```
|
|
362
385
|
*/
|
|
363
|
-
explorerTxs(
|
|
386
|
+
explorerTxs(
|
|
387
|
+
...args: OmitFirst<OverloadedParameters<typeof explorerTxs>>
|
|
388
|
+
): ReturnType<typeof explorerTxs> {
|
|
364
389
|
return explorerTxs(this, ...args);
|
|
365
390
|
}
|
|
366
391
|
|
|
@@ -383,7 +408,9 @@ export class SubscriptionClient<
|
|
|
383
408
|
* const sub = await client.l2Book({ coin: "ETH" }, (data) => console.log(data));
|
|
384
409
|
* ```
|
|
385
410
|
*/
|
|
386
|
-
l2Book(
|
|
411
|
+
l2Book(
|
|
412
|
+
...args: OmitFirst<OverloadedParameters<typeof l2Book>>
|
|
413
|
+
): ReturnType<typeof l2Book> {
|
|
387
414
|
return l2Book(this, ...args);
|
|
388
415
|
}
|
|
389
416
|
|
|
@@ -406,7 +433,9 @@ export class SubscriptionClient<
|
|
|
406
433
|
* const sub = await client.notification({ user: "0x..." }, (data) => console.log(data));
|
|
407
434
|
* ```
|
|
408
435
|
*/
|
|
409
|
-
notification(
|
|
436
|
+
notification(
|
|
437
|
+
...args: OmitFirst<OverloadedParameters<typeof notification>>
|
|
438
|
+
): ReturnType<typeof notification> {
|
|
410
439
|
return notification(this, ...args);
|
|
411
440
|
}
|
|
412
441
|
|
|
@@ -429,7 +458,9 @@ export class SubscriptionClient<
|
|
|
429
458
|
* const sub = await client.openOrders({ user: "0x..." }, (data) => console.log(data));
|
|
430
459
|
* ```
|
|
431
460
|
*/
|
|
432
|
-
openOrders(
|
|
461
|
+
openOrders(
|
|
462
|
+
...args: OmitFirst<OverloadedParameters<typeof openOrders>>
|
|
463
|
+
): ReturnType<typeof openOrders> {
|
|
433
464
|
return openOrders(this, ...args);
|
|
434
465
|
}
|
|
435
466
|
|
|
@@ -452,10 +483,36 @@ export class SubscriptionClient<
|
|
|
452
483
|
* const sub = await client.orderUpdates({ user: "0x..." }, (data) => console.log(data));
|
|
453
484
|
* ```
|
|
454
485
|
*/
|
|
455
|
-
orderUpdates(
|
|
486
|
+
orderUpdates(
|
|
487
|
+
...args: OmitFirst<OverloadedParameters<typeof orderUpdates>>
|
|
488
|
+
): ReturnType<typeof orderUpdates> {
|
|
456
489
|
return orderUpdates(this, ...args);
|
|
457
490
|
}
|
|
458
491
|
|
|
492
|
+
/**
|
|
493
|
+
* Subscribe to context updates for all spot assets.
|
|
494
|
+
* @param listener - A callback function to be called when the event is received.
|
|
495
|
+
* @returns A request-promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
496
|
+
*
|
|
497
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
498
|
+
*
|
|
499
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
500
|
+
* @example
|
|
501
|
+
* ```ts
|
|
502
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
503
|
+
*
|
|
504
|
+
* const transport = new hl.WebSocketTransport();
|
|
505
|
+
*
|
|
506
|
+
* const client = new hl.SubscriptionClient({ transport });
|
|
507
|
+
* const sub = await client.spotAssetCtxs((data) => console.log(data));
|
|
508
|
+
* ```
|
|
509
|
+
*/
|
|
510
|
+
spotAssetCtxs(
|
|
511
|
+
...args: OmitFirst<OverloadedParameters<typeof spotAssetCtxs>>
|
|
512
|
+
): ReturnType<typeof spotAssetCtxs> {
|
|
513
|
+
return spotAssetCtxs(this, ...args);
|
|
514
|
+
}
|
|
515
|
+
|
|
459
516
|
/**
|
|
460
517
|
* Subscribe to spot state updates for a specific user.
|
|
461
518
|
* @param params - Parameters specific to the API subscription.
|
|
@@ -475,7 +532,9 @@ export class SubscriptionClient<
|
|
|
475
532
|
* const sub = await client.spotState({ user: "0x..." }, (data) => console.log(data));
|
|
476
533
|
* ```
|
|
477
534
|
*/
|
|
478
|
-
spotState(
|
|
535
|
+
spotState(
|
|
536
|
+
...args: OmitFirst<OverloadedParameters<typeof spotState>>
|
|
537
|
+
): ReturnType<typeof spotState> {
|
|
479
538
|
return spotState(this, ...args);
|
|
480
539
|
}
|
|
481
540
|
|
|
@@ -498,7 +557,9 @@ export class SubscriptionClient<
|
|
|
498
557
|
* const sub = await client.trades({ coin: "ETH" }, (data) => console.log(data));
|
|
499
558
|
* ```
|
|
500
559
|
*/
|
|
501
|
-
trades(
|
|
560
|
+
trades(
|
|
561
|
+
...args: OmitFirst<OverloadedParameters<typeof trades>>
|
|
562
|
+
): ReturnType<typeof trades> {
|
|
502
563
|
return trades(this, ...args);
|
|
503
564
|
}
|
|
504
565
|
|
|
@@ -522,7 +583,9 @@ export class SubscriptionClient<
|
|
|
522
583
|
* const sub = await client.userEvents({ user: "0x..." }, (data) => console.log(data));
|
|
523
584
|
* ```
|
|
524
585
|
*/
|
|
525
|
-
userEvents(
|
|
586
|
+
userEvents(
|
|
587
|
+
...args: OmitFirst<OverloadedParameters<typeof userEvents>>
|
|
588
|
+
): ReturnType<typeof userEvents> {
|
|
526
589
|
return userEvents(this, ...args);
|
|
527
590
|
}
|
|
528
591
|
|
|
@@ -545,7 +608,9 @@ export class SubscriptionClient<
|
|
|
545
608
|
* const sub = await client.userFills({ user: "0x..." }, (data) => console.log(data));
|
|
546
609
|
* ```
|
|
547
610
|
*/
|
|
548
|
-
userFills(
|
|
611
|
+
userFills(
|
|
612
|
+
...args: OmitFirst<OverloadedParameters<typeof userFills>>
|
|
613
|
+
): ReturnType<typeof userFills> {
|
|
549
614
|
return userFills(this, ...args);
|
|
550
615
|
}
|
|
551
616
|
|
|
@@ -568,7 +633,9 @@ export class SubscriptionClient<
|
|
|
568
633
|
* const sub = await client.userFundings({ user: "0x..." }, (data) => console.log(data));
|
|
569
634
|
* ```
|
|
570
635
|
*/
|
|
571
|
-
userFundings(
|
|
636
|
+
userFundings(
|
|
637
|
+
...args: OmitFirst<OverloadedParameters<typeof userFundings>>
|
|
638
|
+
): ReturnType<typeof userFundings> {
|
|
572
639
|
return userFundings(this, ...args);
|
|
573
640
|
}
|
|
574
641
|
|
|
@@ -592,7 +659,9 @@ export class SubscriptionClient<
|
|
|
592
659
|
* const sub = await client.userHistoricalOrders({ user: "0x..." }, (data) => console.log(data));
|
|
593
660
|
* ```
|
|
594
661
|
*/
|
|
595
|
-
userHistoricalOrders(
|
|
662
|
+
userHistoricalOrders(
|
|
663
|
+
...args: OmitFirst<OverloadedParameters<typeof userHistoricalOrders>>
|
|
664
|
+
): ReturnType<typeof userHistoricalOrders> {
|
|
596
665
|
return userHistoricalOrders(this, ...args);
|
|
597
666
|
}
|
|
598
667
|
|
|
@@ -615,7 +684,9 @@ export class SubscriptionClient<
|
|
|
615
684
|
* const sub = await client.userNonFundingLedgerUpdates({ user: "0x..." }, (data) => console.log(data));
|
|
616
685
|
* ```
|
|
617
686
|
*/
|
|
618
|
-
userNonFundingLedgerUpdates(
|
|
687
|
+
userNonFundingLedgerUpdates(
|
|
688
|
+
...args: OmitFirst<OverloadedParameters<typeof userNonFundingLedgerUpdates>>
|
|
689
|
+
): ReturnType<typeof userNonFundingLedgerUpdates> {
|
|
619
690
|
return userNonFundingLedgerUpdates(this, ...args);
|
|
620
691
|
}
|
|
621
692
|
|
|
@@ -638,7 +709,9 @@ export class SubscriptionClient<
|
|
|
638
709
|
* const sub = await client.userTwapHistory({ user: "0x..." }, (data) => console.log(data));
|
|
639
710
|
* ```
|
|
640
711
|
*/
|
|
641
|
-
userTwapHistory(
|
|
712
|
+
userTwapHistory(
|
|
713
|
+
...args: OmitFirst<OverloadedParameters<typeof userTwapHistory>>
|
|
714
|
+
): ReturnType<typeof userTwapHistory> {
|
|
642
715
|
return userTwapHistory(this, ...args);
|
|
643
716
|
}
|
|
644
717
|
|
|
@@ -661,7 +734,9 @@ export class SubscriptionClient<
|
|
|
661
734
|
* const sub = await client.userTwapSliceFills({ user: "0x..." }, (data) => console.log(data));
|
|
662
735
|
* ```
|
|
663
736
|
*/
|
|
664
|
-
userTwapSliceFills(
|
|
737
|
+
userTwapSliceFills(
|
|
738
|
+
...args: OmitFirst<OverloadedParameters<typeof userTwapSliceFills>>
|
|
739
|
+
): ReturnType<typeof userTwapSliceFills> {
|
|
665
740
|
return userTwapSliceFills(this, ...args);
|
|
666
741
|
}
|
|
667
742
|
|
|
@@ -684,7 +759,9 @@ export class SubscriptionClient<
|
|
|
684
759
|
* const sub = await client.webData2({ user: "0x..." }, (data) => console.log(data));
|
|
685
760
|
* ```
|
|
686
761
|
*/
|
|
687
|
-
webData2(
|
|
762
|
+
webData2(
|
|
763
|
+
...args: OmitFirst<OverloadedParameters<typeof webData2>>
|
|
764
|
+
): ReturnType<typeof webData2> {
|
|
688
765
|
return webData2(this, ...args);
|
|
689
766
|
}
|
|
690
767
|
|
|
@@ -707,7 +784,9 @@ export class SubscriptionClient<
|
|
|
707
784
|
* const sub = await client.webData3({ user: "0x..." }, (data) => console.log(data));
|
|
708
785
|
* ```
|
|
709
786
|
*/
|
|
710
|
-
webData3(
|
|
787
|
+
webData3(
|
|
788
|
+
...args: OmitFirst<OverloadedParameters<typeof webData3>>
|
|
789
|
+
): ReturnType<typeof webData3> {
|
|
711
790
|
return webData3(this, ...args);
|
|
712
791
|
}
|
|
713
792
|
}
|
|
@@ -40,6 +40,7 @@ export * from "./l2Book.ts";
|
|
|
40
40
|
export * from "./notification.ts";
|
|
41
41
|
export * from "./openOrders.ts";
|
|
42
42
|
export * from "./orderUpdates.ts";
|
|
43
|
+
export * from "./spotAssetCtxs.ts";
|
|
43
44
|
export * from "./spotState.ts";
|
|
44
45
|
export * from "./trades.ts";
|
|
45
46
|
export * from "./userEvents.ts";
|