public EventSender( IConvertService convertService, CqrsContextNamesSettings contextNames) { _convertService = convertService; _contextNames = contextNames; }
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; }
public PositionEventsController( IPositionsHistoryRepository positionsHistoryRepository, IConvertService convertService) { _positionsHistoryRepository = positionsHistoryRepository; _convertService = convertService; }
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; }
public ProcessLog(string filePath, IConvertService <LogLine> convertService, ILogger logger, IProcessService processService) { _filePath = filePath; _convertService = convertService; _logger = logger; _processService = processService; }
public OptionService() { dataService = new DataService(); optionCache = new Dictionary <string, StringHolder>(); existOptionCache = new List <string>(); convertService = new ConvertService(); }
public TradingConditionsController( ITradingConditionsService tradingConditionsService, IConvertService convertService) { _tradingConditionsService = tradingConditionsService; _convertService = convertService; }
public TradesController( ITradesRepository tradesRepository, IConvertService convertService) { _tradesRepository = tradesRepository; _convertService = convertService; }
public ExtPriceSettingsController(IExtPricesSettingsService extPricesSettingsService, IConvertService convertService, IExtPricesStatusService extPricesStatusService) { _extPricesSettingsService = extPricesSettingsService; _convertService = convertService; _extPricesStatusService = extPricesStatusService; }
public AssetPairsRepository(ILog log, IConvertService convertService, IReloadingManager <string> connectionStringManager) : base(log, convertService, connectionStringManager, "AssetPairs") { _convertService = convertService; }
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; }
public OrderSearchCriteria(IConvertService convertService) { this.convertService = convertService; Clear(); CopyValueToOld(); InitProperties(); }
public AssetPairsController( IAssetPairService assetPairsService, IConvertService convertService) { _assetPairsService = assetPairsService; _convertService = convertService; }
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; }
public TradingInstrumentsController( ITradingInstrumentsService tradingInstrumentsService, IConvertService convertService) { _tradingInstrumentsService = tradingInstrumentsService; _convertService = convertService; }
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; }
public static IAssetRepository CreateAssetSettingsRepository(IReloadingManager <string> connString, ILog log, IConvertService convertService) { return(new AssetRepository( AzureTableStorage <AssetRepository.AssetEntity> .Create(connString, "Asset", log), convertService)); }
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); }
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; }
public CurrencyController(ICurrencyService currencyService, ICurrencyIdentifierService currencyIdentifierService, IConvertService convertService) { this.currencyService = currencyService; this.currencyIdentifierService = currencyIdentifierService; this.convertService = convertService; }
public RateSettingsController( IRateSettingsService rateSettingsService, IConvertService convertService) { _rateSettingsService = rateSettingsService; _convertService = convertService; }
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; }
public AssetPairsInfoService(ISystem system, IAssetsService assetsService, IConvertService convertService) { _system = system; _assetsService = assetsService; _convertService = convertService; _assetPairs = GetAssetPairsCache(); }
public FeetToMeterViewModel(IConvertService converter, SharedState sharedState) { _converter = converter; _feet = sharedState.Feet; _meter = sharedState.Meter; _sharedState = sharedState; }
public ExtPricesStatusService(IPrimaryExchangeService primaryExchangeService, IBestPricesService bestPricesService, IConvertService convertService) { _primaryExchangeService = primaryExchangeService; _bestPricesService = bestPricesService; _convertService = convertService; }
public CatalogueController(IDataService dataService, ISocialService socialService, IMailService mailService, IConvertService convertService, AuthorizationRoot authorizationRoot) : base(dataService, authorizationRoot) { _socialService = socialService; _mailService = mailService; _convertService = convertService; }
public NotificationService(IConvertService convertService,IUserDataRepository userDataRepository) { Current = ApplicationData.Current.LocalSettings; _convertService = convertService; _userDataRepository = userDataRepository; _coreWindow = Window.Current.CoreWindow; }
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; }
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); }
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(); }