extract_error_code

Function extract_error_code 

Source
pub fn extract_error_code(response: &Value) -> i64
Expand description

Extracts the error code from a Bybit API response.

§Arguments

  • response - The JSON response from Bybit API

§Returns

The error code as an i64, or 0 if not found.