Mode:
Duration:
1
2
3
4
5
6
import QuantLib as ql
calendar = ql.TARGET()
date = ql.Date(1, 12, 2025)
ql.Settings.instance().evaluationDate = date
rate = 0.05
yield_curve = ql.FlatForward(date, rate, ql.Actual360())Coding works best on desktop or with an external keyboard.