Skip to main content

map_sdk_error

Function map_sdk_error 

Source
pub fn map_sdk_error(error: Error) -> UnindexedClientError
Expand description

Maps Hyperliquid SDK errors to UnindexedClientError.

The SDK uses its own error type internally, so we pattern-match on error messages to determine transient vs permanent errors.

A rate limit carries no retry_after: the SDK keeps no response headers, and Hyperliquid documents no wait.