diff --git a/data_platform/updater.py b/data_platform/updater.py index 0044a88e..858b6611 100644 --- a/data_platform/updater.py +++ b/data_platform/updater.py @@ -66,7 +66,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,{start_date},,{days}," # 用无代理opener避免akshare代理污染 proxy_handler = urllib.request.ProxyHandler({}) opener = urllib.request.build_opener(proxy_handler)