Package org.drip.analytics.support
Class FuturesHelper
java.lang.Object
org.drip.analytics.support.FuturesHelper
public class FuturesHelper
extends java.lang.Object
FuturesHelper contains the Collection of the Futures Valuation related Utility Functions.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Date, Cash Flow, and Cash Flow Period Measure Generation Utilities
- Package = Assorted Support and Helper Utilities
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description FuturesHelper()
-
Method Summary
Modifier and Type Method Description static double
ForwardBondCreditPrice(Bond bond, JulianDate dtSpot, JulianDate dtForward, CurveSurfaceQuoteContainer csqc, double dblCleanPrice)
Compute the Forward Bond Price Using the Implied Bond Credit Basisstatic double
ForwardBondCreditPrice(Bond bond, ValuationParams valParamsSpot, ValuationParams valParamsForward, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblCleanPrice)
Compute the Forward Bond Price Using the Implied Bond Credit Basisstatic double
ForwardBondOASPrice(Bond bond, JulianDate dtSpot, JulianDate dtForward, CurveSurfaceQuoteContainer csqc, double dblCleanPrice)
Compute the Forward Bond Price Using the Implied Bond OASstatic double
ForwardBondOASPrice(Bond bond, ValuationParams valParamsSpot, ValuationParams valParamsForward, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblCleanPrice)
Compute the Forward Bond Price Using the Implied Bond OASstatic double
ForwardBondYieldPrice(Bond bond, JulianDate dtSpot, JulianDate dtForward, CurveSurfaceQuoteContainer csqc, double dblCleanPrice)
Compute the Forward Bond Price Using the Implied Bond Yieldstatic double
ForwardBondYieldPrice(Bond bond, ValuationParams valParamsSpot, ValuationParams valParamsForward, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblCleanPrice)
Compute the Forward Bond Price Using the Implied Bond Yieldstatic double
ForwardBondZSpreadPrice(Bond bond, JulianDate dtSpot, JulianDate dtForward, CurveSurfaceQuoteContainer csqc, double dblCleanPrice)
Compute the Forward Bond Price Using the Implied Bond Z Spreadstatic double
ForwardBondZSpreadPrice(Bond bond, ValuationParams valParamsSpot, ValuationParams valParamsForward, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblCleanPrice)
Compute the Forward Bond Price Using the Implied Bond Z SpreadMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FuturesHelper
public FuturesHelper()
-
-
Method Details
-
ForwardBondYieldPrice
public static final double ForwardBondYieldPrice(Bond bond, ValuationParams valParamsSpot, ValuationParams valParamsForward, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblCleanPrice) throws java.lang.ExceptionCompute the Forward Bond Price Using the Implied Bond Yield- Parameters:
bond
- The Bond InstancevalParamsSpot
- The Spot Valuation ParametersvalParamsForward
- The Forward Valuation Parameterscsqc
- The Market Parametersvcp
- Valuation Customization ParametersdblCleanPrice
- The Clean Bond Price- Returns:
- The Forward Bond Price Using the Implied Bond Yield
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
ForwardBondZSpreadPrice
public static final double ForwardBondZSpreadPrice(Bond bond, ValuationParams valParamsSpot, ValuationParams valParamsForward, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblCleanPrice) throws java.lang.ExceptionCompute the Forward Bond Price Using the Implied Bond Z Spread- Parameters:
bond
- The Bond InstancevalParamsSpot
- The Spot Valuation ParametersvalParamsForward
- The Forward Valuation Parameterscsqc
- The Market Parametersvcp
- Valuation Customization ParametersdblCleanPrice
- The Clean Bond Price- Returns:
- The Forward Bond Price Using the Implied Bond Z Spread
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
ForwardBondOASPrice
public static final double ForwardBondOASPrice(Bond bond, ValuationParams valParamsSpot, ValuationParams valParamsForward, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblCleanPrice) throws java.lang.ExceptionCompute the Forward Bond Price Using the Implied Bond OAS- Parameters:
bond
- The Bond InstancevalParamsSpot
- The Spot Valuation ParametersvalParamsForward
- The Forward Valuation Parameterscsqc
- The Market Parametersvcp
- Valuation Customization ParametersdblCleanPrice
- The Clean Bond Price- Returns:
- The Forward Bond Price Using the Implied Bond OAS
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
ForwardBondCreditPrice
public static final double ForwardBondCreditPrice(Bond bond, ValuationParams valParamsSpot, ValuationParams valParamsForward, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double dblCleanPrice) throws java.lang.ExceptionCompute the Forward Bond Price Using the Implied Bond Credit Basis- Parameters:
bond
- The Bond InstancevalParamsSpot
- The Spot Valuation ParametersvalParamsForward
- The Forward Valuation Parameterscsqc
- The Market Parametersvcp
- Valuation Customization ParametersdblCleanPrice
- The Clean Bond Price- Returns:
- The Forward Bond Price Using the Implied Bond Credit Basis
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
ForwardBondYieldPrice
public static final double ForwardBondYieldPrice(Bond bond, JulianDate dtSpot, JulianDate dtForward, CurveSurfaceQuoteContainer csqc, double dblCleanPrice) throws java.lang.ExceptionCompute the Forward Bond Price Using the Implied Bond Yield- Parameters:
bond
- The Bond InstancedtSpot
- The Spot DatedtForward
- The Forward Datecsqc
- The Market ParametersdblCleanPrice
- The Clean Bond Price- Returns:
- The Forward Bond Price Using the Implied Bond Yield
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
ForwardBondZSpreadPrice
public static final double ForwardBondZSpreadPrice(Bond bond, JulianDate dtSpot, JulianDate dtForward, CurveSurfaceQuoteContainer csqc, double dblCleanPrice) throws java.lang.ExceptionCompute the Forward Bond Price Using the Implied Bond Z Spread- Parameters:
bond
- The Bond InstancedtSpot
- The Spot DatedtForward
- The Forward Datecsqc
- The Market ParametersdblCleanPrice
- The Clean Bond Price- Returns:
- The Forward Bond Price Using the Implied Bond Z Spread
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
ForwardBondOASPrice
public static final double ForwardBondOASPrice(Bond bond, JulianDate dtSpot, JulianDate dtForward, CurveSurfaceQuoteContainer csqc, double dblCleanPrice) throws java.lang.ExceptionCompute the Forward Bond Price Using the Implied Bond OAS- Parameters:
bond
- The Bond InstancedtSpot
- The Spot DatedtForward
- The Forward Datecsqc
- The Market ParametersdblCleanPrice
- The Clean Bond Price- Returns:
- The Forward Bond Price Using the Implied Bond OAS
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
ForwardBondCreditPrice
public static final double ForwardBondCreditPrice(Bond bond, JulianDate dtSpot, JulianDate dtForward, CurveSurfaceQuoteContainer csqc, double dblCleanPrice) throws java.lang.ExceptionCompute the Forward Bond Price Using the Implied Bond Credit Basis- Parameters:
bond
- The Bond InstancedtSpot
- The Spot DatedtForward
- The Forward Datecsqc
- The Market ParametersdblCleanPrice
- The Clean Bond Price- Returns:
- The Forward Bond Price Using the Implied Bond Credit Basis
- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-