Label night-session products and hide day-only symbols at night.
Mark tradable varieties with a night tag; during 21:00-02:30 filter out index futures and other products without night sessions from symbol picker and recommend list. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+4
-1
@@ -181,9 +181,12 @@ def enrich_recommend_rows(
|
||||
row["status_label"] = "资金不足"
|
||||
if not row.get("category"):
|
||||
row["category"] = product_category(row.get("ths") or "")
|
||||
from symbols import enrich_recommend_row
|
||||
row = enrich_recommend_row(row)
|
||||
_attach_turnover(row)
|
||||
enriched.append(row)
|
||||
return enriched
|
||||
from symbols import filter_for_trading_session
|
||||
return filter_for_trading_session(enriched)
|
||||
|
||||
|
||||
def filter_recommend_by_sizing(
|
||||
|
||||
Reference in New Issue
Block a user