Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

ICurrencyExchangeRateService

API reference for ICurrencyExchangeRateService in Vendr, the eCommerce solution for Umbraco v8+

ICurrencyExchangeRateService

public interface ICurrencyExchangeRateService

Namespace

Methods

GetExchangeRate

Gets the exchange between the given currencies on the supplied date

public decimal GetExchangeRate(string fromCurrencyIsoCode, string toCurrencyIsoCode, DateTime date)

Parameters

Parameter Description
fromCurrencyIsoCode
The currency ISO code to exchange from
toCurrencyIsoCode
The currency ISO code to exchange to
date
The date

Returns

The exchange rate between the two currencies for the given date


GetExchangeRates

Gets a list of currency exchange rates from the given currency, to the list of target currencies between two dates

public Dictionary<string, Dictionary<string, decimal>> GetExchangeRates(string fromCurrencyIsoCode, 
    string[] toCurrencyIsoCodes, DateTime dateFrom, DateTime dateTo)

Parameters

Parameter Description
fromCurrencyIsoCode
The currency ISO code to exchange from
toCurrencyIsoCodes
The currency ISO codes to exchange to
dateFrom
The from date
dateTo
The to date

Returns

A dictionary of dictionaries where the first dictionary is keyed by the day and the second dictionary is keyed by the target currency code

Edit this page on GitHub

Site + logo design © 2025 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.