string[] GetInformation() { int i, l; string exclusion, date = GetDistinctDate(CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(DateTime.Now, CalendarWeekRule.FirstDay, DayOfWeek.Sunday) - CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(DateTime.Now.AddDays(1 - DateTime.Now.Day), CalendarWeekRule.FirstDay, DayOfWeek.Sunday) + 1); Delay.Milliseconds = 605; for (i = 2; i < 4; i++) { foreach (var om in API.GetActPriceList().Split(';')) { exclusion = API.GetOptionCode(om.Insert(3, "."), i, date); if (CodeList.Exists(o => o.Equals(exclusion))) { continue; } CodeList.Add(exclusion); } } CodeList[1] = API.GetFutureCodeByIndex(24); string[] temp, market = API.GetCodeListByMarket(string.Empty).Split(';'); l = market.Length; foreach (string output in CodeList) { RemainingDay(output); } foreach (string sMarket in new CodeListByMarket()) { temp = API.GetCodeListByMarket(sMarket).Split(';'); for (i = 0; i < l; i++) { if (Array.Exists(temp, o => o.Equals(market[i]))) { market[i] = string.Empty; } } } for (i = 0; i < l; i++) { string tempCode = market[i]; if (API.GetMasterStockState(tempCode).Contains("거래정지")) { market[i] = string.Empty; continue; } if (tempCode.Length > 0) { foreach (string ex in new CodeListByExclude()) { if (API.GetMasterCodeName(tempCode).EndsWith(ex) && Array.Exists(exclude, o => o.Equals(tempCode)) == false) { market[i] = string.Empty; } } } } foreach (string output in SetCodeStorage(market)) { RemainingDay(output); } return(market); }