Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 10
0
 public InstrumentsController(IInstrumentService instrumentService, IMapper mapper)
 {
     _instrumentService = instrumentService;
     _mapper            = mapper;
 }
Ejemplo n.º 11
0
 public InstrumentController(IInstrumentService instrumentService)
 {
     _instrumentService = instrumentService;
 }
Ejemplo n.º 12
0
 public InstrumentDetailsModel(IInstrumentService instrumentService)
 {
     this.instrumentService = instrumentService;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 14
0
 public InstrumentsController(IInstrumentService service)
 {
     this.service = service;
 }
Ejemplo n.º 15
0
 public AssetPairsController(IInstrumentService instrumentService)
 {
     _instrumentService = instrumentService;
 }
Ejemplo n.º 16
0
 protected void WhenDemandingAServiceType()
 {
     _service1 = _aggregate.Demand(m => m.Type == typeof(Bond));
 }
Ejemplo n.º 17
0
 public InstrumentCountViewComponent(IInstrumentService instrumentService)
 {
     this.instrumentService = instrumentService;
 }
Ejemplo n.º 18
0
 protected void WhenDemandingAnotherServiceType()
 {
     _service2 = _aggregate.Demand(m => m.Type == typeof(Equity));
 }
Ejemplo n.º 19
0
 public CreateInstrumentCommandHandler(IInstrumentService instrumentService, ILogger <CreateInstrumentCommandHandler> logger)
 {
     _InstrumentService = instrumentService;
     _Logger            = logger;
 }
Ejemplo n.º 20
0
 public InstrumentsController(IInstrumentService instrumentService)
 {
     this.instrumentService = instrumentService;
 }
 public DeleteInstrumentComandHandler(IInstrumentService instrumentService)
 {
     _InstrumentService = instrumentService;
 }
Ejemplo n.º 22
0
 public InstrumentController(IInstrumentService instrumentService, UserManager <IdentityUser> userManager)
 {
     _instrumentService = instrumentService;
     _userManager       = userManager;
 }
Ejemplo n.º 23
0
 public EditModel(IInstrumentService instrumentService, IHtmlHelper htmlHelper)
 {
     this.instrumentService = instrumentService;
     this.htmlHelper        = htmlHelper;
 }
Ejemplo n.º 24
0
 public DeleteModel(IInstrumentService instrumentService)
 {
     this.instrumentService = instrumentService;
 }
Ejemplo n.º 25
0
 public MessageParseService(IInstrumentService instrumentService)
 {
     _instrumentService = instrumentService;
 }
Ejemplo n.º 26
0
 public InstrumentsController(UserManager <User> userManager, IInstrumentService instrumentService) : base(userManager)
 {
     this.instrumentService = instrumentService;
 }