public ivixMinutely(OptionInfoRepository infoRepo, StockMinuteRepository stockRepo, double rate = 0.04) { this.infoRepo = infoRepo; this.stockRepo = stockRepo; this.rate = rate; dateRepo = new TransactionDateTimeRepository(ConnectionType.Default); sqlWriter = new SqlServerWriter(ConnectionType.Server84); sqlReader = new SqlServerReader(ConnectionType.Local); }
public Impv(OptionInfoRepository infoRepo, StockOptionTickRepository optionRepo, StockTickRepository stockRepo, double rate = 0.04) { this.infoRepo = infoRepo; this.optionRepo = optionRepo; this.stockRepo = stockRepo; this.rate = rate; dateRepo = new TransactionDateTimeRepository(ConnectionType.Default); sqlWriter = new SqlServerWriter(ConnectionType.Server84); sqlReader = new SqlServerReader(ConnectionType.Server84); }
public OptionMonitor50ETF2019(OptionInfoRepository infoRepo, TransactionDateTimeRepository dateRepo, StockDailyRepository stockDailyRepo, StockMinuteRepository stockMinutelyRepo, StockOptionDailyRepository optionDailyRepo, DateTime startDate, DateTime endDate, double rate = 0.04) { this.infoRepo = infoRepo; this.dateRepo = dateRepo; this.stockDailyRepo = stockDailyRepo; this.stockMinutelyRepo = stockMinutelyRepo; this.optionDailyRepo = optionDailyRepo; this.rate = rate; this.tradedays = dateRepo.GetStockTransactionDate(startDate, endDate); this.optionList = getOptionInformation(startDate, endDate); this.underlyingDailyData = getUnderlyingDailyData(startDate, endDate); this.dividendList = getUnderlyingDividendInformation(); this.optionListWithModified = getModifiedOptionList(optionList, dividendList); this.optionDailyDataByCode = getEtfOptionDailyDataByCode(startDate, endDate); this.optionDailyDataByDate = getEtfOptionDailyDataByDate(startDate, endDate); this.optionListModifiedByCode = getOptionInformationWithModifiedByCode(optionListWithModified); computeOptionStatus(startDate, endDate); }