public interface CreditRatesProvider
The primary usage of this provider is to price credit default swaps on a legal entity. This includes credit curves, discounting curves and recovery rate curves.
| Modifier and Type | Method and Description |
|---|---|
CreditDiscountFactors |
discountFactors(Currency currency)
Gets the discount factors for a currency.
|
<T> Optional<T> |
findData(MarketDataName<T> name)
Finds the market data with the specified name.
|
LocalDate |
getValuationDate()
Gets the valuation date.
|
CurrencyParameterSensitivities |
parameterSensitivity(PointSensitivities pointSensitivities)
Computes the parameter sensitivity.
|
RecoveryRates |
recoveryRates(StandardId legalEntityId)
Gets the recovery rates for a standard ID.
|
CurrencyParameterSensitivity |
singleCreditCurveParameterSensitivity(PointSensitivities pointSensitivities,
StandardId legalEntityId,
Currency currency)
Computes the parameter sensitivity for a specific credit curve.
|
CurrencyParameterSensitivity |
singleDiscountCurveParameterSensitivity(PointSensitivities pointSensitivities,
Currency currency)
Computes the parameter sensitivity for a specific discount curve.
|
LegalEntitySurvivalProbabilities |
survivalProbabilities(StandardId legalEntityId,
Currency currency)
Gets the survival probabilities for a standard ID and a currency.
|
ImmutableCreditRatesProvider |
toImmutableCreditRatesProvider()
Converts this provider to an equivalent
ImmutableCreditRatesProvider. |
LocalDate getValuationDate()
The raw data in this provider is calibrated for this date.
LegalEntitySurvivalProbabilities survivalProbabilities(StandardId legalEntityId, Currency currency)
If both the standard ID and currency are matched, the relevant LegalEntitySurvivalProbabilities is returned.
If the valuation date is on the specified date, the survival probability is 1.
legalEntityId - the standard ID of legal entity to get the discount factors forcurrency - the currency to get the discount factors forIllegalArgumentException - if the survival probabilities are not availableCreditDiscountFactors discountFactors(Currency currency)
The discount factor represents the time value of money for the specified currency when comparing the valuation date to the specified date.
If the valuation date is on the specified date, the discount factor is 1.
currency - the currency to get the discount factors forRecoveryRates recoveryRates(StandardId legalEntityId)
If both the standard ID and currency are matched, the relevant RecoveryRates is returned.
legalEntityId - the standard ID of legal entity to get the discount factors forIllegalArgumentException - if the recovery rates are not availableCurrencyParameterSensitivities parameterSensitivity(PointSensitivities pointSensitivities)
This computes the CurrencyParameterSensitivities associated with the PointSensitivities.
This corresponds to the projection of the point sensitivity to the curve internal parameters representation.
The sensitivities handled here are CreditCurveZeroRateSensitivity, ZeroRateSensitivity.
For the other sensitivity objects, use RatesProvider instead.
pointSensitivities - the point sensitivityCurrencyParameterSensitivity singleCreditCurveParameterSensitivity(PointSensitivities pointSensitivities, StandardId legalEntityId, Currency currency)
The credit curve is specified by legalEntityId and currency.
pointSensitivities - the point sensitivitylegalEntityId - the legal entitycurrency - the currencyCurrencyParameterSensitivity singleDiscountCurveParameterSensitivity(PointSensitivities pointSensitivities, Currency currency)
The discount curve is specified by currency.
pointSensitivities - the point sensitivitycurrency - the currency<T> Optional<T> findData(MarketDataName<T> name)
This is most commonly used to find a Curve using a CurveName.
If the market data cannot be found, empty is returned.
T - the type of the market data valuename - the name to findImmutableCreditRatesProvider toImmutableCreditRatesProvider()
ImmutableCreditRatesProvider.Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.