コード例 #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);
 }
コード例 #2
0
 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);
 }
コード例 #6
0
 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);
 }
コード例 #7
0
 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);
 }
コード例 #9
0
 public DesignPatternController(IInstrumentService instrumentService)
 {
     _instrumentService = instrumentService;
 }
コード例 #10
0
 public InstrumentsController(IInstrumentService instrumentService, IMapper mapper)
 {
     _instrumentService = instrumentService;
     _mapper            = mapper;
 }
コード例 #11
0
 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;
 }
コード例 #21
0
 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;
 }