Class SingleDimensionMarketDataPostProcessor

  • All Implemented Interfaces:
    IMaturityConverterAware, ITenorUtilAware, IPnLExplainFormulaProviderAware, com.quartetfs.biz.pivot.postprocessing.IAggregatedMeasureAware, com.quartetfs.biz.pivot.postprocessing.IBasicPostProcessor<com.qfs.vector.IVector>, com.quartetfs.biz.pivot.postprocessing.IEvaluator<com.qfs.vector.IVector>, com.quartetfs.biz.pivot.postprocessing.IPartitionedPostProcessor<com.qfs.vector.IVector>, com.quartetfs.biz.pivot.postprocessing.IPostProcessor<com.qfs.vector.IVector>, com.quartetfs.fwk.types.IExtendedPluginValue, Serializable

    @QuartetExtendedPluginValue(intf=com.quartetfs.biz.pivot.postprocessing.IPostProcessor.class,
                                key="MARKETDATA_POSTPROCESSOR")
    public class SingleDimensionMarketDataPostProcessor
    extends AMarketDataPostProcessor
    Post-processor used to get market data for current and previous date values for Delta and Gamma.It extends the abstract market data postprocessor.
    See Also:
    Serialized Form
    • Constructor Detail

      • SingleDimensionMarketDataPostProcessor

        public SingleDimensionMarketDataPostProcessor​(String name,
                                                      com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
    • Method Detail

      • getPostProcessorDescription

        public static Function<com.activeviam.desc.build.ICanStartBuildingMeasures,​com.activeviam.desc.build.IHasAtLeastOneMeasure> getPostProcessorDescription​(String measureName,
                                                                                                                                                                      String underlyingMeasures,
                                                                                                                                                                      String asOfDateLevel,
                                                                                                                                                                      String marketDataSetLevel,
                                                                                                                                                                      String riskFactorLevel,
                                                                                                                                                                      String riskClassLevel,
                                                                                                                                                                      Integer maxFallbackDays,
                                                                                                                                                                      String dateInfo,
                                                                                                                                                                      String sensitivityName,
                                                                                                                                                                      BucketType bucketType,
                                                                                                                                                                      String marketDataStoreName,
                                                                                                                                                                      String quoteField,
                                                                                                                                                                      String tenorLabelField,
                                                                                                                                                                      String tenorAndMaturityDefaultValue,
                                                                                                                                                                      String sensitivityNameLevelInfo,
                                                                                                                                                                      String interpolationDebugStringIdentifier,
                                                                                                                                                                      String formatter,
                                                                                                                                                                      String folder)
        This will create a PP configuration
        Parameters:
        measureName - Name of the postprocessor
        underlyingMeasures - The underlying measure
        asOfDateLevel - Level containing the asOfSDate
        marketDataSetLevel - Level containing the market data set level
        riskFactorLevel - risk factor level
        riskClassLevel - risk class level
        maxFallbackDays - max fallback days
        dateInfo - date info
        sensitivityName - sensitivity info
        bucketType - bucket type
        marketDataStoreName - market data store name
        quoteField - quote field
        tenorLabelField - tenor label field
        tenorAndMaturityDefaultValue - default value for tenors and maturities
        sensitivityNameLevelInfo - sensitivity name level information
        interpolationDebugStringIdentifier - internal identifier used in the query cache. The keys in the query cache that will be used have the following pattern: measure name + identifier + location
        formatter - formatter
        folder - Folder name of the metric, if not provider aka null measure is invisible
        Returns:
        measure builder
      • measure

        public static com.activeviam.copper.api.CopperMeasure measure​(com.activeviam.copper.api.CopperMeasure underlyingMeasures,
                                                                      String asOfDateLevel,
                                                                      String marketDataSetLevel,
                                                                      String riskFactorLevel,
                                                                      String riskClassLevel,
                                                                      Integer maxFallbackDays,
                                                                      String dateInfo,
                                                                      String sensitivityName,
                                                                      BucketType bucketType,
                                                                      String marketDataStoreName,
                                                                      String quoteField,
                                                                      String tenorLabelField,
                                                                      String tenorAndMaturityDefaultValue,
                                                                      String sensitivityNameLevelInfo,
                                                                      String interpolationDebugStringIdentifier)
        This will create a PP configuration
        Parameters:
        underlyingMeasures - The underlying measure
        asOfDateLevel - Level containing the asOfSDate
        marketDataSetLevel - Level containing the market data set level
        riskFactorLevel - risk factor level
        riskClassLevel - risk class level
        maxFallbackDays - max fallback days
        dateInfo - date info
        sensitivityName - sensitivity info
        bucketType - bucket type
        marketDataStoreName - market data store name
        quoteField - quote field
        tenorLabelField - tenor label field
        tenorAndMaturityDefaultValue - default value for tenors and maturities
        sensitivityNameLevelInfo - sensitivity name level information
        interpolationDebugStringIdentifier - internal identifier used in the query cache. The keys in the query cache that will be used have the following pattern: measure name + identifier + location
        Returns:
        measure
      • init

        public void init​(Properties properties)
                  throws com.quartetfs.fwk.QuartetException
        One custom property needs to be present in the configuration of the post-processor:
        • keyLeafLevels: It's the value representing the key levels: Tenor level, risk class,, e.g.
          ""Tenor@Tenors@Risk", "RiskClass@Risk Classes@Risk"
        On top of those custom properties the analysisLevels property needs to be defined for the scenario level since that level is part of an analysis hierarchy, e.g.
        "Tenor@Tenors@Risk"
        Specified by:
        init in interface com.quartetfs.biz.pivot.postprocessing.IEvaluator<com.qfs.vector.IVector>
        Specified by:
        init in interface com.quartetfs.biz.pivot.postprocessing.IPostProcessor<com.qfs.vector.IVector>
        Overrides:
        init in class AMarketDataPostProcessor
        Parameters:
        properties - The properties object.s
        Throws:
        com.quartetfs.fwk.QuartetException
      • getEnableMDStringDebug

        public boolean getEnableMDStringDebug()
      • getType

        public String getType()