Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 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 CommissionService(
     ITradingInstrumentsCacheService accountAssetsCacheService,
     ICfdCalculatorService cfdCalculatorService)
 {
     _accountAssetsCacheService = accountAssetsCacheService;
     _cfdCalculatorService      = cfdCalculatorService;
 }
Exemple #5
0
 public LiquidationCommandsHandler(
     ITradingInstrumentsCacheService tradingInstrumentsCacheService,
     IAccountsCacheService accountsCache,
     IDateService dateService,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     IChaosKitty chaosKitty,
     IMatchingEngineRouter matchingEngineRouter,
     ITradingEngine tradingEngine,
     OrdersCache ordersCache,
     ILog log,
     IAccountUpdateService accountUpdateService,
     IEventChannel <LiquidationEndEventArgs> liquidationEndEventChannel)
 {
     _tradingInstrumentsCacheService = tradingInstrumentsCacheService;
     _accountsCache = accountsCache;
     _dateService   = dateService;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _chaosKitty           = chaosKitty;
     _matchingEngineRouter = matchingEngineRouter;
     _tradingEngine        = tradingEngine;
     _ordersCache          = ordersCache;
     _log = log;
     _accountUpdateService       = accountUpdateService;
     _liquidationEndEventChannel = liquidationEndEventChannel;
 }
Exemple #6
0
 public TradingInstrumentsManager(
     ITradingInstrumentsCacheService tradingInstrumentsCacheService,
     ITradingInstrumentsApi tradingInstrumentsApi,
     IConvertService convertService,
     ILog log)
 {
     _tradingInstrumentsCacheService = tradingInstrumentsCacheService;
     _tradingInstrumentsApi          = tradingInstrumentsApi;
     _convertService = convertService;
     _log            = log;
 }
Exemple #7
0
 public TradingInstrumentsManager(
     ITradingInstrumentsCacheService tradingInstrumentsCacheService,
     ITradingInstrumentsApi tradingInstrumentsApi,
     IConvertService convertService,
     IConsole console)
 {
     _tradingInstrumentsCacheService = tradingInstrumentsCacheService;
     _tradingInstrumentsApi          = tradingInstrumentsApi;
     _convertService = convertService;
     _console        = console;
 }
Exemple #8
0
 public FplService(
     ICfdCalculatorService cfdCalculatorService,
     IAssetPairsCache assetPairsCache,
     IAccountsCacheService accountsCacheService,
     ITradingInstrumentsCacheService tradingInstrumentsCache,
     MarginTradingSettings marginTradingSettings)
 {
     _cfdCalculatorService    = cfdCalculatorService;
     _accountsCacheService    = accountsCacheService;
     _tradingInstrumentsCache = tradingInstrumentsCache;
     _marginTradingSettings   = marginTradingSettings;
 }