mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 16:44:15 +08:00
feat: 默认扩展数据表结构(概念/行业/新股) + gitignore放行ext_data config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tf-stocks-panel-frontend",
|
||||
"private": true,
|
||||
"version": "0.1.20",
|
||||
"version": "0.1.22",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
Reference in New Issue
Block a user