Skip non-tradable markets in monitor digests

This commit is contained in:
2569718930@qq.com
2026-04-01 19:43:57 +08:00
parent 62cf8f2c4d
commit 9dc21a3088
2 changed files with 25 additions and 1 deletions
+3 -1
View File
@@ -461,7 +461,9 @@ def _build_focus_digest_message(
)
shortlisted = [
item for item in ranked
if _market_monitor_score(item) > 0 and bool((item.get("market_snapshot") or {}).get("available"))
if _market_monitor_score(item) > 0
and bool((item.get("market_snapshot") or {}).get("available"))
and _market_price_cap_ok(item, require_actionable_quote=True)
][:top_n]
if not shortlisted:
return ""