Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDS ISDA pricing engine #112

Merged
merged 90 commits into from
Sep 13, 2017
Merged

CDS ISDA pricing engine #112

merged 90 commits into from
Sep 13, 2017

Commits on Sep 5, 2017

  1. Accrual rebate in CDS and dependencies (with Peter Caspers). CDS and …

    …risky bonds into Add-in. Worksheet demo.
    japari authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    bd34470 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ac089e8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7db2ea2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b4dda17 View commit details
    Browse the repository at this point in the history
  5. add references and implementation details flags, add second construct…

    …or for curve construction within the engine and remove static utility functions
    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    f087cd3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0f78c54 View commit details
    Browse the repository at this point in the history
  7. authored comments

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    f88784c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    44093c3 View commit details
    Browse the repository at this point in the history
  9. add maturity to arguments, clean formatting of some comments, add war…

    …ning concerning the conventional spread calculation (should be fixed later)
    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    0e59271 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    768f569 View commit details
    Browse the repository at this point in the history
  11. cast explicitly for allowed curve types and extract helper maturity d…

    …ates automatically
    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    5a283f2 View commit details
    Browse the repository at this point in the history
  12. Typo

    japari authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    ad8f6d3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    488c1e2 View commit details
    Browse the repository at this point in the history
  14. revert index modif....

    japari authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    9e84e44 View commit details
    Browse the repository at this point in the history
  15. modifed default leg loop

    japari authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    08041c4 View commit details
    Browse the repository at this point in the history
  16. add make cds facility

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    0a8b7aa View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    c0f7eb5 View commit details
    Browse the repository at this point in the history
  18. add rebate accrual flag to helper, add flag indicating that isda engi…

    …ne should be used for bootstrapping (instead of mid point engine)
    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    2490227 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    5df3f4b View commit details
    Browse the repository at this point in the history
  20. fix interval tracking

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    603fa52 View commit details
    Browse the repository at this point in the history
  21. direction update

    japari authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    1e05857 View commit details
    Browse the repository at this point in the history
  22. extend cds example

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    fa64aa7 View commit details
    Browse the repository at this point in the history
  23. make code c++11 compliant

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    7a58cd4 View commit details
    Browse the repository at this point in the history
  24. correct false make_shared statement

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    b41d33c View commit details
    Browse the repository at this point in the history
  25. fix false make_shared statements

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    47ff2fa View commit details
    Browse the repository at this point in the history
  26. renamed index

    japari authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    d38f816 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    6bb92c1 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    dfac85e View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    5285d72 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    8f50a88 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    0225115 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    974fcbe View commit details
    Browse the repository at this point in the history
  33. Revert some modifs.

    japari authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    4f3e846 View commit details
    Browse the repository at this point in the history
  34. add example 3

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    9b2e462 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    9a9d86e View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    272ffa6 View commit details
    Browse the repository at this point in the history
  37. make use of isda engine a bool

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    e35bef5 View commit details
    Browse the repository at this point in the history
  38. fix coupon tenor

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    1b17399 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    9ce3ea6 View commit details
    Browse the repository at this point in the history
  40. extend example

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    0603677 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    edaa603 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    6879216 View commit details
    Browse the repository at this point in the history
  43. add some debug outputs

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    aea83a6 View commit details
    Browse the repository at this point in the history
  44. update example

    pcaspers authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    73e6021 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    eb346e4 View commit details
    Browse the repository at this point in the history
  46. fix typos

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    4738393 View commit details
    Browse the repository at this point in the history
  47. rename to be more consitent with other conventions

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    f52305d View commit details
    Browse the repository at this point in the history
  48. remove debug statements

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    06a46ce View commit details
    Browse the repository at this point in the history
  49. run full example

    thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    1a83341 View commit details
    Browse the repository at this point in the history
  50. fix whitespace

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    7350fbe View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    6a77320 View commit details
    Browse the repository at this point in the history
  52. really fix last_period coupon

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    e5b5db3 View commit details
    Browse the repository at this point in the history
  53. Fix default leg computation

    - simplify node computation, this is simpler and faster.
    - there is no need to adjust the end of day computation for
    survival probability. default is protection start at beginning of day.
    
    this is much closer to isda engine now.
    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    8dae5c0 View commit details
    Browse the repository at this point in the history
  54. Fix the coupon leg computation

    - the sign for the accrual bias was wrong
    - local nodes generation was incorrect
    very close to isda pricer now
    thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    547973a View commit details
    Browse the repository at this point in the history
  55. do not compute each node twice

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    ba63dfb View commit details
    Browse the repository at this point in the history
  56. change the default setting for IsdaEngine

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    ccb4fa9 View commit details
    Browse the repository at this point in the history
  57. try one more dynamic cast

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    0da26dd View commit details
    Browse the repository at this point in the history
  58. add option to use isdaengine

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    04e7eb3 View commit details
    Browse the repository at this point in the history
  59. rorganize dynamic casting

    thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    0d26b0e View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    85ca994 View commit details
    Browse the repository at this point in the history
  61. allow to specify termDate

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    fb0b9aa View commit details
    Browse the repository at this point in the history
  62. fix upfrontDate

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    5e82c28 View commit details
    Browse the repository at this point in the history
  63. add test for the isda engine

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    a90f285 View commit details
    Browse the repository at this point in the history
  64. improve guess

    swith the parameter searh to log space, in order to enforce positivity
    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    9d9a026 View commit details
    Browse the repository at this point in the history
  65. no need to redefine initializeDate()

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    47c4bcd View commit details
    Browse the repository at this point in the history
  66. apply fix from piecewiseyieldcurve

    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    4ed9939 View commit details
    Browse the repository at this point in the history
  67. Add extra startDate parameters

    - if not provided (case of single name cds), the maturity rolls
      every 3 months (or 6 months, see below).
    - if provided, the cds schedule is fixed, only the protection start
      date gets updated when the evaluation date changes.
      (case of CDS index for instance)
    - also take into account the switch to semi annual roll after
      December 10th 2015.
    Guillaume Horel authored and thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    94055d5 View commit details
    Browse the repository at this point in the history
  68. update to serial_type

    thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    e012f7c View commit details
    Browse the repository at this point in the history
  69. make codacy happy

    thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    a9f9c02 View commit details
    Browse the repository at this point in the history
  70. add missing headers

    thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    1e7458b View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    22dbc90 View commit details
    Browse the repository at this point in the history
  72. use CDS2015 rule

    thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    875d1bb View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    82de7da View commit details
    Browse the repository at this point in the history
  74. fix tests

    thrasibule committed Sep 5, 2017
    Configuration menu
    Copy the full SHA
    5adc858 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2017

  1. wip

    thrasibule committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    daab4dc View commit details
    Browse the repository at this point in the history
  2. reorder initialization

    thrasibule committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    277c68b View commit details
    Browse the repository at this point in the history
  3. fix example

    thrasibule committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    ee1dfd6 View commit details
    Browse the repository at this point in the history
  4. use enum

    thrasibule committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    7d16001 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e5ef38b View commit details
    Browse the repository at this point in the history
  6. header cleanup

    thrasibule committed Sep 6, 2017
    Configuration menu
    Copy the full SHA
    d69846c View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2017

  1. Always initialize upfront payment

    - set to zero amount cashflow if missing.
    - shortcut computation if amount is 0.
    thrasibule committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    303fca2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7808f53 View commit details
    Browse the repository at this point in the history
  3. fix accuracy

    thrasibule committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    59aea40 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2017

  1. Renamed enumeration.

    lballabio committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    a4942a0 View commit details
    Browse the repository at this point in the history
  2. Remove unused data members.

    lballabio committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    d871517 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2bd3d6f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    baaea1a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    06d1812 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2017

  1. Restore check on upfront.

    lballabio committed Sep 13, 2017
    Configuration menu
    Copy the full SHA
    dffd673 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8126b0a View commit details
    Browse the repository at this point in the history