Esempio n. 1
0
        protected override void ApplySettings(HydraTaskSettings settings)
        {
            _settings = new AlfaSettings(settings);

            if (!settings.IsDefault)
            {
                return;
            }

            _settings.Login          = string.Empty;
            _settings.Password       = new SecureString();
            _settings.IsDownloadNews = true;
        }
Esempio n. 2
0
        protected override MarketDataConnector <AlfaTrader> CreateTrader(HydraTaskSettings settings)
        {
            _settings = new AlfaSettings(settings);

            if (settings.IsDefault)
            {
                _settings.Login          = string.Empty;
                _settings.Password       = new SecureString();
                _settings.IsDownloadNews = true;
            }

            return(new MarketDataConnector <AlfaTrader>(EntityRegistry.Securities, this, () => new AlfaTrader
            {
                Login = _settings.Login,
                Password = _settings.Password.To <string>(),
            }));
        }