Direct Currency Calculation

When stocks are exchanged using different currencies and one currency is the official currency of the country where the exchange quote is given, a direct exchange can be performed.  

 

In order to perform a direct currency calculation, the following four pieces of information are required.

 

 

Steps to Perform a Direct Currency Calculation

  1. Retrieve the exchange rate for the Originating currency and the Target currency supplied by the current Market Maker.

  1. Search the AsExchangeRate table for a single instance that contains the Originating currency as either the BASE or TERMS currency, and the Target currency as either the BASE or TERMS currency, for the current Market Maker. If rows exist, get the row that has the most recent effective date.

  2. If no rows exist in the AsExchangeRate table for Originating and Target currency, a cross rate calculation will need to be performed.

  1. Retrieve the DirectTermIndicator for the current Market Maker and whatever currency is the TERMS currency from the Exchange Rate retrieved from the AsMarketMakerCurrency table.

    1. If DirectTermIndicator is T, then direct, or American, terms are used in the quote. The quote is the number of BASE currency units needed for one unit of the TERMS currency.

    2. If DirectTermsIndicator is F, then indirect, or European, terms are used in the quote. The quote is the number of TERMS currency units needed for one unit of the BASE currency.

  2. Perform the currency conversion calculation to get the number of units in Target currency:

    1. If the Target currency is the TERMS currency in the exchange rate, then the conversion is done by using the amount of Originating currency to BUY some number of BASE currency from the Market Maker. This is done using the following formula:

      1. If Indirect: Amount * Offer Price = Number of units of Target Currency

      2. If Direct: Amount / Offer Price = Number of units of Target Currency

  1. Retrieve the CurrencyRoundPlaces and CurrencyRoundMethod values from the AsCurrency table for the Target currency and round the result.  Rounding is described in detail later.

 

 

Examples of Direct Currency Calculation

 

Exchange Rate Indirect Quote, USD/CAN

 If converting 100000 USD to CAN then:

 If converting 100000 CAN to USD then:

 

 

Exchange Rate Direct Quote, USD/CAN

 If converting 100000 USD to CAN then:

 If converting 100000 CAN to USD then:

Diagram of Direct Currency Calculation