class Binance::Responses::ServerResponse

Overview

The ServerResponse class is the base class returned for all endpoint calls

Included Modules

Direct Known Subclasses

Defined in:

binance/responses/server_response.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.consume_body(response) #

Instance Method Detail

def body #

The unparsed body of the HTTP response


def consume_body(response) #

def error_code : Int32? #

The error code returned by the API endpoint (if any).


def error_code=(error_code : Int32?) #

The error code returned by the API endpoint (if any).


def error_message : String? #

The error message from either the API endpoint or Exception captured (if any).


def error_message=(error_message : String?) #

The error message from either the API endpoint or Exception captured (if any).


def exception : Exception? #

The exception captured (if any).


def exception=(exception : Exception?) #

The exception captured (if any).


def response : HTTP::Client::Response? #

The full HTTP Response object captured (if any).


def response=(response : HTTP::Client::Response?) #

The full HTTP Response object captured (if any).


def success : Bool #

TRUE if API endpoint successfully processed, FALSE otherwise


def success=(success : Bool) #

TRUE if API endpoint successfully processed, FALSE otherwise


def used_weight #