Exemplo n.º 1
0
 public QuoteCacheService(ILog log, IMarginTradingBlobRepository blobRepository)
     : base(nameof(QuoteCacheService), 10000, log)
 {
     _log            = log;
     _blobRepository = blobRepository;
     _quotes         = new Dictionary <string, InstrumentBidAskPair>();
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public OrderCacheManager(OrdersCache orderCache,
                          IMarginTradingBlobRepository marginTradingBlobRepository,
                          ILog log) : base(nameof(OrderCacheManager), 5000, log)
 {
     _orderCache = orderCache;
     _marginTradingBlobRepository = marginTradingBlobRepository;
     _log = log;
 }
Exemplo n.º 4
0
 public MicrographManager(
     MicrographCacheService micrographCacheService,
     IMarginTradingBlobRepository blobRepository,
     ILog log) : base(nameof(MicrographManager), 60000, log)
 {
     _micrographCacheService = micrographCacheService;
     _blobRepository         = blobRepository;
 }
Exemplo n.º 5
0
 public MigrationService(
     IEnumerable <IMigration> migrations,
     IMarginTradingBlobRepository marginTradingBlobRepository,
     ILog log)
 {
     _migrations = migrations;
     _marginTradingBlobRepository = marginTradingBlobRepository;
     _log = log;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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>();
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 13
0
 public DayOffSettingsRepository(IMarginTradingBlobRepository blobRepository)
 {
     _blobRepository = blobRepository;
 }
Exemplo n.º 14
0
 public PublishingQueueRepository(IMarginTradingBlobRepository blobRepository)
 {
     _blobRepository = blobRepository;
 }
Exemplo n.º 15
0
 public OrdersSnapshotReaderService(IMarginTradingBlobRepository blobRepository, ICacheProvider cacheProvider)
 {
     _blobRepository = blobRepository;
     _cacheProvider  = cacheProvider;
 }