frontmark / jupyter-notebooks

Market Data & Derivatives Pricing Tutorial based on Jupyter notebooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consistency Checks: Coupon Dates <=> Coupons, Coupon Periods <=> Spreads

FuggeWolf opened this issue · comments

  • Throw an error message if the number of coupons is not equal to the number of coupon dates.
  • Avoid kernel shutdown if coupon dates, but no coupons (i.e. empty list) are porvided.
  • Throw an error message if the number of spreads is not equal to the number of coupon dates minus one:
    len(Spreads) == len(Coupon_Period_Dates) - 1.

to be tested by Stefan