Versions in this module Expand all Collapse all v1 v1.0.0 Jun 16, 2026 Changes in this version + type Balance struct + Balances []struct{ ... } + type CancelOrderRequest struct + AssetID int + OrderID int64 + type CancelOrderResponse struct + Statuses hyperliquid.MixedArray + type Candle struct + C string + H string + I string + L string + N int64 + O string + S string + T int64 + TClose int64 + V string + type CandleSnapshotRequest struct + Coin string + EndTime int64 + Interval string + StartTime int64 + type Client struct + func NewClient(base *hyperliquid.Client) *Client + func (c *Client) AllMids(ctx context.Context) (map[string]string, error) + func (c *Client) CancelOrder(ctx context.Context, req CancelOrderRequest) (*string, error) + func (c *Client) CandleSnapshot(ctx context.Context, coin string, interval string, startTime, endTime int64) ([]Candle, error) + func (c *Client) GetBalance() (*Balance, error) + func (c *Client) GetSpotMeta(ctx context.Context) (*SpotMeta, error) + func (c *Client) L2Book(ctx context.Context, coin string) (*L2BookResponse, error) + func (c *Client) ModifyOrder(ctx context.Context, req ModifyOrderRequest) (*OrderStatus, error) + func (c *Client) PlaceOrder(ctx context.Context, req PlaceOrderRequest) (*OrderStatus, error) + func (c *Client) UserOpenOrders(ctx context.Context, user string) ([]Order, error) + type L2BookResponse struct + Coin string + Levels [][]L2Level + Time int64 + type L2Level struct + N int + Px string + Sz string + type ModifyOrderRequest struct + Cloid *string + Oid *int64 + Order PlaceOrderRequest + type ModifyOrderResponse struct + Statuses []OrderStatus + type Order struct + Coin string + LimitPx string + Oid int64 + OrigSz string + Side string + Sz string + Timestamp int64 + type OrderFilled struct + AvgPx string + Oid int + TotalSz string + type OrderResting struct + ClientID *string + Oid int64 + Status string + type OrderStatus struct + Error *string + Filled *OrderFilled + Resting *OrderResting + type OrderType struct + Limit *OrderTypeLimit + Trigger *OrderTypeTrigger + type OrderTypeLimit struct + Tif hyperliquid.Tif + type OrderTypeTrigger struct + IsMarket bool + Tpsl hyperliquid.Tpsl + TriggerPx float64 + type PlaceOrderRequest struct + AssetID int + ClientOrderID *string + IsBuy bool + OrderType OrderType + Price float64 + Size float64 + type PlaceOrderResponse struct + Statuses []OrderStatus + type SpotMeta struct + Tokens []struct{ ... } + Universe []struct{ ... } + type WebsocketClient struct + func NewWebsocketClient(base *hyperliquid.WebsocketClient) *WebsocketClient + func (c *WebsocketClient) CancelOrder(ctx context.Context, req CancelOrderRequest) (chan hyperliquid.PostResult, error) + func (c *WebsocketClient) ModifyOrder(ctx context.Context, req ModifyOrderRequest) (chan hyperliquid.PostResult, error) + func (c *WebsocketClient) PlaceOrder(ctx context.Context, req PlaceOrderRequest) (chan hyperliquid.PostResult, error) + func (c *WebsocketClient) SubscribeBbo(coin string, handler func(hyperliquid.WsBbo)) error + func (c *WebsocketClient) SubscribeCandle(coin string, interval string, handler func(hyperliquid.WsCandle)) error + func (c *WebsocketClient) SubscribeL2Book(coin string, handler func(hyperliquid.WsL2Book)) error + func (c *WebsocketClient) SubscribeOrderUpdates(user string, handler func([]hyperliquid.WsOrderUpdate)) error + func (c *WebsocketClient) SubscribeTrades(coin string, handler func([]hyperliquid.WsTrade)) error + func (c *WebsocketClient) SubscribeUserEvents(user string, handler func(hyperliquid.WsUserEvent)) error + func (c *WebsocketClient) SubscribeUserFills(user string, handler func(hyperliquid.WsUserFills)) error + func (c *WebsocketClient) UnsubscribeBbo(coin string) error + func (c *WebsocketClient) UnsubscribeCandle(coin string, interval string) error + func (c *WebsocketClient) UnsubscribeL2Book(coin string) error + func (c *WebsocketClient) UnsubscribeTrades(coin string) error