/// <summary> /// Downloads a list of historical currency exchange rates /// </summary> /// <param name="currencies"></param> /// <param name="tradeDate"></param> /// <returns></returns> /// <remarks></remarks> public ExchangeRateResponse Download(YCurrencyID[] currencies, DateTime tradeDate) { if (currencies == null) { throw new ArgumentNullException("currencies", "The passed currencies have no values."); } return(this.ToResponse(mHistQuotesDownload.Download(FinanceHelper.IIDsToStrings(currencies), tradeDate, tradeDate, HistQuotesInterval.Daily), currencies)); }
/// <summary> /// Downloads a list of actual currency exchange rates /// </summary> /// <param name="currencies">List of all currency-pairs</param> /// <returns></returns> /// <remarks></remarks> public ExchangeRateResponse Download(YCurrencyID[] currencies) { if (currencies == null) { throw new ArgumentNullException("currencies", "The passed currencies have no values."); } return(this.ToResponse(mQuotesBaseDownload.Download(FinanceHelper.IIDsToStrings(currencies)), currencies)); }
/// <summary> /// Starts an asynchronous download of historic currency exchange rates /// </summary> /// <param name="currencies">List of all currency-pairs</param> /// <param name="tradeDate">The trade date of exchange rates</param> /// <param name="userArgs">Individual user argument</param> /// <remarks></remarks> public void DownloadAsync(YCurrencyID[] currencies, DateTime tradeDate, object userArgs = null) { if (currencies == null) { throw new ArgumentNullException("currencies", "The passed currencies have no values."); } else { AsyncDownloadArgs args = new AsyncDownloadArgs(userArgs, currencies); mHistQuotesDownload.DownloadAsync(FinanceHelper.IIDsToStrings(args.Currencies), tradeDate, tradeDate, HistQuotesInterval.Daily, args); } }
/// <summary> /// Starts an asynchronous download of actual currency exchange rates /// </summary> /// <param name="currencies">List of all currency-pairs</param> /// <param name="userArgs">Individual user argument</param> /// <remarks></remarks> public void DownloadAsync(YCurrencyID[] currencies, object userArgs = null) { if (currencies == null) { throw new ArgumentNullException("currencies", "The passed currencies have no values."); } else { AsyncDownloadArgs args = new AsyncDownloadArgs(userArgs, currencies); mQuotesBaseDownload.DownloadAsync(FinanceHelper.IIDsToStrings(args.Currencies), args); } }
public void DownloadAsync(IEnumerable <IID> ids, IEnumerable <StockCriteriaDefinition> criterias, object userArgs) { this.DownloadAsync(FinanceHelper.IIDsToStrings(ids), MyHelper.EnumToArray(criterias), userArgs); }