View Source Hyperliquid.Api.Exchange.StakingLinkDisableTradingUser (hyperliquid v0.3.0)

Disable a trading user previously linked to a staking account.

The inverse of Hyperliquid.Api.Exchange.LinkStakingUser. Unlike that action this one is user-signed (EIP-712 typed data), so it must be signed with the master key rather than an agent wallet.

See: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint

Usage

{:ok, result} = StakingLinkDisableTradingUser.request("0xabc...")

Summary

Functions

Disable a linked trading user.

Functions

Link to this function

request(trading_user, opts \\ [])

View Source
@spec request(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

Disable a linked trading user.

Parameters

  • trading_user: Address of the trading user to disable
  • opts: Optional parameters

Options

  • :private_key - Private key for signing (falls back to config)

Returns

  • {:ok, response} - Result
  • {:error, term()} - Error details

Examples

{:ok, result} = StakingLinkDisableTradingUser.request("0xabc...")