Пример #1
0
        private static IEnumerable <Trade> GetSpecdayTrades(string username, string password, int date, byte market)
        {
            ServiceReference1.TsePublicV2SoapClient client = new ServiceReference1.TsePublicV2SoapClient();
            var tradesDataset = client.TradeOneDay(username, password, date, market);

            var trades = CollectionMapper.Map <Trade>(tradesDataset.Tables[0]);

            return(trades);
        }
Пример #2
0
        public static List <ActiveDate> GetActiveTradeDates()
        {
            ServiceReference1.TsePublicV2SoapClient client = new ServiceReference1.TsePublicV2SoapClient();
            var activeDatesDataset = client.NSCStart(username, password);

            var activeDates = CollectionMapper.Map <ActiveDate>(activeDatesDataset.Tables[0]).Distinct().OrderByDescending(o => o.DEven).ToList();

            return(activeDates);
        }