frontmark / jupyter-notebooks

Market Data & Derivatives Pricing Tutorial based on Jupyter notebooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extension of BondSpecification interface by Caps/Floors

FuggeWolf opened this issue · comments

  • Extend BondSpecification() by two more arguments for lists of caps and/or floors.
  • Verify the error messages for the wrong number of arguments (-2, -1, +1, +2).
commented
  • gefixt, Schnittstelle ist nun definiert durch BondSpecification(
    const std::string& id,
    const std::string& issuer,
    const std::string& secLvl,
    const std::string& curr,
    const ptime &expiry,
    const ptime& issueDate,
    double notional,
    const std::string& dc,
    const std::vector& fixedCouponDates,
    const std::vector& fixedCoupons,
    const std::string floatingRateUnderlying,
    const std::vector& floatingPeriods,
    const std::vector& spreads,
    const std::vector& floatingRateCaps = std::vector(),
    const std::vector& floatingRateFloors = std::vector(),

    const std::string& holidays = ""
    )
commented

Zu 2) Was ist damit nochmal gemeint?

zu 2)
Falls man BondSpecification mit der falschen Anzahl an Parametern aufruft, erhält man eine Fehlermeldung. Diese ist aber manchmal eher verwirrend: ich glaube bei +2 Argumenten, lautete die Fehlermeldung, dass eines zu viel sei. NImmt man das weg, erhält man eine ganz andere Meldung, die nichts mit der Anzahl zu tun hat.

commented

zu 2) da nicht leicht zu fixen, muss dies in der pyriva Schnittstelle behandelt werden

to be tested by Stefan