Package org.drip.service.product
Class TreasuryAPI
java.lang.Object
org.drip.service.product.TreasuryAPI
public class TreasuryAPI
extends java.lang.Object
TreasuryAPI demonstrates the Details behind the Pricing and the Scenario Runs behind a Treasury
Bond.
- Module = Computational Core Module
- Library = Computation Support
- Project = Environment, Product/Definition Containers, and Scenario/State Manipulation APIs
- Package = Product Horizon PnL Attribution Decomposition
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description TreasuryAPI()
-
Method Summary
Modifier and Type Method Description static java.util.List<PositionChangeComponents>
HorizonChangeAttribution(JulianDate[] adtSpot, int iHorizonGap, java.lang.String[] astrGovvieTreasuryInstrumentTenor, double[][] aadblGovvieTreasuryInstrumentQuote, java.lang.String strMaturityTenor, java.lang.String strCode, java.lang.String[] astrRollDownHorizon, int iLatentStateType)
Generate the Govvie Curve Horizon Metricsstatic PositionChangeComponents
HorizonChangeAttribution(JulianDate dtFirst, JulianDate dtSecond, java.lang.String[] astrGovvieTreasuryInstrumentTenor, double[] adblFirstGovvieTreasuryInstrument, double[] adblSecondGovvieTreasuryInstrument, java.lang.String strMaturityTenor, java.lang.String strCode, java.lang.String[] astrRollDownHorizon, int iLatentStateType)
Generate the Govvie Curve Horizon Metricsstatic PositionChangeComponents
HorizonChangeAttribution(GovvieCurve gcFirst, GovvieCurve gcSecond, CaseInsensitiveHashMap<GovvieCurve> mapRollDownGovvieCurve, java.lang.String strMaturityTenor, java.lang.String strCode)
Compute the Horizon Change Attribution Details for the Specified Treasury BondMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TreasuryAPI
public TreasuryAPI()
-
-
Method Details
-
HorizonChangeAttribution
public static final PositionChangeComponents HorizonChangeAttribution(GovvieCurve gcFirst, GovvieCurve gcSecond, CaseInsensitiveHashMap<GovvieCurve> mapRollDownGovvieCurve, java.lang.String strMaturityTenor, java.lang.String strCode)Compute the Horizon Change Attribution Details for the Specified Treasury Bond- Parameters:
gcFirst
- First Day Govvie CurvegcSecond
- Second Date Govvie CurvemapRollDownGovvieCurve
- Map of the Roll Down Govvie CurvesstrMaturityTenor
- Treasury Bond Maturity TenorstrCode
- Treasury Bond Code- Returns:
- The Horizon Change Attribution Instance
-
HorizonChangeAttribution
public static final PositionChangeComponents HorizonChangeAttribution(JulianDate dtFirst, JulianDate dtSecond, java.lang.String[] astrGovvieTreasuryInstrumentTenor, double[] adblFirstGovvieTreasuryInstrument, double[] adblSecondGovvieTreasuryInstrument, java.lang.String strMaturityTenor, java.lang.String strCode, java.lang.String[] astrRollDownHorizon, int iLatentStateType)Generate the Govvie Curve Horizon Metrics- Parameters:
dtFirst
- The First DatedtSecond
- The Second DateastrGovvieTreasuryInstrumentTenor
- Array of Govvie Curve Treasury Instrument Maturity TenorsadblFirstGovvieTreasuryInstrument
- Array of First Date Govvie Curve Treasury Instrument QuotesadblSecondGovvieTreasuryInstrument
- Array of Second Date Govvie Curve Treasury Instrument QuotesstrMaturityTenor
- Treasury Bond Maturity TenorstrCode
- Treasury Bond CodeastrRollDownHorizon
- Array of the Roll Down Horizon TenorsiLatentStateType
- Latent State Type- Returns:
- The Govvie Curve Horizon Metrics
-
HorizonChangeAttribution
public static final java.util.List<PositionChangeComponents> HorizonChangeAttribution(JulianDate[] adtSpot, int iHorizonGap, java.lang.String[] astrGovvieTreasuryInstrumentTenor, double[][] aadblGovvieTreasuryInstrumentQuote, java.lang.String strMaturityTenor, java.lang.String strCode, java.lang.String[] astrRollDownHorizon, int iLatentStateType)Generate the Govvie Curve Horizon Metrics- Parameters:
adtSpot
- Array of the Spot DatesiHorizonGap
- The Horizon GapastrGovvieTreasuryInstrumentTenor
- Array of Govvie Curve Treasury Instrument Maturity TenorsaadblGovvieTreasuryInstrumentQuote
- Array of Govvie Curve Treasury Instrument QuotesstrMaturityTenor
- Treasury Bond Maturity TenorstrCode
- Treasury Bond CodeastrRollDownHorizon
- Array of the Roll Down Horizon TenorsiLatentStateType
- Latent State Type- Returns:
- The Govvie Curve Horizon Metrics
-