Esempio n. 1
0
 public ExchangeExtPriceSettings(TimeSpan orderbookOutdatingThreshold, ExchangeDisabledSettings disabled,
                                 ExchangeHedgingSettings hedging, ExchangeOrderGenerationSettings orderGeneration)
 {
     OrderbookOutdatingThreshold = orderbookOutdatingThreshold;
     Disabled        = disabled ?? throw new ArgumentNullException(nameof(disabled));
     Hedging         = hedging ?? throw new ArgumentNullException(nameof(hedging));
     OrderGeneration = orderGeneration ?? throw new ArgumentNullException(nameof(orderGeneration));
 }
 public ExchangeExtPriceSettings(TimeSpan orderbookOutdatingThreshold, ExchangeDisabledSettings disabled,
                                 ExchangeHedgingSettings hedging, ExchangeOrderGenerationSettings orderGeneration)
 {
     OrderbookOutdatingThreshold = orderbookOutdatingThreshold;
     Disabled        = disabled;
     Hedging         = hedging;
     OrderGeneration = orderGeneration;
 }
Esempio n. 3
0
 public static ExchangeExtPriceSettings Change(ExchangeExtPriceSettings src, ExchangeDisabledSettings disabled)
 {
     return(new ExchangeExtPriceSettings(src.OrderbookOutdatingThreshold, disabled, src.Hedging, src.OrderGeneration));
 }