public EventSender(
     IConvertService convertService,
     CqrsContextNamesSettings contextNames)
 {
     _convertService = convertService;
     _contextNames   = contextNames;
 }
Пример #2
0
 public PositionsConsumer(OrdersCache ordersCache,
                          IRabbitMqNotifyService rabbitMqNotifyService,
                          IConvertService convertService,
                          IDateService dateService,
                          IAccountsCacheService accountsCacheService,
                          IAccountUpdateService accountUpdateService,
                          IIdentityGenerator identityGenerator,
                          ICqrsSender cqrsSender,
                          IEventChannel <OrderCancelledEventArgs> orderCancelledEventChannel,
                          IEventChannel <OrderChangedEventArgs> orderChangedEventChannel,
                          IEventChannel <OrderActivatedEventArgs> orderActivatedEventChannel,
                          IMatchingEngineRouter meRouter,
                          ILog log)
 {
     _ordersCache                = ordersCache;
     _rabbitMqNotifyService      = rabbitMqNotifyService;
     _convertService             = convertService;
     _dateService                = dateService;
     _accountsCacheService       = accountsCacheService;
     _accountUpdateService       = accountUpdateService;
     _identityGenerator          = identityGenerator;
     _cqrsSender                 = cqrsSender;
     _orderCancelledEventChannel = orderCancelledEventChannel;
     _orderChangedEventChannel   = orderChangedEventChannel;
     _orderActivatedEventChannel = orderActivatedEventChannel;
     _meRouter = meRouter;
     _log      = log;
 }
Пример #3
0
 public PositionEventsController(
     IPositionsHistoryRepository positionsHistoryRepository,
     IConvertService convertService)
 {
     _positionsHistoryRepository = positionsHistoryRepository;
     _convertService             = convertService;
 }
Пример #4
0
 public Application(
     MarketMakerService marketMakerService,
     ILog logger,
     MarginTradingSettings marginSettings,
     IMaintenanceModeService maintenanceModeService,
     IRabbitMqService rabbitMqService,
     MatchingEngineRoutesManager matchingEngineRoutesManager,
     IMigrationService migrationService,
     IConvertService convertService,
     IFxRateCacheService fxRateCacheService,
     IExternalOrderbookService externalOrderbookService,
     BrokerSettingsChangedHandler brokerSettingsChangedHandler)
 {
     _marketMakerService           = marketMakerService;
     _logger                       = logger;
     _marginSettings               = marginSettings;
     _maintenanceModeService       = maintenanceModeService;
     _rabbitMqService              = rabbitMqService;
     _matchingEngineRoutesManager  = matchingEngineRoutesManager;
     _migrationService             = migrationService;
     _convertService               = convertService;
     _fxRateCacheService           = fxRateCacheService;
     _externalOrderbookService     = externalOrderbookService;
     _brokerSettingsChangedHandler = brokerSettingsChangedHandler;
 }
Пример #5
0
 public ProcessLog(string filePath, IConvertService <LogLine> convertService, ILogger logger, IProcessService processService)
 {
     _filePath       = filePath;
     _convertService = convertService;
     _logger         = logger;
     _processService = processService;
 }
Пример #6
0
 public OptionService()
 {
     dataService      = new DataService();
     optionCache      = new Dictionary <string, StringHolder>();
     existOptionCache = new List <string>();
     convertService   = new ConvertService();
 }
Пример #7
0
 public TradingConditionsController(
     ITradingConditionsService tradingConditionsService,
     IConvertService convertService)
 {
     _tradingConditionsService = tradingConditionsService;
     _convertService           = convertService;
 }
Пример #8
0
 public TradesController(
     ITradesRepository tradesRepository,
     IConvertService convertService)
 {
     _tradesRepository = tradesRepository;
     _convertService   = convertService;
 }
Пример #9
0
 public ExtPriceSettingsController(IExtPricesSettingsService extPricesSettingsService,
                                   IConvertService convertService, IExtPricesStatusService extPricesStatusService)
 {
     _extPricesSettingsService = extPricesSettingsService;
     _convertService           = convertService;
     _extPricesStatusService   = extPricesStatusService;
 }
