Skip to content

ExchangeRatesClient.GetDailyRates Method

maurizuki edited this page Oct 20, 2020 · 5 revisions

GetDailyRates Method

Namespace: BIExchangeRates.Client
Assembly: BIExchangeRates.Client.dll

Returns the daily exchange rates for a specific date.

Overloads

Overload Description
GetDailyRates(DateTime, String, Language) Returns the daily exchange rates for a specific date for all the available currencies.
GetDailyRates(DateTime, IEnumerable<String>, String, Language) Returns the daily exchange rates for a specific date for a list of currencies.

GetDailyRates(DateTime, String, Language)

Returns the daily exchange rates for a specific date for all the available currencies.

public async Task<DailyRatesModel> GetDailyRates (DateTime referenceDate, string currencyIsoCode, Language language = Language.En);

Parameters

Parameter Type Description
referenceDate DateTime The reference date for the exchange rates.
currencyIsoCode String The ISO code of the reference currency ("EUR", "USD" or "ITL", case insensitive).
language Language The language of the returned data.

Returns

Task<DailyRatesModel>
A task that represents the asynchronous operation. The task result contains the daily exchange rates for a specific date for all the available currencies.

GetDailyRates(DateTime, IEnumerable<String>, String, Language)

Returns the daily exchange rates for a specific date for a list of currencies.

public async Task<DailyRatesModel> GetDailyRates (DateTime referenceDate, IEnumerable<string> baseCurrencyIsoCodes, string currencyIsoCode, Language language = Language.En);

Parameters

Parameter Type Description
referenceDate DateTime The reference date for the exchange rates.
baseCurrencyIsoCodes IEnumerable<String> The list of ISO codes of the required currencies (case insensitive).
currencyIsoCode String The ISO code of the reference currency ("EUR", "USD" or "ITL", case insensitive).
language Language The language of the returned data.

Returns

Task<DailyRatesModel>
A task that represents the asynchronous operation. The task result contains the daily exchange rates for a specific date for a list of currencies.

Clone this wiki locally