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;
 }
 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;
        }
 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;
 }
示例#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();
        }