-
-
Notifications
You must be signed in to change notification settings - Fork 181
Description
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:
- Creating functions to generate schedules based on input parameters (start date, end date, frequency, etc.).
- Ensuring compatibility with date rolling conventions and day counting conventions.
- Adding unit tests to validate the correctness of the generated schedules.
- 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.