Code Monkey home page Code Monkey logo

Comments (6)

boring-cyborg avatar boring-cyborg commented on June 23, 2024

Thanks for posting! It might take a while before we look at your issue, so don't worry if there seems to be no feedback. We'll get to it.

from quantlib.

pcaspers avatar pcaspers commented on June 23, 2024

Hi @zhtangsh, I don't think this feature is supported at the moment.

I also want to mention an alternative implementation of convertible bond instrument with arguably richer / more realistic set of features and more standard finite-difference pricing engine in ORE. The particular feature you mention is not yet supported in the pricing engine either although we already have it in the trade data model

https://github.com/OpenSourceRisk/Engine/blob/master/Docs/UserGuide/tradedata/convertiblebond.tex#L131

We might add the implementation of the feature in the engine in one of the upcoming releases. The instrument and pricing engine might also be migrated to QuantLib in the future.

from quantlib.

zhtangsh avatar zhtangsh commented on June 23, 2024

Hi @zhtangsh, I don't think this feature is supported at the moment.

I also want to mention an alternative implementation of convertible bond instrument with arguably richer / more realistic set of features and more standard finite-difference pricing engine in ORE. The particular feature you mention is not yet supported in the pricing engine either although we already have it in the trade data model

https://github.com/OpenSourceRisk/Engine/blob/master/Docs/UserGuide/tradedata/convertiblebond.tex#L131

We might add the implementation of the feature in the engine in one of the upcoming releases. The instrument and pricing engine might also be migrated to QuantLib in the future.

Hi @pcaspers , thank you for quick reply and confirmation of this feature. I'll look through the quoted link.

Can I ask for confirmation of another feature?

  • From 2rd to 4th year, any time price is above the trigger(1.2), then we do the soft call, where the call date is not pre determined.

I'm trying to parse a list of SoftCallability, which is constructed by all dates between 2rd and 4th year, to CallabilitySchedule object.

date_list = all_dates_between_2rd_and_4th_year() # some magic code to extract date from schedule
callability_schedule = ql.CallabilitySchedule()
call_price = 104
call_trigger = 1.2
for date in date_list:
    callability_price = ql.BondPrice(call_price,  ql.BondPrice.Clean)
    callability_schedule.append(ql.SoftCallability(callability_price, date, call_trigger))

Does it make sense?

from quantlib.

pcaspers avatar pcaspers commented on June 23, 2024

I have not worked with the convertible bond in QuantLib a lot, but my impression is that you have to set up each call date separately, i.e. for an American call (as it typically occurs in convertible bonds) you have to set up a call on each business day in the call period.

from quantlib.

github-actions avatar github-actions commented on June 23, 2024

This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

from quantlib.

github-actions avatar github-actions commented on June 23, 2024

This issue was automatically closed because it has been stalled for two weeks with no further activity.

from quantlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.