Direct Currency Calculation (2024)

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.

  • Originating Currency: the three letter currency code the amount is currently in.

  • Amount: a decimal that contains the number of units of Originating currency to be converted.

  • Target Currency: the three letter currency code the amount will be converted to.

  • Market Maker: the market maker that is being used for the current company or plan.

  • Exchange Date: the date that will be used to locate the exchange rate the system will use in the conversion exchange calculation.

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.

    • 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 or the date specified in the optional Exchange Date variable. If the Exchange Date is specified, an error is returned if no rate exists for the specified date.
    • 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.

  • 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.

  • 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.

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

    • 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

    • If the Target currency is the BASE currency in the exchange rate, then the conversion is done by using the amount of Originating currency and SELLING it for some number of TERMS currency from the Market Maker. This is done using the following formula:

    1. If Indirect: Amount / Bid Price = Number of units of Target currency

    2. If Direct: Amount * Bid 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

    • BASE Currency = USD

    • TERMS Currency = CAN

    • OFFER = 1.0018

    • BID = 1.0020

    If converting 100000 USD to CAN then:

    • Originating currency = USD (the BASE currency in this example)

    • Target currency = CAN (the TERMS currency in this example)

    • Amount = 100,000

    • Currency Conversion = 100000 * 1.0018 = 100180.0000 CAN

    If converting 100000 CAN to USD then:

    • Originating currency = CAN (the TERMS currency in this example)

    • Target currency = USD (the BASE currency in this example)

    • Amount = 100,000

    • Currency Conversion = 100000 / 1.0020 = 99800.3992 USD

    Exchange Rate Direct Quote, USD/CAN

    • BASE Currency = USD

    • TERMS Currency = CAN

    • OFFER = .9985

    • BID = .9982

    If converting 100000 USD to CAN then:

    • Originating currency = USD (the BASE currency in this example)

    • Target currency = CAN (the TERMS currency in this example)

    • Amount = 100,000

    • Currency Conversion = 100000 / .9985 = 100150.2254 CAN

    If converting 100000 CAN to USD then:

    • Originating currency = CAN (the TERMS currency in this example)

    • Target currency = USD (the BASE currency in this example)

    • Amount = 100,000

    • Currency Conversion = 100000 * .9982 = 99820 USD

    Direct Currency Calculation (1)

    Direct Currency Calculation (2024)
    Top Articles
    Poorest Countries in the World 2024
    Artificial Intelligence in Smart Home | the Future Is Now
    Regal Amc Near Me
    Arkansas Gazette Sudoku
    When is streaming illegal? What you need to know about pirated content
    Blairsville Online Yard Sale
    Pickswise the Free Sports Handicapping Service 2023
    Craigslist In Fredericksburg
    Mikayla Campino Video Twitter: Unveiling the Viral Sensation and Its Impact on Social Media
    Xm Tennis Channel
    shopping.drugsourceinc.com/imperial | Imperial Health TX AZ
    Santa Clara Valley Medical Center Medical Records
    Caresha Please Discount Code
    How Many Cc's Is A 96 Cubic Inch Engine
    Theycallmemissblue
    Immortal Ink Waxahachie
    Xxn Abbreviation List 2023
    Puretalkusa.com/Amac
    Yakimacraigslist
    Craigslist In Visalia California
    Jbf Wichita Falls
    Loft Stores Near Me
    Allybearloves
    Is Windbound Multiplayer
    Ivegore Machete Mutolation
    Village
    Talk To Me Showtimes Near Marcus Valley Grand Cinema
    At 25 Years, Understanding The Longevity Of Craigslist
    Himekishi Ga Classmate Raw
    Rund um die SIM-Karte | ALDI TALK
    1400 Kg To Lb
    Upstate Ny Craigslist Pets
    Jennifer Reimold Ex Husband Scott Porter
    R&J Travel And Tours Calendar
    3400 Grams In Pounds
    Winco Money Order Hours
    Empires And Puzzles Dark Chest
    Wlds Obits
    The Holdovers Showtimes Near Regal Huebner Oaks
    Aurora Il Back Pages
    Tedit Calamity
    Directions To The Closest Auto Parts Store
    LoL Lore: Die Story von Caitlyn, dem Sheriff von Piltover
    Yakini Q Sj Photos
    Television Archive News Search Service
    Pgecom
    Sapphire Pine Grove
    Walmart Front Door Wreaths
    German American Bank Owenton Ky
    Jeep Forum Cj
    Marion City Wide Garage Sale 2023
    Latest Posts
    Article information

    Author: Duane Harber

    Last Updated:

    Views: 5426

    Rating: 4 / 5 (71 voted)

    Reviews: 94% of readers found this page helpful

    Author information

    Name: Duane Harber

    Birthday: 1999-10-17

    Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

    Phone: +186911129794335

    Job: Human Hospitality Planner

    Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

    Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.