Esempio n. 1
0
        public IEnumerable <TradingInfo> GetDailyTadingInfo(string codeShort, DateTime?end = null, DateTime?begin = null)
        {
            var periods = _tradeService.GetAvailablePeriods(codeShort, end, begin).ToArray();

            return(periods.SelectMany(period =>
            {
                return _tradeService.GetDailyTadingInfo(codeShort, period.Item1, period.Item2).ToArray();
            }));
        }
Esempio n. 2
0
 public void _06_DailyTradeInfoTest()
 {
     var service = new TradingInfoService();
     var info    = service.GetDailyTadingInfo(Code, 2018, 1).ToArray();
 }