public class BondFuturesUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static DiscountingFixedCouponBondProductPricer |
PRICER_BOND
The bond pricer
|
static Rounding |
ROUNDING_CME_US
The rounding conventions for conversion factors: CME United States.
|
static Rounding |
ROUNDING_EUREX_DE
The rounding conventions for conversion factors: EUREX Germany.
|
static Rounding |
ROUNDING_ICE_UK
The rounding conventions for conversion factors: ICE United Kingdom.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
conversionFactorCmeUsLong(ResolvedFixedCouponBond bond,
LocalDate deliveryDate,
double notionalCoupon)
Returns the ICE bond futures conversion factor for a given U.S.
|
static double |
conversionFactorCmeUsShort(ResolvedFixedCouponBond bond,
LocalDate deliveryDate,
double notionalCoupon)
Returns the CME bond futures conversion factor for a given U.S.
|
static double |
conversionFactorEurexDE(ResolvedFixedCouponBond bond,
LocalDate deliveryDate,
double notionalCoupon)
Returns the EUREX bond futures conversion factor for a given German bond.
|
static double |
priceFactorIceUK(ResolvedFixedCouponBond bond,
LocalDate deliveryDate,
double notionalCoupon)
Returns the ICE bond futures conversion factor for a given U.K.
|
public static final DiscountingFixedCouponBondProductPricer PRICER_BOND
public static final Rounding ROUNDING_EUREX_DE
public static final Rounding ROUNDING_ICE_UK
public static final Rounding ROUNDING_CME_US
public static double conversionFactorEurexDE(ResolvedFixedCouponBond bond, LocalDate deliveryDate, double notionalCoupon)
bond - the bonddeliveryDate - the delivery datenotionalCoupon - the notional coupon for the futures; typically 6%public static double priceFactorIceUK(ResolvedFixedCouponBond bond, LocalDate deliveryDate, double notionalCoupon)
bond - the bonddeliveryDate - the delivery datenotionalCoupon - the notional coupon for the futures; typically 4%public static double conversionFactorCmeUsShort(ResolvedFixedCouponBond bond, LocalDate deliveryDate, double notionalCoupon)
The factor depends on the number of whole months between n-year after delivery and the maturity, with n the number of whole years from the first day of the delivery month to the maturity (or call) date of the bond or note.
bond - the bonddeliveryDate - the first day of the delivery monthnotionalCoupon - the notional coupon for the futures; typically 6%public static double conversionFactorCmeUsLong(ResolvedFixedCouponBond bond, LocalDate deliveryDate, double notionalCoupon)
The factor depends on the number of whole months between n-year after delivery and the maturity rounded down to the nearest quarter, with n the number of whole years from the first day of the delivery month to the maturity (or call) date of the bond or note.
bond - the bonddeliveryDate - the delivery datenotionalCoupon - the notional coupon for the futures; typically 6%Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.