Skip to content

Commit

Permalink
Zero-Coupon Swaps qualification fix
Browse files Browse the repository at this point in the history
This contribution fixes the qualification function for Zero-Coupons Swaps, along with fixing inaccurate provisions on related qualification functions, it removes the deprecated mappings for ZCS with Known Amounts and it updates the Qualify_SubProduct_FixedFloat qualification function to not require deprecated values to identify ZCS with Known Amount
  • Loading branch information
ebataller committed Nov 20, 2023
1 parent 2407121 commit 9ae44c6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -825,13 +825,10 @@ synonym source FpML_5_Confirmation_To_TradeState extends FpML
[value "PrincipalExchanges" meta "id"]
+ initialPayment
[value "initialExchange"]
[set to False when "knownAmountSchedule" exists]
+ finalPayment
[value "finalExchange"]
[set to True when "knownAmountSchedule" exists]
+ intermediatePayment
[value "intermediateExchange"]
[set to False when "knownAmountSchedule" exists]
+ principalPaymentSchedule
[value "cashflows" mapper "PrincipalPaymentSchedule"]

Expand Down
26 changes: 13 additions & 13 deletions rosetta-source/src/main/rosetta/product-qualification-func.rosetta
Original file line number Diff line number Diff line change
Expand Up @@ -909,14 +909,14 @@ func Qualify_SubProduct_FixedFloat: <"Qualifies a product as having the Sub Prod
is_product boolean (1..1)

set is_product:
(economicTerms -> payout -> interestRatePayout -> rateSpecification -> fixedRate count = 1
and economicTerms -> payout -> interestRatePayout -> rateSpecification -> floatingRate count = 1)
or (economicTerms -> payout -> interestRatePayout -> rateSpecification -> fixedRate count = 1
and economicTerms -> payout -> interestRatePayout -> rateSpecification -> inflationRate count = 1)
or ((economicTerms -> payout -> interestRatePayout -> rateSpecification -> fixedRate is absent
and economicTerms -> payout -> interestRatePayout -> principalPayment -> finalPayment only-element = True)
and (economicTerms -> payout -> interestRatePayout -> rateSpecification -> floatingRate count = 1
or economicTerms -> payout -> interestRatePayout -> rateSpecification -> inflationRate count = 1))
(economicTerms -> payout -> interestRatePayout -> rateSpecification -> fixedRate count = 1
and economicTerms -> payout -> interestRatePayout -> rateSpecification -> floatingRate count = 1)
or (economicTerms -> payout -> interestRatePayout -> rateSpecification -> fixedRate count = 1
and economicTerms -> payout -> interestRatePayout -> rateSpecification -> inflationRate count = 1)
or ((economicTerms -> payout -> interestRatePayout -> rateSpecification -> floatingRate count = 1
or economicTerms -> payout -> interestRatePayout -> rateSpecification -> inflationRate count = 1)
and (economicTerms -> payout -> interestRatePayout
filter item -> priceQuantity exists and item -> rateSpecification is absent then count = 1))

func Qualify_SubProduct_FixedFixed: <"Qualifies a product as having the Sub Product classification Fixed Float">
inputs:
Expand All @@ -943,8 +943,8 @@ func Qualify_Transaction_ZeroCoupon: <"Qualifies a product as having the Transac
output:
is_product boolean (1..1)
set is_product:
economicTerms -> payout -> interestRatePayout -> paymentDates -> paymentFrequency -> periodMultiplier all = 1
and economicTerms -> payout -> interestRatePayout -> paymentDates -> paymentFrequency -> period all = PeriodExtendedEnum -> T
economicTerms -> payout -> interestRatePayout -> paymentDates -> paymentFrequency
filter item -> periodMultiplier = 1 and item -> period = PeriodExtendedEnum -> T then exists

func Qualify_Transaction_YoY: <"Qualifies a product as having the Transaction classification Year on Year">
inputs:
Expand Down Expand Up @@ -1084,7 +1084,7 @@ func Qualify_InterestRate_IRSwap_Basis: <"Qualifies a product as a Basis (Float-
and Qualify_SubProduct_Basis(economicTerms) = True
and Qualify_Transaction_OIS(economicTerms) = False

func Qualify_InterestRate_IRSwap_FixedFloat_ZeroCoupon: <"Qualifies a product as a Fixed-Float Zero Coupon Interest Rate Swap based on the economic terms and the following criteria: 1) An interest rate product with one fixed and one floating leg and more than one payment, 2) without inflation features or cross-currency features, and 3) where the floating leg is not based on an OIS index.">
func Qualify_InterestRate_IRSwap_FixedFloat_ZeroCoupon: <"Qualifies a product as a Fixed-Float Zero Coupon Interest Rate Swap based on the economic terms and the following criteria: 1) An interest rate product with one fixed and one floating leg, 2) where the fixed leg represents one singular payment agreed upon execution and to be made at maturity, 3) where the floating leg is not based on an OIS index and 4) without any inflation features or cross-currency features.">
[qualification Product]
inputs:
economicTerms EconomicTerms (1..1)
Expand Down Expand Up @@ -1191,7 +1191,7 @@ func Qualify_InterestRate_InflationSwap_FixedFloat_YearOn_Year: <"Qualifies a pr
* and Qualify_InterestRate_InflationSwap_Basis_ZeroCoupon (economicTerms) = False
* and Qualify_InterestRate_InflationSwap_Basis_YearOn_Year (economicTerms) = False
*/
func Qualify_InterestRate_InflationSwap_FixedFloat_ZeroCoupon: <"Qualifies a product as a Fixed-Float Inflation Swap with a single accrual period based on the economic terms and the following criteria: 1) An interest rate product with one fixed and one inflation rate leg and more than one payment, and 2) without cross-currency features.">
func Qualify_InterestRate_InflationSwap_FixedFloat_ZeroCoupon: <"Qualifies a product as a Fixed-Float Inflation Swap based on the economic terms and the following criteria: 1) An interest rate product with one fixed and one inflation rate leg, 2) where the fixed leg represents one singular payment agreed upon execution and to be made at maturity, 3) where the inflation leg features an inflation floating rate and 4) without cross-currency features.">
[qualification Product]
inputs:
economicTerms EconomicTerms (1..1)
Expand Down Expand Up @@ -1219,7 +1219,7 @@ func Qualify_InterestRate_InflationSwap_Basis_YearOn_Year: <"Qualifies a product
and Qualify_SubProduct_Basis(economicTerms) = True
and Qualify_Transaction_YoY(economicTerms) = True

func Qualify_InterestRate_InflationSwap_Basis_ZeroCoupon: <"Qualifies a product as a Basis (Float-Float) Inflation Swap with a single accrual period based on the economic terms and the following criteria: 1) An interest rate product with one floating interest rate leg and one inflation rate leg and more than one payment, and 2) without cross-currency features or 'zero coupon' features.">
func Qualify_InterestRate_InflationSwap_Basis_ZeroCoupon: <"Qualifies a product as a Basis (Float-Float) Inflation Swap based on the economic terms and the following criteria: 1) An interest rate product with one floating interest rate leg and one inflation interest rate leg, 2) where the floating leg is not based on an OIS index, 3) where the inflation leg features an inflation floating rate, 4) where an interest rate payout is made at maturity into a singular payment and 5) without cross-currency features.">
[qualification Product]
inputs:
economicTerms EconomicTerms (1..1)
Expand Down

0 comments on commit 9ae44c6

Please sign in to comment.