auto-sync: 2026-05-02 18:56:16

This commit is contained in:
cfdaily
2026-05-02 18:56:16 +08:00
parent 1e3c1b7d7e
commit d22539bd72
+1 -1
View File
@@ -84,7 +84,7 @@ def fetch_incremental(code: str, start_date: str, end_date: str):
prefix = 'sh' if code.startswith(('6', '5', '1')) else 'sz'
tq = f"{prefix}{code}"
days = (pd.Timestamp(end_date) - pd.Timestamp(start_date)).days + 10
url = f"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?param={tq},day,,{days},"
url = f"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?param={tq},day,,{days},"
import urllib.request, json
with urllib.request.urlopen(url, timeout=10) as r:
data = json.loads(r.read())