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 api exchange noop.ex
Raw

lib/hyperliquid/api/exchange/noop.ex

defmodule Hyperliquid.Api.Exchange.Noop do
@moduledoc """
Send a no-op (heartbeat) to keep connection alive.
See: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint
## Usage
{:ok, result} = Noop.request(private_key)
"""
use Hyperliquid.Api.ExchangeEndpoint,
action_type: "noop",
signing: :l1,
doc: "Send a no-op heartbeat to keep connection alive",
returns: "Success/error response from exchange",
params: [],
optional_params: [:private_key, :vault_address],
rate_limit_cost: 1
end