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; }
public void SetUp() { RegisterDependencies(); _quoteCacheService = Container.Resolve <IQuoteCacheService>(); _bestPriceConsumer = Container.Resolve <IEventChannel <BestPriceChangeEventArgs> >(); _cfdCalculatorService = Container.Resolve <ICfdCalculatorService>(); }
public AccountUpdateService( IFplService fplService, OrdersCache ordersCache, ILog log, ICfdCalculatorService cfdCalculatorService, IQuoteCacheService quoteCacheService, MarginTradingSettings marginTradingSettings, IClientProfileSettingsCache clientProfileSettingsCache, IAssetPairsCache assetPairsCache, IPositionsProvider positionsProvider, IOrdersProvider ordersProvider, IAccountsProvider accountsProvider, ITradingInstrumentsCacheService tradingInstrumentsCache) { _fplService = fplService; _log = log; _cfdCalculatorService = cfdCalculatorService; _quoteCacheService = quoteCacheService; _marginTradingSettings = marginTradingSettings; _clientProfileSettingsCache = clientProfileSettingsCache; _assetPairsCache = assetPairsCache; _positionsProvider = positionsProvider; _ordersProvider = ordersProvider; _accountsProvider = accountsProvider; _tradingInstrumentsCache = tradingInstrumentsCache; }
public ValidateOrderService( IQuoteCacheService quoteCashService, IAccountUpdateService accountUpdateService, IAccountsCacheService accountsCacheService, ITradingInstrumentsCacheService accountAssetsCacheService, IAssetPairsCache assetPairsCache, OrdersCache ordersCache, IAssetPairDayOffService assetDayOffService, IIdentityGenerator identityGenerator, IDateService dateService, MarginTradingSettings marginSettings, ICfdCalculatorService cfdCalculatorService, IFeatureManager featureManager, CorrelationContextAccessor correlationContextAccessor) { _quoteCashService = quoteCashService; _accountUpdateService = accountUpdateService; _accountsCacheService = accountsCacheService; _tradingInstrumentsCache = accountAssetsCacheService; _assetPairsCache = assetPairsCache; _ordersCache = ordersCache; _assetDayOffService = assetDayOffService; _identityGenerator = identityGenerator; _dateService = dateService; _marginSettings = marginSettings; _cfdCalculatorService = cfdCalculatorService; _featureManager = featureManager; _correlationContextAccessor = correlationContextAccessor; }
public FinalSnapshotCalculator(ICfdCalculatorService cfdCalculatorService, ILog log, IDateService dateService, IDraftSnapshotKeeper draftSnapshotKeeper) { _cfdCalculatorService = cfdCalculatorService; _log = log; _dateService = dateService; _draftSnapshotKeeper = draftSnapshotKeeper; }
public ValidateOrderService( IQuoteCacheService quoteCashService, IAccountUpdateService accountUpdateService, IAccountsCacheService accountsCacheService, ITradingInstrumentsCacheService accountAssetsCacheService, IAssetPairsCache assetPairsCache, OrdersCache ordersCache, IAssetPairDayOffService assetDayOffService, IIdentityGenerator identityGenerator, IDateService dateService, MarginTradingSettings marginSettings, ICfdCalculatorService cfdCalculatorService) { _quoteCashService = quoteCashService; _accountUpdateService = accountUpdateService; _accountsCacheService = accountsCacheService; _tradingInstrumentsCache = accountAssetsCacheService; _assetPairsCache = assetPairsCache; _ordersCache = ordersCache; _assetDayOffService = assetDayOffService; _identityGenerator = identityGenerator; _dateService = dateService; _marginSettings = marginSettings; _cfdCalculatorService = cfdCalculatorService; }
public EquivalentPricesService( ICfdCalculatorService cfdCalculatorService, MarginSettings marginSettings) { _cfdCalculatorService = cfdCalculatorService; _marginSettings = marginSettings; }
public CommissionService( ITradingInstrumentsCacheService accountAssetsCacheService, ICfdCalculatorService cfdCalculatorService) { _accountAssetsCacheService = accountAssetsCacheService; _cfdCalculatorService = cfdCalculatorService; }
public EquivalentPricesService( ICfdCalculatorService cfdCalculatorService, ILog log) { _cfdCalculatorService = cfdCalculatorService; _log = log; }
public CommissionService( IAccountAssetsCacheService accountAssetsCacheService, ICfdCalculatorService calculator, IAssetsCache assetsCache) { _accountAssetsCacheService = accountAssetsCacheService; _calculator = calculator; _assetsCache = assetsCache; }
public EquivalentPricesService( IAccountsCacheService accountsCacheService, ICfdCalculatorService cfdCalculatorService, MarginSettings marginSettings, ILog log) { _accountsCacheService = accountsCacheService; _cfdCalculatorService = cfdCalculatorService; _marginSettings = marginSettings; _log = log; }
public FplService( ICfdCalculatorService cfdCalculatorService, IAssetPairsCache assetPairsCache, IAccountsCacheService accountsCacheService, ITradingInstrumentsCacheService tradingInstrumentsCache, MarginTradingSettings marginTradingSettings) { _cfdCalculatorService = cfdCalculatorService; _accountsCacheService = accountsCacheService; _tradingInstrumentsCache = tradingInstrumentsCache; _marginTradingSettings = marginTradingSettings; }
public FplService( ICfdCalculatorService cfdCalculatorService, IAssetPairsCache assetPairsCache, IAccountsCacheService accountsCacheService, IAccountAssetsCacheService accountAssetsCacheService, IAssetsCache assetsCache) { _cfdCalculatorService = cfdCalculatorService; _assetPairsCache = assetPairsCache; _accountsCacheService = accountsCacheService; _accountAssetsCacheService = accountAssetsCacheService; _assetsCache = assetsCache; }
public TradingEngine( IEventChannel <MarginCallEventArgs> marginCallEventChannel, IEventChannel <OrderPlacedEventArgs> orderPlacedEventChannel, IEventChannel <OrderExecutedEventArgs> orderClosedEventChannel, IEventChannel <OrderCancelledEventArgs> orderCancelledEventChannel, IEventChannel <OrderChangedEventArgs> orderChangedEventChannel, IEventChannel <OrderExecutionStartedEventArgs> orderExecutionStartedEventChannel, IEventChannel <OrderActivatedEventArgs> orderActivatedEventChannel, IEventChannel <OrderRejectedEventArgs> orderRejectedEventChannel, IValidateOrderService validateOrderService, IAccountsCacheService accountsCacheService, OrdersCache ordersCache, IMatchingEngineRouter meRouter, IThreadSwitcher threadSwitcher, IAssetPairDayOffService assetPairDayOffService, ILog log, IDateService dateService, ICfdCalculatorService cfdCalculatorService, IIdentityGenerator identityGenerator, IAssetPairsCache assetPairsCache, ICqrsSender cqrsSender, IEventChannel <StopOutEventArgs> stopOutEventChannel, IQuoteCacheService quoteCacheService, MarginTradingSettings marginTradingSettings) { _marginCallEventChannel = marginCallEventChannel; _orderPlacedEventChannel = orderPlacedEventChannel; _orderExecutedEventChannel = orderClosedEventChannel; _orderCancelledEventChannel = orderCancelledEventChannel; _orderActivatedEventChannel = orderActivatedEventChannel; _orderExecutionStartedEvenChannel = orderExecutionStartedEventChannel; _orderChangedEventChannel = orderChangedEventChannel; _orderRejectedEventChannel = orderRejectedEventChannel; _validateOrderService = validateOrderService; _accountsCacheService = accountsCacheService; _ordersCache = ordersCache; _meRouter = meRouter; _threadSwitcher = threadSwitcher; _assetPairDayOffService = assetPairDayOffService; _log = log; _dateService = dateService; _cfdCalculatorService = cfdCalculatorService; _identityGenerator = identityGenerator; _assetPairsCache = assetPairsCache; _cqrsSender = cqrsSender; _stopOutEventChannel = stopOutEventChannel; _quoteCacheService = quoteCacheService; _marginTradingSettings = marginTradingSettings; }
public EquivalentPricesService( IAccountsCacheService accountsCacheService, ICfdCalculatorService cfdCalculatorService, IQuoteCacheService quoteCacheService, IAssetPairsCache assetPairsCache, MarginSettings marginSettings, ILog log) { _accountsCacheService = accountsCacheService; _cfdCalculatorService = cfdCalculatorService; _quoteCacheService = quoteCacheService; _assetPairsCache = assetPairsCache; _marginSettings = marginSettings; _log = log; }
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; }