Re: pricing Mark-To-Market Cross-Currency Swap

Posted by Peter Caspers-4 on
URL: http://quantlib.414.s1.nabble.com/pricing-Mark-To-Market-Cross-Currency-Swap-tp17275p17278.html

Hi Dragomir,

you have to create the schedules of your floating legs (which
basically represent the series of their accrual periods), with
effective Date = start of first accrual period (forward starting in
your case), termination date = end of last accrual period. Then pass
them together with the other parameters to the NonStandardSwap
constructor. Note that you have to precalculate the deterministic
notional schedule of the USD leg before, this is not handled in the
NonstandardSwap either. The NonStandardSwaps accepts a vector of
notionals corresponding to the accrual periods. You can set up the
fixed schedule as equal to the floating schedule (whatever, it is not
used) and with notionals zero.

Then set up two DiscountingSwapEngines, assign them to your non
standard swaps and extract the NPV from each one (which is in USD
resp. JPY for the respective legs, because the instrument is a single
currency instrument actually as well as the pricing engine).

Regards
Peter

On 25 January 2016 at 09:44, Dragomir Nedeltchev
<[hidden email]> wrote:

> Hi Peter,
>
> Thank you for the prompt feedback. This seems to meet my needs.
>
> I deal with a 1Y5Y swap. How can I tackle this feature in a NonStandardSwap?
>
> I see there is VanillaSwap oneYearForward5YeraSwap, but the Vanilla Swap class doesn't treat the floating notional reset feature of the MTM swap.
>
> Thank you in advance.
>
> Kind regards,
>
> Dragomir
>
> -----Original Message-----
> From: Peter Caspers [mailto:[hidden email]]
> Sent: Sunday, January 24, 2016 2:08 PM
> To: Dragomir Nedeltchev
> Cc: [hidden email]
> Subject: Re: [Quantlib-users] pricing Mark-To-Market Cross-Currency Swap
>
> Hi Dragomir,
>
> there is no ready-to-use class in QuantLib for this I think.
>
> But as you say, you can repesent the mtm swap as two single legs with a customized notional schedule for one of them. Beneath the bond classes you can also use the NonStandardSwap I guess (setting the fixed leg's nominals to zero and only use the floating leg for each mtm swap leg) and do the valuation of the single legs with two DiscountingSwapEngine's attaching appropriate discount curves for USD and JPY.
>
> Kind Regards
> Peter
>
> On 22 January 2016 at 08:47, Dragomir Nedeltchev <[hidden email]> wrote:
>> Hi All,
>>
>>
>>
>> I am pricing a Mark-To-Market JPYUSD Swap.
>>
>>
>>
>> Advise please which swap class of QuantLib serves this purpose.
>>
>>
>>
>> Can I present the swap as a JPY floating bond and a USD amortizing
>> floating rate bond (notionals vector to be calculated by the FX rate
>> at the reset dates). Thanks
>>
>>
>>
>> Dragomir Nedeltchev, Custom House
>>
>>
>>
>>
>>
>> TMF Custom House Fund Services (Ireland) Limited Registered Office:
>> 3rd Floor, Kilmore House, Park Lane, Spencer Dock, Dublin 1, Ireland;
>> Tel: (353)
>> 1 878 0807; Fax: (353) 1 878 0827 Website: www.customhousegroup.com
>> Directors: Mark Hedderman; Kevin Walsh; Barbara Cotter Registered in
>> Ireland No. 147511 TMF Custom House Fund Services (Ireland) Limited is
>> authorised by The Central Bank of Ireland under Section 10 of the
>> Investment Intermediaries Act, 1995
>> **********************************************************************
>> ****************************************
>> This e-mail and any files transmitted with it are intended to be
>> confidential and intended solely for the use of the individual or
>> entity to whom they are addressed. If you have received this e-mail in
>> error please notify the sender. Internet mail is a communication
>> channel, which is not controlled by Custom House, who cannot and do
>> not guarantee that: any e-mail sent from Custom House will be
>> delivered within a reasonable timeframe, or at all; comes from the
>> purported sender; has not been intercepted by a third party; or that
>> the contents of the e-mail are unaltered from the time of
>> transmission. The recipient of this e-mail message should take note
>> that this document does not constitute a legally binding contractual
>> obligation of any sort unless there is a specific statement within the
>> above message confirming that the message contains such a legally binding contractual obligation.
>> **********************************************************************
>> ********************************************
>>
>> ----------------------------------------------------------------------
>> --------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>> _______________________________________________
>> QuantLib-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>
> TMF Custom House Fund Services (Ireland) Limited Registered Office: 3rd Floor, Kilmore House, Park Lane, Spencer Dock, Dublin 1, Ireland; Tel: (353) 1 878 0807; Fax: (353) 1 878 0827 Website: www.customhousegroup.com Directors: Mark Hedderman; Kevin Walsh; Barbara Cotter Registered in Ireland No. 147511 TMF Custom House Fund Services (Ireland) Limited is authorised by The Central Bank of Ireland under Section 10 of the Investment Intermediaries Act, 1995 ************************************************************************************************************** This e-mail and any files transmitted with it are intended to be confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Internet mail is a communication channel, which is not controlled by Custom House, who cannot and do not guarantee that: any e-mail sent from Custom House will be delivered within a reasonable timeframe, or at all; comes from the purported sender; has not been intercepted by a third party; or that the contents of the e-mail are unaltered from the time of transmission. The recipient of this e-mail message should take note that this document does not constitute a legally binding contractual obligation of any sort unless there is a specific statement within the above message confirming that the message contains such a legally binding contractual obligation. ******************************************************************************************************************

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users