thaifin-financials
收藏资源简介:
thaifin-financials是一个标记的长格式财务报表数据集,涵盖所有泰国上市公司(包括SET和mai市场)的财务数据,基于泰国证券交易委员会(SEC)IDISC的公开监管文件构建。数据集以泰语和英语为主,专注于金融领域,规模在10万到100万条记录之间。数据内容源自原始监管文件,如FINANCIAL_STATEMENTS.XLS[X]、NOTES.DOC[X]和AUDITOR_REPORT.DOC[X],每个数据行可通过filing_id追溯到具体文件。数据集计划包含五个Parquet表:financial_lines(按公司、期间、报表、概念等粒度存储财务行项目)、concepts(带可选XBRL参考的策划概念字典)、auditor_reports(结构化审计意见和原始Markdown)、notes_text(财务报表附注的完整Markdown文本)和filings(数据来源和增量状态记录)。该数据集适用于金融分析、财务报表标准化、基本面研究等任务,可通过thaifin库进行编程访问,支持流式查询和DataFrame操作。数据集采用CC-BY-4.0许可证,使用时需引用泰国SEC IDISC作为主要来源,并注明thaifin-financials的规范化层贡献。数据集目前处于引导阶段,首次修订进行中,并提供按月修订版本以支持版本固定。
thaifin-financials is a labeled long-form financial statement dataset covering financial data of all Thai listed companies (including SET and mai markets), built from public regulatory filings of the Thai Securities and Exchange Commission (SEC) IDISC. The dataset is primarily in Thai and English, focused on the financial domain, with a scale between 100,000 to 1,000,000 records. Data content originates from original regulatory files such as FINANCIAL_STATEMENTS.XLS[X], NOTES.DOC[X], and AUDITOR_REPORT.DOC[X], and each data row can be traced back to specific files via filing_id. The dataset plans to include five Parquet tables: financial_lines (storing financial line items at granularities like company, period, statement, concept), concepts (a curated concept dictionary with optional XBRL references), auditor_reports (structured audit opinions and raw Markdown), notes_text (full Markdown text of financial statement notes), and filings (records of data sources and incremental status). It is suitable for tasks like financial analysis, financial statement standardization, and fundamental research, and can be accessed programmatically via the thaifin library, supporting streaming queries and DataFrame operations. The dataset uses the CC-BY-4.0 license, requiring attribution to the Thai SEC IDISC as the primary source and acknowledgment of thaifin-financials normalization layer contribution. Currently in the bootstrapping phase, the first revision is underway, with monthly revision versions provided to support version pinning.
数据集概述:thaifin-financials
基本信息
- 数据集名称: thaifin-financials
- 语言: 泰语 (th)、英语 (en)
- 标签: 金融、泰国、财务报表、基本面、泰国财务报告准则 (TFRS)、国际财务报告准则 (IFRS)
- 数据规模: 100,000 < 样本数 < 1,000,000
- 许可证: CC-BY-4.0(需注明泰国SEC IDISC为原始来源,thaifin-financials为规范化层)
数据来源
- 主要来源: 泰国证券交易委员会(SEC)的IDISC系统(
market.sec.or.th/public/idisc/) - 数据追溯: 每条数据通过
filing_id→filings.source_url关联到具体的监管申报文件 - 原始文件: 申报压缩包中包含财务报表(
FINANCIAL_STATEMENTS.XLS[X])、注释(NOTES.DOC[X])、审计报告(AUDITOR_REPORT.DOC[X])
数据模式(Schema)
数据集由五个Parquet表组成:
| 表名 | 粒度 |
|---|---|
financial_lines.parquet |
每个 (symbol, period, statement, concept, raw_label_th, consolidation, audit_basis) 一行 |
concepts.parquet |
概念字典,包含可选的XBRL引用 |
auditor_reports.parquet |
结构化审计意见及原始Markdown,每个申报文件一行 |
notes_text.parquet |
财务报表注释的Markdown全文,每个申报文件一行 |
filings.parquet |
数据来源及增量状态信息 |
数据覆盖范围
- 覆盖所有泰国上市公司(SET主板 + mai创业板)
- 数据为标签化的长格式财务报表,基于主要SEC IDISC申报文件构建
库访问方式
- 可通过
thaifinPython 库访问(库地址:https://github.com/ninyawee/thaifin) - 示例用法: python from thaifin import Stock Stock("PTT").capex # 通过DuckDB over HTTP流式获取 Stock("PTT").income_statement # 返回宽表格式的DataFrame
版本与更新
- 每月CI构建后生成标记版本(格式:
YYYY.MM) - 可在库中固定特定数据版本:
thaifin.set_data_revision("2026.05") - 当前状态为引导阶段,首次修订进行中




