거부종목 검색 시 synonym 체크
- 테스트 코드 추가
This commit is contained in:
27
CodeList.cs
27
CodeList.cs
@@ -43,10 +43,11 @@ namespace NewsCrawler
|
|||||||
public CodeList()
|
public CodeList()
|
||||||
{
|
{
|
||||||
MakeList();
|
MakeList();
|
||||||
|
LoadSynonym();
|
||||||
LoadManualList();
|
LoadManualList();
|
||||||
LoadDenialList();
|
LoadDenialList();
|
||||||
LoadDuplicatedList();
|
LoadDuplicatedList();
|
||||||
LoadSynonym();
|
|
||||||
Test();
|
Test();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,13 +98,13 @@ namespace NewsCrawler
|
|||||||
var CodeMarketKind = CodeMgr.GetStockMarketKind(Code.m_strCode);
|
var CodeMarketKind = CodeMgr.GetStockMarketKind(Code.m_strCode);
|
||||||
var CodeSectionKind = CodeMgr.GetStockSectionKind(Code.m_strCode);
|
var CodeSectionKind = CodeMgr.GetStockSectionKind(Code.m_strCode);
|
||||||
|
|
||||||
if(Code.m_strCode[0] == 'A' &&
|
//if(Code.m_strCode[0] == 'A' &&
|
||||||
(CodeMarketKind != CPUTILLib.CPE_MARKET_KIND.CPC_MARKET_FREEBOARD) &&
|
// (CodeMarketKind != CPUTILLib.CPE_MARKET_KIND.CPC_MARKET_FREEBOARD) &&
|
||||||
(CodeSectionKind == CPUTILLib.CPE_KSE_SECTION_KIND.CPC_KSE_SECTION_KIND_NULL ||
|
// (CodeSectionKind == CPUTILLib.CPE_KSE_SECTION_KIND.CPC_KSE_SECTION_KIND_NULL ||
|
||||||
CodeSectionKind == CPUTILLib.CPE_KSE_SECTION_KIND.CPC_KSE_SECTION_KIND_ST))
|
// CodeSectionKind == CPUTILLib.CPE_KSE_SECTION_KIND.CPC_KSE_SECTION_KIND_ST))
|
||||||
{
|
//{
|
||||||
m_CodeList.Add(Code);
|
m_CodeList.Add(Code);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_CodeList.Sort((a, b) => b.m_strName.Length-a.m_strName.Length);
|
m_CodeList.Sort((a, b) => b.m_strName.Length-a.m_strName.Length);
|
||||||
@@ -125,8 +126,16 @@ namespace NewsCrawler
|
|||||||
CODE_VALUE code = m_CodeList.Find(s => s.m_strName == strLine.Trim());
|
CODE_VALUE code = m_CodeList.Find(s => s.m_strName == strLine.Trim());
|
||||||
if(code == null)
|
if(code == null)
|
||||||
{
|
{
|
||||||
Util.Log(Util.LOG_TYPE.ERROR, string.Format("[code-{0}] 존재하지 않는 기업명입니다. ({1})", enType.ToString().ToLower(), strLine));
|
SYNONYM_VALUE Synonym = m_SynonymList.Find(s => s.m_strName == strLine);
|
||||||
continue;
|
if (Synonym != null)
|
||||||
|
{
|
||||||
|
code = m_CodeList.Find(s => s.m_strCode == Synonym.m_strCode);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Util.Log(Util.LOG_TYPE.ERROR, string.Format("[code-{0}] 존재하지 않는 기업명입니다. ({1})", enType.ToString().ToLower(), strLine));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
code.m_enType |= enType;
|
code.m_enType |= enType;
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ namespace NewsCrawler
|
|||||||
if(Util.IsDebugging() == false)
|
if(Util.IsDebugging() == false)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
InsertItem("[test] 신한, 덕산네오룩스 66만여주 취득14:38", "", "", new DateTime(2016, 11, 30, 00, 00, 00), DateTime.Now, "http://www.etoday.co.kr/news/sokbo/sokbo_view.htm?idxno=2016112914055964082", "이투데이", 0, false);
|
||||||
InsertItem("[test] 덕산하이메탈, 덕산네오룩스 66만여주 취득14:38", "", "", new DateTime(2016, 11, 30, 00, 00, 00), DateTime.Now, "http://www.asiae.co.kr/news/sokbo/sokbo_view.htm?idxno=2016112914371817318", "asiae", 0, false);
|
InsertItem("[test] 덕산하이메탈, 덕산네오룩스 66만여주 취득14:38", "", "", new DateTime(2016, 11, 30, 00, 00, 00), DateTime.Now, "http://www.asiae.co.kr/news/sokbo/sokbo_view.htm?idxno=2016112914371817318", "asiae", 0, false);
|
||||||
InsertItem("[test] 자연과환경, 12월15일~22일 주주명부폐쇄14:19", "", "", new DateTime(2016, 11, 30, 00, 00, 00), DateTime.Now, "http://www.asiae.co.kr/news/sokbo/sokbo_view.htm?idxno=2016112914193170301", "asiae", 0, false);
|
InsertItem("[test] 자연과환경, 12월15일~22일 주주명부폐쇄14:19", "", "", new DateTime(2016, 11, 30, 00, 00, 00), DateTime.Now, "http://www.asiae.co.kr/news/sokbo/sokbo_view.htm?idxno=2016112914193170301", "asiae", 0, false);
|
||||||
InsertItem("[test] 이엠코리아, 한국항공우주산업과 3억원 규모 공급계약14:06", "", "", new DateTime(2016, 11, 30, 00, 00, 00), DateTime.Now, "http://www.asiae.co.kr/news/sokbo/sokbo_view.htm?idxno=2016112914055964082", "asiae", 0, false);
|
InsertItem("[test] 이엠코리아, 한국항공우주산업과 3억원 규모 공급계약14:06", "", "", new DateTime(2016, 11, 30, 00, 00, 00), DateTime.Now, "http://www.asiae.co.kr/news/sokbo/sokbo_view.htm?idxno=2016112914055964082", "asiae", 0, false);
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ ann-patent=True
|
|||||||
ann-patent-search-string=(미국|중국)
|
ann-patent-search-string=(미국|중국)
|
||||||
ann-profit-change=True
|
ann-profit-change=True
|
||||||
ann-profit-change-rate=5
|
ann-profit-change-rate=5
|
||||||
|
mock-trading=False
|
||||||
ann-except-modify=True
|
ann-except-modify=True
|
||||||
account=335272135
|
account=335272135
|
||||||
sub-account=10
|
sub-account=10
|
||||||
|
|||||||
Reference in New Issue
Block a user