Lux.Prisms.Hyperliquid.HyperliquidTokenInfoPrism (Lux v0.5.0)
View SourceA prism that fetches token price data from the Hyperliquid API.
Example
iex> Lux.Prisms.Hyperliquid.HyperliquidTokenInfoPrism.run(%{})
{:ok, %{
prices: %{
"BTC" => %{
"funding" => "0.0000125",
"markPx" => "104050.0",
# ...other fields
},
# ...other tokens
}
}}
The prism reads authentication details from configuration:
- :hyperliquid_private_key - Ethereum account private key for authentication
- :hyperliquid_address - (Optional) Ethereum account address
Summary
Functions
Callback implementation for Lux.Prism.handler/2
.
Returns the Prism struct for this module.