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. It provides the following Functionality:
- Generate a Forward Rate Futures Contract corresponding to the Spot Date
- Generate a Forward Rate Futures Pack corresponding to the Spot Date and the Specified Number of Contracts
- Generate an Instance of Treasury Futures given the Inputs
- Generate the Treasury Futures Instance #1
- Generate the Treasury Futures Instance #2
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ExchangeInstrumentBuilder()
-
Method Summary
Modifier and Type Method Description static SingleStreamComponent
ForwardRateFutures(JulianDate spotDate, java.lang.String currency)
Generate a Forward Rate Futures Contract corresponding to the Spot Datestatic SingleStreamComponent[]
ForwardRateFuturesPack(JulianDate spotDate, int contractCount, java.lang.String strCurrency)
Generate a Forward Rate Futures Pack corresponding to the Spot Date and the Specified Number of Contractsstatic TreasuryFutures
TreasuryFutures(JulianDate spotDate, java.lang.String futuresCode, int[] futuresComponentTreasuryEffectiveDateArray, int[] futuresComponentTreasuryMaturityDateArray, double[] futuresComponentTreasuryCouponArray, double[] futuresComponentConversionFactorArray)
Generate the Treasury Futures Instancestatic TreasuryFutures
TreasuryFutures(JulianDate spotDate, java.lang.String futuresCode, int[] futuresComponentTreasuryEffectiveDateArray, int[] futuresComponentTreasuryMaturityDateArray, double[] futuresComponentTreasuryCouponArray, double[] futuresComponentConversionFactorArray, java.lang.String futuresComponentUnderlierSubtype, java.lang.String futuresReferenceMaturityTenor)
Generate the Treasury Futures Instancestatic TreasuryFutures
TreasuryFutures(JulianDate spotDate, java.lang.String code, JulianDate[] effectiveDateArray, JulianDate[] maturityDateArray, double[] couponArray, double[] conversionFactorArray, java.lang.String underlierType, java.lang.String underlierSubtype, java.lang.String maturityTenor)
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 spotDate, java.lang.String currency)Generate a Forward Rate Futures Contract corresponding to the Spot Date- Parameters:
spotDate
- Spot date specifying the contract issuecurrency
- Contract Currency- Returns:
- Forward Rate Futures Component
-
ForwardRateFuturesPack
public static SingleStreamComponent[] ForwardRateFuturesPack(JulianDate spotDate, int contractCount, java.lang.String strCurrency)Generate a Forward Rate Futures Pack corresponding to the Spot Date and the Specified Number of Contracts- Parameters:
spotDate
- Spot date specifying the contract issuecontractCount
- Number of contractsstrCurrency
- Contract currency- Returns:
- Array containing the Forward Rate Futures Pack
-
TreasuryFutures
public static TreasuryFutures TreasuryFutures(JulianDate spotDate, java.lang.String code, JulianDate[] effectiveDateArray, JulianDate[] maturityDateArray, double[] couponArray, double[] conversionFactorArray, java.lang.String underlierType, java.lang.String underlierSubtype, java.lang.String maturityTenor)Generate an Instance of Treasury Futures given the Inputs- Parameters:
spotDate
- The Futures Spot Datecode
- The Treasury CodeeffectiveDateArray
- Array of Effective DatesmaturityDateArray
- Array of Maturity DatescouponArray
- Array of CouponsconversionFactorArray
- The Bond Conversion FactorunderlierType
- The Underlier Type, e.g., TREASURYunderlierSubtype
- The Futures Underlier Sub-type, i.e., BONDSmaturityTenor
- The Futures Maturity Tenor- Returns:
- The Treasury Futures Instance
-
TreasuryFutures
public static final TreasuryFutures TreasuryFutures(JulianDate spotDate, java.lang.String futuresCode, int[] futuresComponentTreasuryEffectiveDateArray, int[] futuresComponentTreasuryMaturityDateArray, double[] futuresComponentTreasuryCouponArray, double[] futuresComponentConversionFactorArray, java.lang.String futuresComponentUnderlierSubtype, java.lang.String futuresReferenceMaturityTenor)Generate the Treasury Futures Instance- Parameters:
spotDate
- The Spot Date InstancefuturesCode
- The Treasury Futures CodefuturesComponentTreasuryEffectiveDateArray
- Array of Treasury Futures Component Effective DatefuturesComponentTreasuryMaturityDateArray
- Array of the Treasury Futures Component Maturity DatefuturesComponentTreasuryCouponArray
- Array of the Treasury Futures Component CouponfuturesComponentConversionFactorArray
- Array of the Treasury Futures Component Conversion FactorfuturesComponentUnderlierSubtype
- Treasury Futures Component Underlier SubType (BILL/BOND)futuresReferenceMaturityTenor
- Treasury Futures Component Reference Maturity Tenor- Returns:
- The Treasury Futures Instance
-
TreasuryFutures
public static final TreasuryFutures TreasuryFutures(JulianDate spotDate, java.lang.String futuresCode, int[] futuresComponentTreasuryEffectiveDateArray, int[] futuresComponentTreasuryMaturityDateArray, double[] futuresComponentTreasuryCouponArray, double[] futuresComponentConversionFactorArray)Generate the Treasury Futures Instance- Parameters:
spotDate
- The Spot Date InstancefuturesCode
- The Treasury Futures CodefuturesComponentTreasuryEffectiveDateArray
- Array of Treasury Futures Component Effective DatefuturesComponentTreasuryMaturityDateArray
- Array of Treasury Futures Component Maturity DatefuturesComponentTreasuryCouponArray
- Array of Treasury Futures Component CouponfuturesComponentConversionFactorArray
- Array of Treasury Futures Component Conversion Factor- Returns:
- The Treasury Futures Instance
-