Expand description
Retry classification for the Derive adapter.
Splits DeriveHttpError and DeriveWsError into retryable, terminal,
and fatal categories. The HTTP client routes errors through these classifiers
when driving [nautilus_network::retry::RetryManager]; the adapter-level
crate::common::error::DeriveError reuses them for is_retryable /
is_fatal.
Functions§
- http_
retry_ config - Builds a [
RetryConfig] for Derive HTTP calls from the adapter’s config fields. - is_
fatal_ http_ error - Returns
truefor HTTP errors that signal a fatal session state requiring operator intervention (auth header rejection, session key deregistered, subaccount withdrawn). - is_
fatal_ ws_ error - Returns
truefor WebSocket errors that indicate a fatal session state. - should_
retry_ http_ error - Returns
truefor transient HTTP errors eligible for read retries with backoff. - should_
retry_ ws_ error - Returns
truefor transient WebSocket errors eligible for recovery retries.