Beispiel #1
0
 public AccountUpdateService(
     IFplService fplService,
     ITradingConditionsCacheService tradingConditionsCache,
     IAccountsCacheService accountsCacheService,
     OrdersCache ordersCache,
     IAssetsCache assetsCache,
     IAccountMarginFreezingRepository accountMarginFreezingRepository,
     IAccountMarginUnconfirmedRepository accountMarginUnconfirmedRepository,
     ILog log,
     MarginTradingSettings marginTradingSettings,
     ICfdCalculatorService cfdCalculatorService,
     IQuoteCacheService quoteCacheService)
 {
     _fplService                         = fplService;
     _tradingConditionsCache             = tradingConditionsCache;
     _accountsCacheService               = accountsCacheService;
     _ordersCache                        = ordersCache;
     _assetsCache                        = assetsCache;
     _accountMarginFreezingRepository    = accountMarginFreezingRepository;
     _accountMarginUnconfirmedRepository = accountMarginUnconfirmedRepository;
     _log = log;
     _marginTradingSettings = marginTradingSettings;
     _cfdCalculatorService  = cfdCalculatorService;
     _quoteCacheService     = quoteCacheService;
 }
Beispiel #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,
                          IAssetsCache assetsCache)
 {
     _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;
     _assetsCache = assetsCache;
 }
Beispiel #3
0
 public CommissionService(
     ITradingInstrumentsCacheService accountAssetsCacheService,
     ICfdCalculatorService cfdCalculatorService,
     IAssetsCache assetsCache)
 {
     _accountAssetsCacheService = accountAssetsCacheService;
     _cfdCalculatorService      = cfdCalculatorService;
     _assetsCache = assetsCache;
 }
Beispiel #4
0
 public CommissionService(
     IAccountAssetsCacheService accountAssetsCacheService,
     ICfdCalculatorService calculator,
     IAssetsCache assetsCache)
 {
     _accountAssetsCacheService = accountAssetsCacheService;
     _calculator  = calculator;
     _assetsCache = assetsCache;
 }
Beispiel #5
0
 public NotificationSenderBase(
     IAppNotifications appNotifications,
     IClientAccountService clientAccountService,
     IAssetsCache assetsCache)
 {
     _appNotifications     = appNotifications;
     _clientAccountService = clientAccountService;
     _assetsCache          = assetsCache;
 }
 public Processor(IJanitor janitor, IAspectExtractor aspectExtractor, IAssetsCache cache, IInjectionCollector injectionCollector, IAspectWeaver assectWeaver, IEnumerable <IEffectWeaver> effectWeavers, ILogger logger)
 {
     _aspectExtractor    = aspectExtractor;
     _injectionCollector = injectionCollector;
     _cache         = cache;
     _assectWeaver  = assectWeaver;
     _effectWeavers = effectWeavers;
     _janitor       = janitor;
     _log           = logger;
 }
Beispiel #7
0
 public AccountUpdateService(
     IFplService fplService,
     IAccountGroupCacheService accountGroupCacheService,
     IAccountsCacheService accountsCacheService,
     OrdersCache ordersCache,
     IAssetsCache assetsCache)
 {
     _fplService = fplService;
     _accountGroupCacheService = accountGroupCacheService;
     _accountsCacheService     = accountsCacheService;
     _ordersCache = ordersCache;
     _assetsCache = assetsCache;
 }
Beispiel #8
0
 public FplService(
     ICfdCalculatorService cfdCalculatorService,
     IAssetPairsCache assetPairsCache,
     IAccountsCacheService accountsCacheService,
     IAccountAssetsCacheService accountAssetsCacheService,
     IAssetsCache assetsCache)
 {
     _cfdCalculatorService      = cfdCalculatorService;
     _assetPairsCache           = assetPairsCache;
     _accountsCacheService      = accountsCacheService;
     _accountAssetsCacheService = accountAssetsCacheService;
     _assetsCache = assetsCache;
 }
Beispiel #9
0
 public FplService(
     ICfdCalculatorService cfdCalculatorService,
     IAssetPairsCache assetPairsCache,
     IAccountsCacheService accountsCacheService,
     ITradingInstrumentsCacheService tradingInstrumentsCache,
     IAssetsCache assetsCache,
     MarginTradingSettings marginTradingSettings)
 {
     _cfdCalculatorService    = cfdCalculatorService;
     _accountsCacheService    = accountsCacheService;
     _tradingInstrumentsCache = tradingInstrumentsCache;
     _assetsCache             = assetsCache;
     _marginTradingSettings   = marginTradingSettings;
 }
Beispiel #10
0
 public AccountUpdateService(
     ICfdCalculatorService cfdCalculatorService,
     IAccountGroupCacheService accountGroupCacheService,
     IAccountAssetsCacheService accountAssetsCacheService,
     IAccountsCacheService accountsCacheService,
     OrdersCache ordersCache,
     IAssetsCache assetsCache)
 {
     _cfdCalculatorService      = cfdCalculatorService;
     _accountGroupCacheService  = accountGroupCacheService;
     _accountAssetsCacheService = accountAssetsCacheService;
     _accountsCacheService      = accountsCacheService;
     _ordersCache = ordersCache;
     _assetsCache = assetsCache;
 }
Beispiel #11
0
 public MarginCallConsumer(IThreadSwitcher threadSwitcher,
                           IAppNotifications appNotifications,
                           IEmailService emailService,
                           IClientAccountService clientAccountService,
                           IMarginTradingOperationsLogService operationsLogService,
                           IRabbitMqNotifyService rabbitMqNotifyService,
                           IDateService dateService,
                           IAssetsCache assetsCache)
     : base(appNotifications, clientAccountService, assetsCache)
 {
     _threadSwitcher        = threadSwitcher;
     _emailService          = emailService;
     _clientAccountService  = clientAccountService;
     _operationsLogService  = operationsLogService;
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _dateService           = dateService;
 }
Beispiel #12
0
 public OrderStateConsumer(IThreadSwitcher threadSwitcher,
                           IClientNotifyService clientNotifyService,
                           IAccountsCacheService accountsCacheService,
                           IAppNotifications appNotifications,
                           IClientAccountService clientAccountService,
                           AccountManager accountManager,
                           IRabbitMqNotifyService rabbitMqNotifyService,
                           IAssetsCache assetsCache)
     : base(appNotifications,
            clientAccountService,
            assetsCache)
 {
     _threadSwitcher        = threadSwitcher;
     _clientNotifyService   = clientNotifyService;
     _accountsCacheService  = accountsCacheService;
     _accountManager        = accountManager;
     _rabbitMqNotifyService = rabbitMqNotifyService;
 }
Beispiel #13
0
 public InjectionCollector(IAssetsCache cache, ILogger logger)
 {
     _cache = cache;
     _log   = logger;
 }
 public CachedESurfacePatchProvider(ESurfacePatchProvider provider, IAssetsCache <ESurfaceTexturesPackToken, NullableESurfaceTexturesPack> cache)
 {
     _provider = provider;
     _cache    = cache;
 }