should_retry_error_code

Function should_retry_error_code 

Source
pub fn should_retry_error_code(error_code: i64) -> bool
Expand description

Determines if a Deribit error code should trigger a retry.

§Arguments

  • error_code - The Deribit error code from the JSON-RPC error response

§Returns

true if the error is temporary and should be retried, false otherwise