예제 #1
0
 public IAssetInstrument Clone() => new AsianSwap
 {
     TradeId            = TradeId,
     Notional           = Notional,
     Direction          = Direction,
     AverageStartDate   = AverageStartDate,
     AverageEndDate     = AverageEndDate,
     FixingDates        = (DateTime[])FixingDates.Clone(),
     FixingCalendar     = FixingCalendar,
     PaymentCalendar    = PaymentCalendar,
     SpotLag            = SpotLag,
     SpotLagRollType    = SpotLagRollType,
     PaymentLag         = PaymentLag,
     PaymentLagRollType = PaymentLagRollType,
     PaymentDate        = PaymentDate,
     PaymentCurrency    = PaymentCurrency,
     AssetFixingId      = AssetFixingId,
     AssetId            = AssetId,
     DiscountCurve      = DiscountCurve,
     FxConversionType   = FxConversionType,
     FxFixingDates      = FxFixingDates == null ? null : (DateTime[])FxFixingDates.Clone(),
     FxFixingId         = FxFixingId,
     Strike             = Strike,
     Counterparty       = Counterparty,
     HedgingSet         = HedgingSet,
     PortfolioName      = PortfolioName
 };
예제 #2
0
 public IAssetInstrument Clone()
 {
     return(new AsianLookbackOption
     {
         TradeId = TradeId,
         Notional = Notional,
         Direction = Direction,
         ObsStartDate = ObsStartDate,
         ObsEndDate = ObsStartDate,
         FixingDates = (DateTime[])FixingDates.Clone(),
         FixingCalendar = FixingCalendar,
         PaymentCalendar = PaymentCalendar,
         SpotLag = SpotLag,
         SpotLagRollType = SpotLagRollType,
         PaymentLag = PaymentLag,
         PaymentLagRollType = PaymentLagRollType,
         PaymentDate = PaymentDate,
         PaymentCurrency = PaymentCurrency,
         AssetFixingId = AssetFixingId,
         AssetId = AssetId,
         DiscountCurve = DiscountCurve,
         FxConversionType = FxConversionType,
         FxFixingDates = FxFixingDates == null ? null : (DateTime[])FxFixingDates.Clone(),
         FxFixingId = FxFixingId,
     });
 }