HyperLiquid.Net AI API Quick Map

June 29, 2026 ยท View on GitHub

Use this file to route common user intents to the correct HyperLiquid.Net client member. If a method name or parameter is not listed here, inspect HyperLiquid.Net/Interfaces/Clients/** before generating code.

Client Roots

IntentUse
REST callsnew HyperLiquidRestClient()
WebSocket streams and socket API requestsnew HyperLiquidSocketClient()
API key authenticationoptions.ApiCredentials = new HyperLiquidCredentials("public address", "private key")
Live environmentHyperLiquidEnvironment.Live
Testnet environmentHyperLiquidEnvironment.Testnet
Dependency injectionservices.AddHyperLiquid(options => { ... })
Disable builder feeoptions.BuilderFeePercentage = 0
Format spot symbolHyperLiquidExchange.FormatSymbol("HYPE", "USDC", TradingMode.Spot)
Format futures symbolHyperLiquidExchange.FormatSymbol("ETH", "USDC", TradingMode.PerpetualLinear)

Spot REST

User intentHyperLiquid.Net member
Get all mid pricesclient.SpotApi.ExchangeData.GetPricesAsync()
Get spot exchange infoclient.SpotApi.ExchangeData.GetExchangeInfoAsync()
Get spot exchange info and tickersclient.SpotApi.ExchangeData.GetExchangeInfoAndTickersAsync()
Get spot asset infoclient.SpotApi.ExchangeData.GetAssetInfoAsync(assetId)
Get spot order bookclient.SpotApi.ExchangeData.GetOrderBookAsync("HYPE/USDC")
Get spot klinesclient.SpotApi.ExchangeData.GetKlinesAsync("HYPE/USDC", KlineInterval.OneMinute, start, end)
Get spot balancesclient.SpotApi.Account.GetBalancesAsync()
Get fee infoclient.SpotApi.Account.GetFeeInfoAsync()
Get account ledgerclient.SpotApi.Account.GetAccountLedgerAsync(start, end)
Get rate limitsclient.SpotApi.Account.GetRateLimitsAsync()
Get approved builder feeclient.SpotApi.Account.GetApprovedBuilderFeeAsync()
Approve library builder feeclient.SpotApi.Account.ApproveBuilderFeeAsync()
Approve custom builder feeclient.SpotApi.Account.ApproveBuilderFeeAsync(builderAddress, maxFeePercentage)
Send spot assetclient.SpotApi.Account.TransferSpotAsync(destinationAddress, asset, quantity)
Send USDclient.SpotApi.Account.TransferUsdAsync(destinationAddress, quantity)
Withdraw USDclient.SpotApi.Account.WithdrawAsync(destinationAddress, quantity)
Transfer between spot and futuresclient.SpotApi.Account.TransferInternalAsync(direction, quantity)
Get subaccountsclient.SpotApi.Account.GetSubAccountsAsync()
Get user roleclient.SpotApi.Account.GetUserRoleAsync()
Get extra agentsclient.SpotApi.Account.GetExtraAgentsAsync()
Get staking delegationsclient.SpotApi.Account.GetStakingDelegationsAsync()
Get staking summaryclient.SpotApi.Account.GetStakingSummaryAsync()
Get staking historyclient.SpotApi.Account.GetStakingHistoryAsync()
Get staking rewardsclient.SpotApi.Account.GetStakingRewardsAsync()
Deposit into stakingclient.SpotApi.Account.DepositIntoStakingAsync(wei)
Withdraw from stakingclient.SpotApi.Account.WithdrawFromStakingAsync(wei)
Delegate or undelegate stakeclient.SpotApi.Account.DelegateOrUndelegateStakeFromValidatorAsync(direction, validator, wei)
Deposit or withdraw vault fundsclient.SpotApi.Account.DepositOrWithdrawFromVaultAsync(direction, vaultAddress, usd)
Place spot orderclient.SpotApi.Trading.PlaceOrderAsync("HYPE/USDC", side, orderType, quantity, price, ...)
Place multiple spot ordersclient.SpotApi.Trading.PlaceMultipleOrdersAsync(requests)
Get spot/futures open ordersclient.SpotApi.Trading.GetOpenOrdersAsync()
Get extended open ordersclient.SpotApi.Trading.GetOpenOrdersExtendedAsync()
Get user tradesclient.SpotApi.Trading.GetUserTradesAsync()
Get user trades by timeclient.SpotApi.Trading.GetUserTradesByTimeAsync(start, end)
Get order by id or client idclient.SpotApi.Trading.GetOrderAsync(orderId, clientOrderId)
Get order historyclient.SpotApi.Trading.GetOrderHistoryAsync()
Cancel spot orderclient.SpotApi.Trading.CancelOrderAsync("HYPE/USDC", orderId)
Cancel multiple ordersclient.SpotApi.Trading.CancelOrdersAsync(requests)
Cancel by client order idclient.SpotApi.Trading.CancelOrderByClientOrderIdAsync("HYPE/USDC", clientOrderId)
Dead man's switchclient.SpotApi.Trading.CancelAfterAsync(timeout)
Edit orderclient.SpotApi.Trading.EditOrderAsync(...)
Edit multiple ordersclient.SpotApi.Trading.EditOrdersAsync(requests)
Place TWAP orderclient.SpotApi.Trading.PlaceTwapOrderAsync(...)
Cancel TWAP orderclient.SpotApi.Trading.CancelTwapOrderAsync(symbol, twapId)

Futures REST

User intentHyperLiquid.Net member
Get all mid pricesclient.FuturesApi.ExchangeData.GetPricesAsync()
Get perp DEXesclient.FuturesApi.ExchangeData.GetPerpDexesAsync()
Get futures exchange infoclient.FuturesApi.ExchangeData.GetExchangeInfoAsync()
Get futures exchange info for HIP-3 DEXclient.FuturesApi.ExchangeData.GetExchangeInfoAsync(dex)
Get exchange info for all perp DEXesclient.FuturesApi.ExchangeData.GetExchangeInfoAllDexesAsync()
Get futures exchange info and tickersclient.FuturesApi.ExchangeData.GetExchangeInfoAndTickersAsync()
Get funding rate historyclient.FuturesApi.ExchangeData.GetFundingRateHistoryAsync("ETH", start, end)
Get symbols at max open interestclient.FuturesApi.ExchangeData.GetSymbolsAtMaxOpenInterestAsync(dex)
Get Perp DEX market limitsclient.FuturesApi.ExchangeData.GetPerpDexMarketLimitsAsync(dex)
Get Perp DEX market statusclient.FuturesApi.ExchangeData.GetPerpDexMarketStatusAsync(dex)
Get futures order bookclient.FuturesApi.ExchangeData.GetOrderBookAsync("ETH")
Get futures klinesclient.FuturesApi.ExchangeData.GetKlinesAsync("ETH", KlineInterval.OneMinute, start, end)
Get futures account and positionsclient.FuturesApi.Account.GetAccountInfoAsync()
Get futures account for DEXclient.FuturesApi.Account.GetAccountInfoAsync(dex: dex)
Get funding historyclient.FuturesApi.Account.GetFundingHistoryAsync(start, end)
Get user symbol stateclient.FuturesApi.Account.GetUserSymbolAsync("ETH")
Get HIP-3 DEX abstraction stateclient.FuturesApi.Account.GetHip3DexAbstractionAsync()
Toggle HIP-3 DEX abstractionclient.FuturesApi.Account.ToggleHip3DexAbstractionAsync(enabled)
Set leverageclient.FuturesApi.Trading.SetLeverageAsync("ETH", leverage, MarginType.Cross)
Update isolated marginclient.FuturesApi.Trading.UpdateIsolatedMarginAsync("ETH", updateValue)
Place futures orderclient.FuturesApi.Trading.PlaceOrderAsync("ETH", side, orderType, quantity, price, ...)
Place reduce-only close orderclient.FuturesApi.Trading.PlaceOrderAsync("ETH", side, OrderType.Market, quantity, price, reduceOnly: true)
Place futures trigger orderclient.FuturesApi.Trading.PlaceOrderAsync("ETH", side, orderType, quantity, price, triggerPrice: trigger, tpSlType: type)
Place futures TWAP orderclient.FuturesApi.Trading.PlaceTwapOrderAsync("ETH", side, quantity, reduceOnly, minutes, randomize)

Spot WebSocket

User intentHyperLiquid.Net member
Get prices over socket request APIsocketClient.SpotApi.ExchangeData.GetPricesAsync()
Get spot exchange info over socket request APIsocketClient.SpotApi.ExchangeData.GetExchangeInfoAsync()
Get spot exchange info and tickers over socket request APIsocketClient.SpotApi.ExchangeData.GetExchangeInfoAndTickersAsync()
Get spot balances over socket request APIsocketClient.SpotApi.Account.GetBalancesAsync()
Place spot order over socket request APIsocketClient.SpotApi.Trading.PlaceOrderAsync(...)
Subscribe spot symbol updatessocketClient.SpotApi.ExchangeData.SubscribeToSymbolUpdatesAsync("HYPE/USDC", handler)
Subscribe spot balance updatessocketClient.SpotApi.Account.SubscribeToBalanceUpdatesAsync(address, handler)
Subscribe spot order booksocketClient.SpotApi.ExchangeData.SubscribeToOrderBookUpdatesAsync("HYPE/USDC", handler)
Subscribe spot klinessocketClient.SpotApi.ExchangeData.SubscribeToKlineUpdatesAsync("HYPE/USDC", interval, handler)
Subscribe spot tradessocketClient.SpotApi.ExchangeData.SubscribeToTradeUpdatesAsync("HYPE/USDC", handler)
Subscribe spot book tickersocketClient.SpotApi.ExchangeData.SubscribeToBookTickerUpdatesAsync("HYPE/USDC", handler)
Subscribe order updatessocketClient.SpotApi.Trading.SubscribeToOrderUpdatesAsync(address, handler)
Subscribe open order updatessocketClient.SpotApi.Trading.SubscribeToOpenOrderUpdatesAsync(address, dex, handler)
Subscribe user trade updatessocketClient.SpotApi.Trading.SubscribeToUserTradeUpdatesAsync(address, handler)
Subscribe TWAP trade updatessocketClient.SpotApi.Trading.SubscribeToTwapTradeUpdatesAsync(address, handler)
Subscribe TWAP order updatessocketClient.SpotApi.Trading.SubscribeToTwapOrderUpdatesAsync(address, handler)
Subscribe user ledger updatessocketClient.SpotApi.Account.SubscribeToUserLedgerUpdatesAsync(address, handler)
Subscribe user event updatessocketClient.SpotApi.Account.SubscribeToUserEventUpdatesAsync(...)
Subscribe web data v3 updatessocketClient.SpotApi.Account.SubscribeToWebData3UpdatesAsync(address, handler)

Futures WebSocket

User intentHyperLiquid.Net member
Get futures exchange info over socket request APIsocketClient.FuturesApi.ExchangeData.GetExchangeInfoAsync()
Get futures account over socket request APIsocketClient.FuturesApi.Account.GetAccountInfoAsync()
Set leverage over socket request APIsocketClient.FuturesApi.Trading.SetLeverageAsync("ETH", leverage, MarginType.Cross)
Place futures order over socket request APIsocketClient.FuturesApi.Trading.PlaceOrderAsync(...)
Subscribe futures symbol updatessocketClient.FuturesApi.ExchangeData.SubscribeToSymbolUpdatesAsync("ETH", handler)
Subscribe all mid pricessocketClient.FuturesApi.ExchangeData.SubscribeToPriceUpdatesAsync(dex, handler)
Subscribe futures account and position updatessocketClient.FuturesApi.Trading.SubscribeToBalanceAndPositionUpdatesAsync(address, dex, handler)
Subscribe account and position updates all DEXessocketClient.FuturesApi.Trading.SubscribeToBalanceAndPositionUpdatesAllDexesAsync(address, handler)
Subscribe user symbol updatessocketClient.FuturesApi.Account.SubscribeToUserSymbolUpdatesAsync(address, "ETH", handler)
Subscribe user funding updatessocketClient.FuturesApi.Account.SubscribeToUserFundingUpdatesAsync(address, handler)
Subscribe futures order booksocketClient.FuturesApi.ExchangeData.SubscribeToOrderBookUpdatesAsync("ETH", handler)
Subscribe futures klinessocketClient.FuturesApi.ExchangeData.SubscribeToKlineUpdatesAsync("ETH", interval, handler)
Subscribe futures tradessocketClient.FuturesApi.ExchangeData.SubscribeToTradeUpdatesAsync("ETH", handler)
Subscribe futures book tickersocketClient.FuturesApi.ExchangeData.SubscribeToBookTickerUpdatesAsync("ETH", handler)
Subscribe order updatessocketClient.FuturesApi.Trading.SubscribeToOrderUpdatesAsync(address, handler)
Subscribe user trade updatessocketClient.FuturesApi.Trading.SubscribeToUserTradeUpdatesAsync(address, handler)

SharedApis

Use SharedApis for exchange-agnostic code across HyperLiquid, Binance, OKX, Bybit, Kraken, and other CryptoExchange.Net libraries.

User intentHyperLiquid.Net member or interface
Shared spot REST clientnew HyperLiquidRestClient().SpotApi.SharedClient
Shared futures REST clientnew HyperLiquidRestClient().FuturesApi.SharedClient
Shared spot socket clientnew HyperLiquidSocketClient().SpotApi.SharedClient
Shared futures socket clientnew HyperLiquidSocketClient().FuturesApi.SharedClient
Discover shared capabilitiesclient.SpotApi.SharedClient.Discover()
Shared spot ticker RESTISpotTickerRestClient.GetSpotTickerAsync(new GetTickerRequest(symbol))
Shared futures ticker RESTIFuturesTickerRestClient.GetFuturesTickerAsync(new GetTickerRequest(symbol))
Shared spot order RESTISpotOrderRestClient.PlaceSpotOrderAsync(...)
Shared futures order RESTIFuturesOrderRestClient.PlaceFuturesOrderAsync(...)
Shared balances RESTIBalanceRestClient.GetBalancesAsync(new GetBalancesRequest(...))
Shared position RESTIPositionRestClient.GetPositionsAsync(...)
Shared ticker socketITickerSocketClient.SubscribeToTickerUpdatesAsync(...)
Shared order book socketIOrderBookSocketClient.SubscribeToOrderBookUpdatesAsync(...)
Shared trade socketITradeSocketClient.SubscribeToTradeUpdatesAsync(...)

Shared REST methods return HttpResult<T> / HttpResult; shared socket subscriptions return WebSocketResult<UpdateSubscription>; shared symbol/cache helpers such as SupportsSpotSymbolAsync and SupportsFuturesSymbolAsync can return ExchangeCallResult<T>.

For shared socket subscriptions, keep the concrete socket client and unsubscribe with await socketClient.UnsubscribeAsync(subscription.Data).

Result Handling

SituationPattern
REST success checkif (!result.Success) { Console.WriteLine(result.Error); return; }
Socket subscription success checkif (!sub.Success) { Console.WriteLine(sub.Error); return; } where sub is WebSocketResult<UpdateSubscription>
Socket request success checkif (!query.Success) { Console.WriteLine(query.Error); return; } where query is QueryResult<T> or QueryResult
Read REST dataRead result.Data only after result.Success
Read shared helper dataRead ExchangeCallResult<T>.Data only after .Success
Retry decisionRetry only when result.Error?.IsTransient == true
CancellationPass ct: cancellationToken

Common Routing Pitfalls

Do not useUse instead
Raw HttpClient to HyperLiquid endpointsHyperLiquidRestClient / HyperLiquidSocketClient
ApiCredentialsHyperLiquidCredentials
HYPEUSDC spot symbolHYPE/USDC
ETH/USDC futures symbolETH
.Data without .Success checkCheck .Success first
Market order without pricePass price to PlaceOrderAsync
Separate margin clientFuturesApi.Trading.SetLeverageAsync / UpdateIsolatedMarginAsync
Separate staking clientSpotApi.Account.GetStaking* and staking action methods
ITickerSocketClient.UnsubscribeAsync(...)Keep the concrete socket client and call socketClient.UnsubscribeAsync(subscription.Data)
Invented GetServerTimeAsync()Inspect interfaces; HyperLiquid.Net does not expose that method