/** * Obtains an instance which takes FX rates from the market data, * specifying the source of FX rates. * <p> * The source of FX rates is rarely needed, as most applications only need one set of FX rates. * * @param marketData market data used for looking up FX rates * @param fxRatesSource the source of market data for FX rates * @return the provider */ public static MarketDataFxRateProvider of(MarketData marketData, ObservableSource fxRatesSource) { return new MarketDataFxRateProvider(marketData, fxRatesSource, null); }
/** * Obtains an instance which takes FX rates from the market data, * specifying the source of FX rates. * <p> * The source of FX rates is rarely needed, as most applications only need one set of FX rates. * * @param marketData market data used for looking up FX rates * @param fxRatesSource the source of market data for FX rates * @param triangulationCurrency the triangulation currency to use * @return the provider */ public static MarketDataFxRateProvider of( MarketData marketData, ObservableSource fxRatesSource, Currency triangulationCurrency) { ArgChecker.notNull(triangulationCurrency, "triangulationCurrency"); return new MarketDataFxRateProvider(marketData, fxRatesSource, triangulationCurrency); }