Lux.Prisms.Hyperliquid.HyperliquidOpenOrdersPrism (Lux v0.5.0)
View SourceA prism that fetches open orders from the Hyperliquid exchange.
Example
# Get open orders for a specific address
iex> Lux.Prisms.Hyperliquid.HyperliquidOpenOrdersPrism.run(%{
...> address: "0x0403369c02199a0cb827f4d6492927e9fa5668d5"
...> })
{:ok,
%{
"status" => "success",
"open_orders" => [
%{
"coin" => "ETH",
"oid" => 123456,
"sz" => "0.1",
"limit_px" => "2800.0",
"order_type" => %{
"limit" => %{
"tif" => "Gtc"
}
},
"side" => "B",
"timestamp" => 1678901234567
}
]
}}
The prism reads authentication details from configuration:
- :hyperliquid_private_key - Ethereum account private key for authentication
Summary
Functions
Callback implementation for Lux.Prism.handler/2
.
Returns the Prism struct for this module.