/// <summary> /// Downloads historic quotes data. /// </summary> /// <param name="managedIDs">The managed ID</param> /// <param name="fromDate">The startdate of the reviewed period</param> /// <param name="todate">The enddate of the reviewed period</param> /// <param name="interval">The trading period interval</param> /// <returns></returns> /// <remarks></remarks> public YahooManaged.Base.Response <HistQuotesResult> Download(IEnumerable <IID> managedIDs, System.DateTime fromDate, System.DateTime toDate, HistQuotesInterval interval) { if (managedIDs == null) { throw new ArgumentNullException("managedIDs", "The passed list is null."); } return(this.Download(FinanceHelper.IIDsToStrings(managedIDs), fromDate, toDate, interval)); }
/// <summary> /// Starts an asynchronous download of quotes data. /// </summary> /// <param name="managedIDs">The list of managed IDs</param> /// <param name="properties">The properties of each quote data. If parameter is null/Nothing, Symbol and LastTradePrizeOnly will set as property. In this case, with YQL server you will get every available property.</param> /// <param name="userArgs">Individual user argument</param> /// <remarks></remarks> public void DownloadAsync(IEnumerable <IID> managedIDs, IEnumerable <QuoteProperty> properties, object userArgs) { if (managedIDs == null) { throw new ArgumentNullException("managedIDs", "The passed list is null."); } this.DownloadAsync(FinanceHelper.IIDsToStrings(managedIDs), properties, userArgs); }
/// <summary> /// Downloads company informations with passed IDs. /// </summary> /// <param name="ids">The managed list of IDs of the companies</param> /// <returns></returns> /// <remarks></remarks> public YahooManaged.Base.Response <CompanyInfoResult> Download(IEnumerable <IID> ids) { if (ids == null) { throw new ArgumentNullException("ids", "The passed list is null."); } return(this.Download(FinanceHelper.IIDsToStrings(ids))); }
public void DownloadAsync(IEnumerable <IID> ids, object userArgs) { if (ids == null) { throw new ArgumentNullException("ids", "The passed list is null."); } this.DownloadAsync(FinanceHelper.IIDsToStrings(ids), userArgs); }
/// <summary> /// Downloads quotes data. /// </summary> /// <param name="managedIDs">The list of managed IDs</param> /// <param name="properties">The properties of each quote data. If parameter is null/Nothing, Symbol and LastTradePrizeOnly will set as property. In this case, with YQL server you will get every available property.</param> /// <returns></returns> /// <remarks></remarks> public YahooManaged.Base.Response <QuotesResult> Download(IEnumerable <IID> managedIDs, IEnumerable <QuoteProperty> properties) { if (managedIDs == null) { throw new ArgumentNullException("managedIDs", "The passed list is null."); } return(this.Download(FinanceHelper.IIDsToStrings(managedIDs), properties)); }
public void DownloadAsync(IEnumerable <IID> managedIDs, System.DateTime expirationDate, object userArgs = null) { if (managedIDs == null) { throw new ArgumentNullException("managedIDs", "The passed list is null."); } else { this.DownloadAsync(FinanceHelper.IIDsToStrings(managedIDs), expirationDate); } }
public YahooManaged.Base.Response <QuoteOptionsResult> Download(IEnumerable <IID> managedIDs, System.DateTime expirationDate) { if (managedIDs == null) { throw new ArgumentNullException("managedIDs", "The passed list is null."); } else { return(this.Download(FinanceHelper.IIDsToStrings(managedIDs), expirationDate)); } }