Package org.drip.service.api
Class ProductDailyPnL
java.lang.Object
org.drip.service.api.ProductDailyPnL
public class ProductDailyPnL
extends java.lang.Object
ProductDailyPnL contains the following daily measures computed:
- 1D Carry, Roll Down, Curve Shift, and Full Return PnL
- 3D Carry and Roll Down PnL
- 3M Carry and Roll Down PnL
- Current DV01
- Module = Computational Core Module
- Library = Computation Support
- Project = Environment, Product/Definition Containers, and Scenario/State Manipulation APIs
- Package = Horizon Roll Attribution Service API
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ProductDailyPnL(double dbl1DTotalPnL, double dbl1DCleanPnL, double dbl1DDirtyPnL, double dbl1DTotalPnLWithFixing, double dbl1DCleanPnLWithFixing, double dbl1DDirtyPnLWithFixing, double dbl1DCarryPnL, double dbl1DTimeRollPnL, double dbl1DMaturityRollDownSwapRatePnL, double dbl1DMaturityRollUpSwapRatePnL, double dbl1DMaturityRollUpFairPremiumPnL, double dbl1DMaturityRollUpFairPremiumWithFixingPnL, double dbl1DCurveShiftPnL, double dbl1MCarryPnL, double dbl1MMaturityRollDownSwapRatePnL, double dbl3MCarryPnL, double dbl3MMaturityRollDownSwapRatePnL, double dblDV01, double dblDV01WithFixing, double dblCleanFixedDV01, double dblCleanFloatDV01, double dblCleanFloatDV01WithFixing, double dblBaselineSwapRate, double dbl1DTimeRollSwapRate, double dbl1DMaturityRollDownSwapRate, double dbl1MMaturityRollDownSwapRate, double dbl3MMaturityRollDownSwapRate, double dbl1DMaturityRollUpSwapRate, double dbl1DMaturityRollUpFairPremium, double dbl1DMaturityRollUpFairPremiumWithFixing, double dbl1DCurveShiftSwapRate, double dblPeriodFixedRate, double dblPeriodCurveFloatingRate, double dblPeriodProductFloatingRate, double dblPeriodFloatingRateUsed, int i1DFixedAccrualDays, int i1DFloatingAccrualDays, double dbl1DFixedDCF, double dbl1DFloatingDCF, double dbl1MFixedDCF, double dbl1MFloatingDCF, double dbl3MFixedDCF, double dbl3MFloatingDCF)
ProductDailyPnL constructor -
Method Summary
Modifier and Type Method Description double
baselineSwapRate()
Retrieve the Baseline Swap Ratedouble
carry1DPnL()
Retrieve the 1D Carry PnLdouble
carry1MPnL()
Retrieve the 1M Carry PnLdouble
carry3MPnL()
Retrieve the 3M Carry PnLdouble
clean1DPnL()
Retrieve the 1D Clean PnLdouble
clean1DPnLWithFixing()
Retrieve the 1D Clean PnL With Fixingdouble
cleanFixedDV01()
Retrieve the Clean Fixed DV01double
cleanFloatDV01()
Retrieve the Clean Float DV01double
cleanFloatDV01WithFixing()
Retrieve the Clean Float DV01 With Fixingdouble
curveShift1DPnL()
Retrieve the 1D Curve Shift PnLdouble
curveShiftSwapRate1D()
Retrieve the 1D Curve Shift Swap Ratedouble
dirty1DPnL()
Retrieve the 1D Dirty PnLdouble
dirty1DPnLWithFixing()
Retrieve the 1D Dirty PnL With Fixingdouble
DV01()
Retrieve the DV01double
DV01WithFixing()
Retrieve the DV01 With Fixingint
fixed1DAccrualDays()
Retrieve the 1D Fixed Accrual Perioddouble
fixed1DDCF()
Retrieve the Period 1D Fixed DCFdouble
fixed1MDCF()
Retrieve the Period 1M Fixed DCFdouble
fixed3MDCF()
Retrieve the Period 3M Fixed DCFint
floating1DAccrualDays()
Retrieve the 1D Floating Accrual Perioddouble
floating1DDCF()
Retrieve the Period 1D Floating DCFdouble
floating1MDCF()
Retrieve the Period 1M Floating DCFdouble
floating3MDCF()
Retrieve the Period 3M Floating DCFdouble
maturityRollDownSwapRate1D()
Retrieve the 1D Maturity Roll Down Swap Ratedouble
maturityRollDownSwapRate1DPnL()
Retrieve the 1D Maturity Roll Down Swap Rate PnLdouble
maturityRollDownSwapRate1M()
Retrieve the 1M Maturity Roll Down Swap Ratedouble
maturityRollDownSwapRate1MPnL()
Retrieve the 1M Maturity Roll Down Swap Rate PnLdouble
maturityRollDownSwapRate3M()
Retrieve the 3M Maturity Roll Down Swap Ratedouble
maturityRollDownSwapRate3MPnL()
Retrieve the 3M Maturity Roll Down Swap Rate PnLdouble
maturityRollUpFairPremium1D()
Retrieve the 1D Maturity Roll Up Fair Premiumdouble
maturityRollUpFairPremium1DPnL()
Retrieve the 1D Maturity Roll Up Fair Premium PnLdouble
maturityRollUpFairPremiumWithFixing1D()
Retrieve the 1D Maturity Roll Up Fair Premium With Fixingdouble
maturityRollUpFairPremiumWithFixing1DPnL()
Retrieve the 1D Maturity Roll Up Fair Premium With Fixing PnLdouble
maturityRollUpSwapRate1D()
Retrieve the 1D Maturity Roll Up Swap Ratedouble
maturityRollUpSwapRate1DPnL()
Retrieve the 1D Maturity Roll Up Swap Rate PnLdouble
periodCurveFloatingRate()
Retrieve the Period Curve Floating Ratedouble
periodFixedRate()
Retrieve the Period Fixed Ratedouble
periodFloatingRateUsed()
Retrieve the Period Floating Rate Useddouble
periodProductFloatingRate()
Retrieve the Period Product Floating Ratedouble
timeRoll1DPnL()
Retrieve the 1D Time Roll PnLdouble
timeRollSwapRate1D()
Retrieve the 1D Time Roll Swap Ratedouble[]
toArray()
Retrieve the Array of Metricsjava.lang.String
toString()
double
total1DPnL()
Retrieve the 1D Total PnLdouble
total1DPnLWithFixing()
Retrieve the 1D Total PnL With FixingMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ProductDailyPnL
public ProductDailyPnL(double dbl1DTotalPnL, double dbl1DCleanPnL, double dbl1DDirtyPnL, double dbl1DTotalPnLWithFixing, double dbl1DCleanPnLWithFixing, double dbl1DDirtyPnLWithFixing, double dbl1DCarryPnL, double dbl1DTimeRollPnL, double dbl1DMaturityRollDownSwapRatePnL, double dbl1DMaturityRollUpSwapRatePnL, double dbl1DMaturityRollUpFairPremiumPnL, double dbl1DMaturityRollUpFairPremiumWithFixingPnL, double dbl1DCurveShiftPnL, double dbl1MCarryPnL, double dbl1MMaturityRollDownSwapRatePnL, double dbl3MCarryPnL, double dbl3MMaturityRollDownSwapRatePnL, double dblDV01, double dblDV01WithFixing, double dblCleanFixedDV01, double dblCleanFloatDV01, double dblCleanFloatDV01WithFixing, double dblBaselineSwapRate, double dbl1DTimeRollSwapRate, double dbl1DMaturityRollDownSwapRate, double dbl1MMaturityRollDownSwapRate, double dbl3MMaturityRollDownSwapRate, double dbl1DMaturityRollUpSwapRate, double dbl1DMaturityRollUpFairPremium, double dbl1DMaturityRollUpFairPremiumWithFixing, double dbl1DCurveShiftSwapRate, double dblPeriodFixedRate, double dblPeriodCurveFloatingRate, double dblPeriodProductFloatingRate, double dblPeriodFloatingRateUsed, int i1DFixedAccrualDays, int i1DFloatingAccrualDays, double dbl1DFixedDCF, double dbl1DFloatingDCF, double dbl1MFixedDCF, double dbl1MFloatingDCF, double dbl3MFixedDCF, double dbl3MFloatingDCF) throws java.lang.ExceptionProductDailyPnL constructor- Parameters:
dbl1DTotalPnL
- 1D Total PnLdbl1DCleanPnL
- 1D Clean PnLdbl1DDirtyPnL
- 1D Dirty PnLdbl1DTotalPnLWithFixing
- 1D Total PnL With Fixingdbl1DCleanPnLWithFixing
- 1D Clean PnL With Fixingdbl1DDirtyPnLWithFixing
- 1D Dirty PnL With Fixingdbl1DCarryPnL
- 1D Carry PnLdbl1DTimeRollPnL
- 1D Time Roll PnLdbl1DMaturityRollDownSwapRatePnL
- 1D Curve Maturity Roll Down implied Par Swap rate PnLdbl1DMaturityRollUpSwapRatePnL
- 1D Curve Maturity Roll Up implied Par Swap rate PnLdbl1DMaturityRollUpFairPremiumPnL
- 1D Curve Maturity Roll Up implied Fair Premium PnLdbl1DMaturityRollUpFairPremiumWithFixingPnL
- 1D Curve Maturity Roll Up implied Fair Premium With Fixing PnLdbl1DCurveShiftPnL
- 1D Curve Shift PnLdbl1MCarryPnL
- 1M Carry PnLdbl1MMaturityRollDownSwapRatePnL
- 1M Curve Maturity Roll Down implied Par Swap rate PnLdbl3MCarryPnL
- 3M Carry PnLdbl3MMaturityRollDownSwapRatePnL
- 3M Curve Maturity Roll Down implied Par Swap rate PnLdblDV01
- DV01dblDV01WithFixing
- DV01 With FixingdblCleanFixedDV01
- Clean Fixed DV01dblCleanFloatDV01
- Clean Float DV01dblCleanFloatDV01WithFixing
- Clean Float DV01 With FixingdblBaselineSwapRate
- Baseline Par Swap Ratedbl1DTimeRollSwapRate
- 1D Curve Time Roll implied Par Swap ratedbl1DMaturityRollDownSwapRate
- 1D Curve Maturity Roll Down Implied Par Swap ratedbl1MMaturityRollDownSwapRate
- 1M Curve Maturity Roll Down implied Par Swap ratedbl3MMaturityRollDownSwapRate
- 3M Curve Maturity Roll Down implied Par Swap ratedbl1DMaturityRollUpSwapRate
- 1D Curve Maturity Roll Up Implied Par Swap ratedbl1DMaturityRollUpFairPremium
- 1D Curve Maturity Roll Up Implied Fair Premiumdbl1DMaturityRollUpFairPremiumWithFixing
- 1D Curve Maturity Roll Up Implied Fair Premium With Fixingdbl1DCurveShiftSwapRate
- 1D Day-to-Day Curve Shift implied Par Swap ratedblPeriodFixedRate
- The Period Fixed RatedblPeriodCurveFloatingRate
- The Period Curve Floating RatedblPeriodProductFloatingRate
- The Period Product Floating RatedblPeriodFloatingRateUsed
- The Period Floating Rate Usedi1DFixedAccrualDays
- 1D Fixed Accrual Daysi1DFloatingAccrualDays
- 1D Floating Accrual Daysdbl1DFixedDCF
- 1D Fixed Coupon DCFdbl1DFloatingDCF
- 1D Floating Coupon DCFdbl1MFixedDCF
- 1M Fixed Coupon DCFdbl1MFloatingDCF
- 1M Floating Coupon DCFdbl3MFixedDCF
- 3M Fixed Coupon DCFdbl3MFloatingDCF
- 3M Floating Coupon DCF- Throws:
java.lang.Exception
- Thrown if inputs are invalid
-
-
Method Details
-
clean1DPnL
public double clean1DPnL()Retrieve the 1D Clean PnL- Returns:
- The 1D Clean PnL
-
dirty1DPnL
public double dirty1DPnL()Retrieve the 1D Dirty PnL- Returns:
- The 1D Dirty PnL
-
total1DPnL
public double total1DPnL()Retrieve the 1D Total PnL- Returns:
- The 1D Total PnL
-
clean1DPnLWithFixing
public double clean1DPnLWithFixing()Retrieve the 1D Clean PnL With Fixing- Returns:
- The 1D Clean PnL With Fixing
-
dirty1DPnLWithFixing
public double dirty1DPnLWithFixing()Retrieve the 1D Dirty PnL With Fixing- Returns:
- The 1D Dirty PnL With Fixing
-
total1DPnLWithFixing
public double total1DPnLWithFixing()Retrieve the 1D Total PnL With Fixing- Returns:
- The 1D Total PnL With Fixing
-
carry1DPnL
public double carry1DPnL()Retrieve the 1D Carry PnL- Returns:
- The 1D Carry PnL
-
timeRoll1DPnL
public double timeRoll1DPnL()Retrieve the 1D Time Roll PnL- Returns:
- The 1D Time Roll PnL
-
maturityRollDownSwapRate1DPnL
public double maturityRollDownSwapRate1DPnL()Retrieve the 1D Maturity Roll Down Swap Rate PnL- Returns:
- The 1D Maturity Roll Down Swap Rate PnL
-
maturityRollUpSwapRate1DPnL
public double maturityRollUpSwapRate1DPnL()Retrieve the 1D Maturity Roll Up Swap Rate PnL- Returns:
- The 1D Maturity Roll Up Swap Rate PnL
-
maturityRollUpFairPremium1DPnL
public double maturityRollUpFairPremium1DPnL()Retrieve the 1D Maturity Roll Up Fair Premium PnL- Returns:
- The 1D Maturity Roll Up Fair Premium PnL
-
maturityRollUpFairPremiumWithFixing1DPnL
public double maturityRollUpFairPremiumWithFixing1DPnL()Retrieve the 1D Maturity Roll Up Fair Premium With Fixing PnL- Returns:
- The 1D Maturity Roll Up Fair Premium With Fixing PnL
-
curveShift1DPnL
public double curveShift1DPnL()Retrieve the 1D Curve Shift PnL- Returns:
- The 1D Curve Shift PnL
-
carry1MPnL
public double carry1MPnL()Retrieve the 1M Carry PnL- Returns:
- The 1M Carry PnL
-
maturityRollDownSwapRate1MPnL
public double maturityRollDownSwapRate1MPnL()Retrieve the 1M Maturity Roll Down Swap Rate PnL- Returns:
- The 1M Maturity Roll Down Swap Rate PnL
-
carry3MPnL
public double carry3MPnL()Retrieve the 3M Carry PnL- Returns:
- The 3M Carry PnL
-
maturityRollDownSwapRate3MPnL
public double maturityRollDownSwapRate3MPnL()Retrieve the 3M Maturity Roll Down Swap Rate PnL- Returns:
- The 3M Maturity Roll Down Swap Rate PnL
-
DV01
public double DV01()Retrieve the DV01- Returns:
- The DV01
-
DV01WithFixing
public double DV01WithFixing()Retrieve the DV01 With Fixing- Returns:
- The DV01 With Fixing
-
cleanFixedDV01
public double cleanFixedDV01()Retrieve the Clean Fixed DV01- Returns:
- The Clean Fixed DV01
-
cleanFloatDV01
public double cleanFloatDV01()Retrieve the Clean Float DV01- Returns:
- The Clean Float DV01
-
cleanFloatDV01WithFixing
public double cleanFloatDV01WithFixing()Retrieve the Clean Float DV01 With Fixing- Returns:
- The Clean Float DV01 With Fixing
-
baselineSwapRate
public double baselineSwapRate()Retrieve the Baseline Swap Rate- Returns:
- The Baseline Swap Rate
-
timeRollSwapRate1D
public double timeRollSwapRate1D()Retrieve the 1D Time Roll Swap Rate- Returns:
- The 1D Time Roll Swap Rate
-
maturityRollDownSwapRate1D
public double maturityRollDownSwapRate1D()Retrieve the 1D Maturity Roll Down Swap Rate- Returns:
- The 1D Maturity Roll Down Swap Rate
-
maturityRollDownSwapRate1M
public double maturityRollDownSwapRate1M()Retrieve the 1M Maturity Roll Down Swap Rate- Returns:
- The 1M Maturity Roll Down Swap Rate
-
maturityRollDownSwapRate3M
public double maturityRollDownSwapRate3M()Retrieve the 3M Maturity Roll Down Swap Rate- Returns:
- The 3M Maturity Roll Down Swap Rate
-
maturityRollUpSwapRate1D
public double maturityRollUpSwapRate1D()Retrieve the 1D Maturity Roll Up Swap Rate- Returns:
- The 1D Maturity Roll Up Swap Rate
-
maturityRollUpFairPremium1D
public double maturityRollUpFairPremium1D()Retrieve the 1D Maturity Roll Up Fair Premium- Returns:
- The 1D Maturity Roll Up Fair Premium
-
maturityRollUpFairPremiumWithFixing1D
public double maturityRollUpFairPremiumWithFixing1D()Retrieve the 1D Maturity Roll Up Fair Premium With Fixing- Returns:
- The 1D Maturity Roll Up Fair Premium With Fixing
-
curveShiftSwapRate1D
public double curveShiftSwapRate1D()Retrieve the 1D Curve Shift Swap Rate- Returns:
- The 1D Curve Shift Swap Rate
-
periodFixedRate
public double periodFixedRate()Retrieve the Period Fixed Rate- Returns:
- The Period Fixed Rate
-
periodCurveFloatingRate
public double periodCurveFloatingRate()Retrieve the Period Curve Floating Rate- Returns:
- The Period Curve Floating Rate
-
periodProductFloatingRate
public double periodProductFloatingRate()Retrieve the Period Product Floating Rate- Returns:
- The Period Product Floating Rate
-
periodFloatingRateUsed
public double periodFloatingRateUsed()Retrieve the Period Floating Rate Used- Returns:
- The Period Floating Rate Used
-
fixed1DAccrualDays
public int fixed1DAccrualDays()Retrieve the 1D Fixed Accrual Period- Returns:
- The 1D Fixed Accrual Period
-
floating1DAccrualDays
public int floating1DAccrualDays()Retrieve the 1D Floating Accrual Period- Returns:
- The 1D Floating Accrual Period
-
fixed1DDCF
public double fixed1DDCF()Retrieve the Period 1D Fixed DCF- Returns:
- The Period 1D Fixed DCF
-
floating1DDCF
public double floating1DDCF()Retrieve the Period 1D Floating DCF- Returns:
- The Period 1D Floating DCF
-
fixed1MDCF
public double fixed1MDCF()Retrieve the Period 1M Fixed DCF- Returns:
- The Period 1M Fixed DCF
-
floating1MDCF
public double floating1MDCF()Retrieve the Period 1M Floating DCF- Returns:
- The Period 1M Floating DCF
-
fixed3MDCF
public double fixed3MDCF()Retrieve the Period 3M Fixed DCF- Returns:
- The Period 3M Fixed DCF
-
floating3MDCF
public double floating3MDCF()Retrieve the Period 3M Floating DCF- Returns:
- The Period 3M Floating DCF
-
toArray
public double[] toArray()Retrieve the Array of Metrics- Returns:
- The Array of Metrics
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-