Пример #10
0
 public AssetPairsRepository(ILog log,
                             IConvertService convertService,
                             IReloadingManager <string> connectionStringManager)
     : base(log, convertService, connectionStringManager, "AssetPairs")
 {
     _convertService = convertService;
 }
Пример #11
0
 public AccountManager(
     AccountsCacheService accountsCacheService,
     MarginTradingSettings marginSettings,
     IRabbitMqNotifyService rabbitMqNotifyService,
     ILog log,
     OrdersCache ordersCache,
     ITradingEngine tradingEngine,
     IAccountsApi accountsApi,
     IAccountBalanceHistoryApi accountBalanceHistoryApi,
     IConvertService convertService,
     IDateService dateService,
     ISystemClock systemClock,
     IAccountMarginFreezingRepository accountMarginFreezingRepository,
     IAccountMarginUnconfirmedRepository accountMarginUnconfirmedRepository)
     : base(nameof(AccountManager), 60000, log)
 {
     _accountsCacheService  = accountsCacheService;
     _marginSettings        = marginSettings;
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _log                                = log;
     _ordersCache                        = ordersCache;
     _tradingEngine                      = tradingEngine;
     _accountsApi                        = accountsApi;
     _accountBalanceHistoryApi           = accountBalanceHistoryApi;
     _convertService                     = convertService;
     _dateService                        = dateService;
     _systemClock                        = systemClock;
     _accountMarginFreezingRepository    = accountMarginFreezingRepository;
     _accountMarginUnconfirmedRepository = accountMarginUnconfirmedRepository;
 }
 public MarketsController(
     IMarketsService marketsService,
     IConvertService convertService)
 {
     _marketsService = marketsService;
     _convertService = convertService;
 }
Пример #13
0
 public OrderSearchCriteria(IConvertService convertService)
 {
     this.convertService = convertService;
     Clear();
     CopyValueToOld();
     InitProperties();
 }
 public AssetPairsController(
     IAssetPairService assetPairsService,
     IConvertService convertService)
 {
     _assetPairsService = assetPairsService;
     _convertService    = convertService;
 }
Пример #15
0
 public LightweightExternalOrderbookService(
     IEventChannel <BestPriceChangeEventArgs> bestPriceChangeEventChannel,
     IOrderBookProviderApi orderBookProviderApi,
     IDateService dateService,
     IConvertService convertService,
     IScheduleSettingsCacheService scheduleSettingsCache,
     IAssetPairDayOffService assetPairDayOffService,
     IAssetPairsCache assetPairsCache,
     ICqrsSender cqrsSender,
     IIdentityGenerator identityGenerator,
     ILog log,
     MarginTradingSettings marginTradingSettings)
 {
     _bestPriceChangeEventChannel = bestPriceChangeEventChannel;
     _orderBookProviderApi        = orderBookProviderApi;
     _dateService            = dateService;
     _convertService         = convertService;
     _scheduleSettingsCache  = scheduleSettingsCache;
     _assetPairDayOffService = assetPairDayOffService;
     _assetPairsCache        = assetPairsCache;
     _cqrsSender             = cqrsSender;
     _identityGenerator      = identityGenerator;
     _log = log;
     _defaultExternalExchangeId = string.IsNullOrEmpty(marginTradingSettings.DefaultExternalExchangeId)
         ? "Default"
         : marginTradingSettings.DefaultExternalExchangeId;
     _orderbookValidation = marginTradingSettings.OrderbookValidation;
 }
Пример #16
0
 public TradingInstrumentsController(
     ITradingInstrumentsService tradingInstrumentsService,
     IConvertService convertService)
 {
     _tradingInstrumentsService = tradingInstrumentsService;
     _convertService            = convertService;
 }
