Пример #1
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 SummaryReportService(
     ISummaryReportRepository summaryReportRepository,
     [KeyFilter("PositionRepositoryPostgres")] IPositionRepository positionRepositoryPostgres,
     IOpenPositionRepository openPositionRepository,
     IInstrumentService instrumentService,
     ICrossRateInstrumentService crossRateInstrumentService,
     ILogFactory logFactory)
 {
     _summaryReportRepository    = summaryReportRepository;
     _positionRepositoryPostgres = positionRepositoryPostgres;
     _openPositionRepository     = openPositionRepository;
     _instrumentService          = instrumentService;
     _crossRateInstrumentService = crossRateInstrumentService;
     _cache = new InMemoryCache <SummaryReport>(CacheKey, false);
     _log   = logFactory.CreateLog(this);
 }
Пример #3
0
 public MarketMakerService(
     IInstrumentService instrumentService,
     ILykkeExchangeService lykkeExchangeService,
     IOrderBookService orderBookService,
     IBalanceService balanceService,
     IMarketMakerStateService marketMakerStateService,
     IQuoteService quoteService,
     IB2C2OrderBookService b2C2OrderBookService,
     IQuoteTimeoutSettingsService quoteTimeoutSettingsService,
     ISummaryReportService summaryReportService,
     IPositionService positionService,
     IAssetsServiceWithCache assetsServiceWithCache,
     IMarketMakerSettingsService marketMakerSettingsService,
     ITradeService tradeService,
     IAssetPairLinkService assetPairLinkService,
     IPnLStopLossEngineService pnLStopLossEngineService,
     IFiatEquityStopLossService fiatEquityStopLossService,
     INoFreshQuotesStopLossService noFreshQuotesStopLossService,
     IOrderBooksUpdatesReportPublisher orderBooksUpdatesReportPublisher,
     bool isOrderBooksUpdateReportEnabled,
     ILogFactory logFactory)
 {
     _instrumentService                = instrumentService;
     _lykkeExchangeService             = lykkeExchangeService;
     _orderBookService                 = orderBookService;
     _balanceService                   = balanceService;
     _marketMakerStateService          = marketMakerStateService;
     _quoteService                     = quoteService;
     _b2C2OrderBookService             = b2C2OrderBookService;
     _quoteTimeoutSettingsService      = quoteTimeoutSettingsService;
     _summaryReportService             = summaryReportService;
     _positionService                  = positionService;
     _assetsServiceWithCache           = assetsServiceWithCache;
     _marketMakerSettingsService       = marketMakerSettingsService;
     _tradeService                     = tradeService;
     _assetPairLinkService             = assetPairLinkService;
     _pnLStopLossEngineService         = pnLStopLossEngineService;
     _fiatEquityStopLossService        = fiatEquityStopLossService;
     _noFreshQuotesStopLossService     = noFreshQuotesStopLossService;
     _orderBooksUpdatesReportPublisher = orderBooksUpdatesReportPublisher;
     _isOrderBooksUpdateReportEnabled  = isOrderBooksUpdateReportEnabled;
     _log = logFactory.CreateLog(this);
 }
Пример #4
0
 public MarketMakerService(
     IInstrumentService instrumentService,
     IQuoteService quoteService,
     ILykkeExchangeService lykkeExchangeService,
     IOrderBookService orderBookService,
     IBalanceService balanceService,
     IQuoteTimeoutSettingsService quoteTimeoutSettingsService,
     IAssetPairsReadModelRepository assetPairsReadModelRepository,
     ILogFactory logFactory)
 {
     _instrumentService             = instrumentService;
     _quoteService                  = quoteService;
     _lykkeExchangeService          = lykkeExchangeService;
     _orderBookService              = orderBookService;
     _balanceService                = balanceService;
     _quoteTimeoutSettingsService   = quoteTimeoutSettingsService;
     _assetPairsReadModelRepository = assetPairsReadModelRepository;
     _log = logFactory.CreateLog(this);
 }
 public ExternalExchangeAdapter(
     string exchangeName,
     ExchangeAdapterClientFactory exchangeAdapterClientFactory,
     IHedgeLimitOrderService hedgeLimitOrderService,
     IInstrumentService instrumentService,
     IExternalOrderRepository externalOrderRepository,
     IExternalTradeService externalTradeService,
     IPositionService positionService,
     ILogFactory logFactory,
     IReadOnlyDictionary <string, string> assetPairMapping)
 {
     Name = exchangeName;
     _exchangeAdapterClientFactory = exchangeAdapterClientFactory;
     _hedgeLimitOrderService       = hedgeLimitOrderService;
     _instrumentService            = instrumentService;
     _externalOrderRepository      = externalOrderRepository;
     _externalTradeService         = externalTradeService;
     _positionService  = positionService;
     _assetPairMapping = assetPairMapping;
     _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);
 }
 public PositionService(
     [KeyFilter("PositionRepositoryAzure")] IPositionRepository positionRepository,
     [KeyFilter("PositionRepositoryPostgres")] IPositionRepository positionRepositoryPostgres,
     IOpenPositionRepository openPositionRepository,
     ISummaryReportService summaryReportService,
     IInstrumentService instrumentService,
     IQuoteService quoteService,
     ITradeService tradeService,
     IClosedPositionHandler[] closedPositionHandlers,
     ILogFactory logFactory)
 {
     _positionRepository         = positionRepository;
     _positionRepositoryPostgres = positionRepositoryPostgres;
     _openPositionRepository     = openPositionRepository;
     _summaryReportService       = summaryReportService;
     _instrumentService          = instrumentService;
     _quoteService           = quoteService;
     _tradeService           = tradeService;
     _closedPositionHandlers = closedPositionHandlers;
     _log = logFactory.CreateLog(this);
 }
