Exemple #1
0
        public IHttpActionResult GetSMA(int id, int period, int start = 0, int end = 0, bool byCalculate = true)
        {
            List <SMAViewModel> smaList = null;

            try
            {
                IndicatorBLL iBLL = new IndicatorBLL(_unit);

                smaList = iBLL.GetSMAByShareID(id, period, start, end);
            }
            catch (Exception ex)
            {
                LogHelper.Error(_log, ex.ToString());
                return(InternalServerError(ex));
            }

            return(Ok(smaList));
        }
        public void Test_GetSMAByShareID()
        {
            IndicatorBLL iBLL = new IndicatorBLL(_unit);

            iBLL.GetSMAByShareID(1585, 10, 20000000, 0);
        }