Example #1
0
 public FinalSnapshotCalculator(ICfdCalculatorService cfdCalculatorService, ILog log, IDateService dateService, IDraftSnapshotKeeper draftSnapshotKeeper)
 {
     _cfdCalculatorService = cfdCalculatorService;
     _log                 = log;
     _dateService         = dateService;
     _draftSnapshotKeeper = draftSnapshotKeeper;
 }
 public static bool Initialized(this IDraftSnapshotKeeper keeper)
 {
     try
     {
         return(keeper != null && keeper.TradingDay != default(DateTime));
     }
     catch (InvalidOperationException)
     {
         return(false);
     }
 }
Example #3
0
 public PricesController(
     IQuoteCacheService quoteCacheService,
     IFxRateCacheService fxRateCacheService,
     ISnapshotService snapshotService,
     ILog log,
     IDraftSnapshotKeeper draftSnapshotKeeper)
 {
     _quoteCacheService  = quoteCacheService;
     _fxRateCacheService = fxRateCacheService;
     _snapshotService    = snapshotService;
     _log = log;
     _draftSnapshotKeeper = draftSnapshotKeeper;
 }
Example #4
0
 public PositionsProvider(OrdersCache ordersCache, IDraftSnapshotKeeper draftSnapshotKeeper, ILog log)
 {
     _ordersCache         = ordersCache;
     _draftSnapshotKeeper = draftSnapshotKeeper;
     _log = log;
 }
Example #5
0
 public AccountsProvider(IAccountsCacheService accountsCacheService, IDraftSnapshotKeeper draftSnapshotKeeper, ILog log)
 {
     _accountsCacheService = accountsCacheService;
     _draftSnapshotKeeper  = draftSnapshotKeeper;
     _log = log;
 }