Package com.opengamma.financial.security.cds

Examples of com.opengamma.financial.security.cds.CDSIndexTerms


    security.setUniqueId(UniqueId.of(UniqueId.EXTERNAL_SCHEME.getName(), "94876"));
    return security;
  }

  public static CreditDefaultSwapIndexDefinitionSecurity getCreditDefaultSwapIndexDefinitionSecurity() {
    final CDSIndexTerms terms = CDSIndexTerms.of(Tenor.ONE_YEAR);
    final CDSIndexComponentBundle components = CDSIndexComponentBundle.of(new CreditDefaultSwapIndexComponent("NAME", ExternalId.of("Test", "A"), 1., ExternalId.of("Test", "Bond")));
    final CreditDefaultSwapIndexDefinitionSecurity security = new CreditDefaultSwapIndexDefinitionSecurity("1", "1", "All", USD, 0.02, terms, components);
    security.setUniqueId(UniqueId.of(UniqueId.EXTERNAL_SCHEME.getName(), "1223"));
    return security;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.security.cds.CDSIndexTerms

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.