diff --git a/scripts/accumulation_scanner.py b/scripts/accumulation_scanner.py index c29d867d..0600e9c5 100644 --- a/scripts/accumulation_scanner.py +++ b/scripts/accumulation_scanner.py @@ -25,9 +25,9 @@ def fetch_qq_batch(symbols): """腾讯批量实时行情""" if not symbols: return {} results = {} - # 分批,每批50个 - for i in range(0, len(symbols), 50): - batch = symbols[i:i+50] + # 分批,每批100个(腾讯推荐上限) + for i in range(0, len(symbols), 100): + batch = symbols[i:i+100] url = f"http://qt.gtimg.cn/q={','.join(batch)}" try: req = urllib.request.Request(url, headers={"User-Agent": UA}) @@ -63,7 +63,7 @@ def fetch_qq_batch(symbols): } except Exception as e: print(f" 批量查询错误: {e}", file=sys.stderr) - time.sleep(0.3) # 批次间隔 + time.sleep(0.15) # 批次间隔150ms(腾讯建议100ms以上,留余量) return results def get_stock_pool():