Versions in this module Expand all Collapse all v0 v0.1.4 Mar 13, 2026 v0.1.3 Mar 13, 2026 v0.1.2 Mar 13, 2026 v0.1.1 Mar 13, 2026 v0.1.0 Mar 13, 2026 Changes in this version + type Balance struct + Balances []struct{ ... } + type CancelOrderRequest struct + AssetID int + OrderID int64 + 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) 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) + 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 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 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) 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) UnsubscribeL2Book(coin string) error + func (c *WebsocketClient) UnsubscribeTrades(coin string) error