2

I am new to quantlib and I want use it to to price a touch option (single/double).

I searched on google for example code but I could not find anything. Hence, I am not sure if quantlib supports touch option.

Could you please give me some pointers?

Sithered
  • 808
  • 1
  • 10
  • 20
Sanjit
  • 123
  • 3

1 Answers1

3

Touch option is simply a barrier option in QuantLib. You could create one like a down-in barrier type. You can also set the payoff to a binary payoff. The payoff is represented by the StrikePayOff class. A comprehensible example is available on github here.

SRKX
  • 11,126
  • 4
  • 42
  • 83
SmallChess
  • 2,265
  • 2
  • 19
  • 30