Ejemplo n.º 1
0
 public BalanceService(
     ISettingsService settingsService,
     IBalancesClient balancesClient,
     IExternalExchangeService externalExchangeService,
     ILogFactory logFactory)
 {
     _settingsService         = settingsService;
     _balancesClient          = balancesClient;
     _externalExchangeService = externalExchangeService;
     _cache = new InMemoryCache <Balance>(GetKey, true);
     _log   = logFactory.CreateLog(this);
 }
Ejemplo n.º 2
0
 public HedgeService(
     IPositionService positionService,
     IInstrumentService instrumentService,
     IExternalExchangeService externalExchangeService,
     IMarketMakerStateService marketMakerStateService,
     IRemainingVolumeService remainingVolumeService,
     ILogFactory logFactory)
 {
     _positionService         = positionService;
     _instrumentService       = instrumentService;
     _externalExchangeService = externalExchangeService;
     _marketMakerStateService = marketMakerStateService;
     _remainingVolumeService  = remainingVolumeService;
     _log = logFactory.CreateLog(this);
 }
 public InternalTraderService(
     IInternalOrderRepository internalOrderRepository,
     IInstrumentService instrumentService,
     IAssetsServiceWithCache assetsServiceWithCache,
     IBalanceService balanceService,
     ISettingsService settingsService,
     ILykkeExchangeService lykkeExchangeService,
     IExternalExchangeService externalExchangeService,
     IPositionService positionService,
     ILogFactory logFactory)
 {
     _internalOrderRepository = internalOrderRepository;
     _instrumentService       = instrumentService;
     _assetsServiceWithCache  = assetsServiceWithCache;
     _balanceService          = balanceService;
     _settingsService         = settingsService;
     _lykkeExchangeService    = lykkeExchangeService;
     _externalExchangeService = externalExchangeService;
     _positionService         = positionService;
     _log = logFactory.CreateLog(this);
 }