Interface IMarketDataRetrievalService
-
- All Known Implementing Classes:
AMarketDataRetrievalService
,MarketDataRetrievalService
,ScalarMarketDataRetrievalService
public interface IMarketDataRetrievalService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IMarketDataRetrievalService.IPillar
One pillarstatic interface
IMarketDataRetrievalService.IPillarSet
This interface describes an set of pillar allong an axisstatic class
IMarketDataRetrievalService.MarketType
The returned type of the market data
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double[]
getMarketData(IServiceContext context, LocalDate date, String marketDataSet, String sensitivityKind, String sensitivityName, String riskClass, String riskFactor, IMarketDataRetrievalService.IPillarSet[] requestedPillars, boolean interpolate, IMarketDataRetrievalService.MarketType type, String debugKey)
Get some market databoolean
getMarketDataInterpolationFlag(IServiceContext context, String sensitivityKind, String sensitivityName, String riskClass)
Retrieves the flag that specifies whether interpolation of the market data is used for the computation of PnL explaincom.qfs.vector.IVector[]
getPnlVector(IServiceContext context, LocalDate date, String scenario, String marketDataSet, String sensitivityKind, String sensitivityName, String riskClass, String riskFactor, IMarketDataRetrievalService.IPillarSet[] requestedPillars, boolean interpolate, IMarketDataRetrievalService.MarketType type, String debugKey)
Get some market databoolean
getShiftDataInterpolationFlag(IServiceContext context, String sensitivityKind, String sensitivityName, String riskClass)
Retrieves the flag that specifies whether interpolation of the shift data vector is used for the computation of VaR
-
-
-
Method Detail
-
getMarketData
double[] getMarketData(IServiceContext context, LocalDate date, String marketDataSet, String sensitivityKind, String sensitivityName, String riskClass, String riskFactor, IMarketDataRetrievalService.IPillarSet[] requestedPillars, boolean interpolate, IMarketDataRetrievalService.MarketType type, String debugKey)
Get some market data- Parameters:
context
- The caller contextdate
- The as of date of the market datamarketDataSet
- The set of data to look forsensitivityKind
- the type of sensitivity delta / gamma /vega / ....sensitivityName
- The kind of sensiriskClass
- The risk class of the requested market datariskFactor
- The name of the market datarequestedPillars
- The list of the requested pillar. For instance IPillarSets[0] for tenor, IPillarSets[1] for maturity, IPillarSets[2] for moneynessinterpolate
- Is the interpolation allowedtype
- The type of the returned market data : absolute means the market price in currency (for bonds price x nominal), relative to the nominal, raw aka as it is normally used / storedebugKey
- If not null will store debug info in the cache at the ket location- Returns:
- A list of values describing a vector / map / cube depending of the requested dimensions, coordinates are (i * size(j) + j) * size(k) + k
-
getPnlVector
com.qfs.vector.IVector[] getPnlVector(IServiceContext context, LocalDate date, String scenario, String marketDataSet, String sensitivityKind, String sensitivityName, String riskClass, String riskFactor, IMarketDataRetrievalService.IPillarSet[] requestedPillars, boolean interpolate, IMarketDataRetrievalService.MarketType type, String debugKey)
Get some market data- Parameters:
context
- The caller contextdate
- The as of date of the market datascenario
- The VaR scenario to look formarketDataSet
- The set of data to look forsensitivityKind
- the type of sensitivity delta / gamma /vega / ....sensitivityName
- The kind of sensiriskClass
- The risk class of the requested market datariskFactor
- The name of the market datarequestedPillars
- The list of the requested pillar. For instance IPillarSets[0] for tenor, IPillarSets[1] for maturity, IPillarSets[2] for moneynessinterpolate
- Is the interpolation allowedtype
- The type of the returned market data : absolute means the market price in currency, relative to the nominal (current configuration for VaR computation), raw aka as it is normally used / storedebugKey
- If not null will store debug info in the cache at the ket location- Returns:
- A list of values describing a vector / map / cube depending of the requested dimensions, coordinates are (i * size(j) + j) * size(k) + k
-
getMarketDataInterpolationFlag
boolean getMarketDataInterpolationFlag(IServiceContext context, String sensitivityKind, String sensitivityName, String riskClass)
Retrieves the flag that specifies whether interpolation of the market data is used for the computation of PnL explain- Parameters:
context
- The caller contextsensitivityKind
- the type of sensitivity delta / gamma /vega / ....sensitivityName
- the sensitivity nameriskClass
- the risk class- Returns:
- A boolean flag that is true if interpolation is used and false otherwise
-
getShiftDataInterpolationFlag
boolean getShiftDataInterpolationFlag(IServiceContext context, String sensitivityKind, String sensitivityName, String riskClass)
Retrieves the flag that specifies whether interpolation of the shift data vector is used for the computation of VaR- Parameters:
context
- The caller contextsensitivityKind
- the type of sensitivity delta / gamma /vega / ....sensitivityName
- the sensitivity nameriskClass
- the risk class- Returns:
- A boolean flag that is true if interpolation is used and false otherwise
-
-