jupyter-notebooks icon indicating copy to clipboard operation
jupyter-notebooks copied to clipboard

Extension of BondSpecification interface by Caps/Floors

Open FuggeWolf opened this issue 5 years ago • 5 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).

FuggeWolf avatar Jul 02 '20 05:07 FuggeWolf

  • 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 = "" )

favdo avatar Aug 12 '20 12:08 favdo

Zu 2) Was ist damit nochmal gemeint?

favdo avatar Aug 12 '20 12:08 favdo

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.

FuggeWolf avatar Aug 14 '20 06:08 FuggeWolf

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

favdo avatar Aug 17 '20 08:08 favdo

to be tested by Stefan

FuggeWolf avatar Aug 18 '20 06:08 FuggeWolf