Пример #17
0
 public ExternalOrderbookService(
     IEventChannel <BestPriceChangeEventArgs> bestPriceChangeEventChannel,
     IOrderBookProviderApi orderBookProviderApi,
     IDateService dateService,
     IConvertService convertService,
     IAssetPairDayOffService assetPairDayOffService,
     IScheduleSettingsCacheService scheduleSettingsCache,
     IAssetPairsCache assetPairsCache,
     ICqrsSender cqrsSender,
     IIdentityGenerator identityGenerator,
     ILog log,
     MarginTradingSettings marginTradingSettings)
 {
     _bestPriceChangeEventChannel = bestPriceChangeEventChannel;
     _orderBookProviderApi        = orderBookProviderApi;
     _dateService            = dateService;
     _convertService         = convertService;
     _assetPairDayOffService = assetPairDayOffService;
     _scheduleSettingsCache  = scheduleSettingsCache;
     _assetPairsCache        = assetPairsCache;
     _cqrsSender             = cqrsSender;
     _identityGenerator      = identityGenerator;
     _log = log;
     _marginTradingSettings = marginTradingSettings;
 }
Пример #18
0
 public static IAssetRepository CreateAssetSettingsRepository(IReloadingManager <string> connString,
                                                              ILog log, IConvertService convertService)
 {
     return(new AssetRepository(
                AzureTableStorage <AssetRepository.AssetEntity> .Create(connString,
                                                                        "Asset", log), convertService));
 }
Пример #19
0
 public SettingsChangesAuditRepository(IReloadingManager <MarginTradingMarketMakerSettings> settings, ILog log,
                                       IConvertService convertService, IAzureTableStorageFactoryService azureTableStorageFactoryService)
 {
     _convertService = convertService;
     _tableStorage   = azureTableStorageFactoryService.Create <SettingsChangesAuditEntity>(
         settings.Nested(s => s.Db.ConnectionString), "MarketMakerChangesAuditLog", log);
 }
Пример #20
0
 public Application(
     IRabbitMqNotifyService rabbitMqNotifyService,
     IConsole consoleWriter,
     MarketMakerService marketMakerService,
     ILog logger,
     MarginSettings marginSettings,
     IMaintenanceModeService maintenanceModeService,
     IRabbitMqService rabbitMqService,
     MatchingEngineRoutesManager matchingEngineRoutesManager,
     IMigrationService migrationService,
     IConvertService convertService,
     ExternalOrderBooksList externalOrderBooksList)
 {
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _consoleWriter         = consoleWriter;
     _marketMakerService    = marketMakerService;
     _logger                      = logger;
     _marginSettings              = marginSettings;
     _maintenanceModeService      = maintenanceModeService;
     _rabbitMqService             = rabbitMqService;
     _matchingEngineRoutesManager = matchingEngineRoutesManager;
     _migrationService            = migrationService;
     _convertService              = convertService;
     _externalOrderBooksList      = externalOrderBooksList;
 }
Пример #21
0
 public CurrencyController(ICurrencyService currencyService,
                           ICurrencyIdentifierService currencyIdentifierService, IConvertService convertService)
 {
     this.currencyService           = currencyService;
     this.currencyIdentifierService = currencyIdentifierService;
     this.convertService            = convertService;
 }
Пример #22
0
 public RateSettingsController(
     IRateSettingsService rateSettingsService,
     IConvertService convertService)
 {
     _rateSettingsService = rateSettingsService;
     _convertService      = convertService;
 }
Пример #23
0
        public TradingReportService(
            IEmailService emailService,
            IConvertService convertService,
            ISystemClock systemClock,
            ILog log,
            NotificationsSettings monthlyNotificationsSettings, //injected as named parameter
            NotificationsSettings dailyNotificationsSettings,   //injected as named parameter

            IClientAccountClient clientAccountClient,

            Backend.Contracts.IAccountsApi accountsApi,
            Backend.Contracts.IAccountHistoryApi accountHistoryApi,
            Backend.Contracts.ITradeMonitoringReadingApi tradeMonitoringReadingApi,
            Backend.Contracts.IAssetPairsReadingApi assetPairsReadingApi,

            IOvernightSwapHistoryRepository overnightSwapHistoryRepository)
        {
            _emailService   = emailService;
            _convertService = convertService;
            _systemClock    = systemClock;
            _log            = log;
            _monthlyNotificationsSettings = monthlyNotificationsSettings;
            _dailyNotificationsSettings   = dailyNotificationsSettings;

            _clientAccountClient = clientAccountClient;

            _accountsApi               = accountsApi;
            _accountHistoryApi         = accountHistoryApi;
            _tradeMonitoringReadingApi = tradeMonitoringReadingApi;
            _assetPairsReadingApi      = assetPairsReadingApi;

            _overnightSwapHistoryRepository = overnightSwapHistoryRepository;
        }
