public StockController(ILogger <StockController> logger, StockRepository stockRepository, StockInfoRepository stockInfoRepository, StockApiRepository stockApiRepository) { _logger = logger; _stockRepository = stockRepository; _stockInfoRepository = stockInfoRepository; _stockApiRepository = stockApiRepository; }
public StockHolderClawerSchedule(ILogger <StockHolderClawerSchedule> logger, StockHolderClawer stockHolderClawer, StockHolderRepository stockHolderRepository, StockInfoRepository stockInfoRepository) { _stockHolderRepository = stockHolderRepository; _stockInfoRepository = stockInfoRepository; _stockHolderClawer = stockHolderClawer; _logger = logger; }
static void Main(string[] args) { #region Variable XmlDocument doc = new XmlDocument(); List <XmlElement> allElement = new List <XmlElement>(); List <StockInfo> stockInfoList = new List <StockInfo>(); List <string> attribute = new List <string>(); XMLProcessingcs xmlProcess = new XMLProcessingcs(); StockInfoRepository stockInfoRepository; #endregion XMLFunction.XMLFunction.LoadData(doc, @"https://quality.data.gov.tw/dq_download_xml.php?nid=11371&md5_url=0c464d1eb14d4fb0045eebc1052d5f24"); allElement = XMLFunction.XMLFunction.getAllElement(doc); stockInfoList = xmlProcess.processValue(allElement); attribute = xmlProcess.processAttribute(allElement[0]); showStockInfo(attribute, stockInfoList); showDateCount(stockInfoList); stockInfoRepository = new StockInfoRepository(); stockInfoRepository.Insert(stockInfoList[0]); stockInfoList.ForEach(StockInfo => { stockInfoRepository.Insert(StockInfo); }); Console.WriteLine("儲存完畢!"); Console.ReadKey(); }
public DailyDataRecord(StockMinuteRepository stockMinutelyRepo, StockDailyRepository stockDailyRepo, StockTickRepository tickRepo, TransactionDateTimeRepository dateRepo, StockInfoRepository stockInfoRepo) { this.stockMinutelyRepo = stockMinutelyRepo; this.stockDailyRepo = stockDailyRepo; this.tickRepo = tickRepo; this.dateRepo = dateRepo; this.stockInfoRepo = stockInfoRepo; }
public StockTickToMinute(TransactionDateTimeRepository dateRepo, StockDailyRepository stockDailyRepo, StockMinuteFromTickRepository stockMinutelyRepo, StockTickRepository tickRepo, StockInfoRepository infoRepo) { this.tickRepo = tickRepo; this.dateRepo = dateRepo; this.stockDailyRepo = stockDailyRepo; this.stockMinutelyRepo = stockMinutelyRepo; this.infoRepo = infoRepo; }
public StockDataStore(StockMinuteRepository stockMinutelyRepo, StockDailyRepository stockDailyRepo, TransactionDateTimeRepository dateRepo, StockInfoRepository stockInfoRepo) { this.stockDailyRepo = stockDailyRepo; this.stockMinutelyRepo = stockMinutelyRepo; this.dateRepo = dateRepo; this.stockInfoRepo = stockInfoRepo; this.windReader = new WindReader(); //stockInfoRepo.UpdateStockInfoToNow(); }
public InfluxdbRecord(StockMinuteRepository stockMinutelyRepo, StockDailyRepository stockDailyRepo, TransactionDateTimeRepository dateRepo, StockInfoRepository stockInfoRepo) { this.stockMinutelyRepo = stockMinutelyRepo; this.stockDailyRepo = stockDailyRepo; this.dateRepo = dateRepo; this.stockInfoRepo = stockInfoRepo; this.sqlReaderLocal = new SqlServerReader(ConnectionType.Local); this.sqlReaderSource = new SqlServerReader(ConnectionType.Local); this.sqlWriter = new SqlServerWriter(ConnectionType.Local); }
public StockIndexBonus(StockInfoRepository stockInfoRepo, StockDailyRepository stockDailyRepo, TransactionDateTimeRepository dateRepo, DateTime date) { this.date = DateTimeExtension.DateUtils.PreviousOrCurrentTradeDay(date); this.stockInfoRepo = stockInfoRepo; this.dateRepo = dateRepo; this.stockDailyRepo = stockDailyRepo; this.windReader = new WindReader(); this.stockInfo = stockInfoRepo.GetStockListInfoFromSql(); }
public DualTrust2(StockMinuteRepository stockMinutelyRepo, StockDailyRepository stockDailyRepo, StockInfoRepository stockInfoRepo) { this.stockMinutelyRepo = stockMinutelyRepo; this.stockDailyRepo = stockDailyRepo; dateRepo = new TransactionDateTimeRepository(ConnectionType.Default); sqlWriter = new SqlServerWriter(ConnectionType.Server84); sqlReader = new SqlServerReader(ConnectionType.Local); this.windReader = new WindReader(); this.stockInfoRepo = stockInfoRepo; }
public StockDividendClawerSchedule( ILogger <StockDividendClawerSchedule> logger, StockDividendClawer stockDividendClawer, StockDividendRepository stockDividendRepository, StockInfoRepository stockInfoRepository) { _logger = logger; _stockDividendClawer = stockDividendClawer; _stockDividendRepository = stockDividendRepository; _stockInfoRepository = stockInfoRepository; }