{ "checked_at_beijing": "2026-10-29T09:58:51.541191+08:00", "host": "155", "prefix": "", "data": { "latest_date": { "ok": true, "rows": [ { "trade_date": "2026-10-28" } ], "seconds": 0.266 }, "latest_batch": { "ok": true, "rows": [ { "batch": 124 } ], "seconds": 0.019 }, "latest_summary": { "ok": true, "rows": [ { "rows_count": 5208, "min_score": 0.0062, "max_score": 1.0, "above_08": 341.0, "first_create": "2026-10-28T13:40:02", "last_create": "2026-10-28T13:40:09" } ], "seconds": 0.035 }, "heat_threshold_paramstore": 0.8, "heat_of_source": "def heat_of(dot_codes):\n \"\"\"({点式: score}, meta)。meta.stale=True 表示热度表停更, 调用方按热度不可用处理。\"\"\"\n meta = {\"td\": None, \"batch\": None, \"stale\": True}\n if not dot_codes:\n return {}, meta\n r = fetch_one(\"SELECT MAX(trade_date) AS td FROM stock_fund_heat_scores\")\n tdd = (r or {}).get(\"td\")\n if tdd is None:\n return {}, meta\n r2 = fetch_one(\"SELECT MAX(batch_no) AS b FROM stock_fund_heat_scores \"\n \"WHERE trade_date = :td\", {\"td\": tdd})\n rev = _variants(dot_codes)\n p = {\"td\": tdd, \"b\": (r2 or {}).get(\"b\")}\n rows = fetch_all(\n \"SELECT stock_code, score FROM stock_fund_heat_scores \"\n f\"WHERE trade_date = :td AND batch_no = :b AND stock_code IN ({_in(list(rev), 'c', p)})\",\n p)\n out = {}\n for x in rows:\n dot = rev.get(str(x.get(\"stock_code\") or \"\").strip())\n v = _f(x.get(\"score\"))\n if dot and v is not None:\n out[dot] = v\n age = _age_days_of(_ymd_of(tdd), td.ymd())\n meta.update({\"td\": str(tdd), \"batch\": (r2 or {}).get(\"b\"),\n \"stale\": age is None or age > HEAT_MAX_AGE_DAYS, \"age_days\": age})\n return out, meta\n", "heat_of_sha256": "52397714c5e7c4a16d23a852e0fe989edd571469a9b62502b6ad8b7ced3d9d06" }, "instance": { "host": "155", "prefix": "", "source_image": "pms:micro50-9e14f92", "image_id": "sha256:63c6a88de1f168b29cfe7715b798c2bb19ebe4794651f8cb598234fbeb36adbd", "role": "readonly-research", "mounts": [ { "destination": "/app/logs", "type": "bind" } ] } }