Skip to content

Implement InflationSwap for ZCIS and YYIS (#17) - #489

Open
Sajish06 wants to merge 1 commit into
FinancePy-Org:masterfrom
Sajish06:feature/inflation-swap
Open

Sajish06 wants to merge 1 commit into
FinancePy-Org:masterfrom
Sajish06:feature/inflation-swap

Conversation

@Sajish06

Copy link
Copy Markdown

Closes #17.

Replaces the unfinished IborFRA placeholder in financepy/products/rates/inflation_swap.py with a complete InflationSwap implementation supporting both Zero-Coupon Inflation Swaps (ZCIS) and Year-on-Year Inflation Swaps (YYIS).

Summary of changes:

  • Added InflationSwapTypes (ZERO_COUPON, YEAR_ON_YEAR) and InflationSwap with fixed_leg_value, inflation_leg_value, value, pv01, and fair_rate.
  • Valuations use InflationIndexCurve (with indexation lag) and DiscountCurve, following SwapTypes.PAY / SwapTypes.RECEIVE conventions.
  • Added unit tests in tests/unit/test_inflation_swap.py and an example script in examples/scripts/rates/example_inflation_swap.py.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inflation swap product and valuation

1 participant