All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opengamma.strata.product.swaption.CashSwaptionSettlementMethod Maven / Gradle / Ivy

There is a newer version: 2.12.48
Show newest version
/*
 * Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.strata.product.swaption;

import org.joda.convert.FromString;
import org.joda.convert.ToString;

import com.opengamma.strata.collect.named.EnumNames;
import com.opengamma.strata.collect.named.NamedEnum;

/**
 * Cash settlement method of cash settled swaptions.
 * 

* Reference: "Swaption Pricing", OpenGamma Documentation 10, Version 1.2, April 2011. */ public enum CashSwaptionSettlementMethod implements NamedEnum { /** * The cash price method *

* If exercised, the value of the underlying swap is exchanged at the cash settlement date. * Defined by the 2006 ISDA definitions 18.3a and 18.3b. */ CASH_PRICE, /** * The par yield curve method. *

* The settlement amount is computed with cash-settled annuity using the pre-agreed strike swap rate. * Defined by the 2006 ISDA definitions 18.3c and 18.3e. */ PAR_YIELD, /** * The zero coupon yield method. *

* The settlement amount is computed with the discount factor based on the agreed zero coupon curve. * Defined by the 2006 ISDA definitions 18.3d. */ ZERO_COUPON_YIELD, /** * The Collateralized Cash Price *

* The settlement amount is computed with the discount factor based where the parties are deemed to have a * bilateral, zero-threshold ISDA CSA. * Defined by the 2006 ISDA definitions 18.3g. */ COLLATERALIZED_CASH_PRICE; // helper for name conversions private static final EnumNames NAMES = EnumNames.of(CashSwaptionSettlementMethod.class); //------------------------------------------------------------------------- /** * Obtains an instance from the specified name. *

* Parsing handles the mixed case form produced by {@link #toString()} and * the upper and lower case variants of the enum constant name. * * @param name the name to parse * @return the type * @throws IllegalArgumentException if the name is not known */ @FromString public static CashSwaptionSettlementMethod of(String name) { return NAMES.parse(name); } //------------------------------------------------------------------------- /** * Returns the formatted name of the type. * * @return the formatted string representing the type */ @ToString @Override public String toString() { return NAMES.format(this); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy