Class MarketDataRequirementsBuilder


  • public final class MarketDataRequirementsBuilder
    extends java.lang.Object
    Mutable builder for creating instances of MarketDataRequirements.
    • Constructor Detail

      • MarketDataRequirementsBuilder

        public MarketDataRequirementsBuilder()
    • Method Detail

      • addTimeSeries

        public MarketDataRequirementsBuilder addTimeSeries​(java.util.Collection<? extends ObservableId> ids)
        Adds requirements for time series of observable market data.
        Parameters:
        ids - IDs of the data
        Returns:
        this builder
      • addTimeSeries

        public MarketDataRequirementsBuilder addTimeSeries​(ObservableId... ids)
        Adds requirements for time series of observable market data.
        Parameters:
        ids - IDs of the data
        Returns:
        this builder
      • addValues

        public MarketDataRequirementsBuilder addValues​(java.util.Collection<? extends MarketDataId<?>> ids)
        Adds requirements for single values of market data.
        Parameters:
        ids - IDs of the data
        Returns:
        this builder
      • addOutputCurrencies

        public MarketDataRequirementsBuilder addOutputCurrencies​(Currency... currencies)
        Adds the output currencies.

        These are used to ensure that FX rate market data is available for currency conversion.

        Parameters:
        currencies - the output currencies
        Returns:
        this builder
      • addRequirements

        public MarketDataRequirementsBuilder addRequirements​(MarketDataRequirements requirements)
        Adds all requirements from an instance of MarketDataRequirements to this builder.
        Parameters:
        requirements - a set of requirements
        Returns:
        this builder
      • build

        public MarketDataRequirements build()
        Returns a set of market data requirements built from the data in this builder.
        Returns:
        a set of market data requirements built from the data in this builder