Exemple #1
0
        public VolumeSpikesDetector(IMessageHub messageHub,
                                    IOptions <AppSettings> appSettings,
                                    ISymbolService symbolService,
                                    ILastTradesService lastTradesService,
                                    IVolumeRecordService volumeRecordService,
                                    ILogger <VolumeSpikesDetector> logger)
        {
            _logger              = logger;
            _appSettings         = appSettings;
            _symbolService       = symbolService;
            _lastTradesService   = lastTradesService;
            _volumeRecordService = volumeRecordService;

            LoadSymbols();

            messageHub.Subscribe <IList <StreamingMessage> >(HandleMessages);
        }
Exemple #2
0
 public WhoAmiController(IConfiguration configuration, IOptions <AppSettings> appSettings, IVolumeRecordService volumeRecordService)
 {
     Configuration        = configuration;
     _appSettings         = appSettings;
     _volumeRecordService = volumeRecordService;
 }