Skip to content

Environment Variables

Public Usage

No environment variables are required for:

  • Info
  • Streams

Authenticated Usage

The only environment variable currently used by the library itself is:

HYPERLIQUID_PRIVATE_KEY=

Hyperliquid.http() and Hyperliquid.ws() read HYPERLIQUID_PRIVATE_KEY if you do not pass a wallet explicitly.

Networks

Network selection is configured through function arguments, not environment variables:

from hyperliquid import Info, Streams, Hyperliquid

info = Info.http(mainnet=False)
streams = Streams.new(mainnet=False)
client = Hyperliquid.http(mainnet=False)

There is no API key, API secret, or passphrase flow in the current implementation.