Package org.drip.service.template
Class TreasuryBuilder
java.lang.Object
org.drip.service.template.TreasuryBuilder
public class TreasuryBuilder
extends java.lang.Object
TreasuryBuilder contains Static Helper API to facilitate Construction of the Sovereign Treasury
Bonds. It provides the following Functionality:
- Construct an Instance of the Australian Treasury AUD AGB Bond
- Construct an Instance of the Italian Treasury EUR BTPS Bond
- Construct an Instance of the Canadian Government CAD CAN Bond
- Construct an Instance of the German Treasury EUR DBR Bond
- Construct an Instance of the French Treasury EUR FRTR Bond
- Construct an Instance of the Greek Treasury EUR GGB Bond
- Construct an Instance of the UK Treasury GBP GILT Bond
- Construct an Instance of the Japanese Treasury JPY JGB Bond
- Construct an Instance of the Mexican Treasury MXN MBONO Bond
- Construct an Instance of the Spanish Treasury EUR SPGB Bond
- Construct an Instance of the US Treasury USD UST Bond
- Construct an Instance of the Treasury Bond From the Code
- Construct an Array of the Treasury Instances from the Code
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description TreasuryBuilder()
-
Method Summary
Modifier and Type Method Description static TreasuryComponent
AGB(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the Australian Treasury AUD AGB Bondstatic TreasuryComponent
BTPS(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the Italian Treasury EUR BTPS Bondstatic TreasuryComponent
CAN(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the Canadian Government CAD CAN Bondstatic TreasuryComponent
DBR(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the German Treasury EUR DBR Bondstatic TreasuryComponent[]
FromCode(java.lang.String treasuryCode, JulianDate[] effectiveDateArray, JulianDate[] maturityDateArray, double[] couponArray)
Construct an Array of the Treasury Instances from the Codestatic TreasuryComponent
FromCode(java.lang.String strCode, JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the Treasury Bond From the Codestatic TreasuryComponent
FRTR(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the French Treasury EUR FRTR Bondstatic TreasuryComponent
GGB(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the Greek Treasury EUR GGB Bondstatic TreasuryComponent
GILT(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the UK Treasury GBP GILT Bondstatic TreasuryComponent
JGB(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the Japanese Treasury JPY JGB Bondstatic TreasuryComponent
MBONO(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the Mexican Treasury MXN MBONO Bondstatic TreasuryComponent
SPGB(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the Spanish Treasury EUR SPGB Bondstatic TreasuryComponent
UST(JulianDate effectiveDate, JulianDate maturityDate, double coupon)
Construct an Instance of the US Treasury USD UST BondMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TreasuryBuilder
public TreasuryBuilder()
-
-
Method Details
-
AGB
public static final TreasuryComponent AGB(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the Australian Treasury AUD AGB Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the Australian Treasury AUD AGB Bond
-
BTPS
public static final TreasuryComponent BTPS(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the Italian Treasury EUR BTPS Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the Italian Treasury EUR BTPS Bond
-
CAN
public static final TreasuryComponent CAN(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the Canadian Government CAD CAN Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the Canadian Government CAD CAN Bond
-
DBR
public static final TreasuryComponent DBR(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the German Treasury EUR DBR Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the German Treasury EUR DBR Bond
-
FRTR
public static final TreasuryComponent FRTR(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the French Treasury EUR FRTR Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the French Treasury EUR FRTR Bond
-
GGB
public static final TreasuryComponent GGB(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the Greek Treasury EUR GGB Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the Greek Treasury EUR GGB Bond
-
GILT
public static final TreasuryComponent GILT(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the UK Treasury GBP GILT Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the UK Treasury GBP GILT Bond
-
JGB
public static final TreasuryComponent JGB(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the Japanese Treasury JPY JGB Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the Japanese Treasury JPY JGB Bond
-
MBONO
public static final TreasuryComponent MBONO(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the Mexican Treasury MXN MBONO Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the Mexican Treasury MXN MBONO Bond
-
SPGB
public static final TreasuryComponent SPGB(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the Spanish Treasury EUR SPGB Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the Spanish Treasury EUR SPGB Bond
-
UST
public static final TreasuryComponent UST(JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the US Treasury USD UST Bond- Parameters:
effectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the US Treasury USD UST Bond
-
FromCode
public static final TreasuryComponent FromCode(java.lang.String strCode, JulianDate effectiveDate, JulianDate maturityDate, double coupon)Construct an Instance of the Treasury Bond From the Code- Parameters:
strCode
- The Treasury CodeeffectiveDate
- Effective DatematurityDate
- Maturity Datecoupon
- Coupon- Returns:
- Instance of the Treasury Bond From the Code
-
FromCode
public static final TreasuryComponent[] FromCode(java.lang.String treasuryCode, JulianDate[] effectiveDateArray, JulianDate[] maturityDateArray, double[] couponArray)Construct an Array of the Treasury Instances from the Code- Parameters:
treasuryCode
- The Treasury CodeeffectiveDateArray
- Array of Effective DatesmaturityDateArray
- Array of Maturity DatescouponArray
- Array of Coupons- Returns:
- Array of the Treasury Instances from the Code
-