Skip to main content

CurrencyExchange

The CurrencyExchange class represents detailed information about a currency exchange.

Properties

InstructedAmount - AmountCurrencyPair?

The instructed amount including details about the currency the amount is denominated in.

SourceCurrency - string

Currency from which an amount is to be converted in a currency conversion. ISO 4217 Alpha 3 currency code (e.g. "USD").

TargetCurrency - string

Currency into which an amount is to be converted in a currency conversion. ISO 4217 Alpha 3 currency code (e.g. "USD").

UnitCurrency - string

Currency in which the rate of exchange is expressed in a currency exchange. In the example 1 EUR = xxx USD, the unit currency is EUR. ISO 4217 Alpha 3 currency code (e.g. "USD").

ExchangeRate - decimal

Factor used to convert an amount from one currency into another. This reflects the price at which one currency was bought with another currency.

QuotationDate - DateTime?

Date at which an exchange rate is quoted.

ContractIdentification - string?

Unique identification to unambiguously identify the foreign exchange contract.

Constructor

public CurrencyExchange(AmountCurrencyPair? instructedAmount, string sourceCurrency,
string targetCurrency, string unitCurrency, decimal exchangeRate,
DateTime? quotationDate, string? contractIdentification)

Parameters

instructedAmount - AmountCurrencyPair?

The instructed amount including details about the currency the amount is denominated in.

sourceCurrency - string

Currency from which an amount is to be converted in a currency conversion. ISO 4217 Alpha 3 currency code (e.g. "USD").

targetCurrency - string

Currency into which an amount is to be converted in a currency conversion. ISO 4217 Alpha 3 currency code (e.g. "USD").

unitCurrency - string

Currency in which the rate of exchange is expressed in a currency exchange. In the example 1 EUR = xxx USD, the unit currency is EUR. ISO 4217 Alpha 3 currency code (e.g. "USD").

exchangeRate - decimal

Factor used to convert an amount from one currency into another. This reflects the price at which one currency was bought with another currency.

quotationDate - DateTime?

Date at which an exchange rate is quoted.

contractIdentification - string?

Unique identification to unambiguously identify the foreign exchange contract.