Versions in this module Expand all Collapse all v0 v0.2.0 Oct 5, 2026 v0.1.0 Oct 5, 2026 Changes in this version + var ErrSubscriptionOverflow = errors.New("hyperliquid: websocket subscription handler fell behind") + var ErrTruncatedToZero = errors.New("hyperliquid: value truncated to zero") + var ErrWebSocketClosed = errors.New("hyperliquid: websocket closed") + var ErrWebSocketDisconnected = errors.New("hyperliquid: websocket disconnected") + var FinalizeCustomStorageSlot = FinalizeEVMContractInput + var FinalizeFirstStorageSlot = FinalizeEVMContractInput + var GroupingNA = Grouping + var GroupingNormalTpsl = Grouping + var GroupingPositionTpsl = Grouping + var Mainnet = Network + var Testnet = Network + func NextNonce() uint64 + type APIError struct + Message string + StatusCode int + func (e *APIError) Error() string + type AQAv2Role string + const AQAv2RoleTechnical + const AQAv2RoleTreasury + type Abstraction string + const AbstractionDefault + const AbstractionDisabled + const AbstractionPortfolioMargin + const AbstractionUnifiedAccount + type Action interface + type ActivateOutcomeDeployerAction struct + Activate *OutcomeDeployerActivation + Deactivate bool + func (a ActivateOutcomeDeployerAction) MarshalJSON() ([]byte, error) + type ActiveAssetCtxEvent struct + Coin string + Ctx PerpAssetCtx + type ActiveAssetCtxSubscription struct + Coin string + type ActiveAssetData struct + AvailableToTrade [2]Decimal + Coin string + Leverage Leverage + MarkPx Decimal + MaxTradeSzs [2]Decimal + User Address + type ActiveAssetDataRequest struct + Coin string + User Address + type ActiveAssetDataSubscription struct + Coin string + User Address + type ActiveSpotAssetCtxEvent struct + Coin string + Ctx SpotAssetCtx + type Address [20]byte + func MustParseAddress(s string) Address + func ParseAddress(s string) (Address, error) + func (a *Address) UnmarshalText(b []byte) error + func (a Address) IsZero() bool + func (a Address) MarshalText() ([]byte, error) + func (a Address) String() string + type AddressEncoding string + const AddressEncodingBase58 + const AddressEncodingHex + type AgentSendAssetAction struct + Amount Decimal + Destination Address + DestinationDex string + FromSubAccount *Address + SourceDex string + Token string + func (a AgentSendAssetAction) MarshalJSON() ([]byte, error) + type AgentSetAbstractionAction struct + Abstraction Abstraction + func (a AgentSetAbstractionAction) MarshalJSON() ([]byte, error) + type AllDexsAssetCtxsEvent struct + Ctxs TupleMap[string, []PerpAssetCtx] + type AllDexsClearinghouseStateEvent struct + ClearinghouseStates TupleMap[string, ClearinghouseState] + User Address + type AllDexsClearinghouseStateSubscription struct + User Address + type AllMidsEvent struct + Dex string + Mids map[string]Decimal + type AllMidsRequest struct + Dex string + type AllMidsSubscription struct + Dex string + type ApproveAgentAction struct + AgentAddress Address + AgentName string + type ApproveBuilderFeeAction struct + Builder Address + MaxFeeRate Decimal + func (a ApproveBuilderFeeAction) MarshalJSON() ([]byte, error) + type ApprovedBuildersRequest struct + User Address + type Asset struct + Dex string + ID int + Name string + Spot bool + SzDecimals int + func (a Asset) FormatPrice(px Decimal) (Decimal, error) + func (a Asset) FormatSize(sz Decimal) (Decimal, error) + type AssetCtxsEvent struct + Ctxs []PerpAssetCtx + Dex string + type AssetCtxsSubscription struct + Dex string + type AssetPosition struct + Position Position + Type string + type AuctionStatus struct + CurrentGas *Decimal + DurationSeconds int64 + EndGas *Decimal + StartGas Decimal + StartTimeSeconds int64 + type AuthorizeAQAv2RoleAction struct + Role AQAv2Role + Token int + type BatchModifyAction struct + AlwaysPlace bool + Modifies []Modify + type BboEvent struct + Bbo [2]*L2Level + Coin string + Time int64 + type BboSubscription struct + Coin string + type BlacklistUser struct + Blacklisted bool + User Address + func (b BlacklistUser) MarshalJSON() ([]byte, error) + type BlockDetails struct + BlockTime int64 + Hash string + Height int64 + NumTxs int + Proposer Address + Txs []ExplorerTx + type BlockDetailsRequest struct + Height int64 + type BorrowLendAction struct + Amount *Decimal + Operation BorrowLendOperation + Token int + type BorrowLendBalance struct + Basis Decimal + Value Decimal + type BorrowLendInterest struct + Borrow Decimal + NSamples int + Supply Decimal + Time int64 + Token string + type BorrowLendOperation string + const BorrowLendBorrow + const BorrowLendRepay + const BorrowLendSupply + const BorrowLendWithdraw + type BorrowLendReserveState struct + Balance Decimal + BorrowYearlyRate Decimal + LTV Decimal + OraclePx Decimal + SupplyYearlyRate Decimal + TotalBorrowed Decimal + TotalSupplied Decimal + Utilization Decimal + type BorrowLendReserveStateRequest struct + Token int + type BorrowLendTokenState struct + Borrow BorrowLendBalance + Supply BorrowLendBalance + type BorrowLendUserState struct + Health string + HealthFactor *Decimal + TokenToState TupleMap[int, BorrowLendTokenState] + type BorrowLendUserStateRequest struct + User Address + type Builder struct + Address Address + Fee int + type CDepositAction struct + Wei uint64 + type CSignerAction struct + JailSelf bool + UnjailSelf bool + func (a CSignerAction) MarshalJSON() ([]byte, error) + type CValidatorAction struct + ChangeProfile *ValidatorProfileChange + Register *ValidatorRegistration + Unregister bool + func (a CValidatorAction) MarshalJSON() ([]byte, error) + type CWithdrawAction struct + Wei uint64 + type Cancel struct + Asset int + Oid int64 + type CancelAction struct + Cancels []Cancel + Fast bool + type CancelByCloid struct + Asset int + Cloid Cloid + type CancelByCloidAction struct + Cancels []CancelByCloid + Fast bool + type Candle struct + Close Decimal + CloseTime int64 + Coin string + High Decimal + Interval CandleInterval + Low Decimal + Open Decimal + OpenTime int64 + Trades int + Volume Decimal + type CandleInterval string + const Candle12h + const Candle15m + const Candle1M + const Candle1d + const Candle1h + const Candle1m + const Candle1w + const Candle2h + const Candle30m + const Candle3d + const Candle3m + const Candle4h + const Candle5m + const Candle8h + type CandleSnapshotRequest struct + Coin string + EndTime int64 + Interval CandleInterval + StartTime int64 + type CandleSubscription struct + Coin string + Interval CandleInterval + type ClaimRewardsAction struct + type ClearinghouseState struct + AssetPositions []AssetPosition + CrossMaintenanceMarginUsed Decimal + CrossMarginSummary MarginSummary + MarginSummary MarginSummary + Time int64 + Withdrawable Decimal + type ClearinghouseStateEvent struct + ClearinghouseState ClearinghouseState + Dex string + User Address + type ClearinghouseStateRequest struct + Dex string + User Address + type ClearinghouseStateSubscription struct + Dex string + User Address + type Cloid [16]byte + func MustParseCloid(s string) Cloid + func ParseCloid(s string) (Cloid, error) + func (c *Cloid) UnmarshalText(b []byte) error + func (c Cloid) MarshalText() ([]byte, error) + func (c Cloid) String() string + type ConvertToMultiSigUserAction struct + Signers *MultiSigSigners + func (a ConvertToMultiSigUserAction) MarshalJSON() ([]byte, error) + type CreateSubAccountAction struct + Name string + type CreateVaultAction struct + Description string + InitialUSD uint64 + Name string + type CumFunding struct + AllTime Decimal + SinceChange Decimal + SinceOpen Decimal + type DailyUserVolume struct + Date string + Exchange Decimal + UserAdd Decimal + UserCross Decimal + type Decimal string + func DecimalFromFloat(f float64) Decimal + func FormatPrice(px Decimal, szDecimals int, spot bool) (Decimal, error) + func FormatSize(sz Decimal, szDecimals int) (Decimal, error) + func ParseDecimal(s string) (Decimal, error) + func (d *Decimal) UnmarshalJSON(b []byte) error + func (d Decimal) Float64() (float64, error) + func (d Decimal) IsZero() bool + func (d Decimal) MarshalJSON() ([]byte, error) + func (d Decimal) String() string + type DelegateDelta struct + Amount Decimal + IsUndelegate bool + Validator Address + type Delegation struct + Amount Decimal + LockedUntilTimestamp int64 + Validator Address + type DelegationsRequest struct + User Address + type DelegatorDelta struct + CDeposit *StakingDeposit + Delegate *DelegateDelta + Withdrawal *StakingWithdrawal + type DelegatorEvent struct + Delta DelegatorDelta + Hash string + Time int64 + type DelegatorHistoryRequest struct + User Address + type DelegatorReward struct + Source string + Time int64 + TotalAmount Decimal + type DelegatorRewardsRequest struct + User Address + type DelegatorSummary struct + Delegated Decimal + NPendingWithdrawals int + TotalPendingWithdrawal Decimal + Undelegated Decimal + type DelegatorSummaryRequest struct + User Address + type DeployerFee struct + GrowthMode bool + Scale Decimal + type EVMContract struct + Address Address + EVMExtraWeiDecimals int + type EVMEscrow struct + Coin string + Token int + Total Decimal + type EVMUserModifyAction struct + UsingBigBlocks bool + type ExchangeClient struct + func NewExchangeClient(network Network, signer Signer, opts ...Option) *ExchangeClient + func (c *ExchangeClient) ActivateOutcomeDeployer(ctx context.Context, a ActivateOutcomeDeployerAction) error + func (c *ExchangeClient) AgentSendAsset(ctx context.Context, a AgentSendAssetAction) error + func (c *ExchangeClient) AgentSetAbstraction(ctx context.Context, a AgentSetAbstractionAction) error + func (c *ExchangeClient) ApproveAgent(ctx context.Context, a ApproveAgentAction) error + func (c *ExchangeClient) ApproveBuilderFee(ctx context.Context, a ApproveBuilderFeeAction) error + func (c *ExchangeClient) AuthorizeAQAv2Role(ctx context.Context, a AuthorizeAQAv2RoleAction) error + func (c *ExchangeClient) BatchModify(ctx context.Context, a BatchModifyAction) ([]OrderResult, error) + func (c *ExchangeClient) BorrowLend(ctx context.Context, a BorrowLendAction) error + func (c *ExchangeClient) CDeposit(ctx context.Context, a CDepositAction) error + func (c *ExchangeClient) CSigner(ctx context.Context, a CSignerAction) error + func (c *ExchangeClient) CValidator(ctx context.Context, a CValidatorAction) error + func (c *ExchangeClient) CWithdraw(ctx context.Context, a CWithdrawAction) error + func (c *ExchangeClient) Cancel(ctx context.Context, a CancelAction) error + func (c *ExchangeClient) CancelByCloid(ctx context.Context, a CancelByCloidAction) error + func (c *ExchangeClient) ClaimRewards(ctx context.Context) error + func (c *ExchangeClient) ConvertToMultiSigUser(ctx context.Context, a ConvertToMultiSigUserAction) error + func (c *ExchangeClient) CreateSubAccount(ctx context.Context, a CreateSubAccountAction) (Address, error) + func (c *ExchangeClient) CreateVault(ctx context.Context, a CreateVaultAction) (Address, error) + func (c *ExchangeClient) EVMUserModify(ctx context.Context, a EVMUserModifyAction) error + func (c *ExchangeClient) FinalizeEVMContract(ctx context.Context, a FinalizeEVMContractAction) error + func (c *ExchangeClient) GossipPriorityBid(ctx context.Context, a GossipPriorityBidAction) error + func (c *ExchangeClient) HIP3LiquidatorTransfer(ctx context.Context, a HIP3LiquidatorTransferAction) error + func (c *ExchangeClient) LinkStakingUser(ctx context.Context, a LinkStakingUserAction) error + func (c *ExchangeClient) Modify(ctx context.Context, a ModifyAction) error + func (c *ExchangeClient) MultiSig(ctx context.Context, multiSigUser Address, a Action, nonce uint64, ...) (json.RawMessage, error) + func (c *ExchangeClient) Noop(ctx context.Context, nonce uint64) error + func (c *ExchangeClient) Order(ctx context.Context, a OrderAction) ([]OrderResult, error) + func (c *ExchangeClient) OutcomeDeploy(ctx context.Context, a OutcomeDeployAction) error + func (c *ExchangeClient) PerpDeploy(ctx context.Context, a PerpDeployAction) error + func (c *ExchangeClient) RegisterReferrer(ctx context.Context, a RegisterReferrerAction) error + func (c *ExchangeClient) ReserveRequestWeight(ctx context.Context, a ReserveRequestWeightAction) error + func (c *ExchangeClient) ScheduleCancel(ctx context.Context, a ScheduleCancelAction) error + func (c *ExchangeClient) SendAsset(ctx context.Context, a SendAssetAction) error + func (c *ExchangeClient) SendToEVMWithData(ctx context.Context, a SendToEVMWithDataAction) error + func (c *ExchangeClient) SetDisplayName(ctx context.Context, a SetDisplayNameAction) error + func (c *ExchangeClient) SetReferrer(ctx context.Context, a SetReferrerAction) error + func (c *ExchangeClient) SignMultiSig(ctx context.Context, a Action, multiSigUser, outerSigner Address, nonce uint64) (Signature, error) + func (c *ExchangeClient) Signer() Signer + func (c *ExchangeClient) SpotDeploy(ctx context.Context, a SpotDeployAction) error + func (c *ExchangeClient) SpotSend(ctx context.Context, a SpotSendAction) error + func (c *ExchangeClient) SpotUser(ctx context.Context, a SpotUserAction) error + func (c *ExchangeClient) StakingLinkDisableTradingUser(ctx context.Context, a StakingLinkDisableTradingUserAction) error + func (c *ExchangeClient) SubAccountModify(ctx context.Context, a SubAccountModifyAction) error + func (c *ExchangeClient) SubAccountSpotTransfer(ctx context.Context, a SubAccountSpotTransferAction) error + func (c *ExchangeClient) SubAccountTransfer(ctx context.Context, a SubAccountTransferAction) error + func (c *ExchangeClient) TokenDelegate(ctx context.Context, a TokenDelegateAction) error + func (c *ExchangeClient) TopUpIsolatedOnlyMargin(ctx context.Context, a TopUpIsolatedOnlyMarginAction) error + func (c *ExchangeClient) TrailingStop(ctx context.Context, a TrailingStopAction) (int64, error) + func (c *ExchangeClient) TwapCancel(ctx context.Context, a TwapCancelAction) error + func (c *ExchangeClient) TwapOrder(ctx context.Context, a TwapOrderAction) (int64, error) + func (c *ExchangeClient) USDClassTransfer(ctx context.Context, a USDClassTransferAction) error + func (c *ExchangeClient) USDSend(ctx context.Context, a USDSendAction) error + func (c *ExchangeClient) UpdateIsolatedMargin(ctx context.Context, a UpdateIsolatedMarginAction) error + func (c *ExchangeClient) UpdateLeverage(ctx context.Context, a UpdateLeverageAction) error + func (c *ExchangeClient) UserOutcome(ctx context.Context, a UserOutcomeAction) error + func (c *ExchangeClient) UserPortfolioMargin(ctx context.Context, a UserPortfolioMarginAction) error + func (c *ExchangeClient) UserSetAbstraction(ctx context.Context, a UserSetAbstractionAction) error + func (c *ExchangeClient) ValidatorL1Stream(ctx context.Context, a ValidatorL1StreamAction) error + func (c *ExchangeClient) VaultDistribute(ctx context.Context, a VaultDistributeAction) error + func (c *ExchangeClient) VaultModify(ctx context.Context, a VaultModifyAction) error + func (c *ExchangeClient) VaultTransfer(ctx context.Context, a VaultTransferAction) error + func (c *ExchangeClient) WithExpiresAfter(t time.Time) *ExchangeClient + func (c *ExchangeClient) WithVault(vault Address) *ExchangeClient + func (c *ExchangeClient) Withdraw(ctx context.Context, a WithdrawAction) error + type ExchangeStatus struct + SpecialStatuses *string + Time int64 + type ExistingTokenWei struct + Token int + Wei Decimal + func (e ExistingTokenWei) MarshalJSON() ([]byte, error) + type ExplorerTx struct + Action json.RawMessage + Block int64 + Error *string + Hash string + Time int64 + User Address + type ExtraAgent struct + Address Address + Name string + ValidUntil *int64 + type ExtraAgentsRequest struct + User Address + type FastAssetCtx struct + MarkPx *Decimal + MidPx *Decimal + type FastAssetCtxs map[string]FastAssetCtx + func (m *FastAssetCtxs) UnmarshalJSON(b []byte) error + type FeeSchedule struct + Add Decimal + Cross Decimal + ReferralDiscount Decimal + SpotAdd Decimal + SpotCross Decimal + StakingDiscountTiers []StakingDiscount + Tiers FeeTiers + type FeeTiers struct + MM []MMFeeTier + VIP []VIPFeeTier + type FillLiquidation struct + LiquidatedUser Address + MarkPx Decimal + Method string + type FilledOrder struct + AvgPx Decimal + Cloid *Cloid + Oid int64 + TotalSz Decimal + type FinalizeEVMContractAction struct + Input FinalizeEVMContractInput + Token int + type FinalizeEVMContractInput struct + func FinalizeCreate(nonce uint64) FinalizeEVMContractInput + func (in FinalizeEVMContractInput) MarshalJSON() ([]byte, error) + type FreezeUser struct + Freeze bool + Token int + User Address + type FrontendOpenOrder struct + Children []FrontendOpenOrder + Cloid *Cloid + Coin string + IsPositionTpsl bool + IsTrigger bool + LimitPx Decimal + Oid int64 + OrderType string + OrigSz Decimal + ReduceOnly bool + Side Side + Sz Decimal + Tif *Tif + Timestamp int64 + TriggerCondition string + TriggerPx Decimal + type FrontendOpenOrdersRequest struct + Dex string + User Address + type FundingDelta struct + Coin string + FundingRate Decimal + NSamples *int + Szi Decimal + Type string + USDC Decimal + type FundingHistoryRequest struct + Coin string + EndTime int64 + StartTime int64 + type FundingPayment struct + Coin string + FundingRate Decimal + NSamples *int + Szi Decimal + Time int64 + USDC Decimal + type FundingRate struct + Coin string + FundingRate Decimal + Premium Decimal + Time int64 + type FundingUpdate struct + Delta FundingDelta + Hash string + Time int64 + type GossipPriorityAuctionStatus struct + Auctions []AuctionStatus + IPs []*string + func (s *GossipPriorityAuctionStatus) UnmarshalJSON(b []byte) error + type GossipPriorityBidAction struct + IP string + MaxGas uint64 + SlotID int + type Grouping struct + func GroupingPriority(rate uint64) Grouping + func (g Grouping) MarshalJSON() ([]byte, error) + type HIP3LiquidatorTransferAction struct + Dex string + IsDeposit bool + Ntl uint64 + type HaltTrading struct + Coin string + IsHalted bool + type HistoricalOrdersRequest struct + User Address + type InfoClient struct + func NewInfoClient(network Network, opts ...Option) *InfoClient + func (c *InfoClient) ActiveAssetData(ctx context.Context, req ActiveAssetDataRequest) (*ActiveAssetData, error) + func (c *InfoClient) AllBorrowLendReserveStates(ctx context.Context) (TupleMap[int, BorrowLendReserveState], error) + func (c *InfoClient) AllMids(ctx context.Context, req AllMidsRequest) (map[string]Decimal, error) + func (c *InfoClient) AllPerpMetas(ctx context.Context) ([]Meta, error) + func (c *InfoClient) ApprovedBuilders(ctx context.Context, req ApprovedBuildersRequest) ([]Address, error) + func (c *InfoClient) BlockDetails(ctx context.Context, req BlockDetailsRequest) (*BlockDetails, error) + func (c *InfoClient) BorrowLendReserveState(ctx context.Context, req BorrowLendReserveStateRequest) (*BorrowLendReserveState, error) + func (c *InfoClient) BorrowLendUserState(ctx context.Context, req BorrowLendUserStateRequest) (*BorrowLendUserState, error) + func (c *InfoClient) CandleSnapshot(ctx context.Context, req CandleSnapshotRequest) ([]Candle, error) + func (c *InfoClient) ClearinghouseState(ctx context.Context, req ClearinghouseStateRequest) (*ClearinghouseState, error) + func (c *InfoClient) Delegations(ctx context.Context, req DelegationsRequest) ([]Delegation, error) + func (c *InfoClient) DelegatorHistory(ctx context.Context, req DelegatorHistoryRequest) ([]DelegatorEvent, error) + func (c *InfoClient) DelegatorRewards(ctx context.Context, req DelegatorRewardsRequest) ([]DelegatorReward, error) + func (c *InfoClient) DelegatorSummary(ctx context.Context, req DelegatorSummaryRequest) (*DelegatorSummary, error) + func (c *InfoClient) ExchangeStatus(ctx context.Context) (*ExchangeStatus, error) + func (c *InfoClient) ExtraAgents(ctx context.Context, req ExtraAgentsRequest) ([]ExtraAgent, error) + func (c *InfoClient) FrontendOpenOrders(ctx context.Context, req FrontendOpenOrdersRequest) ([]FrontendOpenOrder, error) + func (c *InfoClient) FundingHistory(ctx context.Context, req FundingHistoryRequest) ([]FundingRate, error) + func (c *InfoClient) GossipPriorityAuctionStatus(ctx context.Context) (*GossipPriorityAuctionStatus, error) + func (c *InfoClient) GossipRootIPs(ctx context.Context) ([]string, error) + func (c *InfoClient) HistoricalOrders(ctx context.Context, req HistoricalOrdersRequest) ([]OrderWithStatus, error) + func (c *InfoClient) IsVIP(ctx context.Context, req IsVIPRequest) (bool, error) + func (c *InfoClient) L2Book(ctx context.Context, req L2BookRequest) (*L2Book, error) + func (c *InfoClient) LeadingVaults(ctx context.Context, req LeadingVaultsRequest) ([]LeadingVault, error) + func (c *InfoClient) LegalCheck(ctx context.Context, req LegalCheckRequest) (*LegalCheck, error) + func (c *InfoClient) Liquidatable(ctx context.Context) ([]LiquidatablePosition, error) + func (c *InfoClient) MarginTable(ctx context.Context, req MarginTableRequest) (*MarginTable, error) + func (c *InfoClient) MaxBuilderFee(ctx context.Context, req MaxBuilderFeeRequest) (int, error) + func (c *InfoClient) MaxMarketOrderNtls(ctx context.Context) (TupleMap[int, Decimal], error) + func (c *InfoClient) Meta(ctx context.Context, req MetaRequest) (*Meta, error) + func (c *InfoClient) MetaAndAssetCtxs(ctx context.Context, req MetaAndAssetCtxsRequest) (*MetaAndAssetCtxs, error) + func (c *InfoClient) OpenOrders(ctx context.Context, req OpenOrdersRequest) ([]OpenOrder, error) + func (c *InfoClient) OrderStatus(ctx context.Context, req OrderStatusRequest) (*OrderWithStatus, error) + func (c *InfoClient) OutcomeMeta(ctx context.Context) (*OutcomeMeta, error) + func (c *InfoClient) OutcomeTemplates(ctx context.Context) ([]OutcomeTemplate, error) + func (c *InfoClient) PerpAnnotation(ctx context.Context, req PerpAnnotationRequest) (*PerpAnnotation, error) + func (c *InfoClient) PerpCategories(ctx context.Context) (TupleMap[string, string], error) + func (c *InfoClient) PerpConciseAnnotations(ctx context.Context) (TupleMap[string, PerpConciseAnnotation], error) + func (c *InfoClient) PerpDeployAuctionStatus(ctx context.Context) (*AuctionStatus, error) + func (c *InfoClient) PerpDexLimits(ctx context.Context, req PerpDexLimitsRequest) (*PerpDexLimits, error) + func (c *InfoClient) PerpDexStatus(ctx context.Context, req PerpDexStatusRequest) (*PerpDexStatus, error) + func (c *InfoClient) PerpDexs(ctx context.Context) ([]*PerpDex, error) + func (c *InfoClient) PerpsAtOpenInterestCap(ctx context.Context, req PerpsAtOpenInterestCapRequest) ([]string, error) + func (c *InfoClient) Portfolio(ctx context.Context, req PortfolioRequest) (Portfolio, error) + func (c *InfoClient) PreTransferCheck(ctx context.Context, req PreTransferCheckRequest) (*PreTransferCheck, error) + func (c *InfoClient) PredictedFundings(ctx context.Context) (TupleMap[string, TupleMap[string, *PredictedFunding]], error) + func (c *InfoClient) RecentTrades(ctx context.Context, req RecentTradesRequest) ([]Trade, error) + func (c *InfoClient) Referral(ctx context.Context, req ReferralRequest) (*Referral, error) + func (c *InfoClient) SettledOutcome(ctx context.Context, req SettledOutcomeRequest) (*SettledOutcome, error) + func (c *InfoClient) SpotClearinghouseState(ctx context.Context, req SpotClearinghouseStateRequest) (*SpotClearinghouseState, error) + func (c *InfoClient) SpotDeployState(ctx context.Context, req SpotDeployStateRequest) (*SpotDeployState, error) + func (c *InfoClient) SpotMeta(ctx context.Context) (*SpotMeta, error) + func (c *InfoClient) SpotMetaAndAssetCtxs(ctx context.Context) (*SpotMetaAndAssetCtxs, error) + func (c *InfoClient) SpotPairDeployAuctionStatus(ctx context.Context) (*AuctionStatus, error) + func (c *InfoClient) SubAccounts(ctx context.Context, req SubAccountsRequest) ([]SubAccount, error) + func (c *InfoClient) SubAccounts2(ctx context.Context, req SubAccounts2Request) ([]SubAccount2, error) + func (c *InfoClient) TokenDetails(ctx context.Context, req TokenDetailsRequest) (*TokenDetails, error) + func (c *InfoClient) TwapHistory(ctx context.Context, req TwapHistoryRequest) ([]TwapHistoryEntry, error) + func (c *InfoClient) TxDetails(ctx context.Context, req TxDetailsRequest) (*ExplorerTx, error) + func (c *InfoClient) USDCRouting(ctx context.Context) (*USDCRouting, error) + func (c *InfoClient) UserAbstraction(ctx context.Context, req UserAbstractionRequest) (Abstraction, error) + func (c *InfoClient) UserBorrowLendInterest(ctx context.Context, req UserBorrowLendInterestRequest) ([]BorrowLendInterest, error) + func (c *InfoClient) UserDetails(ctx context.Context, req UserDetailsRequest) ([]ExplorerTx, error) + func (c *InfoClient) UserDexAbstraction(ctx context.Context, req UserDexAbstractionRequest) (bool, error) + func (c *InfoClient) UserFees(ctx context.Context, req UserFeesRequest) (*UserFees, error) + func (c *InfoClient) UserFills(ctx context.Context, req UserFillsRequest) ([]UserFill, error) + func (c *InfoClient) UserFillsByTime(ctx context.Context, req UserFillsByTimeRequest) ([]UserFill, error) + func (c *InfoClient) UserFunding(ctx context.Context, req UserFundingRequest) ([]FundingUpdate, error) + func (c *InfoClient) UserNonFundingLedgerUpdates(ctx context.Context, req UserNonFundingLedgerUpdatesRequest) ([]LedgerUpdate, error) + func (c *InfoClient) UserRateLimit(ctx context.Context, req UserRateLimitRequest) (*RateLimit, error) + func (c *InfoClient) UserRole(ctx context.Context, req UserRoleRequest) (*UserRole, error) + func (c *InfoClient) UserToMultiSigSigners(ctx context.Context, req UserToMultiSigSignersRequest) (*MultiSigSigners, error) + func (c *InfoClient) UserTwapSliceFills(ctx context.Context, req UserTwapSliceFillsRequest) ([]TwapSliceFill, error) + func (c *InfoClient) UserTwapSliceFillsByTime(ctx context.Context, req UserTwapSliceFillsByTimeRequest) ([]TwapSliceFill, error) + func (c *InfoClient) UserVaultEquities(ctx context.Context, req UserVaultEquitiesRequest) ([]VaultEquity, error) + func (c *InfoClient) ValidatorL1Votes(ctx context.Context) ([]ValidatorL1Vote, error) + func (c *InfoClient) ValidatorSummaries(ctx context.Context) ([]ValidatorSummary, error) + func (c *InfoClient) VaultDetails(ctx context.Context, req VaultDetailsRequest) (*VaultDetails, error) + func (c *InfoClient) VaultSummaries(ctx context.Context) ([]VaultSummary, error) + func (c *InfoClient) WebData2(ctx context.Context, req WebData2Request) (*WebData2, error) + type InsertMarginTable struct + Dex string + MarginTable MarginTableSpec + type IsVIPRequest struct + User Address + type IsolatedPositionIndex struct + Asset int + type L2Book struct + Coin string + Fast bool + Levels [2][]L2Level + Spread *Decimal + Time int64 + type L2BookRequest struct + Coin string + Mantissa *int + NSigFigs *int + type L2BookSubscription struct + Coin string + Fast bool + Mantissa *int + NSigFigs *int + type L2Level struct + N int + Px Decimal + Sz Decimal + type LeadingVault struct + Address Address + Name string + type LeadingVaultsRequest struct + User Address + type LedgerDelta struct + AccountValue Decimal + Amount Decimal + Basis Decimal + ClosingCost Decimal + Commission Decimal + Destination Address + DestinationDex string + Dex string + Fee Decimal + FeeToken string + InterestAmount Decimal + IsDeposit bool + LeverageType string + LiquidatedNtlPos Decimal + LiquidatedPositions []LiquidatedPosition + NativeTokenFee Decimal + NetWithdrawnUSD Decimal + Nonce int64 + Operation string + RequestedUSD Decimal + SourceDex string + ToPerp bool + Token string + Type string + USDC Decimal + USDCValue Decimal + User Address + Vault Address + type LedgerUpdate struct + Delta LedgerDelta + Hash string + Time int64 + type LegalCheck struct + AcceptedTerms bool + Restrictions string + UserAllowed bool + type LegalCheckRequest struct + User Address + type Leverage struct + RawUSD Decimal + Type string + Value int + type LimitOrder struct + Tif Tif + type LinkStakingUserAction struct + IsFinalize bool + User Address + type LiquidatablePosition struct + MarginAvailable [2]Decimal + PositionIndex PositionIndex + User Address + type LiquidatedPosition struct + Coin string + Szi Decimal + type LiquidationEvent struct + Lid int64 + LiquidatedAccountValue Decimal + LiquidatedNtlPos Decimal + LiquidatedUser Address + Liquidator Address + type MMFeeTier struct + Add Decimal + MakerFractionCutoff Decimal + type MarginMode string + const MarginModeNoCross + const MarginModeNormal + const MarginModeStrictIsolated + type MarginSummary struct + AccountValue Decimal + TotalMarginUsed Decimal + TotalNtlPos Decimal + TotalRawUSD Decimal + type MarginTable struct + Description string + MarginTiers []MarginTier + type MarginTableRequest struct + Dex string + ID int + type MarginTableSpec struct + Description string + MarginTiers []MarginTierSpec + type MarginTier struct + LowerBound Decimal + MaxLeverage int + type MarginTierSpec struct + LowerBound uint64 + MaxLeverage int + type Markets struct + func LoadMarkets(ctx context.Context, c *InfoClient) (*Markets, error) + func (m *Markets) Asset(name string) (Asset, bool) + type MaxBuilderFeeRequest struct + Builder Address + User Address + type MergeOutcome struct + Amount *Decimal + Outcome int + type MergeQuestion struct + Amount *Decimal + Question int + type Meta struct + CollateralToken int + MarginTables TupleMap[int, MarginTable] + Universe []PerpAssetMeta + type MetaAndAssetCtxs struct + AssetCtxs []PerpAssetCtx + Meta Meta + func (m *MetaAndAssetCtxs) UnmarshalJSON(b []byte) error + type MetaAndAssetCtxsRequest struct + Dex string + type MetaRequest struct + Dex string + type Modify struct + Oid OrderRef + Order Order + type ModifyAction struct + AlwaysPlace bool + Oid OrderRef + Order Order + type MultiSigSigners struct + AuthorizedUsers []Address + Threshold int + type NegateOutcome struct + Amount Decimal + Outcome int + Question int + type Network struct + APIURL string + Mainnet bool + RPCURL string + WebSocketURL string + type NodeIP struct + IP string + type NonUserCancel struct + Coin string + Oid int64 + type NoopAction struct + type NotificationEvent struct + Notification string + type NotificationSubscription struct + User Address + type OpenOrder struct + Cloid *Cloid + Coin string + LimitPx Decimal + Oid int64 + OrigSz Decimal + ReduceOnly bool + Side Side + Sz Decimal + Timestamp int64 + type OpenOrdersEvent struct + Dex string + Orders []FrontendOpenOrder + User Address + type OpenOrdersRequest struct + Dex string + User Address + type OpenOrdersSubscription struct + Dex string + User Address + type Option func(*options) + func WithHTTPClient(c *http.Client) Option + func WithWebSocket(ws *WebSocketClient) Option + type Order struct + Asset int + Cloid *Cloid + IsBuy bool + Price Decimal + ReduceOnly bool + Size Decimal + Type OrderType + type OrderAction struct + Builder *Builder + Grouping Grouping + Orders []Order + type OrderProcessingStatus string + type OrderRef struct + Cloid *Cloid + Oid int64 + func (r OrderRef) MarshalJSON() ([]byte, error) + type OrderResult struct + Error string + Filled *FilledOrder + Resting *RestingOrder + Status string + func (s *OrderResult) UnmarshalJSON(b []byte) error + type OrderStatusRequest struct + Oid OrderRef + User Address + type OrderType struct + Limit *LimitOrder + Trigger *TriggerOrder + type OrderUpdate struct + Order OpenOrder + Status OrderProcessingStatus + StatusTimestamp int64 + type OrderUpdatesSubscription struct + User Address + type OrderWithStatus struct + Order FrontendOpenOrder + Status OrderProcessingStatus + StatusTimestamp int64 + type OutcomeDeployAction struct + Operation OutcomeOperation + Venue string + type OutcomeDeployer struct + Deployer Address + SubDeployers TupleMap[string, []Address] + Venue string + type OutcomeDeployerActivation struct + VenueName string + type OutcomeMeta struct + Deployers []OutcomeDeployer + FeeScale Decimal + Outcomes []OutcomeSpec + Questions []OutcomeQuestion + type OutcomeMetaUpdate struct + OutcomeCreated *OutcomeSpec + OutcomeSettled *OutcomeSettled + QuestionSettled *QuestionSettled + QuestionUpdated *OutcomeQuestion + type OutcomeMetaUpdatesEvent struct + Updates []OutcomeMetaUpdate + type OutcomeOperation struct + RegisterAndAssociateNamedOutcomeFromTemplate *RegisterNamedOutcome + RegisterQuestionFromTemplate *RegisterQuestionFromTemplate + RegisterStandaloneOutcomeFromTemplate *OutcomeTemplateInstance + SetSubDeployers []SubDeployer + SettleOutcome *OutcomeSettlement + SettleQuestion2 *SettleQuestion + type OutcomeQuestion struct + Description string + FallbackOutcome int + Name string + NamedOutcomes []int + Question int + SettledNamedOutcomes []int + type OutcomeSettled struct + Outcome int + type OutcomeSettlement struct + Details string + NameAndDescription [2]string + Outcome int + SettleFraction Decimal + SideNames [2]string + type OutcomeSideSpec struct + Name string + type OutcomeSpec struct + DeployerFeeScale Decimal + Description string + Name string + Outcome int + QuoteToken string + SideSpecs []OutcomeSideSpec + Venue string + type OutcomeTemplate struct + Description string + ID string + Keywords TupleMap[string, string] + Name string + Role OutcomeTemplateRole + type OutcomeTemplateInstance struct + DeployerFeeScale Decimal + ID string + KeywordToValue TupleMap[string, string] + type OutcomeTemplateRole struct + Question bool + QuestionOutcome *QuestionOutcomeRole + StandaloneOutcome *StandaloneOutcomeRole + func (r *OutcomeTemplateRole) UnmarshalJSON(b []byte) error + type PerpAnnotation struct + Category string + Description string + DisplayName string + Keywords []string + type PerpAnnotationRequest struct + Coin string + type PerpAssetCtx struct + DayBaseVlm Decimal + DayNtlVlm Decimal + Funding Decimal + ImpactPxs *[2]Decimal + MarkPx Decimal + MidPx *Decimal + OpenInterest Decimal + OraclePx Decimal + Premium *Decimal + PrevDayPx Decimal + type PerpAssetMeta struct + DeployerFeeScale Decimal + GrowthMode string + IsDelisted bool + LastFeeScaleChangeTime string + MarginMode string + MarginTableID int + MaxLeverage int + Name string + OnlyIsolated bool + SzDecimals int + type PerpAssetRequest struct + Coin string + MarginTableID int + OnlyIsolated bool + OraclePx Decimal + SzDecimals int + type PerpAssetRequest2 struct + Coin string + MarginMode MarginMode + MarginTableID int + OraclePx Decimal + SzDecimals int + type PerpConciseAnnotation struct + Category string + DisplayName string + Keywords []string + type PerpDeployAction struct + DisableDex string + HaltTrading *HaltTrading + InsertMarginTable *InsertMarginTable + RegisterAsset *RegisterPerpAsset + RegisterAsset2 *RegisterPerpAsset2 + SetDeployerFees TupleMap[string, DeployerFee] + SetFeeRecipient *SetFeeRecipient + SetFundingClamps TupleMap[string, Decimal] + SetFundingInterestRates TupleMap[string, Decimal] + SetFundingMultipliers TupleMap[string, Decimal] + SetMarginModes TupleMap[string, MarginMode] + SetMarginTableIDs TupleMap[string, int] + SetOpenInterestCaps TupleMap[string, *uint64] + SetOracle *SetOracle + SetPerpAnnotation *SetPerpAnnotation + SetSubDeployers *SetSubDeployers + type PerpDex struct + AssetToFundingClamp TupleMap[string, Decimal] + AssetToFundingInterestRate TupleMap[string, Decimal] + AssetToFundingMultiplier TupleMap[string, Decimal] + AssetToStreamingOICap TupleMap[string, Decimal] + Deployer Address + FeeRecipient *Address + FullName string + Name string + OracleUpdater *Address + SubDeployers TupleMap[SubDeployerVariant, []Address] + type PerpDexLimits struct + CoinToOICap TupleMap[string, Decimal] + MaxTransferNtl Decimal + OISzCapPerPerp Decimal + TotalOICap Decimal + type PerpDexLimitsRequest struct + Dex string + type PerpDexSchema struct + CollateralToken int + FullName string + OracleUpdater *Address + type PerpDexStatus struct + TotalNetDeposit Decimal + type PerpDexStatusRequest struct + Dex string + type PerpsAtOpenInterestCapRequest struct + Dex string + type Portfolio = TupleMap[string, PortfolioHistory] + type PortfolioHistory struct + AccountValueHistory []TimeValue + PnlHistory []TimeValue + Vlm Decimal + type PortfolioRequest struct + User Address + type Position struct + Coin string + CumFunding CumFunding + EntryPx Decimal + Leverage Leverage + LiquidationPx *Decimal + MarginUsed Decimal + MaxLeverage int + PositionValue Decimal + ReturnOnEquity Decimal + Szi Decimal + UnrealizedPnl Decimal + type PositionIndex struct + Isolated *IsolatedPositionIndex + type PreTransferCheck struct + Fee Decimal + IsSanctioned bool + UserExists bool + UserHasSentTx bool + type PreTransferCheckRequest struct + Source Address + User Address + type PredictedFunding struct + FundingIntervalHours int + FundingRate Decimal + NextFundingTime int64 + type PrivateKeySigner struct + func NewPrivateKeySigner(hexKey string) (*PrivateKeySigner, error) + func (s *PrivateKeySigner) Address() Address + func (s *PrivateKeySigner) SignHash(_ context.Context, hash [32]byte) (Signature, error) + type QuestionOutcomeRole struct + Parent string + type QuestionSettled struct + Question int + type QuestionStatus struct + Active *int + Settled *int + type RateLimit struct + CumVlm Decimal + NRequestsCap int + NRequestsSurplus int + NRequestsUsed int + type RecentTradesRequest struct + Coin string + type Referral struct + BuilderRewards Decimal + ClaimedRewards Decimal + CumVlm Decimal + ReferredBy *ReferredBy + ReferrerState ReferrerState + RewardHistory []ReferralReward + TokenToState TupleMap[int, ReferralTokenState] + UnclaimedRewards Decimal + type ReferralRequest struct + User Address + type ReferralReward struct + Earned Decimal + ReferralVlm Decimal + Time int64 + Vlm Decimal + type ReferralState struct + CumFeesRewardedToReferrer Decimal + CumRewardedFeesSinceReferred Decimal + CumVlm Decimal + TimeJoined int64 + TokenToState TupleMap[int, ReferralStateTokenState] + User Address + type ReferralStateTokenState struct + CumFeesRewardedToReferrer Decimal + CumRewardedFeesSinceReferred Decimal + CumVlm Decimal + type ReferralTokenState struct + BuilderRewards Decimal + ClaimedRewards Decimal + CumVlm Decimal + UnclaimedRewards Decimal + type ReferredBy struct + Code string + Referrer Address + type ReferrerData struct + Code string + NReferrals int + ReferralStates []ReferralState + Required Decimal + type ReferrerState struct + Data *ReferrerData + Stage string + type RegisterHyperliquidity struct + NOrders int + NSeededLevels *int + OrderSz Decimal + Spot int + StartPx Decimal + type RegisterNamedOutcome struct + NamedOutcomeTemplateInstance OutcomeTemplateInstance + Question int + type RegisterPerpAsset struct + AssetRequest PerpAssetRequest + Dex string + MaxGas *uint64 + Schema *PerpDexSchema + type RegisterPerpAsset2 struct + AssetRequest PerpAssetRequest2 + Dex string + MaxGas *uint64 + Schema *PerpDexSchema + type RegisterQuestionFromTemplate struct + NamedOutcomeTemplateInstances []OutcomeTemplateInstance + QuestionTemplateInstance OutcomeTemplateInstance + type RegisterReferrerAction struct + Code string + type RegisterSpot struct + Tokens [2]int + type RegisterToken2 struct + FullName string + MaxGas uint64 + Spec TokenSpec + type RequestEVMContract struct + Address Address + EVMExtraWeiDecimals int + Token int + type ReserveRequestWeightAction struct + Destination *Address + Weight uint64 + type RestingOrder struct + Cloid *Cloid + Oid int64 + type Retracement struct + Pct *Decimal + Px *Decimal + func (r Retracement) MarshalJSON() ([]byte, error) + type ScheduleCancelAction struct + Time int64 + type SendAssetAction struct + Amount Decimal + Destination Address + DestinationDex string + FromSubAccount *Address + SourceDex string + Token string + func (a SendAssetAction) MarshalJSON() ([]byte, error) + type SendToEVMWithDataAction struct + AddressEncoding AddressEncoding + Amount Decimal + Data []byte + DestinationChainID uint32 + DestinationRecipient string + GasLimit uint64 + SourceDex string + Token string + func (a SendToEVMWithDataAction) MarshalJSON() ([]byte, error) + type SetDeployerLabel struct + Label string + type SetDeployerTradingFeeShare struct + Share Decimal + Token int + func (s SetDeployerTradingFeeShare) MarshalJSON() ([]byte, error) + type SetDisplayNameAction struct + DisplayName string + type SetFeeRecipient struct + Dex string + FeeRecipient Address + type SetOracle struct + Dex string + ExternalPerpPxs TupleMap[string, Decimal] + MarkPxs []TupleMap[string, Decimal] + OraclePxs TupleMap[string, Decimal] + func (s SetOracle) MarshalJSON() ([]byte, error) + type SetPerpAnnotation struct + Category string + Coin string + Description string + DisplayName *string + Keywords []string + func (s SetPerpAnnotation) MarshalJSON() ([]byte, error) + type SetReferrerAction struct + Code string + type SetSubDeployers struct + Dex string + SubDeployers []SubDeployer + type SetTokenAnnotation struct + Annotation TokenAnnotation + Token int + type SettleQuestion struct + NameAndDescription [2]string + OutcomeSettlements []OutcomeSettlement + Question int + type SettledOutcome struct + Details string + Question *SettledOutcomeQuestion + SettleFraction Decimal + Spec OutcomeSpec + type SettledOutcomeQuestion struct + Description string + Name string + Question QuestionStatus + type SettledOutcomeRequest struct + Outcome int + type Side string + const SideAsk + const SideBid + type Signature struct + R [32]byte + S [32]byte + V byte + func (s *Signature) UnmarshalJSON(b []byte) error + func (s Signature) MarshalJSON() ([]byte, error) + type Signer interface + Address func() Address + SignHash func(ctx context.Context, hash [32]byte) (Signature, error) + type SplitOutcome struct + Amount Decimal + Outcome int + type SpotAssetCtx struct + CirculatingSupply Decimal + Coin string + DayBaseVlm Decimal + DayNtlVlm Decimal + MarkPx Decimal + MidPx *Decimal + PrevDayPx Decimal + TotalSupply Decimal + type SpotBalance struct + Borrowed Decimal + Coin string + EntryNtl Decimal + Hold Decimal + LTV Decimal + SpotHold Decimal + Supplied Decimal + Token int + Total Decimal + type SpotClearinghouseState struct + Balances []SpotBalance + EVMEscrows []EVMEscrow + PortfolioMarginEnabled bool + PortfolioMarginRatio Decimal + TokenToAvailableAfterMaintenance TupleMap[int, Decimal] + TokenToPortfolioBorrowRatio TupleMap[int, Decimal] + TokenToPortfolioSupplyRatio TupleMap[int, Decimal] + type SpotClearinghouseStateRequest struct + User Address + type SpotDeployAction struct + DisableQuoteToken *SpotDeployToken + EnableFreezePrivilege *SpotDeployToken + EnableQuoteToken *SpotDeployToken + FreezeUser *FreezeUser + Genesis *SpotGenesis + RegisterHyperliquidity *RegisterHyperliquidity + RegisterSpot *RegisterSpot + RegisterToken2 *RegisterToken2 + RequestEVMContract *RequestEVMContract + RevokeFreezePrivilege *SpotDeployToken + SetDeployerLabel *SetDeployerLabel + SetDeployerTradingFeeShare *SetDeployerTradingFeeShare + SetTokenAnnotation *SetTokenAnnotation + UserGenesis *UserGenesis + type SpotDeployState struct + GasAuction AuctionStatus + States []SpotDeployTokenState + type SpotDeployStateRequest struct + User Address + type SpotDeployToken struct + Token int + type SpotDeployTokenState struct + BlacklistUsers []Address + DeployerTradingFeeShare Decimal + ExistingTokenGenesisBalances TupleMap[int, Decimal] + FullName *string + HyperliquidityGenesisBalance Decimal + MaxSupply *Decimal + Spec TokenSpec + Spots []int + Token int + TotalGenesisBalanceWei Decimal + UserGenesisBalances TupleMap[Address, Decimal] + type SpotGenesis struct + MaxSupply Decimal + NoHyperliquidity bool + Token int + type SpotMeta struct + Tokens []SpotTokenMeta + Universe []SpotPairMeta + type SpotMetaAndAssetCtxs struct + AssetCtxs []SpotAssetCtx + Meta SpotMeta + func (m *SpotMetaAndAssetCtxs) UnmarshalJSON(b []byte) error + type SpotPairMeta struct + Index int + IsCanonical bool + Name string + Tokens [2]int + type SpotSendAction struct + Amount Decimal + Destination Address + Token string + type SpotStateEvent struct + SpotState SpotClearinghouseState + User Address + type SpotStateSubscription struct + IgnorePortfolioMargin bool + User Address + type SpotTokenMeta struct + DeployerLabel string + DeployerTradingFeeShare Decimal + EVMContract *EVMContract + FullName *string + Index int + IsCanonical bool + Name string + SzDecimals int + TokenID string + WeiDecimals int + type SpotUserAction struct + ToggleSpotDusting *ToggleSpotDusting + type StakingDeposit struct + Amount Decimal + type StakingDiscount struct + BpsOfMaxSupply Decimal + Discount Decimal + type StakingLink struct + StakingUser Address + TradingUser Address + Type string + type StakingLinkDisableTradingUserAction struct + TradingUser Address + type StakingWithdrawal struct + Amount Decimal + Phase string + type StandaloneOutcomeRole struct + SideNames [2]string + type StatusError struct + Index int + Message string + func (e *StatusError) Error() string + type SubAccount struct + ClearinghouseState ClearinghouseState + Master Address + Name string + SpotState SpotClearinghouseState + SubAccountUser Address + type SubAccount2 struct + Abstraction Abstraction + DexToClearinghouseState TupleMap[string, ClearinghouseState] + Master Address + Name string + SpotState SpotClearinghouseState + SubAccountUser Address + type SubAccountModifyAction struct + Name string + SubAccountUser Address + type SubAccountSpotTransferAction struct + Amount Decimal + IsDeposit bool + SubAccountUser Address + Token string + type SubAccountTransferAction struct + IsDeposit bool + SubAccountUser Address + USD uint64 + type SubAccounts2Request struct + User Address + type SubAccountsRequest struct + User Address + type SubDeployer struct + Allowed bool + User Address + Variant string + type SubDeployerVariant struct + HIP3Star bool + Name string + func (v *SubDeployerVariant) UnmarshalJSON(b []byte) error + func (v SubDeployerVariant) MarshalJSON() ([]byte, error) + type Subscription struct + func (l *Subscription) Done() <-chan struct{} + func (l *Subscription) Err() error + func (l *Subscription) Unsubscribe(ctx context.Context) error + type Tif string + const TifAlo + const TifFrontendMarket + const TifGtc + const TifIoc + type TimeValue struct + Time int64 + Value Decimal + func (t *TimeValue) UnmarshalJSON(b []byte) error + type ToggleSpotDusting struct + OptOut bool + type TokenAnnotation struct + Category string + Description string + DisplayName *string + Keywords []string + func (a TokenAnnotation) MarshalJSON() ([]byte, error) + type TokenDelegateAction struct + IsUndelegate bool + Validator Address + Wei uint64 + type TokenDetails struct + CirculatingSupply Decimal + DeployGas *Decimal + DeployTime *string + Deployer *Address + FutureEmissions Decimal + Genesis *TokenGenesis + MarkPx Decimal + MaxSupply Decimal + MidPx Decimal + Name string + NonCirculatingUserBalances TupleMap[Address, Decimal] + PrevDayPx Decimal + SeededUSDC Decimal + SzDecimals int + TotalSupply Decimal + WeiDecimals int + type TokenDetailsRequest struct + TokenID string + type TokenGenesis struct + BlacklistUsers []Address + ExistingTokenBalances TupleMap[int, Decimal] + UserBalances TupleMap[Address, Decimal] + type TokenSpec struct + Name string + SzDecimals int + WeiDecimals int + type TopUpIsolatedOnlyMarginAction struct + Asset int + Leverage Decimal + type Tpsl string + const TpslStopLoss + const TpslTakeProfit + type Trade struct + Coin string + Hash string + Px Decimal + Side Side + Sz Decimal + Tid int64 + Time int64 + Users [2]Address + type TradesSubscription struct + Coin string + type TrailingStopAction struct + ActivationPx *Decimal + Asset int + IsBuy bool + ReduceOnly bool + Retracement Retracement + Size Decimal + type TriggerOrder struct + IsMarket bool + Tpsl Tpsl + TriggerPx Decimal + type TupleMap map[K]V + func (m *TupleMap[K, V]) UnmarshalJSON(b []byte) error + func (m TupleMap[K, V]) MarshalJSON() ([]byte, error) + type Twap struct + Asset int + IsBuy bool + Minutes int + Randomize bool + ReduceOnly bool + Size Decimal + type TwapActivation struct + Above bool + Price Decimal + type TwapCancelAction struct + Asset int + TwapID int64 + type TwapDetails struct + StopPx *Decimal + Trigger *TwapActivation + type TwapHistoryEntry struct + State TwapState + Status TwapStatus + Time int64 + TwapID int64 + type TwapHistoryRequest struct + User Address + type TwapOrderAction struct + Details *TwapDetails + Twap Twap + type TwapSliceFill struct + Fill UserFill + TwapID int64 + type TwapState struct + Coin string + ExecutedNtl Decimal + ExecutedSz Decimal + Minutes int + Randomize bool + ReduceOnly bool + Side Side + StopPx *Decimal + Sz Decimal + Timestamp int64 + Trigger *TwapTrigger + User Address + type TwapStatesEvent struct + Dex string + States TupleMap[int64, TwapState] + User Address + type TwapStatesSubscription struct + Dex string + User Address + type TwapStatus struct + Description string + Status string + type TwapTrigger struct + Above bool + Px Decimal + type TxDetailsRequest struct + Hash string + type USDCRouting struct + DepositRoute string + WithdrawalRoute string + type USDClassTransferAction struct + Amount Decimal + SubAccount *Address + ToPerp bool + func (a USDClassTransferAction) MarshalJSON() ([]byte, error) + type USDSendAction struct + Amount Decimal + Destination Address + type UpdateIsolatedMarginAction struct + Asset int + IsBuy bool + Ntli int64 + type UpdateLeverageAction struct + Asset int + IsCross bool + Leverage int + type UserAbstractionRequest struct + User Address + type UserBorrowLendInterestRequest struct + EndTime int64 + StartTime int64 + User Address + type UserDetailsRequest struct + User Address + type UserDexAbstractionRequest struct + User Address + type UserEvent struct + Fills []UserFill + Funding *FundingPayment + Liquidation *LiquidationEvent + NonUserCancel []NonUserCancel + TwapHistory []TwapHistoryEntry + TwapSliceFills []TwapSliceFill + type UserEventsSubscription struct + User Address + type UserFees struct + ActiveReferralDiscount Decimal + ActiveStakingDiscount StakingDiscount + DailyUserVlm []DailyUserVolume + FeeSchedule FeeSchedule + FeeTrialEscrow Decimal + NextTrialAvailableTimestamp *int64 + StakingLink *StakingLink + Trial json.RawMessage + UserAddRate Decimal + UserCrossRate Decimal + UserSpotAddRate Decimal + UserSpotCrossRate Decimal + type UserFeesRequest struct + User Address + type UserFill struct + BuilderFee Decimal + Cloid *Cloid + ClosedPnl Decimal + Coin string + Crossed bool + Dir string + Fee Decimal + FeeToken string + FeeTrialEscrow Decimal + Hash string + Liquidation *FillLiquidation + Oid int64 + Px Decimal + Side Side + StartPosition Decimal + Sz Decimal + Tid int64 + Time int64 + TwapID *int64 + type UserFillsByTimeRequest struct + AggregateByTime bool + EndTime int64 + Reversed bool + StartTime int64 + User Address + type UserFillsEvent struct + Fills []UserFill + IsSnapshot bool + User Address + type UserFillsRequest struct + AggregateByTime bool + User Address + type UserFillsSubscription struct + AggregateByTime bool + User Address + type UserFundingRequest struct + EndTime int64 + StartTime int64 + User Address + type UserFundingsEvent struct + Fundings []FundingPayment + IsSnapshot bool + User Address + type UserFundingsSubscription struct + User Address + type UserGenesis struct + BlacklistUsers []BlacklistUser + ExistingTokenAndWei []ExistingTokenWei + Token int + UserAndWei []UserWei + func (g UserGenesis) MarshalJSON() ([]byte, error) + type UserHistoricalOrdersEvent struct + IsSnapshot bool + OrderHistory []OrderWithStatus + User Address + type UserHistoricalOrdersSubscription struct + User Address + type UserNonFundingLedgerUpdatesEvent struct + IsSnapshot bool + NonFundingLedgerUpdates []LedgerUpdate + User Address + type UserNonFundingLedgerUpdatesRequest struct + EndTime int64 + StartTime int64 + User Address + type UserNonFundingLedgerUpdatesSubscription struct + User Address + type UserOutcomeAction struct + MergeOutcome *MergeOutcome + MergeQuestion *MergeQuestion + NegateOutcome *NegateOutcome + SplitOutcome *SplitOutcome + type UserPortfolioMarginAction struct + Enabled bool + User Address + type UserRateLimitRequest struct + User Address + type UserRole struct + Data *UserRoleData + Role string + type UserRoleData struct + Master Address + User Address + type UserRoleRequest struct + User Address + type UserSetAbstractionAction struct + Abstraction Abstraction + User Address + type UserToMultiSigSignersRequest struct + User Address + type UserTwapHistoryEvent struct + History []TwapHistoryEntry + IsSnapshot bool + User Address + type UserTwapHistorySubscription struct + User Address + type UserTwapSliceFillsByTimeRequest struct + EndTime int64 + StartTime int64 + User Address + type UserTwapSliceFillsEvent struct + IsSnapshot bool + TwapSliceFills []TwapSliceFill + User Address + type UserTwapSliceFillsRequest struct + User Address + type UserTwapSliceFillsSubscription struct + User Address + type UserVaultEquitiesRequest struct + User Address + type UserWei struct + User Address + Wei Decimal + func (u UserWei) MarshalJSON() ([]byte, error) + type VIPFeeTier struct + Add Decimal + Cross Decimal + NtlCutoff Decimal + SpotAdd Decimal + SpotCross Decimal + type ValidatorL1StreamAction struct + RiskFreeRate Decimal + type ValidatorL1Vote struct + Action json.RawMessage + ExpireTime int64 + QuorumReached bool + Votes []Address + type ValidatorProfile struct + CommissionBps int + DelegationsDisabled bool + Description string + Name string + NodeIP NodeIP + Signer Address + type ValidatorProfileChange struct + CommissionBps *int + Description *string + DisableDelegations *bool + Name *string + NodeIP *NodeIP + Signer *Address + Unjailed bool + type ValidatorRegistration struct + InitialWei uint64 + Profile ValidatorProfile + Unjailed bool + type ValidatorStats struct + NSamples int + Period string + PredictedAPR Decimal + UptimeFraction Decimal + func (s *ValidatorStats) UnmarshalJSON(b []byte) error + type ValidatorSummary struct + Commission Decimal + Description string + IsActive bool + IsJailed bool + NRecentBlocks int + Name string + Signer Address + Stake int64 + Stats []ValidatorStats + UnjailableAfter *int64 + Validator Address + type VaultDetails struct + APR Decimal + AllowDeposits bool + AlwaysCloseOnWithdraw bool + Description string + FollowerState *VaultFollower + Followers []VaultFollower + IsClosed bool + Leader Address + LeaderCommission Decimal + LeaderFraction Decimal + MaxDistributable Decimal + MaxWithdrawable Decimal + Name string + Portfolio Portfolio + Relationship VaultRelationship + VaultAddress Address + func (d *VaultDetails) UnmarshalJSON(b []byte) error + type VaultDetailsRequest struct + User *Address + VaultAddress Address + type VaultDistributeAction struct + USD uint64 + VaultAddress Address + type VaultEquity struct + Equity Decimal + LockedUntilTimestamp int64 + VaultAddress Address + type VaultFollower struct + AllTimePnl Decimal + DaysFollowing int + LockupUntil int64 + Pnl Decimal + User Address + VaultEntryTime int64 + VaultEquity Decimal + type VaultModifyAction struct + AllowDeposits *bool + AlwaysCloseOnWithdraw *bool + VaultAddress Address + type VaultRelationship struct + Data *VaultRelationshipData + Type string + type VaultRelationshipData struct + ChildAddresses []Address + type VaultSummary struct + CreateTimeMillis int64 + IsClosed bool + Leader Address + Name string + Relationship VaultRelationship + TVL Decimal + VaultAddress Address + type VaultTransferAction struct + IsDeposit bool + USD uint64 + VaultAddress Address + type WebData2 struct + AgentAddress *Address + AgentValidUntil *int64 + AssetCtxs []PerpAssetCtx + ClearinghouseState ClearinghouseState + CumLedger Decimal + IsVault bool + LeadingVaults []LeadingVault + Meta Meta + OpenOrders []FrontendOpenOrder + OptOutOfSpotDusting bool + PerpsAtOpenInterestCap []string + ServerTime int64 + SpotAssetCtxs []SpotAssetCtx + SpotState *SpotClearinghouseState + TotalVaultEquity Decimal + TwapStates TupleMap[int64, TwapState] + User Address + type WebData2Request struct + User Address + type WebData3 struct + PerpDexStates []WebData3PerpDexState + UserState WebData3UserState + type WebData3PerpDexState struct + LeadingVaults []LeadingVault + PerpsAtOpenInterestCap []string + TotalVaultEquity Decimal + type WebData3Subscription struct + User Address + type WebData3UserState struct + Abstraction Abstraction + AgentAddress *Address + AgentValidUntil *int64 + CumLedger Decimal + DexAbstractionEnabled bool + IsVault bool + OptOutOfSpotDusting bool + ServerTime int64 + User Address + type WebSocketClient struct + func DialExplorerWebSocket(ctx context.Context, network Network, opts ...WebSocketOption) (*WebSocketClient, error) + func DialWebSocket(ctx context.Context, network Network, opts ...WebSocketOption) (*WebSocketClient, error) + func (c *WebSocketClient) ActiveAssetCtx(ctx context.Context, req ActiveAssetCtxSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) ActiveAssetData(ctx context.Context, req ActiveAssetDataSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) ActiveSpotAssetCtx(ctx context.Context, req ActiveAssetCtxSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) AllDexsAssetCtxs(ctx context.Context, handler func(AllDexsAssetCtxsEvent)) (*Subscription, error) + func (c *WebSocketClient) AllDexsClearinghouseState(ctx context.Context, req AllDexsClearinghouseStateSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) AllMids(ctx context.Context, req AllMidsSubscription, handler func(AllMidsEvent)) (*Subscription, error) + func (c *WebSocketClient) AssetCtxs(ctx context.Context, req AssetCtxsSubscription, handler func(AssetCtxsEvent)) (*Subscription, error) + func (c *WebSocketClient) Bbo(ctx context.Context, req BboSubscription, handler func(BboEvent)) (*Subscription, error) + func (c *WebSocketClient) Candle(ctx context.Context, req CandleSubscription, handler func(Candle)) (*Subscription, error) + func (c *WebSocketClient) ClearinghouseState(ctx context.Context, req ClearinghouseStateSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) Close() error + func (c *WebSocketClient) ExplorerBlock(ctx context.Context, handler func([]BlockDetails)) (*Subscription, error) + func (c *WebSocketClient) ExplorerTxs(ctx context.Context, handler func([]ExplorerTx)) (*Subscription, error) + func (c *WebSocketClient) FastAssetCtxs(ctx context.Context, handler func(FastAssetCtxs)) (*Subscription, error) + func (c *WebSocketClient) L2Book(ctx context.Context, req L2BookSubscription, handler func(L2Book)) (*Subscription, error) + func (c *WebSocketClient) Notification(ctx context.Context, req NotificationSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) OpenOrders(ctx context.Context, req OpenOrdersSubscription, handler func(OpenOrdersEvent)) (*Subscription, error) + func (c *WebSocketClient) OrderUpdates(ctx context.Context, req OrderUpdatesSubscription, handler func([]OrderUpdate)) (*Subscription, error) + func (c *WebSocketClient) OutcomeMetaUpdates(ctx context.Context, handler func(OutcomeMetaUpdatesEvent)) (*Subscription, error) + func (c *WebSocketClient) SpotAssetCtxs(ctx context.Context, handler func([]SpotAssetCtx)) (*Subscription, error) + func (c *WebSocketClient) SpotState(ctx context.Context, req SpotStateSubscription, handler func(SpotStateEvent)) (*Subscription, error) + func (c *WebSocketClient) Trades(ctx context.Context, req TradesSubscription, handler func([]Trade)) (*Subscription, error) + func (c *WebSocketClient) TwapStates(ctx context.Context, req TwapStatesSubscription, handler func(TwapStatesEvent)) (*Subscription, error) + func (c *WebSocketClient) UserEvents(ctx context.Context, req UserEventsSubscription, handler func(UserEvent)) (*Subscription, error) + func (c *WebSocketClient) UserFills(ctx context.Context, req UserFillsSubscription, handler func(UserFillsEvent)) (*Subscription, error) + func (c *WebSocketClient) UserFundings(ctx context.Context, req UserFundingsSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) UserHistoricalOrders(ctx context.Context, req UserHistoricalOrdersSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) UserNonFundingLedgerUpdates(ctx context.Context, req UserNonFundingLedgerUpdatesSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) UserTwapHistory(ctx context.Context, req UserTwapHistorySubscription, ...) (*Subscription, error) + func (c *WebSocketClient) UserTwapSliceFills(ctx context.Context, req UserTwapSliceFillsSubscription, ...) (*Subscription, error) + func (c *WebSocketClient) WebData3(ctx context.Context, req WebData3Subscription, handler func(WebData3)) (*Subscription, error) + type WebSocketOption func(*wsConfig) + func WithWebSocketErrorHandler(f func(error)) WebSocketOption + type WithdrawAction struct + Amount Decimal + Destination Address