Пример #1
0
 protected CurrencyPairInfo(CurrencyPairDto currencyPair, decimal sampleRate, bool enabled, string comment)
 {
     CurrencyPair = currencyPair;
     SampleRate   = sampleRate;
     Enabled      = enabled;
     Comment      = comment;
 }
Пример #2
0
        public Task RemoveCurrencyPair(CurrencyPairDto ccyPair)
        {
            var update = new CurrencyPairUpdateDto
            {
                CurrencyPair = ccyPair,
                UpdateType   = UpdateTypeDto.Removed
            };

            return(Publish(update));
        }
Пример #3
0
 public RandomWalkCurrencyPairInfo(CurrencyPairDto currencyPair, decimal sampleRate, bool enabled, string comment)
     : base(currencyPair, sampleRate, enabled, comment)
 {
     _halfSpread = Random.Next(2, 10);
 }
 public CyclicalCurrencyPairInfo(CurrencyPairDto currencyPair, decimal sampleRate, bool enabled, string comment, decimal min, decimal max)
     : base(currencyPair, sampleRate, enabled, comment)
 {
     _min = min;
     _max = max;
 }