Exemple #1
0
 public InstrumentService(
     IInstrumentRepository instrumentRepository,
     ICrossInstrumentRepository crossInstrumentRepository,
     IRemainingVolumeService remainingVolumeService,
     ILogFactory logFactory)
 {
     _instrumentRepository      = instrumentRepository;
     _crossInstrumentRepository = crossInstrumentRepository;
     _remainingVolumeService    = remainingVolumeService;
     _cache = new InMemoryCache <Instrument>(instrument => instrument.AssetPairId, false);
     _log   = logFactory.CreateLog(this);
 }
Exemple #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);
 }
Exemple #3
0
 public RemainingVolumesController(IRemainingVolumeService remainingVolumeService)
 {
     _remainingVolumeService = remainingVolumeService;
 }