예제 #1
0
        public static StockDividend Get(DynamicNodeContext nodeContext)
        {
            using (var service = new DividendService())
            {
                var stockCode = GetStockCode();
                var exDate = GetExDate();

                return service.Get(stockCode, exDate);
            }
        }
예제 #2
0
        public static IEnumerable<StockDividend> Get(DynamicNodeContext nodeContext, int count)
        {
            using (var service = new DividendService())
            {
                var stockCode = GetStockCode();

                if (string.IsNullOrEmpty(stockCode))
                {
                    return service.GetLatest(count).ToList();
                }

                return service.Get(stockCode, count).ToList();
            }
        }