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

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 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Date
      maturityDate - Maturity Date
      coupon - 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 Code
      effectiveDate - Effective Date
      maturityDate - Maturity Date
      coupon - 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 Code
      effectiveDateArray - Array of Effective Dates
      maturityDateArray - Array of Maturity Dates
      couponArray - Array of Coupons
      Returns:
      Array of the Treasury Instances from the Code