Пример #8
0
 public MarketMakerService(
     IIndexSettingsService indexSettingsService,
     IIndexPriceService indexPriceService,
     IBalanceService balanceService,
     ISettingsService settingsService,
     ILykkeExchangeService lykkeExchangeService,
     ILimitOrderService limitOrderService,
     IInstrumentService instrumentService,
     TraceWriter traceWriter,
     ILogFactory logFactory)
 {
     _indexSettingsService = indexSettingsService;
     _indexPriceService    = indexPriceService;
     _balanceService       = balanceService;
     _settingsService      = settingsService;
     _lykkeExchangeService = lykkeExchangeService;
     _limitOrderService    = limitOrderService;
     _instrumentService    = instrumentService;
     _traceWriter          = traceWriter;
     _log = logFactory.CreateLog(this);
 }
 public DesignPatternController(IInstrumentService instrumentService)
 {
     _instrumentService = instrumentService;
 }
Пример #10
0
 public InstrumentsController(IInstrumentService instrumentService, IMapper mapper)
 {
     _instrumentService = instrumentService;
     _mapper            = mapper;
 }
 public InstrumentController(IInstrumentService instrumentService)
 {
     _instrumentService = instrumentService;
 }
Пример #12
0
 public InstrumentDetailsModel(IInstrumentService instrumentService)
 {
     this.instrumentService = instrumentService;
 }
Пример #13
0
 public TickerService(IMapper mapper, IDataService<Tick> service, IInstrumentService instrumentService,
     ILogger<TickerService> loggger, IMemoryCache memoryCache, IAuthService authService)
 {
     (_mapper, _service, _instrumentService, _logger, _authService) = (mapper, service, instrumentService, loggger, authService);
 }
Пример #14
0
 public InstrumentsController(IInstrumentService service)
 {
     this.service = service;
 }
Пример #15
0
 public AssetPairsController(IInstrumentService instrumentService)
 {
     _instrumentService = instrumentService;
 }
Пример #16
0
 protected void WhenDemandingAServiceType()
 {
     _service1 = _aggregate.Demand(m => m.Type == typeof(Bond));
 }
Пример #17
0
 public InstrumentCountViewComponent(IInstrumentService instrumentService)
 {
     this.instrumentService = instrumentService;
 }
Пример #18
0
 protected void WhenDemandingAnotherServiceType()
 {
     _service2 = _aggregate.Demand(m => m.Type == typeof(Equity));
 }
Пример #19
0
 public CreateInstrumentCommandHandler(IInstrumentService instrumentService, ILogger <CreateInstrumentCommandHandler> logger)
 {
     _InstrumentService = instrumentService;
     _Logger            = logger;
 }
Пример #20
0
 public InstrumentsController(IInstrumentService instrumentService)
 {
     this.instrumentService = instrumentService;
 }
 public DeleteInstrumentComandHandler(IInstrumentService instrumentService)
 {
     _InstrumentService = instrumentService;
 }
Пример #22
0
 public InstrumentController(IInstrumentService instrumentService, UserManager <IdentityUser> userManager)
 {
     _instrumentService = instrumentService;
     _userManager       = userManager;
 }
Пример #23
0
 public EditModel(IInstrumentService instrumentService, IHtmlHelper htmlHelper)
 {
     this.instrumentService = instrumentService;
     this.htmlHelper        = htmlHelper;
 }
Пример #24
0
 public DeleteModel(IInstrumentService instrumentService)
 {
     this.instrumentService = instrumentService;
 }
Пример #25
0
 public MessageParseService(IInstrumentService instrumentService)
 {
     _instrumentService = instrumentService;
 }
Пример #26
0
 public InstrumentsController(UserManager <User> userManager, IInstrumentService instrumentService) : base(userManager)
 {
     this.instrumentService = instrumentService;
 }