Package org.drip.service.template
Class ExchangeInstrumentBuilder
java.lang.Object
org.drip.service.template.ExchangeInstrumentBuilder
public class ExchangeInstrumentBuilder
extends java.lang.Object
ExchangeInstrumentBuilder contains static Helper API to facilitate Construction of Exchange-traded
Instruments.
- Module = Computational Core Module
- Library = Computation Support
- Project = Environment, Product/Definition Containers, and Scenario/State Manipulation APIs
- Package = Curve Construction Product Builder Templates
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ExchangeInstrumentBuilder()
-
Method Summary
Modifier and Type Method Description static SingleStreamComponent
ForwardRateFutures(JulianDate dtSpot, java.lang.String strCurrency)
Generate a Forward Rate Futures Contract corresponding to the Spot Datestatic SingleStreamComponent[]
ForwardRateFuturesPack(JulianDate dtSpot, int iNumContract, java.lang.String strCurrency)
Generate a Forward Rate Futures Pack corresponding to the Spot Date and the Specified Number of Contractsstatic TreasuryFutures
TreasuryFutures(JulianDate dtSpot, java.lang.String strFuturesCode, int[] aiFuturesComponentTreasuryEffectiveDate, int[] aiFuturesComponentTreasuryMaturityDate, double[] adblFuturesComponentTreasuryCoupon, double[] adblFuturesComponentConversionFactor)
Generate the Treasury Futures Instancestatic TreasuryFutures
TreasuryFutures(JulianDate dtSpot, java.lang.String strFuturesCode, int[] aiFuturesComponentTreasuryEffectiveDate, int[] aiFuturesComponentTreasuryMaturityDate, double[] adblFuturesComponentTreasuryCoupon, double[] adblFuturesComponentConversionFactor, java.lang.String strFuturesComponentUnderlierSubtype, java.lang.String strFuturesReferenceMaturityTenor)
Generate the Treasury Futures Instancestatic TreasuryFutures
TreasuryFutures(JulianDate dtSpot, java.lang.String strCode, JulianDate[] adtEffective, JulianDate[] adtMaturity, double[] adblCoupon, double[] adblConversionFactor, java.lang.String strUnderlierType, java.lang.String strUnderlierSubtype, java.lang.String strMaturityTenor)
Generate an Instance of Treasury Futures given the InputsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExchangeInstrumentBuilder
public ExchangeInstrumentBuilder()
-
-
Method Details
-
ForwardRateFutures
public static SingleStreamComponent ForwardRateFutures(JulianDate dtSpot, java.lang.String strCurrency)Generate a Forward Rate Futures Contract corresponding to the Spot Date- Parameters:
dtSpot
- Spot date specifying the contract issuestrCurrency
- Contract Currency- Returns:
- Forward Rate Futures Component
-
ForwardRateFuturesPack
public static SingleStreamComponent[] ForwardRateFuturesPack(JulianDate dtSpot, int iNumContract, java.lang.String strCurrency)Generate a Forward Rate Futures Pack corresponding to the Spot Date and the Specified Number of Contracts- Parameters:
dtSpot
- Spot date specifying the contract issueiNumContract
- Number of contractsstrCurrency
- Contract currency- Returns:
- Array containing the Forward Rate Futures Pack
-
TreasuryFutures
public static TreasuryFutures TreasuryFutures(JulianDate dtSpot, java.lang.String strCode, JulianDate[] adtEffective, JulianDate[] adtMaturity, double[] adblCoupon, double[] adblConversionFactor, java.lang.String strUnderlierType, java.lang.String strUnderlierSubtype, java.lang.String strMaturityTenor)Generate an Instance of Treasury Futures given the Inputs- Parameters:
dtSpot
- The Futures Spot DatestrCode
- The Treasury CodeadtEffective
- Array of Effective DatesadtMaturity
- Array of Maturity DatesadblCoupon
- Array of CouponsadblConversionFactor
- The Bond Conversion FactorstrUnderlierType
- The Underlier Type, e.g., TREASURYstrUnderlierSubtype
- The Futures Underlier Sub-type, i.e., BONDSstrMaturityTenor
- The Futures Maturity Tenor- Returns:
- The Treasury Futures Instance
-
TreasuryFutures
public static final TreasuryFutures TreasuryFutures(JulianDate dtSpot, java.lang.String strFuturesCode, int[] aiFuturesComponentTreasuryEffectiveDate, int[] aiFuturesComponentTreasuryMaturityDate, double[] adblFuturesComponentTreasuryCoupon, double[] adblFuturesComponentConversionFactor, java.lang.String strFuturesComponentUnderlierSubtype, java.lang.String strFuturesReferenceMaturityTenor)Generate the Treasury Futures Instance- Parameters:
dtSpot
- The Spot Date InstancestrFuturesCode
- The Treasury Futures CodeaiFuturesComponentTreasuryEffectiveDate
- Array of the Treasury Futures Component Effective DateaiFuturesComponentTreasuryMaturityDate
- Array of the Treasury Futures Component Maturity DateadblFuturesComponentTreasuryCoupon
- Array of the Treasury Futures Component CouponadblFuturesComponentConversionFactor
- Array of the Treasury Futures Component Conversion FactorstrFuturesComponentUnderlierSubtype
- Treasury Futures Component Underlier SubType (BILL/BOND)strFuturesReferenceMaturityTenor
- Treasury Futures Component Reference Maturity Tenor- Returns:
- The Treasury Futures Instance
-
TreasuryFutures
public static final TreasuryFutures TreasuryFutures(JulianDate dtSpot, java.lang.String strFuturesCode, int[] aiFuturesComponentTreasuryEffectiveDate, int[] aiFuturesComponentTreasuryMaturityDate, double[] adblFuturesComponentTreasuryCoupon, double[] adblFuturesComponentConversionFactor)Generate the Treasury Futures Instance- Parameters:
dtSpot
- The Spot Date InstancestrFuturesCode
- The Treasury Futures CodeaiFuturesComponentTreasuryEffectiveDate
- Array of the Treasury Futures Component Effective DateaiFuturesComponentTreasuryMaturityDate
- Array of the Treasury Futures Component Maturity DateadblFuturesComponentTreasuryCoupon
- Array of the Treasury Futures Component CouponadblFuturesComponentConversionFactor
- Array of the Treasury Futures Component Conversion Factor- Returns:
- The Treasury Futures Instance
-