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