데이터셋 카드 한글 전면 개편: 웹 터미널·데이터 센터(CSV·엑셀·라이브 API) + 전체 데이터 surface 반영
Browse files
README.md
CHANGED
|
@@ -16,13 +16,15 @@ tags:
|
|
| 16 |
- korea
|
| 17 |
- financial-statements
|
| 18 |
- corporate-filings
|
|
|
|
|
|
|
| 19 |
- 전자공시
|
| 20 |
- 재무제표
|
| 21 |
- 사업보고서
|
| 22 |
- 한국
|
| 23 |
pretty_name: DartLab 전자공시 데이터
|
| 24 |
size_categories:
|
| 25 |
-
-
|
| 26 |
---
|
| 27 |
|
| 28 |
<div align="center">
|
|
@@ -31,133 +33,208 @@ size_categories:
|
|
| 31 |
|
| 32 |
<img alt="DartLab" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/logo.png" width="160">
|
| 33 |
|
| 34 |
-
<h3>DartLab
|
| 35 |
|
| 36 |
-
<p><b>
|
| 37 |
-
<p>
|
| 38 |
|
| 39 |
<p>
|
|
|
|
|
|
|
| 40 |
<a href="https://github.com/eddmpython/dartlab"><img src="https://img.shields.io/badge/GitHub-dartlab-ea4647?style=for-the-badge&labelColor=050811&logo=github&logoColor=white" alt="GitHub"></a>
|
| 41 |
<a href="https://pypi.org/project/dartlab/"><img src="https://img.shields.io/pypi/v/dartlab?style=for-the-badge&color=ea4647&labelColor=050811&logo=pypi&logoColor=white" alt="PyPI"></a>
|
| 42 |
-
<a href="https://
|
| 43 |
-
<a href="https://buymeacoffee.com/eddmpython"><img src="https://img.shields.io/badge/Sponsor-Buy_Me_A_Coffee-ffdd00?style=for-the-badge&labelColor=050811&logo=buy-me-a-coffee&logoColor=white" alt="Sponsor"></a>
|
| 44 |
</p>
|
| 45 |
|
| 46 |
</div>
|
| 47 |
|
| 48 |
-
##
|
| 49 |
|
| 50 |
<img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-study.png" width="120">
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
-
한국
|
| 55 |
|
| 56 |
-
|
| 57 |
|
| 58 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
```
|
| 61 |
-
dart/
|
| 62 |
-
├── panel/
|
| 63 |
-
├── finance/
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
```
|
| 66 |
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
### panel — Disclosure Panel
|
| 70 |
|
| 71 |
-
DART
|
| 72 |
|
| 73 |
-
|
|
| 74 |
|--------|------------|
|
| 75 |
-
| `corp` |
|
| 76 |
-
| `period` |
|
| 77 |
-
| `rceptNo` | DART
|
| 78 |
-
| `chapter` |
|
| 79 |
-
| `sectionLeaf` |
|
| 80 |
-
| `sectionPath` |
|
| 81 |
| `leafType` | `text` / `table` |
|
| 82 |
-
| `blockLeaf` |
|
| 83 |
-
| `xbrlClass` |
|
| 84 |
-
| `disclosureKey` |
|
| 85 |
-
| `contentRaw` |
|
| 86 |
|
| 87 |
-
### finance
|
| 88 |
|
| 89 |
-
|
| 90 |
|
| 91 |
-
|
|
| 92 |
|--------|------------|
|
| 93 |
-
| `bsns_year` |
|
| 94 |
-
| `reprt_code` |
|
| 95 |
-
| `stock_code` |
|
| 96 |
-
| `corp_name` |
|
| 97 |
-
| `fs_div` | `CFS`
|
| 98 |
-
| `sj_div` |
|
| 99 |
-
| `account_id` | XBRL
|
| 100 |
-
| `account_nm` |
|
| 101 |
-
| `thstrm_amount` |
|
| 102 |
-
| `frmtrm_amount` |
|
| 103 |
-
| `bfefrmtrm_amount` |
|
| 104 |
-
|
| 105 |
-
### report
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
|
| 110 |
|--------|------------|
|
| 111 |
-
| `apiType` | API
|
| 112 |
-
| `year` |
|
| 113 |
-
| `quarter` |
|
| 114 |
-
| `stockCode` |
|
| 115 |
-
| `corpCode` | DART
|
| 116 |
-
| *(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
-
|
| 119 |
|
| 120 |
-
|
| 121 |
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
-
|
|
|
|
|
|
|
|
|
|
| 125 |
|
| 126 |
-
|
| 127 |
|
| 128 |
-
|
| 129 |
|
| 130 |
-
<
|
| 131 |
|
| 132 |
-
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
-
|
| 135 |
-
- **Intro blog** — [DartLab 시작하기 / Getting started](https://eddmpython.github.io/dartlab/blog/dartlab-easy-start)
|
| 136 |
-
- **Docs** — [eddmpython.github.io/dartlab](https://eddmpython.github.io/dartlab/)
|
| 137 |
-
- **YouTube** — [@eddmpython](https://www.youtube.com/@eddmpython)
|
| 138 |
|
| 139 |
-
|
|
|
|
|
|
|
| 140 |
|
| 141 |
-
##
|
| 142 |
|
| 143 |
-
|
| 144 |
-
- **EDGAR** (US): [sec.gov/edgar](https://www.sec.gov/edgar) — SEC's Electronic Data Gathering, Analysis, and Retrieval system
|
| 145 |
|
| 146 |
-
|
| 147 |
|
| 148 |
-
|
| 149 |
|
| 150 |
-
|
| 151 |
|
| 152 |
-
|
|
|
|
|
|
|
| 153 |
|
| 154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
|
| 156 |
-
##
|
| 157 |
|
| 158 |
-
|
| 159 |
|
| 160 |
-
[
|
| 163 |
-
- [Blog](https://eddmpython.github.io/dartlab/blog/) — 120+ articles on Korean disclosure analysis
|
|
|
|
| 16 |
- korea
|
| 17 |
- financial-statements
|
| 18 |
- corporate-filings
|
| 19 |
+
- stock-prices
|
| 20 |
+
- macroeconomics
|
| 21 |
- 전자공시
|
| 22 |
- 재무제표
|
| 23 |
- 사업보고서
|
| 24 |
- 한국
|
| 25 |
pretty_name: DartLab 전자공시 데이터
|
| 26 |
size_categories:
|
| 27 |
+
- 1M<n<10M
|
| 28 |
---
|
| 29 |
|
| 30 |
<div align="center">
|
|
|
|
| 33 |
|
| 34 |
<img alt="DartLab" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/logo.png" width="160">
|
| 35 |
|
| 36 |
+
<h3>DartLab 데이터</h3>
|
| 37 |
|
| 38 |
+
<p><b>종목코드 하나로 읽는 한국 DART + 미국 SEC EDGAR 공시 데이터</b></p>
|
| 39 |
+
<p><sub>Structured Korean (DART) and US (SEC EDGAR) disclosure data, ready as Parquet.</sub></p>
|
| 40 |
|
| 41 |
<p>
|
| 42 |
+
<a href="https://eddmpython.github.io/dartlab/terminal"><img src="https://img.shields.io/badge/터미널-바로_써보기-ea4647?style=for-the-badge&labelColor=050811" alt="터미널"></a>
|
| 43 |
+
<a href="https://eddmpython.github.io/dartlab/data"><img src="https://img.shields.io/badge/데이터_센터-CSV·엑셀_받기-38bdf8?style=for-the-badge&labelColor=050811" alt="데이터 센터"></a>
|
| 44 |
<a href="https://github.com/eddmpython/dartlab"><img src="https://img.shields.io/badge/GitHub-dartlab-ea4647?style=for-the-badge&labelColor=050811&logo=github&logoColor=white" alt="GitHub"></a>
|
| 45 |
<a href="https://pypi.org/project/dartlab/"><img src="https://img.shields.io/pypi/v/dartlab?style=for-the-badge&color=ea4647&labelColor=050811&logo=pypi&logoColor=white" alt="PyPI"></a>
|
| 46 |
+
<a href="https://buymeacoffee.com/eddmpython"><img src="https://img.shields.io/badge/후원-Buy_Me_A_Coffee-ffdd00?style=for-the-badge&labelColor=050811&logo=buy-me-a-coffee&logoColor=white" alt="후원"></a>
|
|
|
|
| 47 |
</p>
|
| 48 |
|
| 49 |
</div>
|
| 50 |
|
| 51 |
+
## 무엇인가요?
|
| 52 |
|
| 53 |
<img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-study.png" width="120">
|
| 54 |
|
| 55 |
+
[DartLab](https://github.com/eddmpython/dartlab)이 한국 DART 전자공시와 미국 SEC EDGAR 공시를 **종목코드 하나로 비교 가능한 표**로 가공해 [Parquet](https://parquet.apache.org/)으로 올려둔 데이터셋입니다.
|
| 56 |
|
| 57 |
+
한국 전 상장사(약 2,700사)와 미국 주요 상장사(약 1,000사)의 재무제표, 사업보고서 본문, 정형 공시, 주가, 거시지표가 들어 있습니다.
|
| 58 |
|
| 59 |
+
이 데이터셋은 DartLab의 **데이터 층**입니다. `dartlab.Company("005930")`을 호출하면 라이브러리가 필요한 parquet을 여기서 자동으로 내려받습니다. 숫자는 원문 그대로 보존합니다(반올림·추정·보간 없음).
|
| 60 |
|
| 61 |
+
## 코드 없이도 바로 씁니다
|
| 62 |
+
|
| 63 |
+
<img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-analyze.png" width="120">
|
| 64 |
+
|
| 65 |
+
Python을 몰라도 됩니다. 웹에서 데이터를 고르고 미리본 다음, **CSV·엑셀(.xlsx)로 바로 받거나** 구글시트·Python·curl이 읽는 **라이브 API**로 가져갈 수 있습니다.
|
| 66 |
+
|
| 67 |
+
| 입구 | 무엇을 하나 | 링크 |
|
| 68 |
+
|---|---|---|
|
| 69 |
+
| **데이터 센터** | DART·EDGAR·시세·거시 데이터를 골라 미리보기 → CSV·엑셀 다운로드 → 구글시트·Python·curl 라이브 API | [열기](https://eddmpython.github.io/dartlab/data) |
|
| 70 |
+
| **터미널** | 종목 하나로 재무·주가·공시·신용·산업·매크로를 한 화면에서. 헤더 「데이터」에서 회사 데이터 일괄 CSV·엑셀 묶음 다운로드 | [열기](https://eddmpython.github.io/dartlab/terminal) |
|
| 71 |
+
| **공시 뷰어** | 사업보고서 본문을 항목 × 기간 격자로 | [열기](https://eddmpython.github.io/dartlab/viewer) |
|
| 72 |
+
|
| 73 |
+
> 데이터 센터에서는 종목·항목을 고른 뒤 컬럼 선택, 최근/처음 N행, 일·주·월·분기·연 주기 다운샘플까지 골라 받을 수 있습니다. 구글시트 한 칸에 `=IMPORTDATA(...)` 한 줄이면 약 1시간마다 자동으로 갱신됩니다.
|
| 74 |
+
|
| 75 |
+
## 데이터 구조
|
| 76 |
+
|
| 77 |
+
각 파일은 회사 1곳입니다: `{종목코드}.parquet` (시세·거시 등 일부는 날짜·시리즈 단위).
|
| 78 |
|
| 79 |
```
|
| 80 |
+
dart/ 한국 DART 공시
|
| 81 |
+
├── panel/ 공시 수평화 (회사당 17-col, 본문 + XBRL 한 표)
|
| 82 |
+
├── finance/ 재무제표 (K-IFRS XBRL: BS·IS·CF)
|
| 83 |
+
├── report/ 정형 공시 (28종 API: 배당·임원·지분 등)
|
| 84 |
+
└── scan/ 전 상장사 횡단 프리빌드 (비율·이익의 질·공시 변경 등)
|
| 85 |
+
|
| 86 |
+
edgar/ 미국 SEC EDGAR
|
| 87 |
+
├── panel/ 공시 수평화 (회사당 16-col, cross-market)
|
| 88 |
+
├── financeStmt/ 재무제표 (DART finance 와 동형 표준화)
|
| 89 |
+
├── prices/ 회사별 일별 OHLCV
|
| 90 |
+
└── tickers/ ticker↔CIK 맵
|
| 91 |
+
|
| 92 |
+
gov/ · krx/ 시세·지수 (공공데이터·KRX)
|
| 93 |
+
├── prices/company/ 회사별 일별 OHLCV + 시가총액
|
| 94 |
+
├── prices/date/ 일별 전종목 (날짜 샤딩)
|
| 95 |
+
└── indices/ KOSPI·KOSDAQ 등 지수 일별
|
| 96 |
+
|
| 97 |
+
macro/ 거시경제 시계열
|
| 98 |
+
├── fred/ 미국 FRED (금리·물가 등)
|
| 99 |
+
├── ecos/ 한국은행 ECOS
|
| 100 |
+
└── customs/ 관세청 월별 수출입
|
| 101 |
+
|
| 102 |
+
research/
|
| 103 |
+
└── brokerage/ 증권사 리서치 메타 인덱스 (제목·링크·발간일, 본문 없음)
|
| 104 |
```
|
| 105 |
|
| 106 |
+
### dart/panel · 공시 수평화
|
|
|
|
|
|
|
| 107 |
|
| 108 |
+
DART 정기보고서를 회사 단위 패널로 수평화합니다. 서술 본문과 XBRL 연결 표가 한 artifact 에 함께 들어가, 뷰어·검색·비교가 같은 출처를 씁니다.
|
| 109 |
|
| 110 |
+
| 컬럼 | 설명 |
|
| 111 |
|--------|------------|
|
| 112 |
+
| `corp` | 종목코드 |
|
| 113 |
+
| `period` | 기간 키 (`YYYYQn`) |
|
| 114 |
+
| `rceptNo` | DART 접수번호 |
|
| 115 |
+
| `chapter` | 보고서 최상위 장 |
|
| 116 |
+
| `sectionLeaf` | 원본 섹션 제목 |
|
| 117 |
+
| `sectionPath` | 전체 섹션 경로 |
|
| 118 |
| `leafType` | `text` / `table` |
|
| 119 |
+
| `blockLeaf` | 블록·표 제목 |
|
| 120 |
+
| `xbrlClass` | DART XBRL 클래스 |
|
| 121 |
+
| `disclosureKey` | 수평화 표준 키 |
|
| 122 |
+
| `contentRaw` | 원본 보존 XML/텍스트 |
|
| 123 |
|
| 124 |
+
### dart/finance · 재무제표
|
| 125 |
|
| 126 |
+
DART OpenAPI(`fnlttSinglAcntAll`) 기반 XBRL 재무 데이터.
|
| 127 |
|
| 128 |
+
| 컬럼 | 설명 |
|
| 129 |
|--------|------------|
|
| 130 |
+
| `bsns_year` | 사업연도 |
|
| 131 |
+
| `reprt_code` | 보고서 분기 코드 |
|
| 132 |
+
| `stock_code` | 종목코드 |
|
| 133 |
+
| `corp_name` | 회사명 |
|
| 134 |
+
| `fs_div` | `CFS`(연결) / `OFS`(별도) |
|
| 135 |
+
| `sj_div` | 재무제표 구분 (BS/IS/CF/SCE) |
|
| 136 |
+
| `account_id` | XBRL 계정 ID |
|
| 137 |
+
| `account_nm` | 계정명(한글) |
|
| 138 |
+
| `thstrm_amount` | 당기 금액 |
|
| 139 |
+
| `frmtrm_amount` | 전기 금액 |
|
| 140 |
+
| `bfefrmtrm_amount` | 전전기 금액 |
|
| 141 |
+
|
| 142 |
+
### dart/report · 정형 공시
|
| 143 |
+
|
| 144 |
+
지배구조, 보수, 지분, 배당 등을 다루는 DART API 28종.
|
| 145 |
+
|
| 146 |
+
| 컬럼 | 설명 |
|
| 147 |
|--------|------------|
|
| 148 |
+
| `apiType` | API 분류 (예: `dividend`, `employee`, `executive`) |
|
| 149 |
+
| `year` | 연도 |
|
| 150 |
+
| `quarter` | 분기 |
|
| 151 |
+
| `stockCode` | 종목코드 |
|
| 152 |
+
| `corpCode` | DART 고유번호 |
|
| 153 |
+
| *(가변)* | 분류별 컬럼 |
|
| 154 |
+
|
| 155 |
+
**28종 API:** dividend, employee, executive, majorHolder, treasuryStock, capitalChange, auditOpinion, stockTotal, outsideDirector, corporateBond 등.
|
| 156 |
+
|
| 157 |
+
### 그 외 데이터
|
| 158 |
+
|
| 159 |
+
| 경로 | 내용 |
|
| 160 |
+
|---|---|
|
| 161 |
+
| `edgar/panel` | 미국 공시 본문 수평화 (회사당, cross-market 16-col) |
|
| 162 |
+
| `edgar/financeStmt` | 미국 재무제표 (DART finance 와 동형 표준화) |
|
| 163 |
+
| `edgar/prices/company` | 미국 회사별 일별 OHLCV |
|
| 164 |
+
| `gov/prices/company` | 한국 회사별 일별 OHLCV + 시가총액 |
|
| 165 |
+
| `gov/indices/index` | KOSPI·KOSDAQ 등 지수별 일별 시계열 |
|
| 166 |
+
| `macro/fred` · `macro/ecos` · `macro/customs` | 미국·한국·무역 거시 시계열 |
|
| 167 |
+
| `research/brokerage` | 증권사 리서치 링크 인덱스 (월별, 본문 없음) |
|
| 168 |
+
|
| 169 |
+
## Python 으로 쓰기
|
| 170 |
+
|
| 171 |
+
라이브러리가 필요한 parquet 을 자동으로 내려받고 로컬에 캐시합니다. API 키가 필요 없습니다.
|
| 172 |
+
|
| 173 |
+
```python
|
| 174 |
+
import dartlab
|
| 175 |
+
|
| 176 |
+
c = dartlab.Company("005930") # 삼성전자, HF 에서 자동 다운로드
|
| 177 |
+
c.panel() # 공시 항목 × 기간 전체 격자
|
| 178 |
+
c.panel("IS") # 손익계산서 (finance 정규화 숫자)
|
| 179 |
+
c.panel("사업") # 사업 개요 등 공시 본문 행 검색
|
| 180 |
+
```
|
| 181 |
|
| 182 |
+
## parquet 을 직접 읽기
|
| 183 |
|
| 184 |
+
종목코드별 parquet URL 을 어떤 도구로든 바로 읽을 수 있습니다.
|
| 185 |
|
| 186 |
+
```python
|
| 187 |
+
import polars as pl
|
| 188 |
+
url = "https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/dart/finance/005930.parquet"
|
| 189 |
+
df = pl.read_parquet(url)
|
| 190 |
+
```
|
| 191 |
|
| 192 |
+
```python
|
| 193 |
+
import duckdb
|
| 194 |
+
duckdb.sql(f"SELECT * FROM read_parquet('{url}')")
|
| 195 |
+
```
|
| 196 |
|
| 197 |
+
> **엑셀 365**: 데이터 → 데이터 가져오기 → 파일에서 → Parquet 에서 → 위 URL. 또는 [데이터 센터](https://eddmpython.github.io/dartlab/data)에서 CSV·엑셀로 바로 받기.
|
| 198 |
|
| 199 |
+
## 데이터 출처
|
| 200 |
|
| 201 |
+
<img align="right" src="https://huggingface.co/datasets/eddmpython/dartlab-data/resolve/main/assets/avatar-discover.png" width="120">
|
| 202 |
|
| 203 |
+
- **DART** (한국): [dart.fss.or.kr](https://dart.fss.or.kr) · 금융감독원 전자공시시스템
|
| 204 |
+
- **EDGAR** (미국): [sec.gov/edgar](https://www.sec.gov/edgar) · SEC 전자공시 시스템
|
| 205 |
+
- **시세·지수**: 공공데이터포털·KRX
|
| 206 |
+
- **거시**: 미국 FRED, 한국은행 ECOS, 관세청
|
| 207 |
|
| 208 |
+
모두 공개된 정부·공공 공시 시스템에서 가져온 데이터입니다. 재무 수치는 원문 그대로 보존합니다(반올림·추정·보간 없음). 뉴스 본문은 언론사 저작권 때문에 데이터셋에 포함하지 않습니다.
|
|
|
|
|
|
|
|
|
|
| 209 |
|
| 210 |
+
## 갱신 주기
|
| 211 |
+
|
| 212 |
+
GitHub Actions 로 매일 자동 갱신됩니다. 최근 공시를 증분으로 확인·수집합니다.
|
| 213 |
|
| 214 |
+
## 라이선스
|
| 215 |
|
| 216 |
+
Apache 2.0 · [DartLab](https://github.com/eddmpython/dartlab) 과 동일.
|
|
|
|
| 217 |
|
| 218 |
+
## 더 보기
|
| 219 |
|
| 220 |
+
<div align="center">
|
| 221 |
|
| 222 |
+
<a href="https://www.youtube.com/shorts/97lYLWMWzvA"><img src="https://img.youtube.com/vi/97lYLWMWzvA/maxresdefault.jpg" alt="DartLab 30초 데모" width="320"></a>
|
| 223 |
|
| 224 |
+
<sub>▶ <a href="https://www.youtube.com/shorts/97lYLWMWzvA">DartLab 30초 데모</a></sub>
|
| 225 |
+
|
| 226 |
+
</div>
|
| 227 |
|
| 228 |
+
- **GitHub** · [github.com/eddmpython/dartlab](https://github.com/eddmpython/dartlab)
|
| 229 |
+
- **시작하기** · [DartLab 쉽게 시작하기](https://eddmpython.github.io/dartlab/blog/dartlab-easy-start)
|
| 230 |
+
- **문서** · [eddmpython.github.io/dartlab](https://eddmpython.github.io/dartlab/)
|
| 231 |
+
- **블로그** · [한국 공시 분석 글 120+편](https://eddmpython.github.io/dartlab/blog/)
|
| 232 |
+
- **YouTube** · [@eddmpython](https://www.youtube.com/@eddmpython)
|
| 233 |
|
| 234 |
+
## 후원
|
| 235 |
|
| 236 |
+
DartLab 이 도움이 되셨다면 프로젝트를 후원해주세요.
|
| 237 |
|
| 238 |
+
[](https://buymeacoffee.com/eddmpython)
|
| 239 |
|
| 240 |
+
- [GitHub Issues](https://github.com/eddmpython/dartlab/issues) · 버그 신고, 기능 제안
|
|
|