// runRequest makes the builded http request to cryptoMarket,
// and read the response
runRequest makes the builded http request to cryptoMarket,
and read the response
// runRequest makes the builded http request to cryptoMarket // and read the response
func (client *Client) runRequest(httpReq *http.Request) ([]byte, error) {
	resp, err := client.httpClient.Do(httpReq)
	if err != nil {
		return nil, fmt.Errorf("Error making request: %v", err)
	}
	defer resp.Body.Close()
	respBody, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return nil, fmt.Errorf("Error reading response: %v", err)
	}
	return respBody, nil
}
func ( client * Client ) runRequest ( httpReq * http . Request ) ( [ ] byte , error ) { resp , err := client . httpClient . Do ( httpReq ) if err != nil { return nil , fmt . Errorf ( " " , err ) } defer resp . Body . Close ( ) respBody , err := ioutil . ReadAll ( resp . Body ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return respBody , nil }
runRequest makes the builded http request to cryptoMarket,
and read the response
runRequest makes the builded http request to cryptoMarket and read the response