@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
package/src/api/exchange/~mod.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @example
|
|
8
8
|
* ```ts
|
|
9
9
|
* import { HttpTransport } from "@nktkas/hyperliquid";
|
|
10
|
-
* import { privateKeyToAccount } from "
|
|
10
|
+
* import { privateKeyToAccount } from "viem/accounts";
|
|
11
11
|
* import { order } from "@nktkas/hyperliquid/api/exchange";
|
|
12
12
|
* // ^^^^^
|
|
13
13
|
* // same name as in `ExchangeClient`
|
|
@@ -81,6 +81,7 @@ export * from "./updateLeverage.ts";
|
|
|
81
81
|
export * from "./usdClassTransfer.ts";
|
|
82
82
|
export * from "./usdSend.ts";
|
|
83
83
|
export * from "./userDexAbstraction.ts";
|
|
84
|
+
export * from "./validatorL1Stream.ts";
|
|
84
85
|
export * from "./vaultDistribute.ts";
|
|
85
86
|
export * from "./vaultModify.ts";
|
|
86
87
|
export * from "./vaultTransfer.ts";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request user active asset data.
|
|
@@ -107,7 +109,12 @@ export const ActiveAssetDataResponse = /* @__PURE__ */ (() => {
|
|
|
107
109
|
})();
|
|
108
110
|
export type ActiveAssetDataResponse = v.InferOutput<typeof ActiveAssetDataResponse>;
|
|
109
111
|
|
|
110
|
-
//
|
|
112
|
+
// ============================================================
|
|
113
|
+
// Execution Logic
|
|
114
|
+
// ============================================================
|
|
115
|
+
|
|
116
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
117
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
111
118
|
|
|
112
119
|
/** Request parameters for the {@linkcode activeAssetData} function. */
|
|
113
120
|
export type ActiveAssetDataParameters = Omit<v.InferInput<typeof ActiveAssetDataRequest>, "type">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request supply, rate, and pending payment information for an aligned quote token.
|
|
@@ -81,7 +83,12 @@ export const AlignedQuoteTokenInfoResponse = /* @__PURE__ */ (() => {
|
|
|
81
83
|
})();
|
|
82
84
|
export type AlignedQuoteTokenInfoResponse = v.InferOutput<typeof AlignedQuoteTokenInfoResponse>;
|
|
83
85
|
|
|
84
|
-
//
|
|
86
|
+
// ============================================================
|
|
87
|
+
// Execution Logic
|
|
88
|
+
// ============================================================
|
|
89
|
+
|
|
90
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
91
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
85
92
|
|
|
86
93
|
/** Request parameters for the {@linkcode alignedQuoteTokenInfo} function. */
|
|
87
94
|
export type AlignedQuoteTokenInfoParameters = Omit<v.InferInput<typeof AlignedQuoteTokenInfoRequest>, "type">;
|
package/src/api/info/allMids.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { type DeepImmutable, parser, UnsignedDecimal } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { UnsignedDecimal } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request mid coin prices.
|
|
@@ -39,7 +41,12 @@ export const AllMidsResponse = /* @__PURE__ */ (() => {
|
|
|
39
41
|
})();
|
|
40
42
|
export type AllMidsResponse = v.InferOutput<typeof AllMidsResponse>;
|
|
41
43
|
|
|
42
|
-
//
|
|
44
|
+
// ============================================================
|
|
45
|
+
// Execution Logic
|
|
46
|
+
// ============================================================
|
|
47
|
+
|
|
48
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
49
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
43
50
|
|
|
44
51
|
/** Request parameters for the {@linkcode allMids} function. */
|
|
45
52
|
export type AllMidsParameters = Omit<v.InferInput<typeof AllMidsRequest>, "type">;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { parser } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { MetaResponse } from "./meta.ts";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Request trading metadata for all DEXes.
|
|
@@ -36,7 +36,12 @@ export const AllPerpMetasResponse = /* @__PURE__ */ (() => {
|
|
|
36
36
|
})();
|
|
37
37
|
export type AllPerpMetasResponse = v.InferOutput<typeof AllPerpMetasResponse>;
|
|
38
38
|
|
|
39
|
-
//
|
|
39
|
+
// ============================================================
|
|
40
|
+
// Execution Logic
|
|
41
|
+
// ============================================================
|
|
42
|
+
|
|
43
|
+
import { parser } from "../_base.ts";
|
|
44
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
40
45
|
|
|
41
46
|
/** Request parameters for the {@linkcode allPerpMetas} function. */
|
|
42
47
|
export type AllPerpMetasParameters = Omit<v.InferInput<typeof AllPerpMetasRequest>, "type">;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, Hex, parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
|
-
import type { IRequestTransport } from "../../transport/base.ts";
|
|
5
2
|
|
|
6
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, Hex, UnsignedInteger } from "../_base.ts";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Request block details by block height.
|
|
@@ -125,7 +126,13 @@ export const BlockDetailsResponse = /* @__PURE__ */ (() => {
|
|
|
125
126
|
})();
|
|
126
127
|
export type BlockDetailsResponse = v.InferOutput<typeof BlockDetailsResponse>;
|
|
127
128
|
|
|
128
|
-
//
|
|
129
|
+
// ============================================================
|
|
130
|
+
// Execution Logic
|
|
131
|
+
// ============================================================
|
|
132
|
+
|
|
133
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
134
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
135
|
+
import type { IRequestTransport } from "../../transport/base.ts";
|
|
129
136
|
|
|
130
137
|
/** Request parameters for the {@linkcode blockDetails} function. */
|
|
131
138
|
export type BlockDetailsParameters = Omit<v.InferInput<typeof BlockDetailsRequest>, "type">;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
8
|
+
import { CandleIntervalSchema } from "../_common_schemas.ts";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Request candlestick snapshots.
|
|
@@ -113,7 +114,12 @@ export const CandleSnapshotResponse = /* @__PURE__ */ (() => {
|
|
|
113
114
|
})();
|
|
114
115
|
export type CandleSnapshotResponse = v.InferOutput<typeof CandleSnapshotResponse>;
|
|
115
116
|
|
|
116
|
-
//
|
|
117
|
+
// ============================================================
|
|
118
|
+
// Execution Logic
|
|
119
|
+
// ============================================================
|
|
120
|
+
|
|
121
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
122
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
117
123
|
|
|
118
124
|
/** Request parameters for the {@linkcode candleSnapshot} function. */
|
|
119
125
|
export type CandleSnapshotParameters = v.InferInput<typeof CandleSnapshotRequest>["req"];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, Decimal, type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, Decimal, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request clearinghouse state.
|
|
@@ -239,7 +241,12 @@ export const ClearinghouseStateResponse = /* @__PURE__ */ (() => {
|
|
|
239
241
|
})();
|
|
240
242
|
export type ClearinghouseStateResponse = v.InferOutput<typeof ClearinghouseStateResponse>;
|
|
241
243
|
|
|
242
|
-
//
|
|
244
|
+
// ============================================================
|
|
245
|
+
// Execution Logic
|
|
246
|
+
// ============================================================
|
|
247
|
+
|
|
248
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
249
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
243
250
|
|
|
244
251
|
/** Request parameters for the {@linkcode clearinghouseState} function. */
|
|
245
252
|
export type ClearinghouseStateParameters = Omit<v.InferInput<typeof ClearinghouseStateRequest>, "type">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request user staking delegations.
|
|
@@ -61,7 +63,12 @@ export const DelegationsResponse = /* @__PURE__ */ (() => {
|
|
|
61
63
|
})();
|
|
62
64
|
export type DelegationsResponse = v.InferOutput<typeof DelegationsResponse>;
|
|
63
65
|
|
|
64
|
-
//
|
|
66
|
+
// ============================================================
|
|
67
|
+
// Execution Logic
|
|
68
|
+
// ============================================================
|
|
69
|
+
|
|
70
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
71
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
65
72
|
|
|
66
73
|
/** Request parameters for the {@linkcode delegations} function. */
|
|
67
74
|
export type DelegationsParameters = Omit<v.InferInput<typeof DelegationsRequest>, "type">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, Hex, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, Hex, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request user staking history.
|
|
@@ -116,7 +118,12 @@ export const DelegatorHistoryResponse = /* @__PURE__ */ (() => {
|
|
|
116
118
|
})();
|
|
117
119
|
export type DelegatorHistoryResponse = v.InferOutput<typeof DelegatorHistoryResponse>;
|
|
118
120
|
|
|
119
|
-
//
|
|
121
|
+
// ============================================================
|
|
122
|
+
// Execution Logic
|
|
123
|
+
// ============================================================
|
|
124
|
+
|
|
125
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
126
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
120
127
|
|
|
121
128
|
/** Request parameters for the {@linkcode delegatorHistory} function. */
|
|
122
129
|
export type DelegatorHistoryParameters = Omit<v.InferInput<typeof DelegatorHistoryRequest>, "type">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request user staking rewards.
|
|
@@ -61,7 +63,12 @@ export const DelegatorRewardsResponse = /* @__PURE__ */ (() => {
|
|
|
61
63
|
})();
|
|
62
64
|
export type DelegatorRewardsResponse = v.InferOutput<typeof DelegatorRewardsResponse>;
|
|
63
65
|
|
|
64
|
-
//
|
|
66
|
+
// ============================================================
|
|
67
|
+
// Execution Logic
|
|
68
|
+
// ============================================================
|
|
69
|
+
|
|
70
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
71
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
65
72
|
|
|
66
73
|
/** Request parameters for the {@linkcode delegatorRewards} function. */
|
|
67
74
|
export type DelegatorRewardsParameters = Omit<v.InferInput<typeof DelegatorRewardsRequest>, "type">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, UnsignedDecimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request user's staking summary.
|
|
@@ -60,7 +62,12 @@ export const DelegatorSummaryResponse = /* @__PURE__ */ (() => {
|
|
|
60
62
|
})();
|
|
61
63
|
export type DelegatorSummaryResponse = v.InferOutput<typeof DelegatorSummaryResponse>;
|
|
62
64
|
|
|
63
|
-
//
|
|
65
|
+
// ============================================================
|
|
66
|
+
// Execution Logic
|
|
67
|
+
// ============================================================
|
|
68
|
+
|
|
69
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
70
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
64
71
|
|
|
65
72
|
/** Request parameters for the {@linkcode delegatorSummary} function. */
|
|
66
73
|
export type DelegatorSummaryParameters = Omit<v.InferInput<typeof DelegatorSummaryRequest>, "type">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request exchange system status information.
|
|
@@ -43,7 +45,12 @@ export const ExchangeStatusResponse = /* @__PURE__ */ (() => {
|
|
|
43
45
|
})();
|
|
44
46
|
export type ExchangeStatusResponse = v.InferOutput<typeof ExchangeStatusResponse>;
|
|
45
47
|
|
|
46
|
-
//
|
|
48
|
+
// ============================================================
|
|
49
|
+
// Execution Logic
|
|
50
|
+
// ============================================================
|
|
51
|
+
|
|
52
|
+
import { parser } from "../_base.ts";
|
|
53
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
47
54
|
|
|
48
55
|
/**
|
|
49
56
|
* Request exchange system status information.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request user extra agents.
|
|
@@ -62,7 +64,12 @@ export const ExtraAgentsResponse = /* @__PURE__ */ (() => {
|
|
|
62
64
|
})();
|
|
63
65
|
export type ExtraAgentsResponse = v.InferOutput<typeof ExtraAgentsResponse>;
|
|
64
66
|
|
|
65
|
-
//
|
|
67
|
+
// ============================================================
|
|
68
|
+
// Execution Logic
|
|
69
|
+
// ============================================================
|
|
70
|
+
|
|
71
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
72
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
66
73
|
|
|
67
74
|
/** Request parameters for the {@linkcode extraAgents} function. */
|
|
68
75
|
export type ExtraAgentsParameters = Omit<v.InferInput<typeof ExtraAgentsRequest>, "type">;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { Address } from "../_base.ts";
|
|
8
|
+
import { DetailedOrderSchema } from "../_common_schemas.ts";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Request frontend open orders.
|
|
@@ -46,7 +47,12 @@ export const FrontendOpenOrdersResponse = /* @__PURE__ */ (() => {
|
|
|
46
47
|
})();
|
|
47
48
|
export type FrontendOpenOrdersResponse = v.InferOutput<typeof FrontendOpenOrdersResponse>;
|
|
48
49
|
|
|
49
|
-
//
|
|
50
|
+
// ============================================================
|
|
51
|
+
// Execution Logic
|
|
52
|
+
// ============================================================
|
|
53
|
+
|
|
54
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
55
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
50
56
|
|
|
51
57
|
/** Request parameters for the {@linkcode frontendOpenOrders} function. */
|
|
52
58
|
export type FrontendOpenOrdersParameters = Omit<v.InferInput<typeof FrontendOpenOrdersRequest>, "type">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Decimal, type DeepImmutable, parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Decimal, UnsignedInteger } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request funding history.
|
|
@@ -76,7 +78,12 @@ export const FundingHistoryResponse = /* @__PURE__ */ (() => {
|
|
|
76
78
|
})();
|
|
77
79
|
export type FundingHistoryResponse = v.InferOutput<typeof FundingHistoryResponse>;
|
|
78
80
|
|
|
79
|
-
//
|
|
81
|
+
// ============================================================
|
|
82
|
+
// Execution Logic
|
|
83
|
+
// ============================================================
|
|
84
|
+
|
|
85
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
86
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
80
87
|
|
|
81
88
|
/** Request parameters for the {@linkcode fundingHistory} function. */
|
|
82
89
|
export type FundingHistoryParameters = Omit<v.InferInput<typeof FundingHistoryRequest>, "type">;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { parser } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Request gossip root IPs.
|
|
@@ -34,7 +34,12 @@ export const GossipRootIpsResponse = /* @__PURE__ */ (() => {
|
|
|
34
34
|
})();
|
|
35
35
|
export type GossipRootIpsResponse = v.InferOutput<typeof GossipRootIpsResponse>;
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// ============================================================
|
|
38
|
+
// Execution Logic
|
|
39
|
+
// ============================================================
|
|
40
|
+
|
|
41
|
+
import { parser } from "../_base.ts";
|
|
42
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
38
43
|
|
|
39
44
|
/**
|
|
40
45
|
* Request gossip root IPs.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { Address, UnsignedInteger } from "../_base.ts";
|
|
8
|
+
import { DetailedOrderSchema, OrderProcessingStatusSchema } from "../_common_schemas.ts";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Request user historical orders.
|
|
@@ -57,7 +58,12 @@ export const HistoricalOrdersResponse = /* @__PURE__ */ (() => {
|
|
|
57
58
|
})();
|
|
58
59
|
export type HistoricalOrdersResponse = v.InferOutput<typeof HistoricalOrdersResponse>;
|
|
59
60
|
|
|
60
|
-
//
|
|
61
|
+
// ============================================================
|
|
62
|
+
// Execution Logic
|
|
63
|
+
// ============================================================
|
|
64
|
+
|
|
65
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
66
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
61
67
|
|
|
62
68
|
/** Request parameters for the {@linkcode historicalOrders} function. */
|
|
63
69
|
export type HistoricalOrdersParameters = Omit<v.InferInput<typeof HistoricalOrdersRequest>, "type">;
|
package/src/api/info/isVip.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request to check if a user is a VIP.
|
|
@@ -39,7 +41,12 @@ export const IsVipResponse = /* @__PURE__ */ (() => {
|
|
|
39
41
|
})();
|
|
40
42
|
export type IsVipResponse = v.InferOutput<typeof IsVipResponse>;
|
|
41
43
|
|
|
42
|
-
//
|
|
44
|
+
// ============================================================
|
|
45
|
+
// Execution Logic
|
|
46
|
+
// ============================================================
|
|
47
|
+
|
|
48
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
49
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
43
50
|
|
|
44
51
|
/** Request parameters for the {@linkcode isVip} function. */
|
|
45
52
|
export type IsVipParameters = Omit<v.InferInput<typeof IsVipRequest>, "type">;
|
package/src/api/info/l2Book.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { type DeepImmutable, Integer, parser, UnsignedInteger } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { Integer, UnsignedInteger } from "../_base.ts";
|
|
8
|
+
import { L2BookLevelSchema } from "../_common_schemas.ts";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Request L2 order book.
|
|
@@ -79,7 +80,12 @@ export const L2BookResponse = /* @__PURE__ */ (() => {
|
|
|
79
80
|
})();
|
|
80
81
|
export type L2BookResponse = v.InferOutput<typeof L2BookResponse>;
|
|
81
82
|
|
|
82
|
-
//
|
|
83
|
+
// ============================================================
|
|
84
|
+
// Execution Logic
|
|
85
|
+
// ============================================================
|
|
86
|
+
|
|
87
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
88
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
83
89
|
|
|
84
90
|
/** Request parameters for the {@linkcode l2Book} function. */
|
|
85
91
|
export type L2BookParameters = Omit<v.InferInput<typeof L2BookRequest>, "type">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request leading vaults for a user.
|
|
@@ -56,7 +58,12 @@ export const LeadingVaultsResponse = /* @__PURE__ */ (() => {
|
|
|
56
58
|
})();
|
|
57
59
|
export type LeadingVaultsResponse = v.InferOutput<typeof LeadingVaultsResponse>;
|
|
58
60
|
|
|
59
|
-
//
|
|
61
|
+
// ============================================================
|
|
62
|
+
// Execution Logic
|
|
63
|
+
// ============================================================
|
|
64
|
+
|
|
65
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
66
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
60
67
|
|
|
61
68
|
/** Request parameters for the {@linkcode leadingVaults} function. */
|
|
62
69
|
export type LeadingVaultsParameters = Omit<v.InferInput<typeof LeadingVaultsRequest>, "type">;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { Address, type DeepImmutable, parser } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
|
+
|
|
7
|
+
import { Address } from "../_base.ts";
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Request legal verification status of a user.
|
|
@@ -55,7 +57,12 @@ export const LegalCheckResponse = /* @__PURE__ */ (() => {
|
|
|
55
57
|
})();
|
|
56
58
|
export type LegalCheckResponse = v.InferOutput<typeof LegalCheckResponse>;
|
|
57
59
|
|
|
58
|
-
//
|
|
60
|
+
// ============================================================
|
|
61
|
+
// Execution Logic
|
|
62
|
+
// ============================================================
|
|
63
|
+
|
|
64
|
+
import { type DeepImmutable, parser } from "../_base.ts";
|
|
65
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
59
66
|
|
|
60
67
|
/** Request parameters for the {@linkcode legalCheck} function. */
|
|
61
68
|
export type LegalCheckParameters = Omit<v.InferInput<typeof LegalCheckRequest>, "type">;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { parser } from "../_base.ts";
|
|
3
|
-
import type { InfoRequestConfig } from "./_types.ts";
|
|
4
2
|
|
|
5
|
-
//
|
|
3
|
+
// ============================================================
|
|
4
|
+
// API Schemas
|
|
5
|
+
// ============================================================
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Request liquidatable.
|
|
@@ -32,7 +32,12 @@ export const LiquidatableResponse = /* @__PURE__ */ (() => {
|
|
|
32
32
|
})();
|
|
33
33
|
export type LiquidatableResponse = v.InferOutput<typeof LiquidatableResponse>;
|
|
34
34
|
|
|
35
|
-
//
|
|
35
|
+
// ============================================================
|
|
36
|
+
// Execution Logic
|
|
37
|
+
// ============================================================
|
|
38
|
+
|
|
39
|
+
import { parser } from "../_base.ts";
|
|
40
|
+
import type { InfoRequestConfig } from "./_types.ts";
|
|
36
41
|
|
|
37
42
|
/**
|
|
38
43
|
* Request liquidatable.
|