Rolling swap strategy
Primer on the RollingSwapStrategy class.
Introduction
The purpose of this primer is to show how to work with the building block RollingSwapStrategy
.
A notebook containing all the code used in this page can be accessed in the research environment: Example notebooks.
Environment
Setting up your environment takes three steps:
Import the relevant internal and external libraries
Configure the environment parameters
Initialise the environment
Learn more: setting up the environment.
Creating RollingSwapStrategy
objects
RollingSwapStrategy
objectsThe RollingSwapStrategy
object allows for automatic rolling of IMM Interest Rate Swaps.
An example of building a rolling IRS strategy is given below.
The RollingSwapStrategy
will create each individual swap throughout the life of the strategy. Each of which can be called and explored in more detail.
API Documentation
For more information on the RollingBondStrategy
class, see the API documentation.
Last updated