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 daily measures computed. It provides the following Functions:
- ProductDailyPnL constructor
- Retrieve the 1D Clean PnL
- Retrieve the 1D Dirty PnL
- Retrieve the 1D Total PnL
- Retrieve the 1D Clean PnL With Fixing
- Retrieve the 1D Dirty PnL With Fixing
- Retrieve the 1D Total PnL With Fixing
- Retrieve the 1D Carry PnL
- Retrieve the 1D Time Roll PnL
- Retrieve the 1D Maturity Roll Down Swap Rate PnL
- Retrieve the 1D Maturity Roll Up Swap Rate PnL
- Retrieve the 1D Maturity Roll Up Fair Premium PnL
- Retrieve the 1D Maturity Roll Up Fair Premium With Fixing PnL
- Retrieve the 1D Curve Shift PnL
- Retrieve the 1M Carry PnL
- Retrieve the 1M Maturity Roll Down Swap Rate PnL
- Retrieve the 3M Carry PnL
- Retrieve the 3M Maturity Roll Down Swap Rate PnL
- Retrieve the DV01
- Retrieve the DV01 With Fixing
- Retrieve the Clean Fixed DV01
- Retrieve the Clean Float DV01
- Retrieve the Clean Float DV01 With Fixing
- Retrieve the Baseline Swap Rate
- Retrieve the 1D Time Roll Swap Rate
- Retrieve the 1D Maturity Roll Down Swap Rate
- Retrieve the 1M Maturity Roll Down Swap Rate
- Retrieve the 3M Maturity Roll Down Swap Rate
- Retrieve the 1D Maturity Roll Up Swap Rate
- Retrieve the 1D Maturity Roll Up Fair Premium
- Retrieve the 1D Maturity Roll Up Fair Premium With Fixing
- Retrieve the 1D Curve Shift Swap Rate
- Retrieve the Period Fixed Rate
- Retrieve the Period Curve Floating Rate
- Retrieve the Period Product Floating Rate
- Retrieve the Period Floating Rate Used
- Retrieve the 1D Fixed Accrual Period
- Retrieve the 1D Floating Accrual Period
- Retrieve the Period 1D Fixed DCF
- Retrieve the Period 1D Floating DCF
- Retrieve the Period 1M Fixed DCF
- Retrieve the Period 1M Floating DCF
- Retrieve the Period 3M Fixed DCF
- Retrieve the Period 3M Floating DCF
- Retrieve the Array of Metrics
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 oneDayTotalPnL, double oneDayCleanPnL, double oneDayDirtyPnL, double oneDayTotalPnLWithFixing, double oneDayCleanPnLWithFixing, double oneDayDirtyPnLWithFixing, double oneDayCarryPnL, double oneDayTimeRollPnL, double oneDayMaturityRollDownSwapRatePnL, double oneDayMaturityRollUpSwapRatePnL, double oneDayMaturityRollUpFairPremiumPnL, double oneDayMaturityRollUpFairPremiumWithFixingPnL, double oneDayCurveShiftPnL, double oneMonthCarryPnL, double oneMonthMaturityRollDownSwapRatePnL, double threeMonthCarryPnL, double threeMonthMaturityRollDownSwapRatePnL, double dv01, double dv01WithFixing, double cleanFixedDV01, double cleanFloatDV01, double cleanFloatDV01WithFixing, double baselineSwapRate, double oneDayTimeRollSwapRate, double oneDayMaturityRollDownSwapRate, double oneMonthMaturityRollDownSwapRate, double threeMonthMaturityRollDownSwapRate, double oneDayMaturityRollUpSwapRate, double oneDayMaturityRollUpFairPremium, double oneDayMaturityRollUpFairPremiumWithFixing, double oneDayCurveShiftSwapRate, double periodFixedRate, double periodCurveFloatingRate, double periodProductFloatingRate, double periodFloatingRateUsed, int oneDayFixedAccrualDays, int oneDayFloatingAccrualDays, double oneDayFixedDCF, double oneDayFloatingDCF, double oneMonthFixedDCF, double oneMonthFloatingDCF, double threeMonthFixedDCF, double threeMonthFloatingDCF)
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 oneDayTotalPnL, double oneDayCleanPnL, double oneDayDirtyPnL, double oneDayTotalPnLWithFixing, double oneDayCleanPnLWithFixing, double oneDayDirtyPnLWithFixing, double oneDayCarryPnL, double oneDayTimeRollPnL, double oneDayMaturityRollDownSwapRatePnL, double oneDayMaturityRollUpSwapRatePnL, double oneDayMaturityRollUpFairPremiumPnL, double oneDayMaturityRollUpFairPremiumWithFixingPnL, double oneDayCurveShiftPnL, double oneMonthCarryPnL, double oneMonthMaturityRollDownSwapRatePnL, double threeMonthCarryPnL, double threeMonthMaturityRollDownSwapRatePnL, double dv01, double dv01WithFixing, double cleanFixedDV01, double cleanFloatDV01, double cleanFloatDV01WithFixing, double baselineSwapRate, double oneDayTimeRollSwapRate, double oneDayMaturityRollDownSwapRate, double oneMonthMaturityRollDownSwapRate, double threeMonthMaturityRollDownSwapRate, double oneDayMaturityRollUpSwapRate, double oneDayMaturityRollUpFairPremium, double oneDayMaturityRollUpFairPremiumWithFixing, double oneDayCurveShiftSwapRate, double periodFixedRate, double periodCurveFloatingRate, double periodProductFloatingRate, double periodFloatingRateUsed, int oneDayFixedAccrualDays, int oneDayFloatingAccrualDays, double oneDayFixedDCF, double oneDayFloatingDCF, double oneMonthFixedDCF, double oneMonthFloatingDCF, double threeMonthFixedDCF, double threeMonthFloatingDCF) throws java.lang.ExceptionProductDailyPnL constructor- Parameters:
oneDayTotalPnL
- 1D Total PnLoneDayCleanPnL
- 1D Clean PnLoneDayDirtyPnL
- 1D Dirty PnLoneDayTotalPnLWithFixing
- 1D Total PnL With FixingoneDayCleanPnLWithFixing
- 1D Clean PnL With FixingoneDayDirtyPnLWithFixing
- 1D Dirty PnL With FixingoneDayCarryPnL
- 1D Carry PnLoneDayTimeRollPnL
- 1D Time Roll PnLoneDayMaturityRollDownSwapRatePnL
- 1D Curve Maturity Roll Down implied Par Swap rate PnLoneDayMaturityRollUpSwapRatePnL
- 1D Curve Maturity Roll Up implied Par Swap rate PnLoneDayMaturityRollUpFairPremiumPnL
- 1D Curve Maturity Roll Up implied Fair Premium PnLoneDayMaturityRollUpFairPremiumWithFixingPnL
- 1D Curve Maturity Roll Up implied Fair Premium with Fixing PnLoneDayCurveShiftPnL
- 1D Curve Shift PnLoneMonthCarryPnL
- 1M Carry PnLoneMonthMaturityRollDownSwapRatePnL
- 1M Curve Maturity Roll Down implied Par Swap rate PnLthreeMonthCarryPnL
- 3M Carry PnLthreeMonthMaturityRollDownSwapRatePnL
- 3M Curve Maturity Roll Down implied Par Swap rate PnLdv01
- DV01dv01WithFixing
- DV01 With FixingcleanFixedDV01
- Clean Fixed DV01cleanFloatDV01
- Clean Float DV01cleanFloatDV01WithFixing
- Clean Float DV01 With FixingbaselineSwapRate
- Baseline Par Swap RateoneDayTimeRollSwapRate
- 1D Curve Time Roll implied Par Swap rateoneDayMaturityRollDownSwapRate
- 1D Curve Maturity Roll Down Implied Par Swap rateoneMonthMaturityRollDownSwapRate
- 1M Curve Maturity Roll Down implied Par Swap ratethreeMonthMaturityRollDownSwapRate
- 3M Curve Maturity Roll Down implied Par Swap rateoneDayMaturityRollUpSwapRate
- 1D Curve Maturity Roll Up Implied Par Swap rateoneDayMaturityRollUpFairPremium
- 1D Curve Maturity Roll Up Implied Fair PremiumoneDayMaturityRollUpFairPremiumWithFixing
- 1D Curve Maturity Roll Up Implied Fair Premium With FixingoneDayCurveShiftSwapRate
- 1D Day-to-Day Curve Shift implied Par Swap rateperiodFixedRate
- The Period Fixed RateperiodCurveFloatingRate
- The Period Curve Floating RateperiodProductFloatingRate
- The Period Product Floating RateperiodFloatingRateUsed
- The Period Floating Rate UsedoneDayFixedAccrualDays
- 1D Fixed Accrual DaysoneDayFloatingAccrualDays
- 1D Floating Accrual DaysoneDayFixedDCF
- 1D Fixed Coupon DCFoneDayFloatingDCF
- 1D Floating Coupon DCFoneMonthFixedDCF
- 1M Fixed Coupon DCFoneMonthFloatingDCF
- 1M Floating Coupon DCFthreeMonthFixedDCF
- 3M Fixed Coupon DCFthreeMonthFloatingDCF
- 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
-