Rolling bond strategy
Primer on the RollingBondStrategy class.
Introduction
The purpose of this primer is to show how the building block RollingBondStrategy
works.
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 RollingBondStrategy
objects
RollingBondStrategy
objectsThe RollingBondStrategy continually rolls on-the-run or off-the-run bonds for different tenors and issuers.
Here we define a helper function to generate the rolling bond strategies we will consider.
Examples of on-the-run and off-the-run rolling strategies is given below, together with one roll schedule.
On-the-run (OTR) schedules
An alternative way of creating on-the-run RollingBondStrategy
strategies, is to use the pre-built OTR schedules which can be access via the otr_series
function as per below.
API Documentation
For more information on the RollingBondStrategy
class, see the API documentation.
Last updated