Documentation of 'net.finmath.marketdata.products.Swap' Java class
Swap
net.finmath.marketdata.products

Class Swap

  • All Implemented Interfaces:
    AnalyticProductInterface, ProductInterface


    public class Swap
    extends AbstractAnalyticProduct
    implements AnalyticProductInterface
    Implements the valuation of a swap using curves (discount curve, forward curve). The swap valuation supports distinct discounting and forward curve. Support for day counting is limited to the capabilities of TimeDiscretizationInterface. The swap is just the composition of two SwapLegs, namely the receiver leg and the payer leg. The value of the swap is the value of the receiver leg minus the value of the payer leg.
    • Constructor Detail

      • Swap

        public Swap(ScheduleInterface scheduleReceiveLeg,
                    java.lang.String forwardCurveReceiveName,
                    double spreadReceive,
                    java.lang.String discountCurveReceiveName,
                    ScheduleInterface schedulePayLeg,
                    java.lang.String forwardCurvePayName,
                    double spreadPay,
                    java.lang.String discountCurvePayName,
                    boolean isNotionalExchanged)
        Creates a swap with notional exchange. The swap has a unit notional of 1.
        Parameters:
        scheduleReceiveLeg - Schedule of the receiver leg.
        forwardCurveReceiveName - Name of the forward curve, leave empty if this is a fix leg.
        spreadReceive - Fixed spread on the forward or fix rate.
        discountCurveReceiveName - Name of the discount curve for the receiver leg.
        schedulePayLeg - Schedule of the payer leg.
        forwardCurvePayName - Name of the forward curve, leave empty if this is a fix leg.
        spreadPay - Fixed spread on the forward or fix rate.
        discountCurvePayName - Name of the discount curve for the payer leg.
        isNotionalExchanged - If true, both leg will pay notional at the beginning of each swap period and receive notional at the end of the swap period. Note that the cash flow date for the notional is periodStart and periodEnd (not fixingDate and paymentDate).
      • Swap

        public Swap(ScheduleInterface scheduleReceiveLeg,
                    java.lang.String forwardCurveReceiveName,
                    double spreadReceive,
                    java.lang.String discountCurveReceiveName,
                    ScheduleInterface schedulePayLeg,
                    java.lang.String forwardCurvePayName,
                    double spreadPay,
                    java.lang.String discountCurvePayName)
        Creates a swap with notional exchange. The swap has a unit notional of 1.
        Parameters:
        scheduleReceiveLeg - Schedule of the receiver leg.
        forwardCurveReceiveName - Name of the forward curve, leave empty if this is a fix leg.
        spreadReceive - Fixed spread on the forward or fix rate.
        discountCurveReceiveName - Name of the discount curve for the receiver leg.
        schedulePayLeg - Schedule of the payer leg.
        forwardCurvePayName - Name of the forward curve, leave empty if this is a fix leg.
        spreadPay - Fixed spread on the forward or fix rate.
        discountCurvePayName - Name of the discount curve for the payer leg.
      • Swap

        public Swap(ScheduleInterface scheduleReceiveLeg,
                    double spreadReceive,
                    java.lang.String discountCurveReceiveName,
                    ScheduleInterface schedulePayLeg,
                    java.lang.String forwardCurvePayName,
                    java.lang.String discountCurvePayName)
        Creates a swap with notional exchange. The swap has a unit notional of 1.
        Parameters:
        scheduleReceiveLeg - Schedule of the receiver leg.
        spreadReceive - Fixed spread on the forward or fix rate.
        discountCurveReceiveName - Name of the discount curve for the receiver leg.
        schedulePayLeg - Schedule of the payer leg.
        forwardCurvePayName - Name of the forward curve, leave empty if this is a fix leg.
        discountCurvePayName - Name of the discount curve for the payer leg.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.