Package org.drip.service.scenario
Class BondReplicator
java.lang.Object
org.drip.service.scenario.BondReplicator
public class BondReplicator
extends java.lang.Object
BondReplicator generates a Target Set of Sensitivity and Relative Value Runs.
- Module = Computational Core Module
- Library = Computation Support
- Project = Environment, Product/Definition Containers, and Scenario/State Manipulation APIs
- Package = Custom Scenario Service Metric Generator
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
Fields Modifier and Type Field Description static double
CORPORATE_LOAN_RECOVERY_RATE
Loan Corporate Recovery Ratestatic double
CORPORATE_SENIOR_RECOVERY_RATE
Senior Corporate Recovery Ratestatic double
CORPORATE_SUBORDINATE_RECOVERY_RATE
Subordinate Corporate Recovery Rate -
Constructor Summary
Constructors Constructor Description BondReplicator(double dblCurrentPrice, double dblIssuePrice, double dblIssueAmount, JulianDate dtValue, java.lang.String[] astrDepositTenor, double[] adblDepositQuote, double[] adblFuturesQuote, java.lang.String[] astrFixFloatTenor, double[] adblFixFloatQuote, double dblCustomYieldBump, double dblCustomCreditBasisBump, double dblZSpreadBump, double dblTenorBump, double dblSpreadDurationMultiplier, java.lang.String strGovvieCode, java.lang.String[] astrGovvieTenor, double[] adblGovvieQuote, boolean bMarketPriceCreditMetrics, java.lang.String[] astrCreditTenor, double[] adblCreditQuote, double dblFX, double dblResetRate, int iSettleLag, double dblRecoveryRate, BondComponent bond)
BondReplicator Constructor -
Method Summary
Modifier and Type Method Description BondComponent
bond()
Retrieve the Bond Component Instancestatic BondReplicator
CorporateLoan(double dblCurrentPrice, double dblIssuePrice, double dblIssueAmount, JulianDate dtSpot, java.lang.String[] astrDepositTenor, double[] adblDepositQuote, double[] adblFuturesQuote, java.lang.String[] astrFixFloatTenor, double[] adblFixFloatQuote, double dblSpreadBump, double dblSpreadDurationMultiplier, java.lang.String strGovvieCode, java.lang.String[] astrGovvieTenor, double[] adblGovvieQuote, java.lang.String[] astrCreditTenor, double[] adblCreditQuote, double dblFX, double dblResetRate, int iSettleLag, BondComponent bond)
Generate a Standard Corporate Loan BondReplicator Instancestatic BondReplicator
CorporateSenior(double dblCurrentPrice, double dblIssuePrice, double dblIssueAmount, JulianDate dtSpot, java.lang.String[] astrDepositTenor, double[] adblDepositQuote, double[] adblFuturesQuote, java.lang.String[] astrFixFloatTenor, double[] adblFixFloatQuote, double dblSpreadBump, double dblSpreadDurationMultiplier, java.lang.String strGovvieCode, java.lang.String[] astrGovvieTenor, double[] adblGovvieQuote, java.lang.String[] astrCreditTenor, double[] adblCreditQuote, double dblFX, double dblResetRate, int iSettleLag, BondComponent bond)
Generate a Standard Senior Corporate BondReplicator Instancestatic BondReplicator
CorporateSubordinate(double dblCurrentPrice, double dblIssuePrice, double dblIssueAmount, JulianDate dtSpot, java.lang.String[] astrDepositTenor, double[] adblDepositQuote, double[] adblFuturesQuote, java.lang.String[] astrFixFloatTenor, double[] adblFixFloatQuote, double dblSpreadBump, double dblSpreadDurationMultiplier, java.lang.String strGovvieCode, java.lang.String[] astrGovvieTenor, double[] adblGovvieQuote, java.lang.String[] astrCreditTenor, double[] adblCreditQuote, double dblFX, double dblResetRate, int iSettleLag, BondComponent bond)
Generate a Standard Subordinate Corporate BondReplicator InstanceCurveSurfaceQuoteContainer
credit01UpCSQC()
Retrieve the CSQC built out of the Credit Curve Flat Bumped 1 bpCurveSurfaceQuoteContainer
creditBaseCSQC()
Retrieve the CSQC built out of the Base Credit Curveboolean
creditMetricsFromMarketPrice()
Retrieve the Flag that indicates the Generation the Credit Metrics from the Market Pricedouble[]
creditQuote()
Retrieve the Array of CDS Quotesjava.lang.String[]
creditTenor()
Retrieve the Array of CDS Instrument Maturity Tenorsjava.util.Map<java.lang.String,CurveSurfaceQuoteContainer>
creditTenorCSQC()
Retrieve the Map of the Tenor Bumped Instances of the Credit Curve CSQCdouble
currentPrice()
Retrieve the Bond Current Market Pricedouble
customCreditBasisBump()
Retrieve the Custom Credit Basis Bumpdouble
customYieldBump()
Retrieve the Custom Yield Bumpdouble[]
depositQuote()
Retrieve the Array of Deposit Instrument Quotesjava.lang.String[]
depositTenor()
Retrieve the Array of Deposit Instrument Maturity TenorsEOSMetricsReplicator
eosMetricsReplicator()
Retrieve the EOS Metrics Replicatordouble[]
fixFloatQuote()
Retrieve the Array of Fix-Float IRS Instrument Quotesjava.lang.String[]
fixFloatTenor()
Retrieve the Array of Fix-Float IRS Instrument Maturity Tenorsjava.util.Map<java.lang.String,CurveSurfaceQuoteContainer>
forwardFundingTenorCSQCDown()
Retrieve the Map of the Tenor Bumped Down Instances of the Forward Funding Curve CSQCjava.util.Map<java.lang.String,CurveSurfaceQuoteContainer>
forwardFundingTenorCSQCUp()
Retrieve the Map of the Tenor Bumped Up Instances of the Forward Funding Curve CSQCCurveSurfaceQuoteContainer
funding01UpCSQC()
Retrieve the CSQC built out of the Funding Curve Flat Bumped 1 bpCurveSurfaceQuoteContainer
fundingBaseCSQC()
Retrieve the CSQC built out of the Base Funding CurveCurveSurfaceQuoteContainer
fundingEuroDollarCSQC()
Retrieve the CSQC built out of the Base Euro Dollar Curvejava.util.Map<java.lang.String,CurveSurfaceQuoteContainer>
fundingTenorCSQCDown()
Retrieve the Map of the Tenor Bumped Down Instances of the Funding Curve CSQCjava.util.Map<java.lang.String,CurveSurfaceQuoteContainer>
fundingTenorCSQCUp()
Retrieve the Map of the Tenor Bumped Up Instances of the Funding Curve CSQCdouble[]
futuresQuote()
Retrieve the Array of Futures Instrument Quotesdouble
fx()
Retrieve the FX RateBondReplicationRun
generateRun()
Generate an Instance of a Replication Runjava.lang.String
govvieCode()
Retrieve the Govvie Codedouble[]
govvieQuote()
Retrieve the Array of Govvie Yield Quotesjava.lang.String[]
govvieTenor()
Retrieve the Array of Govvie Instrument Maturity Tenorsjava.util.Map<java.lang.String,CurveSurfaceQuoteContainer>
govvieTenorCSQCDown()
Retrieve the Map of the Tenor Bumped Down Instances of the Govvie Curve CSQCjava.util.Map<java.lang.String,CurveSurfaceQuoteContainer>
govvieTenorCSQCUp()
Retrieve the Map of the Tenor Bumped Up Instances of the Govvie Curve CSQCdouble
issueAmount()
Retrieve the Bond Issue Amountdouble
issuePrice()
Retrieve the Bond Issue Pricedouble
recoveryRate()
Retrieve the Recovery Rateint
resetDate()
Retrieve the Reset Datedouble
resetRate()
Retrieve the Reset RateJulianDate
settleDate()
Retrieve the Settle Datedouble
settleLag()
Retrieve the Settle Lagdouble
spreadDurationMultiplier()
Retrieve the Spread Duration Multiplierdouble
tenorBump()
Retrieve the Tenor Quote BumpValuationParams
valuationParameters()
Retrieve the Valuation ParametersJulianDate
valueDate()
Retrieve the Value Datedouble
zSpreadBump()
Retrieve the Z Spread BumpMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
CORPORATE_SUBORDINATE_RECOVERY_RATE
public static final double CORPORATE_SUBORDINATE_RECOVERY_RATESubordinate Corporate Recovery Rate- See Also:
- Constant Field Values
-
CORPORATE_SENIOR_RECOVERY_RATE
public static final double CORPORATE_SENIOR_RECOVERY_RATESenior Corporate Recovery Rate- See Also:
- Constant Field Values
-
CORPORATE_LOAN_RECOVERY_RATE
public static final double CORPORATE_LOAN_RECOVERY_RATELoan Corporate Recovery Rate- See Also:
- Constant Field Values
-
-
Constructor Details
-
BondReplicator
public BondReplicator(double dblCurrentPrice, double dblIssuePrice, double dblIssueAmount, JulianDate dtValue, java.lang.String[] astrDepositTenor, double[] adblDepositQuote, double[] adblFuturesQuote, java.lang.String[] astrFixFloatTenor, double[] adblFixFloatQuote, double dblCustomYieldBump, double dblCustomCreditBasisBump, double dblZSpreadBump, double dblTenorBump, double dblSpreadDurationMultiplier, java.lang.String strGovvieCode, java.lang.String[] astrGovvieTenor, double[] adblGovvieQuote, boolean bMarketPriceCreditMetrics, java.lang.String[] astrCreditTenor, double[] adblCreditQuote, double dblFX, double dblResetRate, int iSettleLag, double dblRecoveryRate, BondComponent bond) throws java.lang.ExceptionBondReplicator Constructor- Parameters:
dblCurrentPrice
- Current PricedblIssuePrice
- Issue PricedblIssueAmount
- Issue AmountdtValue
- Value DateastrDepositTenor
- Array of Deposit TenorsadblDepositQuote
- Array of Deposit QuotesadblFuturesQuote
- Array of Futures QuotesastrFixFloatTenor
- Array of Fix-Float TenorsadblFixFloatQuote
- Array of Fix-Float QuotesdblCustomYieldBump
- Custom Yield BumpdblCustomCreditBasisBump
- Custom Credit Basis BumpdblZSpreadBump
- Z Spread BumpdblTenorBump
- Tenor BumpdblSpreadDurationMultiplier
- Spread Duration MultiplierstrGovvieCode
- Govvie CodeastrGovvieTenor
- Array of Govvie TenoradblGovvieQuote
- Array of Govvie QuotesbMarketPriceCreditMetrics
- Generate the Credit Metrics from the Market PriceastrCreditTenor
- Array of Credit TenorsadblCreditQuote
- Array of Credit QuotesdblFX
- FX Rate ApplicabledblResetRate
- Reset Rate ApplicableiSettleLag
- Settlement LagdblRecoveryRate
- Recovery Ratebond
- Bond Component Instance- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
CorporateSubordinate
public static final BondReplicator CorporateSubordinate(double dblCurrentPrice, double dblIssuePrice, double dblIssueAmount, JulianDate dtSpot, java.lang.String[] astrDepositTenor, double[] adblDepositQuote, double[] adblFuturesQuote, java.lang.String[] astrFixFloatTenor, double[] adblFixFloatQuote, double dblSpreadBump, double dblSpreadDurationMultiplier, java.lang.String strGovvieCode, java.lang.String[] astrGovvieTenor, double[] adblGovvieQuote, java.lang.String[] astrCreditTenor, double[] adblCreditQuote, double dblFX, double dblResetRate, int iSettleLag, BondComponent bond)Generate a Standard Subordinate Corporate BondReplicator Instance- Parameters:
dblCurrentPrice
- Current PricedblIssuePrice
- Issue PricedblIssueAmount
- Issue AmountdtSpot
- Spot DateastrDepositTenor
- Array of Deposit TenorsadblDepositQuote
- Array of Deposit QuotesadblFuturesQuote
- Array of Futures QuotesastrFixFloatTenor
- Array of Fix-Float TenorsadblFixFloatQuote
- Array of Fix-Float QuotesdblSpreadBump
- Yield/Spread BumpdblSpreadDurationMultiplier
- Spread Duration MultiplierstrGovvieCode
- Govvie CodeastrGovvieTenor
- Array of Govvie TenoradblGovvieQuote
- Array of Govvie QuotesastrCreditTenor
- Array of Credit TenorsadblCreditQuote
- Array of Credit QuotesdblFX
- FX Rate ApplicabledblResetRate
- Reset Rate ApplicableiSettleLag
- Settlement Lagbond
- Bond Component Instance- Returns:
- The Standard Subordinate BondReplicator Instance
-
CorporateSenior
public static final BondReplicator CorporateSenior(double dblCurrentPrice, double dblIssuePrice, double dblIssueAmount, JulianDate dtSpot, java.lang.String[] astrDepositTenor, double[] adblDepositQuote, double[] adblFuturesQuote, java.lang.String[] astrFixFloatTenor, double[] adblFixFloatQuote, double dblSpreadBump, double dblSpreadDurationMultiplier, java.lang.String strGovvieCode, java.lang.String[] astrGovvieTenor, double[] adblGovvieQuote, java.lang.String[] astrCreditTenor, double[] adblCreditQuote, double dblFX, double dblResetRate, int iSettleLag, BondComponent bond)Generate a Standard Senior Corporate BondReplicator Instance- Parameters:
dblCurrentPrice
- Current PricedblIssuePrice
- Issue PricedblIssueAmount
- Issue AmountdtSpot
- Spot DateastrDepositTenor
- Array of Deposit TenorsadblDepositQuote
- Array of Deposit QuotesadblFuturesQuote
- Array of Futures QuotesastrFixFloatTenor
- Array of Fix-Float TenorsadblFixFloatQuote
- Array of Fix-Float QuotesdblSpreadBump
- Yield/Spread BumpdblSpreadDurationMultiplier
- Spread Duration MultiplierstrGovvieCode
- Govvie CodeastrGovvieTenor
- Array of Govvie TenoradblGovvieQuote
- Array of Govvie QuotesastrCreditTenor
- Array of Credit TenorsadblCreditQuote
- Array of Credit QuotesdblFX
- FX Rate ApplicabledblResetRate
- Reset Rate ApplicableiSettleLag
- Settlement Lagbond
- Bond Component Instance- Returns:
- The Standard Senior BondReplicator Instance
-
CorporateLoan
public static final BondReplicator CorporateLoan(double dblCurrentPrice, double dblIssuePrice, double dblIssueAmount, JulianDate dtSpot, java.lang.String[] astrDepositTenor, double[] adblDepositQuote, double[] adblFuturesQuote, java.lang.String[] astrFixFloatTenor, double[] adblFixFloatQuote, double dblSpreadBump, double dblSpreadDurationMultiplier, java.lang.String strGovvieCode, java.lang.String[] astrGovvieTenor, double[] adblGovvieQuote, java.lang.String[] astrCreditTenor, double[] adblCreditQuote, double dblFX, double dblResetRate, int iSettleLag, BondComponent bond)Generate a Standard Corporate Loan BondReplicator Instance- Parameters:
dblCurrentPrice
- Current PricedblIssuePrice
- Issue PricedblIssueAmount
- Issue AmountdtSpot
- Spot DateastrDepositTenor
- Array of Deposit TenorsadblDepositQuote
- Array of Deposit QuotesadblFuturesQuote
- Array of Futures QuotesastrFixFloatTenor
- Array of Fix-Float TenorsadblFixFloatQuote
- Array of Fix-Float QuotesdblSpreadBump
- Yield/Spread BumpdblSpreadDurationMultiplier
- Spread Duration MultiplierstrGovvieCode
- Govvie CodeastrGovvieTenor
- Array of Govvie TenoradblGovvieQuote
- Array of Govvie QuotesastrCreditTenor
- Array of Credit TenorsadblCreditQuote
- Array of Credit QuotesdblFX
- FX Rate ApplicabledblResetRate
- Reset Rate ApplicableiSettleLag
- Settlement Lagbond
- Bond Component Instance- Returns:
- The Standard Senior BondReplicator Instance
-
currentPrice
public double currentPrice()Retrieve the Bond Current Market Price- Returns:
- The Bond Current Market Price
-
issuePrice
public double issuePrice()Retrieve the Bond Issue Price- Returns:
- The Bond Issue Price
-
issueAmount
public double issueAmount()Retrieve the Bond Issue Amount- Returns:
- The Bond Issue Amount
-
valueDate
Retrieve the Value Date- Returns:
- The Value Date
-
depositTenor
public java.lang.String[] depositTenor()Retrieve the Array of Deposit Instrument Maturity Tenors- Returns:
- The Array of Deposit Instrument Maturity Tenors
-
depositQuote
public double[] depositQuote()Retrieve the Array of Deposit Instrument Quotes- Returns:
- The Array of Deposit Instrument Quotes
-
futuresQuote
public double[] futuresQuote()Retrieve the Array of Futures Instrument Quotes- Returns:
- The Array of Futures Instrument Quotes
-
fixFloatTenor
public java.lang.String[] fixFloatTenor()Retrieve the Array of Fix-Float IRS Instrument Maturity Tenors- Returns:
- The Array of Fix-Float IRS Instrument Maturity Tenors
-
fixFloatQuote
public double[] fixFloatQuote()Retrieve the Array of Fix-Float IRS Instrument Quotes- Returns:
- The Array of Fix-Float IRS Instrument Quotes
-
recoveryRate
public double recoveryRate()Retrieve the Recovery Rate- Returns:
- The Recovery Rate
-
customYieldBump
public double customYieldBump()Retrieve the Custom Yield Bump- Returns:
- The Custom Yield Bump
-
customCreditBasisBump
public double customCreditBasisBump()Retrieve the Custom Credit Basis Bump- Returns:
- The Custom Credit Basis Bump
-
zSpreadBump
public double zSpreadBump()Retrieve the Z Spread Bump- Returns:
- The Z Spread Bump
-
tenorBump
public double tenorBump()Retrieve the Tenor Quote Bump- Returns:
- The Tenor Quote Bump
-
spreadDurationMultiplier
public double spreadDurationMultiplier()Retrieve the Spread Duration Multiplier- Returns:
- The Spread Duration Multiplier
-
govvieCode
public java.lang.String govvieCode()Retrieve the Govvie Code- Returns:
- The Govvie Code
-
govvieTenor
public java.lang.String[] govvieTenor()Retrieve the Array of Govvie Instrument Maturity Tenors- Returns:
- The Array of Govvie Instrument Maturity Tenors
-
govvieQuote
public double[] govvieQuote()Retrieve the Array of Govvie Yield Quotes- Returns:
- The Array of Govvie Yield Quotes
-
creditMetricsFromMarketPrice
public boolean creditMetricsFromMarketPrice()Retrieve the Flag that indicates the Generation the Credit Metrics from the Market Price- Returns:
- TRUE - Generate the Credit Metrics from the Market Price
-
creditTenor
public java.lang.String[] creditTenor()Retrieve the Array of CDS Instrument Maturity Tenors- Returns:
- The Array of CDS Instrument Maturity Tenors
-
creditQuote
public double[] creditQuote()Retrieve the Array of CDS Quotes- Returns:
- The Array of CDS Quotes
-
fx
public double fx()Retrieve the FX Rate- Returns:
- The FX Rate
-
settleLag
public double settleLag()Retrieve the Settle Lag- Returns:
- The Settle Lag
-
bond
Retrieve the Bond Component Instance- Returns:
- The Bond Component Instance
-
settleDate
Retrieve the Settle Date- Returns:
- The Settle Date
-
valuationParameters
Retrieve the Valuation Parameters- Returns:
- The Valuation Parameters
-
fundingTenorCSQCUp
Retrieve the Map of the Tenor Bumped Up Instances of the Funding Curve CSQC- Returns:
- The Map of the Tenor Bumped Up Instances of the Funding Curve CSQC
-
fundingTenorCSQCDown
Retrieve the Map of the Tenor Bumped Down Instances of the Funding Curve CSQC- Returns:
- The Map of the Tenor Bumped Down Instances of the Funding Curve CSQC
-
forwardFundingTenorCSQCUp
Retrieve the Map of the Tenor Bumped Up Instances of the Forward Funding Curve CSQC- Returns:
- The Map of the Tenor Bumped Up Instances of the Forward Funding Curve CSQC
-
forwardFundingTenorCSQCDown
Retrieve the Map of the Tenor Bumped Down Instances of the Forward Funding Curve CSQC- Returns:
- The Map of the Tenor Bumped Down Instances of the Forward Funding Curve CSQC
-
govvieTenorCSQCUp
Retrieve the Map of the Tenor Bumped Up Instances of the Govvie Curve CSQC- Returns:
- The Map of the Tenor Bumped Up Instances of the Govvie Curve CSQC
-
govvieTenorCSQCDown
Retrieve the Map of the Tenor Bumped Down Instances of the Govvie Curve CSQC- Returns:
- The Map of the Tenor Bumped Down Instances of the Govvie Curve CSQC
-
creditTenorCSQC
Retrieve the Map of the Tenor Bumped Instances of the Credit Curve CSQC- Returns:
- The Map of the Tenor Bumped Instances of the Credit Curve CSQC
-
fundingBaseCSQC
Retrieve the CSQC built out of the Base Funding Curve- Returns:
- The CSQC built out of the Base Funding Curve
-
fundingEuroDollarCSQC
Retrieve the CSQC built out of the Base Euro Dollar Curve- Returns:
- The CSQC built out of the Base Euro Dollar Curve
-
creditBaseCSQC
Retrieve the CSQC built out of the Base Credit Curve- Returns:
- The CSQC built out of the Base Credit Curve
-
funding01UpCSQC
Retrieve the CSQC built out of the Funding Curve Flat Bumped 1 bp- Returns:
- The CSQC built out of the Funding Curve Flat Bumped 1 bp
-
credit01UpCSQC
Retrieve the CSQC built out of the Credit Curve Flat Bumped 1 bp- Returns:
- The CSQC built out of the Credit Curve Flat Bumped 1 bp
-
resetDate
public int resetDate()Retrieve the Reset Date- Returns:
- The Reset Date
-
resetRate
public double resetRate()Retrieve the Reset Rate- Returns:
- The Reset Rate
-
eosMetricsReplicator
Retrieve the EOS Metrics Replicator- Returns:
- The EOS Metrics Replicator
-
generateRun
Generate an Instance of a Replication Run- Returns:
- Instance of a Replication Run
-