Expand description
Order type conversion utilities for Hyperliquid adapter.
This module provides conversion functions between Nautilus core order types and Hyperliquid-specific order type representations.
Functionsยง
- determine_
tpsl_ type - Determines the TP/SL type based on order type and side.
- hyperliquid_
conditional_ to_ nautilus - Converts a Hyperliquid conditional order type to a Nautilus
OrderType. - hyperliquid_
order_ type_ to_ nautilus - Converts a Hyperliquid order type to a Nautilus
OrderType. - hyperliquid_
time_ in_ force_ to_ nautilus - Converts a Hyperliquid time in force to a Nautilus
TimeInForce. - nautilus_
order_ type_ to_ hyperliquid - Converts a Nautilus
OrderTypeto a Hyperliquid order type configuration. - nautilus_
time_ in_ force_ to_ hyperliquid - Converts a Nautilus
TimeInForceto a Hyperliquid time in force. - nautilus_
to_ hyperliquid_ conditional - Converts a Nautilus
OrderTypeto a Hyperliquid conditional order type. - outcome_
asset_ id_ from_ instrument_ id - Parses an outcome (HIP-4) asset ID from a Nautilus instrument ID.
- outcome_
asset_ id_ to_ coin - Converts an outcome (HIP-4) asset ID to its spot coin representation.
- outcome_
asset_ id_ to_ instrument_ id - Converts an outcome (HIP-4) asset ID to its canonical Nautilus instrument ID.
- outcome_
asset_ id_ to_ token - Converts an outcome (HIP-4) asset ID to its token name representation.