class Binance::Session
def build_connection
def build_connection Faraday.new(url: @base_url) do |client| prepare_headers(client) client.options.timeout = @timeout client.options.params_encoder = Binance::Utils::Faraday::CustomParamsEncoder yield client if block_given? client.use Faraday::Response::RaiseError logger_response(client) client.adapter Faraday.default_adapter end end