Esempio n. 1
0
        public List <StockKLineBaidu> getKLineBaidu(string stockID)
        {
            string str = StockDataCollector.queryKLineDataBaidu(stockID);
            List <StockKLineBaidu> arr = StockDataConvertor.parseKLineArrayBaiduAdvanced(str);

            return(arr);
        }
Esempio n. 2
0
        public List <StockKLine> getMonthKLineBaidu(string stockID, bool exRights = false)
        {
            string            monthKStr  = StockDataCollector.queryMonthlyKLineDataBaidu(stockID, exRights);
            List <StockKLine> monthKData = StockDataConvertor.parseKLineArrayBaidu(monthKStr);

            return(monthKData);
        }
Esempio n. 3
0
        public StockFinanceData getFinanceData(string stockID)
        {
            String           str = StockDataCollector.queryFinanceDataSina(stockID);
            StockFinanceData fd  = StockDataConvertor.parseFinanceDataSina(str);

            return(fd);
        }
Esempio n. 4
0
        public StockMarketData getMarketData(string stockID)
        {
            String          mdStr = StockDataCollector.queryMarketData(stockID);
            StockMarketData md    = StockDataConvertor.parseMarketData(mdStr);

            return(md);
        }
Esempio n. 5
0
        public StockRealTimeData queryRealTimeData(string stockID)
        {
            String            str = StockDataCollector.queryMarketRealTimeDataSina(stockID);
            StockRealTimeData rd  = StockDataConvertor.parseRealTimeData(str);

            if (rd != null)
            {
                rd.stockCode = StockIDUtil.getPureCode(stockID);
            }
            return(rd);
        }
Esempio n. 6
0
        public List <StockKLine> getMonthKLine(string stockID)
        {
            string str = StockDataCollector.queryMonthlyKLineData(stockID);

            if (str == null || str.Length == 0)
            {
                return(null);
            }

            List <StockKLine> mk = StockDataConvertor.parseKLineArray(str);

            return(mk);
        }