class Binance::Session

def extract_response(response)

def extract_response(response)
  begin
    data = JSON.parse(response.body, symbolize_names: true)
  rescue JSON::ParserError
    data = response.body
  end
  return data if !@show_header && !@show_weight_usage
  res = { data: data }
  res[:header] = response.headers if @show_header
  res[:weight_usage] = response.headers.select { |k, _| weight_usage?(k) } if @show_weight_usage
  res
end