Add ATR20前复权 field to DatasetIndicatorPro and update StkFactorPro to include ATR前复权

This commit is contained in:
2026-06-28 20:14:22 +08:00
parent afaecacb5b
commit c509c346f0
2 changed files with 2 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ type DatasetIndicatorPro struct {
TotalMv float64 `gorm:"type:decimal(20,4);comment:总市值(万元)"` TotalMv float64 `gorm:"type:decimal(20,4);comment:总市值(万元)"`
CircMv float64 `gorm:"type:decimal(20,4);comment:流通市值(万元)"` CircMv float64 `gorm:"type:decimal(20,4);comment:流通市值(万元)"`
AdjFactor float64 `gorm:"type:decimal(20,6);comment:复权因子"` AdjFactor float64 `gorm:"type:decimal(20,6);comment:复权因子"`
AtrQfq20 float64 `gorm:"type:decimal(20,6);comment:ATR20前复权"`
MaQfq5 float64 `gorm:"type:decimal(20,6);comment:MA5前复权"` MaQfq5 float64 `gorm:"type:decimal(20,6);comment:MA5前复权"`
MaQfq10 float64 `gorm:"type:decimal(20,6);comment:MA10前复权"` MaQfq10 float64 `gorm:"type:decimal(20,6);comment:MA10前复权"`
MaQfq20 float64 `gorm:"type:decimal(20,6);comment:MA20前复权"` MaQfq20 float64 `gorm:"type:decimal(20,6);comment:MA20前复权"`

View File

@@ -55,6 +55,7 @@ func (cli *TushareClient) StkFactorPro(ts_code, trade_date, start_date, end_date
{"total_mv": "总市值(万元)"}, {"total_mv": "总市值(万元)"},
{"circ_mv": "流通市值(万元)"}, {"circ_mv": "流通市值(万元)"},
{"adj_factor": "复权因子"}, {"adj_factor": "复权因子"},
{"atr_qfq": "ATR前复权"},
{"ma_qfq_5": "MA5前复权"}, {"ma_qfq_5": "MA5前复权"},
{"ma_qfq_10": "MA10前复权"}, {"ma_qfq_10": "MA10前复权"},
{"ma_qfq_20": "MA20前复权"}, {"ma_qfq_20": "MA20前复权"},