Cap valuation with the black formula in Java?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cap valuation with the black formula in Java?

Tanvi Tiwari
Hi everyone, quick question,

I have QuantLib for Java and would like to use it to value caps using the Black formula. Does anyone have any suggestions or know of a QuantLib class that can do this?

I found this code in C++ online, it seems to be the class I want. However, in the later versions of QuantLib and my Java wrapped QuantLib, I can't seem to find this class.
Any help would be greatly appreciated!

Thanks,
Tanvi
--
Tanvi Tiwari
[hidden email]
914-519-7138

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Cap valuation with the black formula in Java?

Luigi Ballabio
Hello Tanvi,
    if you're talking about the Java bindings created by SWIG, you can use the classes org.quantlib.Cap and org.quantlib.Floor with the engine org.quantlib.BlackCapFloorEngine.  An example of usage in C++ is in the test suite: see test-suite/capfloor.cpp in the C++ release.  It's probably not the easiest thing to convert it to Java, but you can at least see what classes are used and what inputs they need.

Luigi


On Wed, Jul 8, 2015 at 10:29 PM Tanvi Tiwari <[hidden email]> wrote:
Hi everyone, quick question,

I have QuantLib for Java and would like to use it to value caps using the Black formula. Does anyone have any suggestions or know of a QuantLib class that can do this?

I found this code in C++ online, it seems to be the class I want. However, in the later versions of QuantLib and my Java wrapped QuantLib, I can't seem to find this class.
Any help would be greatly appreciated!

Thanks,
Tanvi
--
Tanvi Tiwari
[hidden email]
914-519-7138
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
--

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users