Open jmelo11 opened 4 years ago
Realized that the testcase for the crosscurrency leg constructor, in the python folder, is also not working. I guess is something known. Is there any guidance on how could be fixed?
We have brushed up the test cases recently, for the upcoming release. They should be all working now.
Hi to all,
I'm trying to price a LIBOR6M/CLPCamara XCCY swap with coupon information. For this, I'm building each IborCoupon (for the libor leg) and OvernightIndexedCoupon/IborCoupon (for the CLPCamara leg) and then building two legs and passing them to de CrossCurrencySwap constructor in python (plus their currencies). Unfortunatelly, i constatly get "Wrong number of in currency leg NPVs returned by engine" when using CrossCcySwapEngine and trying different conbinations. Also I'm unable to retrieve coupon cashflows.
I'm puzzled by the problem since there are more pricing engines that might fit but documentation is scarce and the error does not provide enought information to deduct the problem.
Any help is highly appreciated.
Here is an script for reproducibility: