Export all data required for pricing to a file

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

Export all data required for pricing to a file

airbag
Hello

I'm wondering if there is an out of the box solution to export all the data
required to price a model into a file (csv, xml etc..).

I'm interested in it as a debugging facility to see whether the data I populated
into the C++ data structures makes sense.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Export all data required for pricing to a file

Eric Ehlers-2
Hi,

On Fri, 2009-11-13 at 21:20 +0000, Alex Farberov wrote:

> I'm wondering if there is an out of the box solution to export all the data
> required to price a model into a file (csv, xml etc..).

Not in QuantLib, but in QuantLibAddin:

http://quantlib.org/quantlibaddin/serialization.html

The document talks about Excel and C++, but you aren't required to use
Excel for that, you could use only C++ for both save and load.  The
tutorial includes example XML files.

Regards,
Eric


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Export all data required for pricing to a file

airbag
Eric Ehlers <eric.ehlers <at> nazcatech.be> writes:

>
> Hi,
>
> On Fri, 2009-11-13 at 21:20 +0000, Alex Farberov wrote:
>
> > I'm wondering if there is an out of the box solution to export all the data
> > required to price a model into a file (csv, xml etc..).
>
> Not in QuantLib, but in QuantLibAddin:
>
> http://quantlib.org/quantlibaddin/serialization.html
>
> The document talks about Excel and C++, but you aren't required to use
> Excel for that, you could use only C++ for both save and load.  The
> tutorial includes example XML files.
>
> Regards,
> Eric
>
>


Thanks Eric

Great, QuantLibAddin can indeed serialize ObjectHandler contents to an XML file.

Is it possible to populate the trade and market data into ObjectHandler from
C++, price it, serialize it, and then load the serialized file into excel and
re-price using excel bindings to quantlib/objecthandler provided by QuantLibXL?

There is not much documentation in QuantLibXL project and I can't find any
mention of how to load serialized XML files.

Thanks in advance
Alex


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Export all data required for pricing to a file

Eric Ehlers-2
Hi Alex,

> Is it possible to populate the trade and market data into ObjectHandler from
> C++, price it, serialize it, and then load the serialized file into excel and
> re-price using excel bindings to quantlib/objecthandler provided by QuantLibXL?

The link I sent you before explains exactly that.

Regards,
Eric


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users