All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.objectlab.kit.fxcalc.MajorCurrencyRanking Maven / Gradle / Ivy

package net.objectlab.kit.fxcalc;

/**
 * Utility interface to determine the market convention for the FX Rate for a given currency pair.
 * See https://en.wikipedia.org/wiki/Currency_pair, Although there is no standards-setting body or ruling organization,
 * the established priority ranking of the major currencies is:
 * 
    *
  1. Euro (EUR)
  2. *
  3. Pound sterling (GBP)
  4. *
  5. Australian dollar (AUD)
  6. *
  7. New Zealand dollar (NZD)
  8. *
  9. United States dollar (USD)
  10. *
  11. Canadian dollar (CAD)
  12. *
  13. Swiss franc (CHF)
  14. *
  15. Japanese yen (JPY)
  16. *
* @see net.objectlab.kit.fxcalc.StandardMajorCurrencyRanking */ public interface MajorCurrencyRanking { /** * Given 2 currencies, return the major one if there is one, otherwise returns the first currency. */ String selectMajorCurrency(String ccy1, String ccy2); /** * Given a CurrencyPair, return the major Currency if there is one, otherwise returns the first currency. */ String selectMajorCurrency(CurrencyPair pair); /** * returns true if the ccy1 is the major one for the given currency pair. */ boolean isMarketConvention(String ccy1, String ccy2); /** * returns true if the pair.ccy1 is the major one for the given currency pair. */ boolean isMarketConvention(CurrencyPair pair); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy