Esempio n. 1
0
 public AccountManager(AccountsCacheService accountsCacheService,
                       IMarginTradingAccountsRepository repository,
                       IConsole console,
                       MarginSettings marginSettings,
                       IRabbitMqNotifyService rabbitMqNotifyService,
                       IAccountGroupCacheService accountGroupCacheService,
                       IClientNotifyService clientNotifyService,
                       IClientAccountClient clientAccountClient,
                       IMarginTradingAccountsRepository accountsRepository,
                       ITradingConditionsCacheService tradingConditionsCacheService,
                       ILog log,
                       OrdersCache ordersCache,
                       IEventChannel <AccountBalanceChangedEventArgs> acountBalanceChangedEventChannel,
                       ITradingEngine tradingEngine)
     : base(nameof(AccountManager), 60000, log)
 {
     _accountsCacheService = accountsCacheService;
     _clientAccountClient  = clientAccountClient;
     _repository           = repository;
     _console                       = console;
     _marginSettings                = marginSettings;
     _rabbitMqNotifyService         = rabbitMqNotifyService;
     _accountGroupCacheService      = accountGroupCacheService;
     _accountsRepository            = accountsRepository;
     _tradingConditionsCacheService = tradingConditionsCacheService;
     _log = log;
     _clientNotifyService = clientNotifyService;
     _ordersCache         = ordersCache;
     _acountBalanceChangedEventChannel = acountBalanceChangedEventChannel;
     _tradingEngine = tradingEngine;
 }
Esempio n. 2
0
 public AccountUpdateService(
     IFplService fplService,
     IAccountGroupCacheService accountGroupCacheService,
     IAccountsCacheService accountsCacheService,
     OrdersCache ordersCache,
     IAssetsCache assetsCache)
 {
     _fplService = fplService;
     _accountGroupCacheService = accountGroupCacheService;
     _accountsCacheService     = accountsCacheService;
     _ordersCache = ordersCache;
     _assetsCache = assetsCache;
 }
Esempio n. 3
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;
 }