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 helpers
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. - is_
write_ outcome_ definitive_ http_ status - Returns
truefor non-JSON-RPC HTTP statuses where a state-changing write failed before the matching engine could accept it. - should_
retry_ http_ error - Returns
truefor HTTP errors that can safely be retried with backoff. - should_
retry_ ws_ error - Returns
truefor WebSocket errors that can safely be retried.