public class TreasuryFutures extends Component
Modifier and Type | Field and Description |
---|---|
static int |
FORWARD_PRICE_CREDIT_BASIS |
static int |
FORWARD_PRICE_OAS |
static int |
FORWARD_PRICE_YIELD |
static int |
FORWARD_PRICE_ZSPREAD |
Constructor and Description |
---|
TreasuryFutures(Bond[] aBond,
double[] adblConversionFactor,
CashSettleParams csp)
BondFutures Constructor
|
Modifier and Type | Method and Description |
---|---|
Bond[] |
basket()
Retrieve the Bond Basket Array
|
CashSettleParams |
cashSettleParams()
Get the Product's cash settlement parameters
|
CTDEntry |
cheapestToDeliver(int iValueDate,
CurveSurfaceQuoteContainer csqc,
ValuationCustomizationParams vcp,
double[] adblCleanPrice,
int iForwardPriceMethod)
Extract the Cheapest-to-deliver Entry in the Basket Using the Current Market Parameters
|
CTDEntry |
cheapestToDeliverCreditBasis(int iValueDate,
CurveSurfaceQuoteContainer csqc,
double[] adblCleanPrice)
Extract the Cheapest-to-deliver Entry in the Basket Using Bond Credit Basis Metric
|
CTDEntry |
cheapestToDeliverOAS(int iValueDate,
CurveSurfaceQuoteContainer csqc,
double[] adblCleanPrice)
Extract the Cheapest-to-deliver Entry in the Basket Using Bond OAS Metric
|
CTDEntry |
cheapestToDeliverYield(int iValueDate,
double[] adblCleanPrice)
Extract the Cheapest-to-deliver Entry in the Basket Using the Current Market Prices Alone
|
CTDEntry |
cheapestToDeliverZSpread(int iValueDate,
CurveSurfaceQuoteContainer csqc,
double[] adblCleanPrice)
Extract the Cheapest-to-deliver Entry in the Basket Using Bond Z Spread Metric
|
double[] |
conversionFactor()
Retrieve the Conversion Factor Array
|
CaseInsensitiveTreeMap<java.lang.String> |
couponCurrency()
Get the Map of Coupon Currencies
|
CompositePeriodCouponMetrics |
couponMetrics(int iAccrualEndDate,
ValuationParams valParams,
CurveSurfaceQuoteContainer csqs)
Get the Product's coupon Metrics at the specified accrual date
|
java.util.List<CompositePeriod> |
couponPeriods()
Get the Product's Cash Flow Periods
|
CreditLabel |
creditLabel()
Get the Credit Curve Latent State Identifier Label
|
int[] |
deliveryMonths()
Retrieve the Array of Delivery Months
|
JulianDate |
effectiveDate()
Get the Effective Date
|
JulianDate |
expiry()
Retrieve the Futures Expiration Date
|
JulianDate |
firstCouponDate()
Get the First Coupon Date
|
CaseInsensitiveTreeMap<ForwardLabel> |
forwardLabel()
Get the Map of Forward Curve Latent State Labels
|
int |
freq()
Retrieve the Coupon Frequency
|
FundingLabel |
fundingLabel()
Get the Funding Curve Latent State Label
|
CaseInsensitiveTreeMap<FXLabel> |
fxLabel()
Get the Map of FX Latent State Identifier Labels
|
GovvieLabel |
govvieLabel()
Get the Govvie Curve Latent State Label
|
double |
initialNotional()
Get the Initial Notional for the Product
|
int |
lastTradingDayLag()
Retrieve the Last Trading Day Lag
|
JulianDate |
maturityDate()
Get the Maturity Date
|
java.lang.String |
maximumMaturity()
Retrieve the Maximum Maturity of the Contract
|
java.util.Set<java.lang.String> |
measureNames()
Retrieve the ordered set of the measure names whose values will be calculated
|
java.lang.String |
minimumMaturity()
Retrieve the Minimum Maturity of the Contract
|
double |
minimumPriceMovement()
Retrieve the Minimum Price Movement
|
java.lang.String |
name()
Get the component name
|
double |
notional(int iDate)
Get the Notional for the Product at the given date
|
double |
notional(int iDate1,
int iDate2)
Get the time-weighted Notional for the Product between 2 dates
|
double |
notionalValue()
Retrieve the Notional Value
|
java.lang.String |
payCurrency()
Get the Pay Currency
|
java.lang.String |
principalCurrency()
Get the Principal Currency
|
double |
pv(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqc,
ValuationCustomizationParams vcp)
Compute the PV for the specified Market Parameters
|
double |
referenceCoupon()
Retrieve the Reference Coupon Rate
|
boolean |
setDeliveryMonths(int[] aiDeliveryMonth)
Set the Delivery Months
|
boolean |
setExpiry(JulianDate dtExpiry)
Set the Futures Expiration Date
|
boolean |
setLastTradingDayLag(int iLastTradingDayLag)
Set the Last Trading Day Lag
|
boolean |
setMaximumMaturity(java.lang.String strDeliverableGradeMaximumMaturity)
Retrieve the Deliverable Grade Maximum Maturity
|
boolean |
setMinimumMaturity(java.lang.String strDeliverableGradeMinimumMaturity)
Retrieve the Deliverable Grade Minimum Maturity
|
boolean |
setMinimumPriceMovement(double dblMinimumPriceMovement)
Retrieve the Minimum Price Movement
|
boolean |
setNotionalValue(double dblNotionalValue)
Retrieve the Notional Value
|
boolean |
setReferenceCoupon(double dblReferenceCoupon)
Set the Reference Coupon Rate
|
boolean |
setTickValue(double dblTickValue)
Retrieve the Tick Value
|
boolean |
setType(java.lang.String strType)
Set the Futures Type
|
double |
tickValue()
Retrieve the Tick Value
|
java.lang.String |
type()
Retrieve the Futures Type
|
CaseInsensitiveTreeMap<java.lang.Double> |
value(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqc,
ValuationCustomizationParams vcp)
Generate a full list of the Product measures for the full input set of market parameters
|
CaseInsensitiveTreeMap<VolatilityLabel> |
volatilityLabel()
Get the Map of Volatility Latent State Identifier Labels
|
customScenarioMeasures, measures, measureValue, tenor
public static final int FORWARD_PRICE_OAS
public static final int FORWARD_PRICE_YIELD
public static final int FORWARD_PRICE_ZSPREAD
public static final int FORWARD_PRICE_CREDIT_BASIS
public TreasuryFutures(Bond[] aBond, double[] adblConversionFactor, CashSettleParams csp) throws java.lang.Exception
aBond
- Array of the Bonds on the BasketadblConversionFactor
- The Bond Conversion Factorcsp
- Cash Settlement Parametersjava.lang.Exception
- thrown if the Inputs are Invalidpublic boolean setType(java.lang.String strType)
strType
- The Futures Typepublic java.lang.String type()
public boolean setNotionalValue(double dblNotionalValue)
dblNotionalValue
- The Notional Valuepublic double notionalValue()
public boolean setReferenceCoupon(double dblReferenceCoupon)
dblReferenceCoupon
- The Reference Coupon Ratepublic double referenceCoupon()
public boolean setMinimumMaturity(java.lang.String strDeliverableGradeMinimumMaturity)
strDeliverableGradeMinimumMaturity
- Minimum Maturity of the Deliverable Gradepublic java.lang.String minimumMaturity()
public boolean setMaximumMaturity(java.lang.String strDeliverableGradeMaximumMaturity)
strDeliverableGradeMaximumMaturity
- Maximum Maturity of the Deliverable Gradepublic java.lang.String maximumMaturity()
public boolean setDeliveryMonths(int[] aiDeliveryMonth)
aiDeliveryMonth
- Array of Delivery Monthspublic int[] deliveryMonths()
public boolean setLastTradingDayLag(int iLastTradingDayLag)
iLastTradingDayLag
- The Last Trading Day Lagpublic int lastTradingDayLag()
public boolean setMinimumPriceMovement(double dblMinimumPriceMovement)
dblMinimumPriceMovement
- The Minimum Price Movementpublic double minimumPriceMovement()
public boolean setTickValue(double dblTickValue)
dblTickValue
- The Tick Valuepublic double tickValue()
public Bond[] basket()
public double[] conversionFactor()
public boolean setExpiry(JulianDate dtExpiry)
dtExpiry
- The Futures Expiration Datepublic JulianDate expiry()
public CTDEntry cheapestToDeliver(int iValueDate, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp, double[] adblCleanPrice, int iForwardPriceMethod)
iValueDate
- The Valuation Datecsqc
- The Market Parametersvcp
- Valuation Customization ParametersadblCleanPrice
- Array of the Bond Clean PricesiForwardPriceMethod
- Forward Price Calculation Methodpublic CTDEntry cheapestToDeliverYield(int iValueDate, double[] adblCleanPrice)
iValueDate
- The Valuation DateadblCleanPrice
- Array of the Bond Clean Pricespublic CTDEntry cheapestToDeliverOAS(int iValueDate, CurveSurfaceQuoteContainer csqc, double[] adblCleanPrice)
iValueDate
- The Valuation Datecsqc
- The Market ParametersadblCleanPrice
- Array of the Bond Clean Pricespublic CTDEntry cheapestToDeliverZSpread(int iValueDate, CurveSurfaceQuoteContainer csqc, double[] adblCleanPrice)
iValueDate
- The Valuation Datecsqc
- The Market ParametersadblCleanPrice
- Array of the Bond Clean Pricespublic CTDEntry cheapestToDeliverCreditBasis(int iValueDate, CurveSurfaceQuoteContainer csqc, double[] adblCleanPrice)
iValueDate
- The Valuation Datecsqc
- The Market ParametersadblCleanPrice
- Array of the Bond Clean Pricespublic java.lang.String name()
ComponentMarketParamRef
public CashSettleParams cashSettleParams()
Component
cashSettleParams
in class Component
public CompositePeriodCouponMetrics couponMetrics(int iAccrualEndDate, ValuationParams valParams, CurveSurfaceQuoteContainer csqs)
Component
couponMetrics
in class Component
iAccrualEndDate
- Accrual End DatevalParams
- The Valuation Parameterscsqs
- Component Market Parameterspublic java.util.List<CompositePeriod> couponPeriods()
Component
couponPeriods
in class Component
public JulianDate effectiveDate()
Component
effectiveDate
in class Component
public JulianDate firstCouponDate()
Component
firstCouponDate
in class Component
public int freq()
Component
public double initialNotional()
Component
initialNotional
in class Component
public double notional(int iDate) throws java.lang.Exception
Component
public double notional(int iDate1, int iDate2) throws java.lang.Exception
Component
public JulianDate maturityDate()
Component
maturityDate
in class Component
public CaseInsensitiveTreeMap<java.lang.String> couponCurrency()
ComponentMarketParamRef
public java.lang.String principalCurrency()
ComponentMarketParamRef
public java.lang.String payCurrency()
ComponentMarketParamRef
public CreditLabel creditLabel()
ComponentMarketParamRef
public CaseInsensitiveTreeMap<ForwardLabel> forwardLabel()
ComponentMarketParamRef
public FundingLabel fundingLabel()
ComponentMarketParamRef
public GovvieLabel govvieLabel()
ComponentMarketParamRef
public CaseInsensitiveTreeMap<FXLabel> fxLabel()
ComponentMarketParamRef
public CaseInsensitiveTreeMap<VolatilityLabel> volatilityLabel()
ComponentMarketParamRef
public CaseInsensitiveTreeMap<java.lang.Double> value(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp)
Component
public java.util.Set<java.lang.String> measureNames()
Component
measureNames
in class Component
public double pv(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp) throws java.lang.Exception
Component