예제 #1
0
 public OrderMetadata MergeWith(OrderMetadata metadata)
 {
     return(new OrderMetadata
     {
         TradingRules = metadata.TradingRules ?? TradingRules,
         SignalRule = metadata.SignalRule ?? SignalRule,
         Signals = metadata.Signals ?? Signals,
         BoughtRating = metadata.BoughtRating ?? BoughtRating,
         CurrentRating = metadata.CurrentRating ?? CurrentRating,
         BoughtGlobalRating = metadata.BoughtGlobalRating ?? BoughtGlobalRating,
         CurrentGlobalRating = metadata.CurrentGlobalRating ?? CurrentGlobalRating,
         LastBuyMargin = metadata.LastBuyMargin ?? LastBuyMargin,
         AdditionalDCALevels = metadata.AdditionalDCALevels ?? AdditionalDCALevels,
         AdditionalCosts = metadata.AdditionalCosts ?? AdditionalCosts,
         SwapPair = metadata.SwapPair ?? SwapPair
     });
 }
예제 #2
0
 public OrderMetadata MergeWith(OrderMetadata metadata)
 {
     return(new OrderMetadata
     {
         IsTransitional = metadata.IsTransitional ?? IsTransitional,
         OriginalPair = metadata.OriginalPair ?? OriginalPair,
         TradingRules = metadata.TradingRules ?? TradingRules,
         SignalRule = metadata.SignalRule ?? SignalRule,
         Signals = metadata.Signals ?? Signals,
         BoughtRating = metadata.BoughtRating ?? BoughtRating,
         CurrentRating = metadata.CurrentRating ?? CurrentRating,
         BoughtGlobalRating = metadata.BoughtGlobalRating ?? BoughtGlobalRating,
         CurrentGlobalRating = metadata.CurrentGlobalRating ?? CurrentGlobalRating,
         LastBuyMargin = metadata.LastBuyMargin ?? LastBuyMargin,
         AdditionalDCALevels = metadata.AdditionalDCALevels ?? AdditionalDCALevels,
         AdditionalCosts = metadata.AdditionalCosts ?? AdditionalCosts,
         FeesNonDeductible = metadata.FeesNonDeductible ?? FeesNonDeductible,
         SwapPair = metadata.SwapPair ?? SwapPair,
         Arbitrage = metadata.Arbitrage ?? Arbitrage,
         ArbitragePercentage = metadata.ArbitragePercentage ?? ArbitragePercentage
     });
 }
예제 #3
0
 public BuyOptions(string pair)
 {
     this.Pair     = pair;
     this.Metadata = new OrderMetadata();
 }
예제 #4
0
 public SwapOptions(string oldPair, string newPair, OrderMetadata newPairMetadata)
 {
     this.OldPair  = oldPair;
     this.NewPair  = newPair;
     this.Metadata = newPairMetadata ?? new OrderMetadata();
 }
예제 #5
0
 public ArbitrageOptions(string pair, Arbitrage arbitrage, OrderMetadata newPairMetadata)
 {
     this.Pair      = pair;
     this.Arbitrage = arbitrage;
     this.Metadata  = newPairMetadata ?? new OrderMetadata();
 }