JurisdictionOTCIndexDefinitions.java

  1. package org.drip.sample.fixfloat;

  2. import org.drip.market.otc.IBORFixedFloatContainer;
  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) 2019 Lakshmi Krishnamurthy
  9.  * Copyright (C) 2018 Lakshmi Krishnamurthy
  10.  * Copyright (C) 2017 Lakshmi Krishnamurthy
  11.  * Copyright (C) 2016 Lakshmi Krishnamurthy
  12.  * Copyright (C) 2015 Lakshmi Krishnamurthy
  13.  *
  14.  *  This file is part of DROP, an open-source library targeting risk, transaction costs, exposure, margin
  15.  *      calculations, valuation adjustment, and portfolio construction within and across fixed income,
  16.  *      credit, commodity, equity, FX, and structured products.
  17.  *  
  18.  *      https://lakshmidrip.github.io/DROP/
  19.  *  
  20.  *  DROP is composed of three modules:
  21.  *  
  22.  *  - DROP Analytics Core - https://lakshmidrip.github.io/DROP-Analytics-Core/
  23.  *  - DROP Portfolio Core - https://lakshmidrip.github.io/DROP-Portfolio-Core/
  24.  *  - DROP Numerical Core - https://lakshmidrip.github.io/DROP-Numerical-Core/
  25.  *
  26.  *  DROP Analytics Core implements libraries for the following:
  27.  *  - Fixed Income Analytics
  28.  *  - Asset Backed Analytics
  29.  *  - XVA Analytics
  30.  *  - Exposure and Margin Analytics
  31.  *
  32.  *  DROP Portfolio Core implements libraries for the following:
  33.  *  - Asset Allocation Analytics
  34.  *  - Transaction Cost Analytics
  35.  *
  36.  *  DROP Numerical Core implements libraries for the following:
  37.  *  - Statistical Learning
  38.  *  - Numerical Optimizer
  39.  *  - Spline Builder
  40.  *  - Algorithm Support
  41.  *
  42.  *  Documentation for DROP is Spread Over:
  43.  *
  44.  *  - Main                     => https://lakshmidrip.github.io/DROP/
  45.  *  - Wiki                     => https://github.com/lakshmiDRIP/DROP/wiki
  46.  *  - GitHub                   => https://github.com/lakshmiDRIP/DROP
  47.  *  - Repo Layout Taxonomy     => https://github.com/lakshmiDRIP/DROP/blob/master/Taxonomy.md
  48.  *  - Javadoc                  => https://lakshmidrip.github.io/DROP/Javadoc/index.html
  49.  *  - Technical Specifications => https://github.com/lakshmiDRIP/DROP/tree/master/Docs/Internal
  50.  *  - Release Versions         => https://lakshmidrip.github.io/DROP/version.html
  51.  *  - Community Credits        => https://lakshmidrip.github.io/DROP/credits.html
  52.  *  - Issues Catalog           => https://github.com/lakshmiDRIP/DROP/issues
  53.  *  - JUnit                    => https://lakshmidrip.github.io/DROP/junit/index.html
  54.  *  - Jacoco                   => https://lakshmidrip.github.io/DROP/jacoco/index.html
  55.  *
  56.  *  Licensed under the Apache License, Version 2.0 (the "License");
  57.  *      you may not use this file except in compliance with the License.
  58.  *  
  59.  *  You may obtain a copy of the License at
  60.  *      http://www.apache.org/licenses/LICENSE-2.0
  61.  *  
  62.  *  Unless required by applicable law or agreed to in writing, software
  63.  *      distributed under the License is distributed on an "AS IS" BASIS,
  64.  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  65.  *  
  66.  *  See the License for the specific language governing permissions and
  67.  *      limitations under the License.
  68.  */

  69. /**
  70.  * <i>JurisdictionOTCIndexDefinitions</i> contains all the pre-fixed definitions of the Jurisdiction-specific
  71.  * OTC Fix-Float IRS contracts.
  72.  *  
  73.  * <br><br>
  74.  *  <ul>
  75.  *      <li><b>Module </b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/AnalyticsCore.md">Analytics Core Module</a></li>
  76.  *      <li><b>Library</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/FixedIncomeAnalyticsLibrary.md">Fixed Income Analytics Library</a></li>
  77.  *      <li><b>Project</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/sample/README.md">Sample</a></li>
  78.  *      <li><b>Package</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/sample/fixfloat/README.md">Fix Float Swap Analytics</a></li>
  79.  *  </ul>
  80.  * <br><br>
  81.  *
  82.  * @author Lakshmi Krishnamurthy
  83.  */

  84. public class JurisdictionOTCIndexDefinitions {
  85.     private static final void DisplayIRSOTCInfo (
  86.         String strCurrency,
  87.         String strLocation,
  88.         String strMaturityTenor,
  89.         String strIndex)
  90.     {
  91.         System.out.println (
  92.             "\t" + strCurrency + "-" + strLocation + "-" + strMaturityTenor + "-" + strIndex + " => " +
  93.             IBORFixedFloatContainer.ConventionFromJurisdiction (
  94.                 strCurrency,
  95.                 strLocation,
  96.                 strMaturityTenor,
  97.                 strIndex
  98.             )
  99.         );
  100.     }

  101.     public static final void main (
  102.         final String[] args)
  103.     {
  104.         EnvManager.InitEnv ("");

  105.         System.out.println ("\n\t--------------------------------------------------------------------------------------------------------\n");

  106.         DisplayIRSOTCInfo ("AUD", "ALL", "1Y", "MAIN");

  107.         DisplayIRSOTCInfo ("AUD", "ALL", "5Y", "MAIN");

  108.         DisplayIRSOTCInfo ("BRL", "ALL", "1Y", "MAIN");

  109.         DisplayIRSOTCInfo ("BRL", "ALL", "5Y", "MAIN");

  110.         DisplayIRSOTCInfo ("CAD", "ALL", "1Y", "MAIN");

  111.         DisplayIRSOTCInfo ("CAD", "ALL", "5Y", "MAIN");

  112.         DisplayIRSOTCInfo ("CHF", "ALL", "1Y", "MAIN");

  113.         DisplayIRSOTCInfo ("CHF", "ALL", "5Y", "MAIN");

  114.         DisplayIRSOTCInfo ("CNY", "ALL", "1Y", "MAIN");

  115.         DisplayIRSOTCInfo ("CNY", "ALL", "5Y", "MAIN");

  116.         DisplayIRSOTCInfo ("DKK", "ALL", "1Y", "MAIN");

  117.         DisplayIRSOTCInfo ("DKK", "ALL", "5Y", "MAIN");

  118.         DisplayIRSOTCInfo ("EUR", "ALL", "1Y", "MAIN");

  119.         DisplayIRSOTCInfo ("EUR", "ALL", "5Y", "MAIN");

  120.         DisplayIRSOTCInfo ("GBP", "ALL", "1Y", "MAIN");

  121.         DisplayIRSOTCInfo ("GBP", "ALL", "5Y", "MAIN");

  122.         DisplayIRSOTCInfo ("HKD", "ALL", "1Y", "MAIN");

  123.         DisplayIRSOTCInfo ("HKD", "ALL", "5Y", "MAIN");

  124.         DisplayIRSOTCInfo ("INR", "ALL", "1Y", "MAIN");

  125.         DisplayIRSOTCInfo ("INR", "ALL", "5Y", "MAIN");

  126.         DisplayIRSOTCInfo ("JPY", "ALL", "1Y", "MAIN");

  127.         DisplayIRSOTCInfo ("JPY", "ALL", "5Y", "MAIN");

  128.         DisplayIRSOTCInfo ("JPY", "ALL", "1Y", "TIBOR");

  129.         DisplayIRSOTCInfo ("JPY", "ALL", "5Y", "TIBOR");

  130.         DisplayIRSOTCInfo ("KRW", "ALL", "1Y", "MAIN");

  131.         DisplayIRSOTCInfo ("KRW", "ALL", "5Y", "MAIN");

  132.         DisplayIRSOTCInfo ("MYR", "ALL", "1Y", "MAIN");

  133.         DisplayIRSOTCInfo ("MYR", "ALL", "5Y", "MAIN");

  134.         DisplayIRSOTCInfo ("NOK", "ALL", "1Y", "MAIN");

  135.         DisplayIRSOTCInfo ("NOK", "ALL", "5Y", "MAIN");

  136.         DisplayIRSOTCInfo ("NZD", "ALL", "1Y", "MAIN");

  137.         DisplayIRSOTCInfo ("NZD", "ALL", "5Y", "MAIN");

  138.         DisplayIRSOTCInfo ("PLN", "ALL", "1Y", "MAIN");

  139.         DisplayIRSOTCInfo ("PLN", "ALL", "5Y", "MAIN");

  140.         DisplayIRSOTCInfo ("SEK", "ALL", "1Y", "MAIN");

  141.         DisplayIRSOTCInfo ("SEK", "ALL", "5Y", "MAIN");

  142.         DisplayIRSOTCInfo ("SGD", "ALL", "1Y", "MAIN");

  143.         DisplayIRSOTCInfo ("SGD", "ALL", "5Y", "MAIN");

  144.         DisplayIRSOTCInfo ("THB", "ALL", "1Y", "MAIN");

  145.         DisplayIRSOTCInfo ("THB", "ALL", "5Y", "MAIN");

  146.         DisplayIRSOTCInfo ("TWD", "ALL", "1Y", "MAIN");

  147.         DisplayIRSOTCInfo ("TWD", "ALL", "5Y", "MAIN");

  148.         DisplayIRSOTCInfo ("USD", "LON", "1Y", "MAIN");

  149.         DisplayIRSOTCInfo ("USD", "LON", "5Y", "MAIN");

  150.         DisplayIRSOTCInfo ("USD", "NYC", "1Y", "MAIN");

  151.         DisplayIRSOTCInfo ("USD", "NYC", "5Y", "MAIN");

  152.         DisplayIRSOTCInfo ("ZAR", "ALL", "1Y", "MAIN");

  153.         DisplayIRSOTCInfo ("ZAR", "ALL", "5Y", "MAIN");

  154.         System.out.println ("\n\t--------------------------------------------------------------------------------------------------------\n");

  155.         EnvManager.TerminateEnv();
  156.     }
  157. }