コード例 #1
0
        public string RunHistoricalUpdate(int stockid, string startdate, string enddate)
        {
            string result = "";

            if (startdate != "" && enddate != "" && stockid != 0)
            {
                try
                {
                    Symbol   symbol = QuotesService.GetSymbolInfo(stockid);
                    DateTime start  = DateTime.Parse(startdate);
                    DateTime end    = DateTime.Parse(enddate);
                    result += symbol.Symbol_Name.ToUpper() + "\nStartDate: " + startdate + "\nEndDate: " + enddate;
                    QuotesService.ReadHistoricalData(start, end, symbol.Symbol_Name, symbol.Symbol_ID);
                }
                catch (Exception ex)
                {
                    return(result += "\nError: " + ex.Message);
                }
            }
            return(result += "\nHistorical Updated");
        }
コード例 #2
0
        public ActionResult Quote(int symbol_id)
        {
            Symbol model = QuotesService.GetSymbolInfo(symbol_id);

            return(View(model));
        }