private static String buildUrl(String dataType, DataRange range){
        String url = serverUrl + dataType + "/";
        
        switch(range){
            case ONEDAY:
                url = "https://zpi.herokuapp.com/today/"+dataType;
                break;
            case FIVEDAYS:
                url += "5D";
                break;
            case TENDAYS:
                url += "10D";
                break;
            case ONEMONTH:
                url += "1M";
                break;
            case THREEMONTH:
                url += "3M";
                break;
        }
        
        return url;
    }