JurisdictionOTCIndexDefinitions.java

  1. package org.drip.sample.floatfloat;

  2. import org.drip.market.otc.*;
  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 OTC
  71.  * Float-Float Swap 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/floatfloat/README.md">Float 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 DisplayOTCInfo (
  86.         String strCurrency)
  87.     {
  88.         FloatFloatSwapConvention ffConv = IBORFloatFloatContainer.ConventionFromJurisdiction (strCurrency);

  89.         System.out.println (
  90.             "\t\t" + strCurrency + " => " +
  91.             ffConv.referenceTenor() + " | " +
  92.             ffConv.spotLag() + " | " +
  93.             ffConv.basisOnDerivedStream() + " | " +
  94.             ffConv.basisOnDerivedComponent() + " | " +
  95.             ffConv.derivedCompoundedToReference() + " | " +
  96.             ffConv.componentPair()
  97.         );
  98.     }

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

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

  104.         System.out.println ("\t\tL -> R:");

  105.         System.out.println ("\t\t\tCurrency");

  106.         System.out.println ("\t\t\tReference Tenor");

  107.         System.out.println ("\t\t\tSpot Lag");

  108.         System.out.println ("\t\t\tBasis on Derived Stream");

  109.         System.out.println ("\t\t\tBasis on Derived Component");

  110.         System.out.println ("\t\t\tDerived Stream Compounded To Reference Stream");

  111.         System.out.println ("\t\t\tComponent Pair");

  112.         System.out.println ("\t--------------------------------------------------------------------------------------------------------");

  113.         DisplayOTCInfo ("AUD");

  114.         DisplayOTCInfo ("CAD");

  115.         DisplayOTCInfo ("CHF");

  116.         DisplayOTCInfo ("CNY");

  117.         DisplayOTCInfo ("DKK");

  118.         DisplayOTCInfo ("EUR");

  119.         DisplayOTCInfo ("GBP");

  120.         DisplayOTCInfo ("HKD");

  121.         DisplayOTCInfo ("INR");

  122.         DisplayOTCInfo ("JPY");

  123.         DisplayOTCInfo ("NOK");

  124.         DisplayOTCInfo ("NZD");

  125.         DisplayOTCInfo ("PLN");

  126.         DisplayOTCInfo ("SEK");

  127.         DisplayOTCInfo ("SGD");

  128.         DisplayOTCInfo ("USD");

  129.         DisplayOTCInfo ("ZAR");

  130.         System.out.println ("\t--------------------------------------------------------------------------------------------------------");

  131.         EnvManager.TerminateEnv();
  132.     }
  133. }