Korea Finance Factcheck

v0.2.0
io.github.hs85-newbie/korea-finance-factcheck Checked 3 days ago Published 1 month ago

Fact-checks numbers in Korean finance writing against DART, Bank of Korea ECOS and US Treasury

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_unit_errors

본문에 '회사명(종목코드)'와 함께 적힌 매출·영업이익·순이익이 DART 사업보고서 값과 10배·100배 어긋나는지 본다. DART_API_KEY 가 필요하다. 조회가 안 되면 skipped 에 이유를 남긴다.

ParameterTypeDescription
text *string

check_ratio_direction

'X 1주당 Y n주' 문장이 공시 원문(본문의 접수번호로 조회)이나 본문 안의 'A : B = 1 : x' 표기와 반대로 적혔는지 본다.

ParameterTypeDescription
text *string

check_market_numbers

미국 국채금리(재무부)와 코스피 종가·한국 기준금리·환율(한국은행 ECOS)을 그날 공식값과 대조한다. as_of 는 글을 쓴 날(YYYY-MM-DD). 없으면 본문의 '**작성**: 날짜' 줄, 그것도 없으면 오늘. ECOS 항목은 ECOS_API_KEY 가 필요하다.

ParameterTypeDescription
text *string
as_of

check_stock_closes

'삼성전자(005930) … 종가 214,500원'처럼 적힌 종목 종가를 한국거래소(KRX) 공식 종가와 대조한다. 등락률은 보지 않는다. KRX_API_KEY 가 필요하고, KRX Open API 약관상 비상업 목적에만 쓸 수 있다. as_of 는 글을 쓴 날(YYYY-MM-DD). 없으면 본문의 '**작성**: 날짜' 줄, 그것도 없으면 오늘.

ParameterTypeDescription
text *string
as_of

check_all

위 검사를 한 번에 돌린다. 하나가 실패해도 나머지 결과는 돌려준다.

ParameterTypeDescription
text *string
as_of