Пример #1
0
        /// <summary>
        /// Gets the url for selecting stock data
        /// </summary>
        /// <param name="symbols"></param>
        /// <returns></returns>
        public string GetStockUrl(IEnumerable <string> symbols)
        {
            // get the yql to execute
            var yql = _queryProvider.GetStockSelect(symbols);

            if (string.IsNullOrWhiteSpace(yql))
            {
                throw new EmptyYqlQueryException();
            }

            // get the url for executing the yql
            return(GetYqlUrl(yql));
        }