R Package API Use: BcurveStrip Function Bloomberg Excel Add-in
The Bloomberg Excel Add-in is a powerful tool that allows users to access financial data and analytics directly within Microsoft Excel. One of the key functions of the Bloomberg Excel Add-in is the BCURVESTRIP function, which can be used to create a curve object using a series of spot rates with different tenors.
Creating a Curve Object with BCURVESTRIP
The BCURVESTRIP function takes the following syntax:
BCURVESTRIP(spot_rates, curve_id, tenors, day_count_convention, interpolation, extrapolation)
Where:
spot_rates: A range of spot rates with different tenorscurve_id: A unique identifier for the curvetenors: A range of tenors corresponding to the spot ratesday_count_convention: The day count convention to use for the curveinterpolation: The interpolation method to use for the curveextrapolation: The extrapolation method to use for the curve
Here is an example of how to use the BCURVESTRIP function:
=BCURVESTRIP(A1:A5, "MyCurve", B1:B5, "ACT/ACT", "Linear", "Constant")
In this example, the spot rates are stored in cells A1 through A5, and the corresponding tenors are stored in cells B1 through B5. The curve is identified as "MyCurve", and the day count convention is set to "ACT/ACT" (actual/actual). The interpolation method is set to "Linear", and the extrapolation method is set to "Constant".
Computing Forward Rates
Once a curve object has been created using the BCURVESTRIP function, it can be used to compute forward rates. The forward rate between two tenors can be computed using the FWARD function.
The FWARD function takes the following syntax:
FWARD(curve_id, tenor1, tenor2, day_count_convention)
Where:
curve_id: The unique identifier of the curvetenor1: The tenor of the first forward ratetenor2: The tenor of the second forward rateday_count_convention: The day count convention to use for the forward rate
Here is an example of how to use the FWARD function:
=FWARD("MyCurve", "1Y", "2Y", "ACT/ACT")
In this example, the forward rate between a 1-year tenor and a 2-year tenor is computed using the "MyCurve" curve object and the "ACT/ACT" day count convention.
The BCURVESTRIP function in the Bloomberg Excel Add-in is a powerful tool for creating curve objects using spot rates with different tenors. Once a curve object has been created, it can be used to compute forward rates using the FWARD function. By using these functions, users can easily access and analyze financial data within Microsoft Excel.