public async Task <ActionResult> Get_Heikin(string code, int start = 0, int end = 0, string type = "day") { IndicatorBLL bll = new IndicatorBLL(this.s3_bucket_name, this.local_temp_folder); IndHeikinEntity[] resultList; if (type.ToLower() == "day") { resultList = await bll.GetHeikin(code, start, end, "day"); } else if (type.ToLower() == "week") { resultList = await bll.GetHeikin(code, start, end, "week"); } else { return(BadRequest($"Wrong type input: {type}")); } return(Ok(resultList)); }