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:
@@ -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": "",
|
||||
|
||||
Reference in New Issue
Block a user