示例#1
0
        public void TestFundInfoAPI()
        {
            SinaHttpAPI target = new SinaHttpAPI();
            var         result = target.GetStockInfo("sz000422");

            Assert.NotNull(result);
        }
示例#2
0
        public void TestFundListAPI()
        {
            SinaHttpAPI  target = new SinaHttpAPI();
            FundInfoList result = target.GetFundList(1, 40);

            Assert.NotNull(result);
        }
示例#3
0
        public void TestDownloadHistoryData()
        {
            SinaHttpAPI target = new SinaHttpAPI();

            StockPerf[] data = target.GetStockPerfData("sh600036", PerfScale.Min60, AverageType.MA5, 1023);
            Assert.IsNotNull(data);
            Assert.IsTrue(data.Length > 0);
        }