New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up inflation swaps convention #1539

Merged
merged 3 commits into from Jul 28, 2017

Conversation

Projects
None yet
3 participants
@brianweller89
Contributor

brianweller89 commented Jul 28, 2017

  • USCPI now interpolated
  • JPY now interpolated (using 10th of the month inflation base)
  • All GBP indices now use 2 month inflation lag.

Primary Source: Barclays Inflation Derivatives Users Guide

“The trading month for UK RPI breakeven swaps has a lag of two months“

“US zero coupon CPI swaps have adopted an interpolated base index format“

“…with the most standard format for [JPY] zero coupon breakevens using the same interpolated inflation basis as JGBi bonds, ie, a three-month lagged inflation reference from the tenth of the month. “

Cleaning up inflation swaps convention:
USCPI now interpolated
JPY now interpolated (using 10th of the month inflation)
All GBP indices now use 2 month inflation lag.

Primary Source:
http://www.trade2win.com/boards/attachments/next-steps/101520d1296424640-inflation-trading-barclays-inflation-derivatives-users-guide.pdf
* @param businessDayAdjustment the business day
* @return the convention
*/
public static InflationRateSwapLegConvention of(
PriceIndex index,
Period lag,
PriceIndexCalculationMethod priceIndexCalculationMethod,

This comment has been minimized.

@jodastephen

jodastephen Jul 28, 2017

Member

This is an incompatible change. Need to add an overload.

@jodastephen

jodastephen Jul 28, 2017

Member

This is an incompatible change. Need to add an overload.

This comment has been minimized.

@brianweller89

brianweller89 Jul 28, 2017

Contributor

Ok. Have deprecated the old method as the client should have to provide interpolation style when defining conventions. Defaulting to monthly seems slightly arbitrary.

@brianweller89

brianweller89 Jul 28, 2017

Contributor

Ok. Have deprecated the old method as the client should have to provide interpolation style when defining conventions. Defaulting to monthly seems slightly arbitrary.

Show outdated Hide outdated ...m/opengamma/strata/product/swap/type/InflationRateSwapLegConvention.java
Show outdated Hide outdated ...amma/strata/product/swap/type/StandardFixedInflationSwapConventions.java
private static final InflationRateSwapLegConvention INFL3 = InflationRateSwapLegConvention.of(GB_RPIX, LAG_3M, BDA_MOD_FOLLOW);
private static final InflationRateSwapLegConvention INFL = InflationRateSwapLegConvention.of(GB_HICP, LAG_3M, MONTHLY, BDA_MOD_FOLLOW);
private static final InflationRateSwapLegConvention INFL2 = InflationRateSwapLegConvention.of(GB_RPI, LAG_3M, MONTHLY, BDA_MOD_FOLLOW);
private static final InflationRateSwapLegConvention INFL3 = InflationRateSwapLegConvention.of(GB_RPIX, LAG_3M, MONTHLY, BDA_MOD_FOLLOW);

This comment has been minimized.

@jodastephen

jodastephen Jul 28, 2017

Member

Could back this out when compatibility overload added.

@jodastephen

jodastephen Jul 28, 2017

Member

Could back this out when compatibility overload added.

This comment has been minimized.

@brianweller89

brianweller89 Jul 28, 2017

Contributor

Would rather keep the test changes in order to discourage the use of the now deprecated method.

@brianweller89

brianweller89 Jul 28, 2017

Contributor

Would rather keep the test changes in order to discourage the use of the now deprecated method.

brianweller89 added some commits Jul 28, 2017

WIP
@jodastephen

Approved subject to fixing the build failure. (The class was incorrectly reformatted, with lots of extra blank lines)

@brianweller89 brianweller89 merged commit ff1b758 into master Jul 28, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@brianweller89 brianweller89 deleted the topic/inflation_conventions_cleanup branch Jul 28, 2017

jodastephen added a commit that referenced this pull request Jul 28, 2017

Clean up inflation swaps convention (#1539)
* Cleaning up inflation swaps convention:
USCPI now interpolated
JPY now interpolated (using 10th of the month inflation)
All GBP indices now use 2 month inflation lag.

Primary Source:
http://www.trade2win.com/boards/attachments/next-steps/101520d1296424640-inflation-trading-barclays-inflation-derivatives-users-guide.pdf

@jodastephen jodastephen added this to the v1.4 milestone Jul 31, 2017

@jodastephen jodastephen modified the milestone: v1.4 Jul 31, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment