Ejemplo n.º 1
0
 public IActionResult DrawBLJJ(string stockcode, string exchange, string period, string type, string enddate)
 {
     try
     {
         K_StockViewModel dataInfo = new K_StockViewModel(_appConf);
         return(Content(dataInfo.BLJJ(stockcode, exchange, period, type, enddate)));
     }
     catch
     {
         return(Content("false"));
     }
 }
Ejemplo n.º 2
0
 public IActionResult Draw_KLine(string stockcode, string exchange, string period, string type, string enddate)
 {
     try
     {
         K_StockViewModel dataInfo = new K_StockViewModel(_appConf);
         return(Content(JsonConvert.SerializeObject(dataInfo.GetSingleStock(stockcode, exchange, period, type, enddate))));
     }
     catch
     {
         return(Content("false"));
     }
 }