public Rates(HttpResponse response, BitPay bp) {
		BufferedReader rd;
		try {
			rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
			StringBuilder content = new StringBuilder();
			String line;
			
			while (null != (line = rd.readLine())) {
			    content.append(line);
			}
			
			Object obj=JSONValue.parse(content.toString());
			JSONArray rates = (JSONArray)obj;
			this.rates = rates;
			this.bp = bp;
			
		} catch (IllegalStateException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}