ContractEligibilitySettlementDefinitions.java

  1. package org.drip.sample.treasuryfutures;

  2. import org.drip.market.exchange.TreasuryFuturesConventionContainer;
  3. import org.drip.service.env.EnvManager;

  4. /*
  5.  * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  6.  */

  7. /*!
  8.  * Copyright (C) 2018 Lakshmi Krishnamurthy
  9.  * Copyright (C) 2017 Lakshmi Krishnamurthy
  10.  * Copyright (C) 2016 Lakshmi Krishnamurthy
  11.  * Copyright (C) 2015 Lakshmi Krishnamurthy
  12.  *
  13.  *  This file is part of DRIP, a free-software/open-source library for buy/side financial/trading model
  14.  *      libraries targeting analysts and developers
  15.  *      https://lakshmidrip.github.io/DRIP/
  16.  *  
  17.  *  DRIP is composed of four main libraries:
  18.  *  
  19.  *  - DRIP Fixed Income - https://lakshmidrip.github.io/DRIP-Fixed-Income/
  20.  *  - DRIP Asset Allocation - https://lakshmidrip.github.io/DRIP-Asset-Allocation/
  21.  *  - DRIP Numerical Optimizer - https://lakshmidrip.github.io/DRIP-Numerical-Optimizer/
  22.  *  - DRIP Statistical Learning - https://lakshmidrip.github.io/DRIP-Statistical-Learning/
  23.  *
  24.  *  - DRIP Fixed Income: Library for Instrument/Trading Conventions, Treasury Futures/Options,
  25.  *      Funding/Forward/Overnight Curves, Multi-Curve Construction/Valuation, Collateral Valuation and XVA
  26.  *      Metric Generation, Calibration and Hedge Attributions, Statistical Curve Construction, Bond RV
  27.  *      Metrics, Stochastic Evolution and Option Pricing, Interest Rate Dynamics and Option Pricing, LMM
  28.  *      Extensions/Calibrations/Greeks, Algorithmic Differentiation, and Asset Backed Models and Analytics.
  29.  *
  30.  *  - DRIP Asset Allocation: Library for model libraries for MPT framework, Black Litterman Strategy
  31.  *      Incorporator, Holdings Constraint, and Transaction Costs.
  32.  *
  33.  *  - DRIP Numerical Optimizer: Library for Numerical Optimization and Spline Functionality.
  34.  *
  35.  *  - DRIP Statistical Learning: Library for Statistical Evaluation and Machine Learning.
  36.  *
  37.  *  Licensed under the Apache License, Version 2.0 (the "License");
  38.  *      you may not use this file except in compliance with the License.
  39.  *  
  40.  *  You may obtain a copy of the License at
  41.  *      http://www.apache.org/licenses/LICENSE-2.0
  42.  *  
  43.  *  Unless required by applicable law or agreed to in writing, software
  44.  *      distributed under the License is distributed on an "AS IS" BASIS,
  45.  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  46.  *  
  47.  *  See the License for the specific language governing permissions and
  48.  *      limitations under the License.
  49.  */

  50. /**
  51.  * ContractEligibilitySettlementDefinitions contains all the pre-fixed Definitions of the Bond Futures
  52.  *  Contracts.
  53.  *
  54.  * @author Lakshmi Krishnamurthy
  55.  */

  56. public class ContractEligibilitySettlementDefinitions {

  57.     private static final void DisplayBondFuturesInfo (
  58.         String strCurrency,
  59.         String strUnderlierType,
  60.         String strUnderlierSubtype,
  61.         String strMaturityTenor)
  62.     {
  63.         System.out.println ("--------------------------------------------------------------------------------------------------------\n");

  64.         System.out.println ("\t" +
  65.             TreasuryFuturesConventionContainer.FromJurisdictionTypeMaturity (
  66.                 strCurrency,
  67.                 strUnderlierType,
  68.                 strUnderlierSubtype,
  69.                 strMaturityTenor
  70.             )
  71.         );
  72.     }

  73.     public static final void main (
  74.         final String[] args)
  75.     {
  76.         EnvManager.InitEnv ("");

  77.         System.out.println();

  78.         DisplayBondFuturesInfo ("AUD", "BANK", "BILLS", "3M");

  79.         DisplayBondFuturesInfo ("AUD", "TREASURY", "BOND", "3Y");

  80.         DisplayBondFuturesInfo ("AUD", "TREASURY", "BOND", "10Y");

  81.         DisplayBondFuturesInfo ("EUR", "EURO", "SCHATZ", "2Y");

  82.         DisplayBondFuturesInfo ("EUR", "EURO", "BOBL", "5Y");

  83.         DisplayBondFuturesInfo ("EUR", "EURO", "BUND", "10Y");

  84.         DisplayBondFuturesInfo ("EUR", "EURO", "BUXL", "30Y");

  85.         DisplayBondFuturesInfo ("EUR", "TREASURY", "BONO", "10Y");

  86.         DisplayBondFuturesInfo ("GBP", "SHORT", "GILT", "2Y");

  87.         DisplayBondFuturesInfo ("GBP", "MEDIUM", "GILT", "5Y");

  88.         DisplayBondFuturesInfo ("GBP", "LONG", "GILT", "10Y");

  89.         DisplayBondFuturesInfo ("JPY", "TREASURY", "JGB", "5Y");

  90.         DisplayBondFuturesInfo ("JPY", "TREASURY", "JGB", "10Y");

  91.         DisplayBondFuturesInfo ("USD", "TREASURY", "NOTE", "2Y");

  92.         DisplayBondFuturesInfo ("USD", "TREASURY", "NOTE", "3Y");

  93.         DisplayBondFuturesInfo ("USD", "TREASURY", "NOTE", "5Y");

  94.         DisplayBondFuturesInfo ("USD", "TREASURY", "NOTE", "10Y");

  95.         DisplayBondFuturesInfo ("USD", "TREASURY", "BOND", "30Y");

  96.         DisplayBondFuturesInfo ("USD", "TREASURY", "BOND", "ULTRA");

  97.         System.out.println ("--------------------------------------------------------------------------------------------------------\n");
  98.     }
  99. }