Lux.Config (Lux v0.5.0)

View Source

Central configuration for Lux application

Summary

Functions

Gets the Alchemy API key from configuration. Raises if the key is not configured.

Gets the Hyperliquid account's address from configuration. Returns empty string if not configured.

Gets the Hyperliquid account's private key from configuration. Raises if the key is not configured.

Gets the configured Hyperliquid API URL.

Gets the OpenAI API key from configuration. Raises if the key is not configured.

Retrieves the wallet address

Types

api_key()

@type api_key() :: String.t()

eth_address()

@type eth_address() :: String.t()

eth_key()

@type eth_key() :: String.t()

Functions

alchemy_api_key()

@spec alchemy_api_key() :: api_key()

Gets the Alchemy API key from configuration. Raises if the key is not configured.

hyperliquid_account_address()

@spec hyperliquid_account_address() :: eth_address()

Gets the Hyperliquid account's address from configuration. Returns empty string if not configured.

hyperliquid_account_key()

@spec hyperliquid_account_key() :: eth_key()

Gets the Hyperliquid account's private key from configuration. Raises if the key is not configured.

hyperliquid_api_url()

@spec hyperliquid_api_url() :: String.t()

Gets the configured Hyperliquid API URL.

openai_api_key()

@spec openai_api_key() :: api_key()

Gets the OpenAI API key from configuration. Raises if the key is not configured.

openweather_api_key()

@spec openweather_api_key() :: api_key()

resolve(value)

runtime(key, path, default \\ nil)

transpose_api_key()

@spec transpose_api_key() :: api_key()

wallet_address()

@spec wallet_address() :: String.t()

Retrieves the wallet address