Skip non-tradable markets in monitor digests
This commit is contained in:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user