Exemple #1
0
 protected override string GetUrl()
 {
     if (this.IDs == null || this.IDs.Length == 0)
     {
         throw new NotSupportedException("An empty id list will not be supported.");
     }
     else
     {
         System.Text.StringBuilder ids = new System.Text.StringBuilder();
         foreach (string s in this.IDs)
         {
             ids.Append(MyHelper.CleanYqlParam(s));
             ids.Append('+');
         }
         String url = "http://download.finance.yahoo.com/d/quotes.csv?s=" + Uri.EscapeDataString(ids.ToString()) + "&f=" + FinanceHelper.CsvQuotePropertyTags(this.Properties) + "&e=.csv";
         return(url);
     }
 }