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); } }
public PricesController( IQuoteCacheService quoteCacheService, IFxRateCacheService fxRateCacheService, ISnapshotService snapshotService, ILog log, IDraftSnapshotKeeper draftSnapshotKeeper) { _quoteCacheService = quoteCacheService; _fxRateCacheService = fxRateCacheService; _snapshotService = snapshotService; _log = log; _draftSnapshotKeeper = draftSnapshotKeeper; }
public PositionsProvider(OrdersCache ordersCache, IDraftSnapshotKeeper draftSnapshotKeeper, ILog log) { _ordersCache = ordersCache; _draftSnapshotKeeper = draftSnapshotKeeper; _log = log; }
public AccountsProvider(IAccountsCacheService accountsCacheService, IDraftSnapshotKeeper draftSnapshotKeeper, ILog log) { _accountsCacheService = accountsCacheService; _draftSnapshotKeeper = draftSnapshotKeeper; _log = log; }