View Source Hyperliquid.Api.Exchange.SetReferrer (hyperliquid v0.2.2)

Set the referrer code for your account.

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

Summary

Functions

Set the referrer code for your account.

Functions

Link to this function

request(code, opts \\ [])

View Source

Set the referrer code for your account.

Parameters

  • private_key: Private key for signing (hex string)
  • code: Referrer code to use
  • opts: Optional parameters

Returns

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

Examples

{:ok, result} = SetReferrer.request(private_key, "ABC123")