Class TradeInfoBuilder

    • Method Detail

      • counterparty

        public TradeInfoBuilder counterparty​(StandardId counterparty)
        Sets the counterparty identifier, optional.

        An identifier used to specify the counterparty of the trade.

        Parameters:
        counterparty - the counterparty
        Returns:
        this, for chaining
      • tradeDate

        public TradeInfoBuilder tradeDate​(LocalDate tradeDate)
        Sets the trade date, optional.
        Parameters:
        tradeDate - the trade date
        Returns:
        this, for chaining
      • tradeTime

        public TradeInfoBuilder tradeTime​(LocalTime tradeTime)
        Sets the trade time, optional.
        Parameters:
        tradeTime - the trade time
        Returns:
        this, for chaining
      • zone

        public TradeInfoBuilder zone​(ZoneId zone)
        Sets the trade time-zone, optional.
        Parameters:
        zone - the trade zone
        Returns:
        this, for chaining
      • settlementDate

        public TradeInfoBuilder settlementDate​(LocalDate settlementDate)
        Sets the settlement date, optional.
        Parameters:
        settlementDate - the settlement date
        Returns:
        this, for chaining
      • addAttribute

        public <T> TradeInfoBuilder addAttribute​(AttributeType<T> attributeType,
                                                 T attributeValue)
        Adds a trade attribute to the map of attributes.

        The attribute is added using Map.put(type, value) semantics.

        Specified by:
        addAttribute in interface PortfolioItemInfoBuilder<TradeInfo>
        Type Parameters:
        T - the type of the value
        Parameters:
        attributeType - the type providing meaning to the value
        attributeValue - the value
        Returns:
        this, for chaining