dartlab-data
收藏资源简介:
DartLab数据集是由DartLab项目将韩国金融监督院电子披露系统(DART)和美国证券交易委员会EDGAR系统的公开披露数据加工而成的结构化数据集。它以Parquet格式提供,使得用户可以通过一个股票代码同时访问韩国和美国的披露数据。数据集包含韩国所有上市公司(约2700家)和美国主要上市公司(约1000家)的财务报表、业务报告正文、结构化披露信息、股价、宏观指标等。数据规模约为100万至1000万条记录。数据集按公司组织,每个文件对应一个公司(部分数据按日期或序列组织)。主要子集包括:dart/panel(韩国披露水平化数据,包含公司、期间、接受编号、章节、内容等字段)、dart/finance(韩国XBRL财务数据,包含年度、报告代码、股票代码、公司名、合并/单独、报表类型、账户ID、金额等)、dart/report(韩国28种结构化披露API数据,如分红、员工、高管等,包含API类型、年份、季度等)、edgar/panel(美国披露水平化数据)、edgar/financeStmt(美国标准化财务报表)、edgar/prices(美国每日OHLCV股价)、gov/prices(韩国每日OHLCV及市值)、macro/fred、macro/ecos、macro/customs(宏观时间序列)等。所有数据均来自公开的政府或公共披露系统,财务数值保持原始精度,无四舍五入、估计或插值。数据集每日通过GitHub Actions自动增量更新。许可证为CC BY 4.0,允许自由使用和再分发,但需注明出处。该数据集适用于金融分析、表格问答、文本分类、量化研究等任务。
The DartLab dataset is a structured dataset processed by the DartLab project from public disclosure data of the Korean Financial Supervisory Services electronic disclosure system (DART) and the U.S. Securities and Exchange Commissions EDGAR system. It is provided in Parquet format, allowing users to access Korean and U.S. disclosure data simultaneously using a single stock ticker. The dataset includes financial statements, business report texts, structured disclosure information, stock prices, and macroeconomic indicators for all listed companies in Korea (approximately 2,700) and major U.S. listed companies (approximately 1,000). The data size is approximately 1 million to 10 million records. The dataset is organized by company, with each file corresponding to a company (some data organized by date or sequence). Main subsets include: dart/panel (Korean disclosure flattened data with fields like company, period, acceptance number, section, content), dart/finance (Korean XBRL financial data with year, report code, ticker, company name, consolidation/separate, statement type, account ID, amount), dart/report (Korean 28 types of structured disclosure API data such as dividends, employees, executives, with API type, year, quarter), edgar/panel (U.S. disclosure flattened data), edgar/financeStmt (U.S. standardized financial statements), edgar/prices (U.S. daily OHLCV stock prices), gov/prices (Korean daily OHLCV and market cap), macro/fred, macro/ecos, macro/customs (macroeconomic time series), etc. All data comes from public government or public disclosure systems, financial values maintain original precision without rounding, estimation, or interpolation. The dataset is incrementally updated daily via GitHub Actions. Licensed under CC BY 4.0, allowing free use and redistribution with attribution. Suitable for financial analysis, table question answering, text classification, quantitative research, etc.
DartLab 전자공시 데이터셋
数据集概述
DartLab 전자공시 데이터셋은 한국 DART(금융감독원 전자공시시스템)와 미국 SEC EDGAR 공시 데이터를 종목코드 하나로 비교 가능한 형태로 가공한 Parquet 형식의 구조화된 데이터셋입니다. 한국 전체 상장사 약 2,700개사와 미국 주요 상장사 약 1,000개사의 재무제표, 사업보고서 본문, 정형 공시, 주가, 거시지표를 포함합니다.
数据规模与结构
数据量
- 샘플 수: 약 100만~1000만 건
数据路径结构
dart/ 한국 DART 공시 ├── panel/ 공시 수평화 (회사당 17-col, 본문 + XBRL 한 표) ├── finance/ 재무제표 (K-IFRS XBRL: BS·IS·CF) ├── report/ 정형 공시 (28종 API: 배당·임원·지분 등) └── scan/ 전 상장사 횡단 프리빌드
edgar/ 미국 SEC EDGAR ├── panel/ 공시 수평화 (회사당 16-col, cross-market) ├── financeStmt/ 재무제표 (DART finance 와 동형 표준화) ├── prices/ 회사별 일별 OHLCV └── tickers/ ticker↔CIK 맵
gov/ · krx/ 시세·지수 ├── prices/company/ 회사별 일별 OHLCV + 시가총액 ├── prices/date/ 일별 전종목 (날짜 샤딩) └── indices/ KOSPI·KOSDAQ 등 지수 일별
macro/ 거시경제 시계열 ├── fred/ 미국 FRED (금리·물가 등) ├── ecos/ 한국은행 ECOS └── customs/ 관세청 월별 수출입
research/ └── brokerage/ 증권사 리서치 메타 인덱스 (제목·링크·발간일, 본문 없음)
核心数据内容
dart/panel - 공시 수평화 데이터
DART 정기보고서를 회사 단위 패널로 수평화한 데이터로, 서술 본문과 XBRL 연결 표가 함께 포함됩니다.
주요 컬럼: corp(종목코드), period(기간 키), rceptNo(DART 접수번호), chapter(보고서 장), sectionLeaf(원본 섹션 제목), sectionPath(섹션 경로), leafType(text/table), blockLeaf(블록·표 제목), xbrlClass(XBRL 클래스), disclosureKey(표준 키), contentRaw(원본 XML/텍스트)
dart/finance - 재무제표 데이터
DART OpenAPI 기반 XBRL 재무 데이터로, 연결(CFS)과 별도(OFS) 재무제표를 포함합니다.
주요 컬럼: bsns_year(사업연도), reprt_code(보고서 분기 코드), stock_code(종목코드), corp_name(회사명), fs_div(CFS/OFS), sj_div(재무제표 구분: BS/IS/CF/SCE), account_id(XBRL 계정 ID), account_nm(계정명), thstrm_amount(당기 금액), frmtrm_amount(전기 금액), bfefrmtrm_amount(전전기 금액)
dart/report - 정형 공시 데이터
지배구조, 보수, 지분, 배당 등을 다루는 DART API 28종의 데이터입니다.
주요 컬럼: apiType(API 분류), year(연도), quarter(분기), stockCode(종목코드), corpCode(DART 고유번호)
28종 API 목록: dividend, employee, executive, majorHolder, treasuryStock, capitalChange, auditOpinion, stockTotal, outsideDirector, corporateBond 등
기타 데이터
- edgar/panel: 미국 공시 본문 수평화 (회사당 16-col)
- edgar/financeStmt: 미국 재무제표 (DART finance와 동형 표준화)
- edgar/prices/company: 미국 회사별 일별 OHLCV
- gov/prices/company: 한국 회사별 일별 OHLCV + 시가총액
- gov/indices/index: KOSPI·KOSDAQ 등 지수별 일별 시계열
- macro/fred · macro/ecos · macro/customs: 미국·한국·무역 거시 시계열
- research/brokerage: 증권사 리서치 링크 인덱스 (월별, 본문 없음)
数据使用方式
Python 라이브러리 사용
python import dartlab
c = dartlab.Company("005930") # 삼성전자, HF 에서 자동 다운로드 c.panel() # 공시 항목 × 기간 전체 격자 c.panel("IS") # 손익계산서 (finance 정규화 숫자) c.panel("사업") # 사업 개요 등 공시 본문 행 검색
Parquet 직접 읽기
python import polars as pl url = "https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/dart/finance/005930.parquet" df = pl.read_parquet(url)
数据来源与更新
数据来源
- DART (한국): dart.fss.or.kr · 금융감독원 전자공시시스템
- EDGAR (미국): sec.gov/edgar · SEC 전자공시 시스템
- 시세·지수: 공공데이터포털·KRX
- 거시: 미국 FRED, 한국은행 ECOS, 관세청
更新周期
GitHub Actions로 매일 자동 갱신되며, 최근 공시를 증분으로 확인·수집합니다.
数据特性
- 모든 데이터는 공개된 정부·공공 공시 시스템에서 가져온 것입니다.
- 재무 수치는 원문 그대로 보존됩니다 (반올림·추정·보간 없음).
- 뉴스 본문은 언론사 저작권 때문에 데이터셋에 포함하지 않습니다.
许可信息
데이터는 CC BY 4.0 라이선스를 따릅니다. 자유롭게 사용·재배포가 가능하되 출처(dartlab)를 표기해야 합니다. 라이브러리 코드는 Apache 2.0 라이선스입니다.
任务类型
- 표 질의 응답 (table-question-answering)
- 텍스트 분류 (text-classification)
语言
- 한국어 (ko)
- 영어 (en)




