Пример #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;
 }
Пример #2
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;
 }
Пример #3
0
 public AccountsManagementController(IAccountsCacheService accountsCacheService,
                                     IDateService dateService,
                                     AccountManager accountManager,
                                     AccountGroupCacheService accountGroupCacheService,
                                     ITradingConditionsCacheService tradingConditionsCacheService)
 {
     _accountsCacheService          = accountsCacheService;
     _dateService                   = dateService;
     _accountManager                = accountManager;
     _accountGroupCacheService      = accountGroupCacheService;
     _tradingConditionsCacheService = tradingConditionsCacheService;
 }
Пример #4
0
 public TradingConditionsController(TradingConditionsManager tradingConditionsManager,
                                    AccountGroupManager accountGroupManager,
                                    AccountAssetsManager accountAssetsManager,
                                    ITradingConditionsCacheService tradingConditionsCacheService,
                                    IConvertService convertService)
 {
     _tradingConditionsManager      = tradingConditionsManager;
     _accountGroupManager           = accountGroupManager;
     _accountAssetsManager          = accountAssetsManager;
     _tradingConditionsCacheService = tradingConditionsCacheService;
     _convertService = convertService;
 }
Пример #5
0
 public MatchingEngineRoutesManager(
     MatchingEngineRoutesCacheService routesCacheService,
     IMatchingEngineRoutesRepository repository,
     IAssetPairsCache assetPairsCache,
     ITradingConditionsCacheService tradingConditionsCacheService,
     IAccountsCacheService accountsCacheService,
     IRiskSystemCommandsLogRepository riskSystemCommandsLogRepository,
     ILog log)
 {
     _routesCacheService              = routesCacheService;
     _repository                      = repository;
     _assetPairsCache                 = assetPairsCache;
     _tradingConditionsCacheService   = tradingConditionsCacheService;
     _accountsCacheService            = accountsCacheService;
     _riskSystemCommandsLogRepository = riskSystemCommandsLogRepository;
     _log = log;
 }
Пример #6
0
 public MatchingEngineRoutesManager(
     MatchingEngineRoutesCacheService routesCacheService,
     ITradingRoutesApi routesApi,
     IAssetPairsCache assetPairsCache,
     ITradingConditionsCacheService tradingConditionsCacheService,
     IAccountsCacheService accountsCacheService,
     //IRiskSystemCommandsLogRepository riskSystemCommandsLogRepository,
     ILog log,
     IConvertService convertService)
 {
     _routesCacheService            = routesCacheService;
     _routesApi                     = routesApi;
     _assetPairsCache               = assetPairsCache;
     _tradingConditionsCacheService = tradingConditionsCacheService;
     _accountsCacheService          = accountsCacheService;
     //_riskSystemCommandsLogRepository = riskSystemCommandsLogRepository;
     _log            = log;
     _convertService = convertService;
 }