Skip to main content

validate_order_for_hyperliquid

Function validate_order_for_hyperliquid 

Source
pub fn validate_order_for_hyperliquid(order: &OrderAny) -> Result<()>
Expand description

Validates that an order is acceptable for submission to Hyperliquid.

Checks symbol format, order type support, and HIP-4-specific restrictions (no reduce-only, no trigger order types on outcome side tokens).

ยงErrors

Returns an error describing the first validation failure encountered.