Function is_error_response
Source pub fn is_error_response(response: &Value) -> bool
Expand description
Checks if a Bybit API response indicates an error.
Bybit uses 0 as the success code. Any other code indicates an error.
§Arguments
response - The JSON response from Bybit API
§Returns
true if the response indicates an error, false otherwise.