Example #1
0
 public QuoteCacheService(ILog log, IMarginTradingBlobRepository blobRepository)
     : base(nameof(QuoteCacheService), 10000, log)
 {
     _log            = log;
     _blobRepository = blobRepository;
     _quotes         = new Dictionary <string, InstrumentBidAskPair>();
 }
Example #2
0
 public SnapshotService(
     IScheduleSettingsCacheService scheduleSettingsCacheService,
     IAccountsCacheService accountsCacheService,
     IQuoteCacheService quoteCacheService,
     IFxRateCacheService fxRateCacheService,
     IOrderReader orderReader,
     IDateService dateService,
     ITradingEngineSnapshotsRepository tradingEngineSnapshotsRepository,
     ISnapshotValidationService snapshotValidationService,
     IQueueValidationService queueValidationService,
     IMarginTradingBlobRepository blobRepository,
     ILog log,
     IFinalSnapshotCalculator finalSnapshotCalculator)
 {
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
     _accountsCacheService         = accountsCacheService;
     _quoteCacheService            = quoteCacheService;
     _fxRateCacheService           = fxRateCacheService;
     _orderReader = orderReader;
     _dateService = dateService;
     _tradingEngineSnapshotsRepository = tradingEngineSnapshotsRepository;
     _snapshotValidationService        = snapshotValidationService;
     _queueValidationService           = queueValidationService;
     _blobRepository          = blobRepository;
     _log                     = log;
     _finalSnapshotCalculator = finalSnapshotCalculator;
 }
Example #3
0
 public OrderCacheManager(OrdersCache orderCache,
                          IMarginTradingBlobRepository marginTradingBlobRepository,
                          ILog log) : base(nameof(OrderCacheManager), 5000, log)
 {
     _orderCache = orderCache;
     _marginTradingBlobRepository = marginTradingBlobRepository;
     _log = log;
 }
Example #4
0
 public MicrographManager(
     MicrographCacheService micrographCacheService,
     IMarginTradingBlobRepository blobRepository,
     ILog log) : base(nameof(MicrographManager), 60000, log)
 {
     _micrographCacheService = micrographCacheService;
     _blobRepository         = blobRepository;
 }
Example #5
0
 public MigrationService(
     IEnumerable <IMigration> migrations,
     IMarginTradingBlobRepository marginTradingBlobRepository,
     ILog log)
 {
     _migrations = migrations;
     _marginTradingBlobRepository = marginTradingBlobRepository;
     _log = log;
 }
Example #6
0
 public OrderCacheManager(OrdersCache orderCache,
                          IMarginTradingBlobRepository marginTradingBlobRepository,
                          ILog log, IAccountsCacheService accountsCacheService)
     : base(nameof(OrderCacheManager), 5000, log)
 {
     _orderCache = orderCache;
     _marginTradingBlobRepository = marginTradingBlobRepository;
     _log = log;
     _accountsCacheService = accountsCacheService;
 }
Example #7
0
 public OrderBookSaveService(
     IMarginTradingBlobRepository blobRepository,
     OrderBookList orderBookList,
     ILog log,
     IContextFactory contextFactory) : base(nameof(OrderBookSaveService), 5000, log)
 {
     _blobRepository = blobRepository;
     _orderBookList  = orderBookList;
     _log            = log;
     _contextFactory = contextFactory;
 }
Example #8
0
 public QuoteCacheService(ILog log,
                          IMarginTradingBlobRepository blobRepository,
                          IExternalOrderbookService externalOrderbookService,
                          MarginTradingSettings marginTradingSettings)
     : base(nameof(QuoteCacheService),
            marginTradingSettings.BlobPersistence.QuotesDumpPeriodMilliseconds,
            log)
 {
     _log                      = log;
     _blobRepository           = blobRepository;
     _externalOrderbookService = externalOrderbookService;
 }
Example #9
0
 public OrderBookSaveService(
     IMarginTradingBlobRepository blobRepository,
     OrderBookList orderBookList,
     MarginTradingSettings marginTradingSettings,
     ILog log,
     IContextFactory contextFactory)
     : base(nameof(OrderBookSaveService), marginTradingSettings.BlobPersistence.OrderbooksDumpPeriodMilliseconds, log)
 {
     _blobRepository = blobRepository;
     _orderBookList  = orderBookList;
     _log            = log;
     _contextFactory = contextFactory;
 }
Example #10
0
 public FxRateCacheService(ILog log,
                           IMarginTradingBlobRepository blobRepository,
                           IEventChannel <FxBestPriceChangeEventArgs> fxBestPriceChangeEventChannel,
                           MarginTradingSettings marginTradingSettings,
                           IAssetPairDayOffService assetPairDayOffService)
     : base(nameof(FxRateCacheService), marginTradingSettings.BlobPersistence.FxRatesDumpPeriodMilliseconds, log)
 {
     _log            = log;
     _blobRepository = blobRepository;
     _fxBestPriceChangeEventChannel = fxBestPriceChangeEventChannel;
     _assetPairDayOffService        = assetPairDayOffService;
     _quotes = new Dictionary <string, InstrumentBidAskPair>();
 }
Example #11
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;
 }
Example #12
0
 public PositionsController(
     ITradingEngine tradingEngine,
     IOperationsLogService operationsLogService,
     ILog log,
     OrdersCache ordersCache,
     IAssetPairDayOffService assetDayOffService,
     IIdentityGenerator identityGenerator,
     ICqrsSender cqrsSender,
     IDateService dateService,
     IAccountHistoryRepository accountHistoryRepository,
     IMarginTradingBlobRepository blobRepository)
 {
     _tradingEngine        = tradingEngine;
     _operationsLogService = operationsLogService;
     _log                      = log;
     _ordersCache              = ordersCache;
     _assetDayOffService       = assetDayOffService;
     _identityGenerator        = identityGenerator;
     _cqrsSender               = cqrsSender;
     _dateService              = dateService;
     _accountHistoryRepository = accountHistoryRepository;
     _blobRepository           = blobRepository;
 }
Example #13
0
 public DayOffSettingsRepository(IMarginTradingBlobRepository blobRepository)
 {
     _blobRepository = blobRepository;
 }
Example #14
0
 public PublishingQueueRepository(IMarginTradingBlobRepository blobRepository)
 {
     _blobRepository = blobRepository;
 }
 public OrdersSnapshotReaderService(IMarginTradingBlobRepository blobRepository, ICacheProvider cacheProvider)
 {
     _blobRepository = blobRepository;
     _cacheProvider  = cacheProvider;
 }