Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt

Use this file to discover all available pages before exploring further.

Atoti Market Risk provides two options for loading data into the Atoti Market Data stores. This section provides information about:
  • data loading properties.
  • selecting between the new and backwards compatible file formats.
  • conditional annotations for Spring configuration.
  • configuration classes that need to be imported for:
    • backwards compatibility with the deprecated file format.
    • new data file formats.

Properties

The following properties are available in the application:
PropertyDefaultDetails
mr.common.file-patterns.spot-market-dataglob:**Spot_Market_Data*.csvAn SPOT_MARKET_DATA_FILE_PATTERN constant containing the default value is available in CommonFilePatternProperties.
mr.common.file-patterns.curve-market-dataglob:**Curve_Market_Data*.csvA CURVE_MARKET_DATA_FILE_PATTERN constant containing the default value is available in CommonFilePatternProperties.
mr.common.file-patterns.fx-rate-market-dataglob:**FX_Rate_Market_Data*.csvAn FX_RATE_MARKET_DATA_FILE_PATTERN constant containing the default value is available in CommonFilePatternProperties.
mr.common.file-patterns.surface-market-dataglob:**Surface_Market_Data*.csvA SURFACE_MARKET_DATA_FILE_PATTERN constant containing the default value is available in CommonFilePatternProperties.
mr.common.file-patterns.cube-market-dataglob:**Cube_Market_Data*.csvA CUBE_MARKET_DATA_FILE_PATTERN constant containing the default value is available in CommonFilePatternProperties.

Selecting between new and backwards compatible file formats

If the Atoti Market Data Spring Boot Starter is imported into the application with the default source configuration, each market data table will be loaded from its specific file based on the above patterns. To enable loading a table from the deprecated file format, set the property for that particular table to the format pattern of the deprecated file. For example, if the mr.common.file-patterns.spot-market-data property has been set to regex:^(?i).*MarketData(?<!MarketDataSets).*.csv.*$ and mr.common.file-patterns.cube-market-data has been left empty, the SpotMarketData table will load from the old market data file format, whereas the CubeMarketData table will be loaded from the current file format.

Conditional annotations

To allow the correct configuration to be loaded if all source configuration classes are imported, the following annotations are available for both @Bean methods and @Configuration classes:
AnnotationMatching
@ConditionalOnBCSpotMarketDataFileFormatEnabledMatches if the mr.common.file-patterns.spot-market-data property is set to regex:^(?=.*MarketData)(?:(?!Sets).)+.csv$.
@ConditionalOnBCSpotMarketDataFileFormatDisabledMatches if the mr.common.file-patterns.spot-market-data property is anything other than the above value.
@ConditionalOnBCCurveMarketDataFileFormatEnabledMatches if the mr.common.file-patterns.curve-market-data property is set to regex:^(?=.*MarketData)(?:(?!Sets).)+.csv$.
@ConditionalOnBCCurveMarketDataFileFormatDisabledMatches if the mr.common.file-patterns.curve-market-data property is anything other than the above value.
@ConditionalOnBCSurfaceMarketDataFileFormatEnabledMatches if the mr.common.file-patterns.surface-market-data property is set to regex:^(?=.*MarketData)(?:(?!Sets).)+.csv$.
@ConditionalOnBCSurfaceMarketDataFileFormatDisabledMatches if the mr.common.file-patterns.surface-market-data property is anything other than the above value.
@ConditionalOnBCCubeMarketDataFileFormatEnabledMatches if the mr.common.file-patterns.cube-market-data property is set to regex:^(?=.*MarketData)(?:(?!Sets).)+.csv$.
@ConditionalOnBCCubeMarketDataFileFormatDisabledMatches if the mr.common.file-patterns.cube-market-data property is anything other than the above value.
@ConditionalOnBCFxRateMarketDataFileFormatEnabledMatches if the mr.common.file-patterns.fx-rate-market-data property is set to glob:**FXRates*.csv.
@ConditionalOnBCFxRateMarketDataFileFormatDisabledMatches if the mr.common.file-patterns.fx-rate-market-data property is anything other than the above value.

Backwards compatibility

The market data can be loaded from the deprecated market data input file format, while the FX store can be loaded from the deprecated FX rates file. The sources are included in the application through the AllBackwardsCompatibleMarketDataSources configuration class but these are disabled by default.

Spot market data loading

Defined in the BCSpotMarketDataCsvSourceParametersProviderConfig class. Each row will be checked for validity as follows:
Axis fieldEmptyFilled in
TenorLabelsYN
TenorDatesYN
MaturityLabelsYN
MaturityDatesYN
MoneynessLabelsYN
NominalYN

Curve market data loading

Defined in the BCCurveMarketDataCsvSourceParametersProviderConfig class. Each row will be checked for validity as follows:
Axis fieldEmptyFilled in
TenorLabelsNY
TenorDatesYN
MaturityLabelsYN
MaturityDatesYN
MoneynessLabelsYN
NominalYN

Surface market data loading

Defined in the BCSurfaceMarketDataCsvSourceParametersProviderConfig class. Each row will be checked for validity as follows:
Axis fieldEmptyFilled in
TenorLabelsNY
TenorDatesYN
MaturityLabelsYN
MaturityDatesYN
MoneynessLabelsNY
NominalYN

Cube market data loading

Defined in the BCCubeMarketDataCsvSourceParametersProviderConfig class. Each row will be checked for validity as follows:
Axis fieldEmptyFilled in
TenorLabelsNY
TenorDatesYN
MaturityLabelsNY
MaturityDatesYN
MoneynessLabelsNY
NominalYN

FX rate

Defined in the BCFxRateMarketDataCsvSourceParametersProviderConfig class. From the old file format, the Term and RiskFactorId fields will be ignored.

New data file formats

If backwards compatibility isn’t required, sources matching the data model stores are available. The file formats in this section refer to this data loading mode.

Cube market data loading

Defined in the CubeMarketDataCsvSourceParametersProviderConfig class. Input file: Cube market data

Curve market data loading

Defined in the CurveMarketDataCsvSourceParametersProviderConfig class. Input file: Curve market data

FX rate

Defined in the FxRateMarketDataCsvSourceParametersProviderConfig class. Input file: FX rate market data

Spot market data loading

Defined in the SpotMarketDataCsvSourceParametersProviderConfig class. Input file: Spot market data

Surface market data loading

Defined in the SurfaceMarketDataCsvSourceParametersProviderConfig class. Input file: Surface market data