Exemplo n.º 1
0
 public SnapshotValidationService(
     ITradingEngineSnapshotsRepository tradingEngineSnapshotsRepository,
     IOrdersHistoryRepository ordersHistoryRepository,
     IPositionsHistoryRepository positionsHistoryRepository,
     IOrderReader orderCache,
     ILog log)
 {
     _tradingEngineSnapshotsRepository = tradingEngineSnapshotsRepository;
     _ordersHistoryRepository          = ordersHistoryRepository;
     _positionsHistoryRepository       = positionsHistoryRepository;
     _orderCache = orderCache;
     _log        = log;
 }
Exemplo n.º 2
0
 public OrderCacheManager(OrdersCache orderCache,
                          IMarginTradingBlobRepository blobRepository,
                          IOrdersHistoryRepository ordersHistoryRepository,
                          IPositionsHistoryRepository positionsHistoryRepository,
                          MarginTradingSettings marginTradingSettings,
                          ILog log)
     : base(nameof(OrderCacheManager), marginTradingSettings.BlobPersistence.OrdersDumpPeriodMilliseconds, log)
 {
     _orderCache                 = orderCache;
     _blobRepository             = blobRepository;
     _ordersHistoryRepository    = ordersHistoryRepository;
     _positionsHistoryRepository = positionsHistoryRepository;
     _log = log;
 }
Exemplo n.º 3
0
 public Application(
     CorrelationContextAccessor correlationContextAccessor,
     RabbitMqCorrelationManager correlationManager,
     ILoggerFactory loggerFactory,
     IOrdersHistoryRepository ordersHistoryRepository,
     ITradesRepository tradesRepository,
     ILog logger,
     Settings settings, CurrentApplicationInfo applicationInfo,
     ISlackNotificationsSender slackNotificationsSender) : base(correlationManager,
                                                                loggerFactory, logger, slackNotificationsSender, applicationInfo)
 {
     _correlationContextAccessor = correlationContextAccessor;
     _ordersHistoryRepository    = ordersHistoryRepository;
     _tradesRepository           = tradesRepository;
     _log      = logger;
     _settings = settings;
 }
 public OrderEventsController(IOrdersHistoryRepository ordersHistoryRepository, OrderHistoryForSupportQuery orderHistoryForSupportQuery)
 {
     _ordersHistoryRepository     = ordersHistoryRepository;
     _orderHistoryForSupportQuery = orderHistoryForSupportQuery;
 }
 public OrderBlotterController(
     IOrdersHistoryRepository ordersHistoryRepository)
 {
     _ordersHistoryRepository = ordersHistoryRepository;
 }