Interface TradeCsvInfoSupplier


  • public interface TradeCsvInfoSupplier
    Resolves additional information when writing trade CSV files.

    This allows additional CSV columns to be written.

    • Method Summary

      All Methods Static Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.List<java.lang.String> headers​(Trade trade)
      Returns the list of additional headers this supplier provides.
      static TradeCsvInfoSupplier standard()
      Obtains an instance that uses the standard set of reference data.
      default java.util.Map<java.lang.String,​java.lang.String> values​(java.util.List<java.lang.String> headers, Trade trade)
      Gets the values associated with the headers.
    • Method Detail

      • standard

        static TradeCsvInfoSupplier standard()
        Obtains an instance that uses the standard set of reference data.
        Returns:
        the loader
      • headers

        default java.util.List<java.lang.String> headers​(Trade trade)
        Returns the list of additional headers this supplier provides.
        Parameters:
        trade - the trade to output
        Returns:
        the list of additional headers
      • values

        default java.util.Map<java.lang.String,​java.lang.String> values​(java.util.List<java.lang.String> headers,
                                                                              Trade trade)
        Gets the values associated with the headers.

        This must return a map where the keys are headers that were returned from headers().

        This will be invoked once for each Trade and will normally examine TradeInfo.

        Parameters:
        headers - the complete set of headers
        trade - the trade to output
        Returns:
        the map of values by header, not null