Пример #24
0
 public AssetPairsInfoService(ISystem system, IAssetsService assetsService, IConvertService convertService)
 {
     _system         = system;
     _assetsService  = assetsService;
     _convertService = convertService;
     _assetPairs     = GetAssetPairsCache();
 }
Пример #25
0
 public FeetToMeterViewModel(IConvertService converter, SharedState sharedState)
 {
     _converter   = converter;
     _feet        = sharedState.Feet;
     _meter       = sharedState.Meter;
     _sharedState = sharedState;
 }
Пример #26
0
 public ExtPricesStatusService(IPrimaryExchangeService primaryExchangeService,
                               IBestPricesService bestPricesService, IConvertService convertService)
 {
     _primaryExchangeService = primaryExchangeService;
     _bestPricesService      = bestPricesService;
     _convertService         = convertService;
 }
Пример #27
0
 public CatalogueController(IDataService dataService, ISocialService socialService, IMailService mailService, IConvertService convertService, AuthorizationRoot authorizationRoot)
     : base(dataService, authorizationRoot)
 {
     _socialService = socialService;
     _mailService = mailService;
     _convertService = convertService;
 }
Пример #28
0
 public CatalogueController(IDataService dataService, ISocialService socialService, IMailService mailService, IConvertService convertService, AuthorizationRoot authorizationRoot)
     : base(dataService, authorizationRoot)
 {
     _socialService  = socialService;
     _mailService    = mailService;
     _convertService = convertService;
 }
Пример #29
0
 public NotificationService(IConvertService convertService,IUserDataRepository userDataRepository)
 {
     Current = ApplicationData.Current.LocalSettings;
     _convertService = convertService;
     _userDataRepository = userDataRepository;
     _coreWindow = Window.Current.CoreWindow;
 }
Пример #30
0
        public AccountsRepository(IReloadingManager <AccountManagementSettings> settings, ILog log,
                                  IConvertService convertService, IAzureTableStorageFactoryService azureTableStorageFactoryService)
        {
            _convertService = convertService;

            _tableStorage = azureTableStorageFactoryService.Create <AccountEntity>(
                settings.Nested(s => s.Db.ConnectionString), "MarginTradingAccounts", log);
        }
 public AssetPairsInfoService(IMtDataReaderClient mtDataReaderClient, IConvertService convertService, ILog log,
                              IReloadingManager <MarginTradingMarketMakerSettings> settings)
     : base(nameof(AssetPairsInfoService), (int)TimeSpan.FromMinutes(3).TotalMilliseconds + 1, log)
 {
     _mtDataReaderClient = mtDataReaderClient;
     _convertService     = convertService;
     _settings           = settings;
 }
Пример #32
0
 public AssetPairsManager(IAssetPairsInitializableCache assetPairsCache,
                          IAssetPairsApi assetPairs,
                          IConvertService convertService)
 {
     _assetPairsCache = assetPairsCache;
     _assetPairs      = assetPairs;
     _convertService  = convertService;
 }
        public ConvertCommandsViewModel(IConvertService convertService)
        {
            if (convertService == null)
                throw new ArgumentNullException("convertService");

            this.convertService = convertService;
            convertCommand = new DelegateCommand(Convert);
        }
Пример #34
0
        public ConvertViewModel(IConvertService convertService)
        {
            if(convertService == null)
                throw new ArgumentNullException("convertService");

            this.convertService = convertService;
            convertCommand = new DelegateCommand<object[]>(x => convertService.ConvertCommand.Execute(x[1]));

            processedFiles = convertService.RetrieveProcessedFiles();
        }