This commit is contained in:
yanweidong
2026-01-26 02:39:26 +08:00
parent cc4f8184e1
commit 44d1a93789
2 changed files with 7 additions and 1 deletions

View File

@@ -67,6 +67,12 @@ func ReFinaIndicator(in *tushare.APIResponse) (bool, map[string]any) {
func GetFinaIndicator() {
for _, code := range GetStockCodes() {
var fCnt int64
impl.DBService.Model(&models.StockFinaIndicator{}).Where("ts_code=?", code).Count(&fCnt)
if fCnt >= 11 {
continue
}
for _, period := range PeriodArgs {
// 请求API
reply, err := SetFinaIndicator(code, period)