pub fn decode_response<T: DeserializeOwned>(
response: HttpResponse,
) -> Result<T, KalshiHttpError>Expand description
Decodes a successful envelope or retains typed HTTP and venue failure evidence.
ยงErrors
Returns an error if the status is not successful or the success body is malformed.