I have been using Quantlib Addin, now I am looking for the equivalent function for QuantLib in Python:
=qlYieldTSDiscount(EffectiveDate;DiscountCurve)
Or any workaround? I need to discount my NPV to today.
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It only takes a minute to sign up.
Sign up to join this communityThat would be
discount_curve.discount(effective_date)
You'll find examples of various tasks in QuantLib-Python on Goutham Balaraman's blog or on the QuantLib Python Cookbook. Having a look at those might ease your learning curve.