// GetAccount gives the information of the cryptoMarket account.
// Returns the data in an Account struct
//
// https://developers.cryptomkt.com/#cuenta
GetAccount gives the information of the cryptoMarket account.
Returns the data in an Account struct

developers.cryptomkt.com/#cuenta
// GetAccount gives the information of the cryptoMarket account . // Returns the data in an Account struct // // https : // developers . cryptomkt . com / #cuenta
func (client *Client) GetAccount() (*Account, error) {
	resp, err := client.get("account", requests.NewEmptyReq())
	if err != nil {
		return nil, fmt.Errorf("error making the request: %s", err)
	}
	var aResp AccountResponse
	json.Unmarshal(resp, &aResp)
	if aResp.Status == "error" {
		return nil, fmt.Errorf("error from the server side: %s", aResp.Message)
	}
	return &aResp.Data, nil
}
func ( client * Client ) GetAccount ( ) ( * Account , error ) { resp , err := client . get ( " " , requests . NewEmptyReq ( ) ) if err != nil { return nil , fmt . Errorf ( " " , err ) } var aResp AccountResponse json . Unmarshal ( resp , & aResp ) if aResp . Status == " " { return nil , fmt . Errorf ( " " , aResp . Message ) } return & aResp . Data , nil }
GetAccount gives the information of the cryptoMarket account.
GetAccount gives the information of the cryptoMarket account .