public 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 = UrlStr + Uri.EscapeDataString(ids.ToString()) + "&f=" + FinanceHelper.CsvQuotePropertyTags(this.Properties) + "&e=.csv"; return(url); } }
public override string GetUrl(string ticker) { String url = UrlStr + Uri.EscapeDataString(ticker) + "&f=" + FinanceHelper.CsvQuotePropertyTags(this.Properties) + "&e=.csv"; return(url); }