Esempio n. 1
0
 public IAssetInstrument SetStrike(double strike) => new AsianBasisSwap
 {
     TradeId     = TradeId,
     PaySwaplets = PaySwaplets.Select(x => (AsianSwap)x.SetStrike(strike)).ToArray(),
     RecSwaplets = RecSwaplets.Select(x => (AsianSwap)x.Clone()).ToArray(),
 };
Esempio n. 2
0
 public Dictionary <string, List <DateTime> > PastFixingDates(DateTime valDate) =>
 PaySwaplets.SelectMany(x => x.PastFixingDates(valDate))
 .Concat(RecSwaplets.SelectMany(x => x.PastFixingDates(valDate)))
 .Distinct()
 .ToDictionary(x => x.Key, x => x.Value);
Esempio n. 3
0
 public string[] IrCurves(IAssetFxModel model) => PaySwaplets.SelectMany(x => x.IrCurves(model)).Concat(RecSwaplets.SelectMany(x => x.IrCurves(model))).Distinct().ToArray();