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; }
public static ExchangeExtPriceSettings Change(ExchangeExtPriceSettings src, ExchangeDisabledSettings disabled) { return(new ExchangeExtPriceSettings(src.OrderbookOutdatingThreshold, disabled, src.Hedging, src.OrderGeneration)); }