Skip to content

Implement Cashflow Schedule Generation in Time Module for Pricing Models and Instruments #226

@joaquinbejar

Description

@joaquinbejar

Currently, RustQuant lacks a robust mechanism to generate cashflow schedules that can be utilized in conjunction with pricing models and financial instruments. This functionality is essential for accurately pricing a wide range of financial products, such as bonds, options, and swaps. The absence of this feature makes it challenging to perform comprehensive pricing and risk management.

I propose implementing a schedule generation feature within the time module. This feature will enable the creation of cashflow schedules based on specified parameters such as start date, end date, frequency, and conventions (day counting and date rolling). The generated schedules will integrate seamlessly with existing models and instruments, facilitating accurate pricing and valuation.

Describe alternatives:

  • Manually inputting cashflow dates for each instrument, which is time-consuming and error-prone.
  • Using external libraries for schedule generation, which might not align perfectly with RustQuant's architecture and conventions.

Additional context:

The implementation will involve:

  1. Creating functions to generate schedules based on input parameters (start date, end date, frequency, etc.).
  2. Ensuring compatibility with date rolling conventions and day counting conventions.
  3. Adding unit tests to validate the correctness of the generated schedules.
  4. Document the new functionality and provide examples of usage.

This enhancement will significantly improve RustQuant's ability to handle a variety of financial instruments and streamline the pricing and risk assessment process.

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