Packages

Elixir SDK for Hyperliquid DEX with DSL-based API endpoints, WebSocket subscriptions, and optional Postgres/Phoenix integration

Current section

Files

Jump to
hyperliquid lib hyperliquid application.ex
Raw

lib/hyperliquid/application.ex

defmodule Hyperliquid.Application do
@moduledoc false
use Application
@workers :worker_registry
@users :user_registry
@cache :hyperliquid
@impl true
def start(_type, _args) do
children = [
{Phoenix.PubSub, name: Hyperliquid.PubSub},
{Cachex, name: @cache},
{Registry, [keys: :unique, name: @workers]},
{Registry, [keys: :unique, name: @users]},
Hyperliquid.Streamer.Supervisor,
Hyperliquid.Manager
]
opts = [strategy: :one_for_one, name: Hyperliquid.Supervisor]
Supervisor.start_link(children, opts)
end
end