ExternalSchemes.countryRegionId(Country.of("US")),
BUSINESS_DAY,
new InterestRateNotional(Currency.USD, 15000000),
true,
0.05),
new FloatingInterestRateLeg(DAY_COUNT,
SimpleFrequency.QUARTERLY,
ExternalSchemes.countryRegionId(Country.of("US")),
BUSINESS_DAY,
new InterestRateNotional(Currency.USD, 15000000),
true,
USDLIBOR3M,
FloatingRateType.IBOR));
swap1.addExternalId(ExternalId.of(ID_SCHEME, GUIDGenerator.generate().toString()));
swap1.setName("Swap: pay 5% fixed vs 3m Libor, start=" + swap1.getEffectiveDate().toLocalDate() + ", maturity=" + swap1.getMaturityDate().toLocalDate() + ", notional=USD 15MM");
final SwapSecurity swap2 = new SwapSecurity(
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 30, 5, 1, 11, 0), ZoneOffset.UTC),
"Cpty",
new FixedInterestRateLeg(DAY_COUNT,
SimpleFrequency.SEMI_ANNUAL,
ExternalSchemes.countryRegionId(Country.of("DE")),
BUSINESS_DAY,
new InterestRateNotional(Currency.EUR, 20000000),
true,
0.04),
new FloatingInterestRateLeg(DAY_COUNT,
SimpleFrequency.QUARTERLY,
ExternalSchemes.countryRegionId(Country.of("DE")),
BUSINESS_DAY,
new InterestRateNotional(Currency.EUR, 20000000),
true,
ExternalId.of(ExternalSchemes.OG_SYNTHETIC_TICKER, "USDLIBORP6M"),
FloatingRateType.IBOR));
swap2.addExternalId(ExternalId.of(ID_SCHEME, GUIDGenerator.generate().toString()));
swap2.setName("Swap: pay 4% fixed vs 6m Euribor, start=" + swap2.getEffectiveDate().toLocalDate() + ", maturity=" + swap2.getMaturityDate().toLocalDate() + ", notional=EUR 20MM");
final SwapSecurity swap3 = new SwapSecurity(
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 13, 5, 1, 11, 0), ZoneOffset.UTC),
"Cpty",
new FixedInterestRateLeg(DAY_COUNT,
SimpleFrequency.SEMI_ANNUAL,
ExternalSchemes.countryRegionId(Country.of("GB")),
BUSINESS_DAY,
new InterestRateNotional(Currency.GBP, 15000000),
true,
0.03),
new FloatingInterestRateLeg(DAY_COUNT,
SimpleFrequency.QUARTERLY,
ExternalSchemes.countryRegionId(Country.of("GB")),
BUSINESS_DAY,
new InterestRateNotional(Currency.GBP, 15000000),
true,
ExternalId.of(ExternalSchemes.OG_SYNTHETIC_TICKER, "GBPLIBORP6M"),
FloatingRateType.IBOR));
swap3.addExternalId(ExternalId.of(ID_SCHEME, GUIDGenerator.generate().toString()));
swap3.setName("Swap: pay 3% fixed vs 6m Libor, start=" + swap3.getEffectiveDate().toLocalDate() + ", maturity=" + swap3.getMaturityDate().toLocalDate() + ", notional=GBP 15MM");
final SwapSecurity swap4 = new SwapSecurity(
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 25, 5, 1, 11, 0), ZoneOffset.UTC),
"Cpty",
new FixedInterestRateLeg(DAY_COUNT,
SimpleFrequency.SEMI_ANNUAL,
ExternalSchemes.countryRegionId(Country.of("JP")),
BUSINESS_DAY,
new InterestRateNotional(Currency.JPY, 100000000),
true,
0.02),
new FloatingInterestRateLeg(DAY_COUNT,
SimpleFrequency.QUARTERLY,
ExternalSchemes.countryRegionId(Country.of("JP")),
BUSINESS_DAY,
new InterestRateNotional(Currency.JPY, 100000000),
true,
ExternalId.of(ExternalSchemes.OG_SYNTHETIC_TICKER, "JPYLIBORP6M"),
FloatingRateType.IBOR));
swap4.addExternalId(ExternalId.of(ID_SCHEME, GUIDGenerator.generate().toString()));
swap4.setName("Swap: pay 2% fixed vs 6m Libor, start=" + swap4.getEffectiveDate().toLocalDate() + ", maturity=" + swap4.getMaturityDate().toLocalDate() + ", notional=JPY 100MM");
final SwapSecurity swap5 = new SwapSecurity(
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 40, 5, 1, 11, 0), ZoneOffset.UTC),
"Cpty",
new FixedInterestRateLeg(DAY_COUNT,
SimpleFrequency.SEMI_ANNUAL,
ExternalSchemes.countryRegionId(Country.of("CH")),
BUSINESS_DAY,
new InterestRateNotional(Currency.CHF, 5000000),
true,
0.07),
new FloatingInterestRateLeg(DAY_COUNT,
SimpleFrequency.QUARTERLY,
ExternalSchemes.countryRegionId(Country.of("CH")),
BUSINESS_DAY,
new InterestRateNotional(Currency.CHF, 5000000),
true,
ExternalId.of(ExternalSchemes.OG_SYNTHETIC_TICKER, "CHFLIBORP6M"),
FloatingRateType.IBOR));
swap5.addExternalId(ExternalId.of(ID_SCHEME, GUIDGenerator.generate().toString()));
swap5.setName("Swap: pay 7% fixed vs 6m Libor, start=" + swap5.getEffectiveDate().toLocalDate() + ", maturity=" + swap5.getMaturityDate().toLocalDate() + ", notional=CHF 50MM");
final SwapSecurity swap6 = new SwapSecurity(
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 1, 5, 1, 11, 0), ZoneOffset.UTC),
ZonedDateTime.of(LocalDateTime.of(TODAY.getYear() + 20, 5, 1, 11, 0), ZoneOffset.UTC),
"Cpty",
new FixedInterestRateLeg(DAY_COUNT,
SimpleFrequency.SEMI_ANNUAL,
ExternalSchemes.countryRegionId(Country.of("DK")),
BUSINESS_DAY,
new InterestRateNotional(Currency.DKK, 90000000),
true,
0.05),
new FloatingInterestRateLeg(DAY_COUNT,
SimpleFrequency.QUARTERLY,
ExternalSchemes.countryRegionId(Country.of("DK")),
BUSINESS_DAY,
new InterestRateNotional(Currency.DKK, 90000000),
true,