FinanceToolkit v1.9.0 #136
JerBouma
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The release of the Finance Toolkit v1.9.0 includes an entirely new Fixed Income module. This module contains a wide variety of fixed income related calculations such as the Effective Yield, the Macaulay Duration, the Modified Duration Convexity, the Yield to Maturity and models such as Black and Bachelier to valuate derivative instruments such as Swaptions.
For example, it is possible to perform Bond Calculations with
collect_bond_statistics
which can valuate a variety of bonds based on used input:This can be done with the following code:
Not only Bonds can be valuated, the module can also be used to valudate derivatives such as Swaptions utilizing the Black and Bachelier models. For example, the Black model can be used to valuate a Swaption:
This returns a large DataFrame that shows the present value of such a swaption contract at a variety of strike rates and maturities.
It is also possible to access Government Bond rates from 30+ countries. For example, using
get_government_bond_yields(short_term=False, period='monthly')
:Next to that, the well-known Corporate Bond indices from ICE BofA are also available. For example this shows the Corporate Bond Yield and Option-Adjust Spread (OAS) for a variety of maturities. You can access this data with
get_ice_bofa_effective_yield
andget_ice_bofa_option_adjusted_spread
.Central Bank Rates such as the EURIBOR and SOFR rates can be accessed that serve as the reference (or benchmark) rate of a large variety of derivative contracts such as swaps and futures. For example:
Which returns:
Next to that, I've added in the European Central Banks which include:
These can be shown by using:
Which returns (when plotted):
I've also added in the Federal Funds rates which include:
These can be shown by using (and defining the rate):
Which returns (when plotted):
Beta Was this translation helpful? Give feedback.
All reactions