Rebrand product and enhance tradable symbols table with spec columns and K-line links.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-26 03:18:42 +08:00
parent ab9987e4c7
commit 4eb5709d71
30 changed files with 178 additions and 57 deletions
+5
View File
@@ -66,6 +66,8 @@ def assess_product_for_capital(
"name": name,
"exchange": exchange,
"category": category,
"mult": mult,
"tick_size": tick,
"status": "no_price",
"status_label": "暂无行情",
"min_capital_one_lot": None,
@@ -153,11 +155,14 @@ def list_product_recommendations(
return row
except Exception as exc:
logger.warning("recommend product failed %s: %s", ths, exc)
spec = get_contract_spec(ths + "8888")
return {
"ths": ths,
"name": product.get("name") or ths,
"exchange": product.get("exchange") or "",
"category": product.get("category") or product_category(ths),
"mult": spec["mult"],
"tick_size": float(spec.get("tick_size") or 1.0),
"status": "no_price",
"status_label": "计算失败",
"main_code": "",