View Source Hyperliquid.Api.Subscription (hyperliquid v0.1.1)

Subscriptions and related helper methods.

Summary

Types

@type subscription() :: %{
  type: String.t(),
  user: String.t() | nil,
  coin: String.t() | nil,
  interval: String.t() | nil
}
Link to this type

subscription_message()

View Source
@type subscription_message() :: %{method: String.t(), subscription: subscription()}

Functions

Link to this function

active_asset_data(user, coin)

View Source
Link to this function

make_user_subs(user, coin)

View Source
Link to this function

to_encoded_message(sub, sub? \\ true)

View Source
Link to this function

to_message(sub, sub? \\ true)

View Source
Link to this function

user_historical_orders(user)

View Source
Link to this function

user_non_funding_ledger_updates(user)

View Source
Link to this function

user_twap_slice_fills(user)

View Source