Add hub order popup modal with compact instance trade embed (plan A).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-25 23:12:08 +08:00
parent ee011800e1
commit 1767566951
9 changed files with 334 additions and 12 deletions
+10
View File
@@ -140,8 +140,18 @@ def register_embed_routes(
return jsonify({"ok": True, "page": tab, "html": html})
def request_order_popup() -> bool:
return (request.args.get("order_popup") or "").strip().lower() in (
"1",
"true",
"yes",
"on",
)
def embed_context_extras(exchange_key: str) -> dict:
return {
"order_rule_tips_tpl": order_rule_tips_template(exchange_key),
"include_transfer_block": include_transfer_block(exchange_key),
"order_popup": request_order_popup(),
}