/// <summary>
        /// Determine based on N/A results if a yahoo result is not known
        /// Bid/Ask and BidSize/AskSize can be N/A after market hours
        /// so they are not used in this determination.
        /// </summary>
        /// <param name="result"></param>
        /// <returns></returns>
        private bool IsSecurityUnknown(MarkitJsonResult result)
        {
            if (result.Description == null)
            {
                return(true);
            }

            return(false);
        }
        private Security CreateSecurity(MarkitJsonResult markitJsonResult)
        {
            var newSec = new Security();

            if (markitJsonResult.Description != null)
            {
                newSec = new Stock(markitJsonResult);
            }

            return(newSec);
        }
 private string DetermineSecurityType(MarkitJsonResult markitJsonResult)
 {
     if (markitJsonResult.Description != null)
     {
         return("Stock");
     }
     else
     {
         return("Mutual Fund");
     }
 }
        private MarkitJsonResult GetWebResponse(string ticker)
        {
            var requestUri = baseUri + ticker;
            MarkitJsonResult markitAPIResult = new MarkitJsonResult();

            try
            {
                using (var webClient = new WebClient())
                {
                    var jsonResult = webClient.DownloadString(requestUri);
                    markitAPIResult = JsonConvert.DeserializeObject <MarkitJsonResult>(jsonResult);
                }
            }
            catch (WebException ex)
            {
                throw new NotImplementedException();
            }
            catch (ArgumentNullException ex)
            {
                throw new NotImplementedException();
            }
            return(markitAPIResult);
        }