コード例 #1
0
 public MarketMakerManager(
     IIndexPriceService indexPriceService,
     IMarketMakerService marketMakerService,
     IHedgeService hedgeService,
     IInternalTradeService internalTradeService,
     IIndexSettingsService indexSettingsService,
     IAssetHedgeSettingsService assetHedgeSettingsService,
     ITokenService tokenService,
     IMarketMakerStateService marketMakerStateService,
     ISettlementService settlementService,
     IQuoteService quoteService,
     ILogFactory logFactory)
 {
     _indexPriceService         = indexPriceService;
     _marketMakerService        = marketMakerService;
     _hedgeService              = hedgeService;
     _internalTradeService      = internalTradeService;
     _indexSettingsService      = indexSettingsService;
     _assetHedgeSettingsService = assetHedgeSettingsService;
     _tokenService              = tokenService;
     _marketMakerStateService   = marketMakerStateService;
     _settlementService         = settlementService;
     _quoteService              = quoteService;
     _log = logFactory.CreateLog(this);
 }
コード例 #2
0
 public SettlementService(
     IIndexPriceService indexPriceService,
     IIndexSettingsService indexSettingsService,
     IAssetHedgeSettingsService assetHedgeSettingsService,
     ISettlementRepository settlementRepository,
     IQuoteService quoteService,
     IBalanceService balanceService,
     ISettlementTransferService settlementTransferService,
     IInstrumentService instrumentService,
     IPositionService positionService,
     ITokenService tokenService,
     ILogFactory logFactory)
 {
     _indexPriceService         = indexPriceService;
     _indexSettingsService      = indexSettingsService;
     _assetHedgeSettingsService = assetHedgeSettingsService;
     _settlementRepository      = settlementRepository;
     _quoteService              = quoteService;
     _balanceService            = balanceService;
     _settlementTransferService = settlementTransferService;
     _instrumentService         = instrumentService;
     _positionService           = positionService;
     _tokenService              = tokenService;
     _log = logFactory.CreateLog(this);
 }
コード例 #3
0
 public SimulationService(
     IIndexSettingsService indexSettingsService,
     IIndexPriceService indexPriceService,
     ISimulationParametersRepository simulationParametersRepository)
 {
     _indexSettingsService           = indexSettingsService;
     _indexPriceService              = indexPriceService;
     _simulationParametersRepository = simulationParametersRepository;
 }
コード例 #4
0
 public IndexPriceService(
     IIndexPriceRepository indexPriceRepository,
     IIndexSettingsService indexSettingsService,
     ILogFactory logFactory)
 {
     _indexPriceRepository = indexPriceRepository;
     _indexSettingsService = indexSettingsService;
     _cache = new InMemoryCache <IndexPrice>(GetKey, false);
     _log   = logFactory.CreateLog(this);
 }
コード例 #5
0
 public IndexReportService(
     IIndexSettingsService indexSettingsService,
     IIndexPriceService indexPriceService,
     ITokenService tokenService,
     IBalanceService balanceService)
 {
     _indexSettingsService = indexSettingsService;
     _indexPriceService    = indexPriceService;
     _tokenService         = tokenService;
     _balanceService       = balanceService;
 }
コード例 #6
0
 public ProfitLossReportService(
     IIndexPriceService indexPriceService,
     IIndexSettingsService indexSettingsService,
     ITokenService tokenService,
     IPositionService positionService,
     IRateService rateService)
 {
     _indexPriceService    = indexPriceService;
     _indexSettingsService = indexSettingsService;
     _tokenService         = tokenService;
     _positionService      = positionService;
     _rateService          = rateService;
 }
コード例 #7
0
 public RiskExposureReportService(
     IAssetHedgeSettingsService assetHedgeSettingsService,
     IInvestmentService investmentService,
     IIndexSettingsService indexSettingsService,
     IIndexPriceService indexPriceService,
     IPositionService positionService,
     IQuoteService quoteService,
     ITokenService tokenService)
 {
     _assetHedgeSettingsService = assetHedgeSettingsService;
     _indexPriceService         = indexPriceService;
     _indexSettingsService      = indexSettingsService;
     _investmentService         = investmentService;
     _quoteService    = quoteService;
     _positionService = positionService;
     _tokenService    = tokenService;
 }
コード例 #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 HedgeService(
     IIndexPriceService indexPriceService,
     IIndexSettingsService indexSettingsService,
     IAssetHedgeSettingsService assetHedgeSettingsService,
     ITokenService tokenService,
     IPositionService positionService,
     IHedgeSettingsService hedgeSettingsService,
     IInvestmentService investmentService,
     IQuoteService quoteService,
     IExchangeAdapter[] exchangeAdapters,
     ILogFactory logFactory)
 {
     _indexPriceService         = indexPriceService;
     _indexSettingsService      = indexSettingsService;
     _assetHedgeSettingsService = assetHedgeSettingsService;
     _tokenService         = tokenService;
     _positionService      = positionService;
     _hedgeSettingsService = hedgeSettingsService;
     _investmentService    = investmentService;
     _quoteService         = quoteService;
     _exchangeAdapters     = exchangeAdapters.ToDictionary(exchange => exchange.Name, exchange => exchange);
     _log = logFactory.CreateLog(this);
 }
コード例 #10
0
 public IndexSettingsController(IIndexSettingsService indexSettingsService)
 {
     _indexSettingsService = indexSettingsService;
 }
コード例 #11
0
 public OrderBookService(ISettingsService settingsService, IIndexSettingsService indexSettingsService)
 {
     _indexSettingsService = indexSettingsService;
     _settingsService      = settingsService;
     _cache = new InMemoryCache <OrderBook>(GetKey, true);
 }