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