diff --git a/.gitignore b/.gitignore index 32d0b57..e660086 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,11 @@ backend/data/** !backend/data/.gitkeep data/** !data/.gitkeep +# 扩展数据: 只跟踪 config.json(表结构), 其他数据文件一律忽略 +# 注意 gitignore 否定规则特性: 需先放行目录才能放行内部文件 +!data/ext_data/ +data/ext_data/** +!data/ext_data/**/config.json # ===== Secrets ===== .env diff --git a/backend/pyproject.toml b/backend/pyproject.toml index f709c87..cda2375 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tf-stocks-panel-backend" -version = "0.1.20" +version = "0.1.22" description = "A 股选股 + 监控 + 回测面板 — TickFlow 适配" readme = "../README.md" requires-python = ">=3.11" diff --git a/data/ext_data/ext_gn_ths/config.json b/data/ext_data/ext_gn_ths/config.json new file mode 100644 index 0000000..e83ed20 --- /dev/null +++ b/data/ext_data/ext_gn_ths/config.json @@ -0,0 +1,44 @@ +{ + "id": "ext_gn_ths", + "label": "扩展概念", + "mode": "snapshot", + "fields": [ + { + "name": "symbol", + "dtype": "string", + "label": "标的代码" + }, + { + "name": "code", + "dtype": "string", + "label": "代码" + }, + { + "name": "股票代码", + "dtype": "string", + "label": "股票代码" + }, + { + "name": "股票简称", + "dtype": "string", + "label": "股票简称" + }, + { + "name": "所属概念", + "dtype": "string", + "label": "所属概念" + } + ], + "description": "ths概念、日更", + "symbol_map": { + "type": "mapped", + "col": "股票代码" + }, + "code_map": { + "type": "computed", + "from": "symbol", + "method": "strip_exchange" + }, + "created_at": "2026-06-19T19:56:33.098883", + "updated_at": "2026-06-19T19:56:33.098883" +} \ No newline at end of file diff --git a/data/ext_data/ext_hy_ths/config.json b/data/ext_data/ext_hy_ths/config.json new file mode 100644 index 0000000..411faf3 --- /dev/null +++ b/data/ext_data/ext_hy_ths/config.json @@ -0,0 +1,44 @@ +{ + "id": "ext_hy_ths", + "label": "扩展行业", + "mode": "snapshot", + "fields": [ + { + "name": "symbol", + "dtype": "string", + "label": "标的代码" + }, + { + "name": "code", + "dtype": "string", + "label": "代码" + }, + { + "name": "股票代码", + "dtype": "string", + "label": "股票代码" + }, + { + "name": "股票简称", + "dtype": "string", + "label": "股票简称" + }, + { + "name": "所属同花顺行业", + "dtype": "string", + "label": "所属行业" + } + ], + "description": "ths行业、月更", + "symbol_map": { + "type": "mapped", + "col": "股票代码" + }, + "code_map": { + "type": "computed", + "from": "symbol", + "method": "strip_exchange" + }, + "created_at": "2026-06-19T19:57:17.004819", + "updated_at": "2026-06-19T19:57:17.004819" +} \ No newline at end of file diff --git a/data/ext_data/ext_sxdata_ths/config.json b/data/ext_data/ext_sxdata_ths/config.json new file mode 100644 index 0000000..5da5caf --- /dev/null +++ b/data/ext_data/ext_sxdata_ths/config.json @@ -0,0 +1,89 @@ +{ + "id": "ext_sxdata_ths", + "label": "扩展ths数据", + "mode": "timeseries", + "fields": [ + { + "name": "symbol", + "dtype": "string", + "label": "标的代码" + }, + { + "name": "code", + "dtype": "string", + "label": "代码" + }, + { + "name": "股票代码", + "dtype": "string", + "label": "股票代码" + }, + { + "name": "股票简称", + "dtype": "string", + "label": "股票简称" + }, + { + "name": "人气排名", + "dtype": "int", + "label": "人气排名" + }, + { + "name": "个股热度", + "dtype": "float", + "label": "个股热度" + }, + { + "name": "资金流向", + "dtype": "float", + "label": "资金流向" + }, + { + "name": "PE", + "dtype": "float", + "label": "PE" + }, + { + "name": "PE_TTM", + "dtype": "float", + "label": "PE_TTM" + }, + { + "name": "PB", + "dtype": "float", + "label": "PB" + }, + { + "name": "ROE", + "dtype": "float", + "label": "ROE" + }, + { + "name": "营收", + "dtype": "float", + "label": "营收" + }, + { + "name": "净利润", + "dtype": "float", + "label": "净利润" + }, + { + "name": "所属概念", + "dtype": "string", + "label": "所属概念" + } + ], + "description": "扩展时序ths数据、实时更、人气、资金流向、财务等", + "symbol_map": { + "type": "mapped", + "col": "股票代码" + }, + "code_map": { + "type": "computed", + "from": "symbol", + "method": "strip_exchange" + }, + "created_at": "2026-06-19T19:59:15.923591", + "updated_at": "2026-06-19T19:59:15.923591" +} \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 287a0c8..61efd4b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "tf-stocks-panel-frontend", "private": true, - "version": "0.1.20", + "version": "0.1.22", "type": "module", "scripts": { "dev": "vite",