Function extract_error_message
Source pub fn extract_error_message(response: &Value) -> &str
Expand description
Extracts the error message from an OKX API response.
§Arguments
response - The JSON response from OKX API
§Returns
The error message as a string, or “Unknown error” if not found.