Skip to content

Some swap suggestions #177

@vlade21

Description

@vlade21

A few swap suggestions (I have implemented most of these locally, happy to contribute into a pull request):

  • notional schedule. Allows for swaps with rolling/amortizing notional. Can be backwards compatible, where notional passed into constructor is (float,list)
  • refactor SwapLeg classes into a SwapLeg as a common object, and subclasses Fixed and Floating. Apart from string representation, the major difference is how the coupon for a period is calculated. Clearer separating IMO allows for easier implementations of things like libor-in-arrears or compounding swaps.
  • expose some more protected attributes via properties, including exposing the legs from the swap class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions