auto-sync: 2026-05-02 18:57:00
This commit is contained in:
@@ -76,7 +76,8 @@ class FallbackManager:
|
||||
days = (datetime.strptime(end_date, "%Y-%m-%d") - datetime.strptime(start_date, "%Y-%m-%d")).days + 10
|
||||
url = f"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?param={tq_symbol},day,,{days},"
|
||||
try:
|
||||
with urllib.request.urlopen(url, timeout=10) as r:
|
||||
req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"})
|
||||
with urllib.request.urlopen(req, timeout=10) as r:
|
||||
data = json.loads(r.read())
|
||||
klines = data.get("data", {}).get(tq_symbol, {}).get("day", [])
|
||||
if not klines:
|
||||
|
||||
Reference in New Issue
Block a user