Package org.drip.market.exchange
Class TreasuryFuturesConvention
java.lang.Object
org.drip.market.exchange.TreasuryFuturesConvention
public class TreasuryFuturesConvention
extends java.lang.Object
TreasuryFuturesConvention contains the Details for the Futures Basket of the Exchange-Traded
Treasury Futures Contracts.
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description TreasuryFuturesConvention(java.lang.String strName, java.lang.String[] astrCode, java.lang.String strCurrency, java.lang.String strCalendar, java.lang.String strMaturityTenor, double dblBasketNotional, double dblMinimumPriceMovement, double dblComponentNotionalMinimum, java.lang.String[] astrExchange, java.lang.String strUnderlierType, java.lang.String strUnderlierSubtype, DateInMonth dimExpiry, TreasuryFuturesEligibility bfe, TreasuryFuturesSettle bfs)
TreasuryFuturesConvention Constructor -
Method Summary
Modifier and Type Method Description double
basketNotional()
Retrieve the Treasury Futures Basket Notionaljava.lang.String
calendar()
Retrieve the Treasury Futures Settle Calendarjava.lang.String[]
codes()
Retrieve the Treasury Futures Code Arrayjava.lang.String
currency()
Retrieve the Treasury Futures CurrencyDateInMonth
dimExpiry()
Retrieve the Date In Month Expiry SettingsTreasuryFuturesEligibility
eligibility()
Retrieve the Treasury Futures Eligibility SettingsTreasuryFuturesEventDates
eventDates(int iYear, int iMonth)
Retrieve the TreasuryFuturesEventDates Instance corresponding to the Futures Expiry Year/Monthjava.lang.String[]
exchanges()
Retrieve the Bond Futures Exchanges Arrayboolean
isEligible(JulianDate dtValue, Bond bond, double dblOutstandingNotional, java.lang.String strIssuer)
Indicate whether the given bond is eligible to be deliveredjava.lang.String
maturityTenor()
Retrieve the Treasury Futures Maturity Tenordouble
minimumComponentNotional()
Retrieve the Minimum Treasury Futures Component Notionaldouble
minimumPriceMovement()
Retrieve the Minimimum Price Movement - a.k.a Tickjava.lang.String
name()
Retrieve the Treasury Futures Namedouble
referencePrice(double dblFuturesQuotedIndex)
Compute the Reference Bond Price from the Quoted Futures Index Leveldouble
referencePrice(JulianDate dtValue, Bond bond, double dblFuturesQuotedIndex)
Compute the Reference Bond Price from the Quoted Futures Index LevelTreasuryFuturesSettle
settle()
Retrieve the Treasury Futures Settle Settingsjava.lang.String
toString()
java.lang.String
underlierSubtype()
Retrieve the Treasury Futures Underlier Sub-typejava.lang.String
underlierType()
Retrieve the Treasury Futures Underlier TypeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TreasuryFuturesConvention
public TreasuryFuturesConvention(java.lang.String strName, java.lang.String[] astrCode, java.lang.String strCurrency, java.lang.String strCalendar, java.lang.String strMaturityTenor, double dblBasketNotional, double dblMinimumPriceMovement, double dblComponentNotionalMinimum, java.lang.String[] astrExchange, java.lang.String strUnderlierType, java.lang.String strUnderlierSubtype, DateInMonth dimExpiry, TreasuryFuturesEligibility bfe, TreasuryFuturesSettle bfs) throws java.lang.ExceptionTreasuryFuturesConvention Constructor- Parameters:
strName
- The Futures NameastrCode
- The Array of the Futures CodesstrCurrency
- The Futures CurrencystrCalendar
- The Futures Settle CalendarstrMaturityTenor
- The Maturity TenordblBasketNotional
- Basket NotionaldblMinimumPriceMovement
- The Minimum Price MovementdblComponentNotionalMinimum
- The Minimum Component NotionalastrExchange
- Exchange ArraystrUnderlierType
- Underlier TypestrUnderlierSubtype
- Underlier Sub-TypedimExpiry
- The Expiry Date-In-Month Settingbfe
- Eligibility Settingsbfs
- Settlement Settings- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
name
public java.lang.String name()Retrieve the Treasury Futures Name- Returns:
- The Treasury Futures Name
-
calendar
public java.lang.String calendar()Retrieve the Treasury Futures Settle Calendar- Returns:
- The Treasury Futures Settle Calendar
-
codes
public java.lang.String[] codes()Retrieve the Treasury Futures Code Array- Returns:
- The Treasury Futures Code Array
-
currency
public java.lang.String currency()Retrieve the Treasury Futures Currency- Returns:
- The Treasury Futures Currency
-
maturityTenor
public java.lang.String maturityTenor()Retrieve the Treasury Futures Maturity Tenor- Returns:
- The Treasury Futures Maturity Tenor
-
basketNotional
public double basketNotional()Retrieve the Treasury Futures Basket Notional- Returns:
- The Treasury Futures Basket Notional
-
minimumPriceMovement
public double minimumPriceMovement()Retrieve the Minimimum Price Movement - a.k.a Tick- Returns:
- The Minimum Price Movement
-
minimumComponentNotional
public double minimumComponentNotional()Retrieve the Minimum Treasury Futures Component Notional- Returns:
- The Minimum Treasury Futures Component Notional
-
exchanges
public java.lang.String[] exchanges()Retrieve the Bond Futures Exchanges Array- Returns:
- The Bond Futures Exchanges Array
-
underlierType
public java.lang.String underlierType()Retrieve the Treasury Futures Underlier Type- Returns:
- The Treasury Futures Underlier Type
-
underlierSubtype
public java.lang.String underlierSubtype()Retrieve the Treasury Futures Underlier Sub-type- Returns:
- The Treasury Futures Underlier Sub-type
-
dimExpiry
Retrieve the Date In Month Expiry Settings- Returns:
- The Date In Month Expiry Settings
-
eligibility
Retrieve the Treasury Futures Eligibility Settings- Returns:
- The Treasury Futures Eligibility Settings
-
settle
Retrieve the Treasury Futures Settle Settings- Returns:
- The Treasury Futures Settle Settings
-
eventDates
Retrieve the TreasuryFuturesEventDates Instance corresponding to the Futures Expiry Year/Month- Parameters:
iYear
- Futures YeariMonth
- Futures Month- Returns:
- The TreasuryFuturesEventDates Instance
-
referencePrice
public double referencePrice(double dblFuturesQuotedIndex) throws java.lang.ExceptionCompute the Reference Bond Price from the Quoted Futures Index Level- Parameters:
dblFuturesQuotedIndex
- The Quoted Futures Index Level- Returns:
- The Reference Price
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
referencePrice
public double referencePrice(JulianDate dtValue, Bond bond, double dblFuturesQuotedIndex) throws java.lang.ExceptionCompute the Reference Bond Price from the Quoted Futures Index Level- Parameters:
dtValue
- The Valuation Datebond
- The Bond InstancedblFuturesQuotedIndex
- The Quoted Futures Index Level- Returns:
- The Reference Price
- Throws:
java.lang.Exception
- Thrown if the Treasury Futures Price Generic cannot be computed
-
isEligible
public boolean isEligible(JulianDate dtValue, Bond bond, double dblOutstandingNotional, java.lang.String strIssuer)Indicate whether the given bond is eligible to be delivered- Parameters:
dtValue
- The Value Datebond
- The Bond whose Eligibility is to be evaluateddblOutstandingNotional
- The Outstanding NotionalstrIssuer
- The Issuer- Returns:
- TRUE - The given bond is eligible to be delivered
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-