Hub monitor: read-only OKX options positions aggregation (Phase B).
Expose /api/hub/options/snapshot from OKX instance and render options summary on hub monitor cards when the options capability is enabled. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,7 +50,7 @@ DEFAULT_EXCHANGES = [
|
||||
"flask_url": "http://127.0.0.1:5004",
|
||||
"review_url": "http://127.0.0.1:5004/records",
|
||||
"enabled": True,
|
||||
"capabilities": ["key", "trend"],
|
||||
"capabilities": ["key", "trend", "options"],
|
||||
},
|
||||
{
|
||||
"id": "2",
|
||||
@@ -109,6 +109,11 @@ def load_settings() -> dict:
|
||||
ex["env_disabled"] = True
|
||||
else:
|
||||
ex.setdefault("env_disabled", False)
|
||||
if ex.get("key") == "okx":
|
||||
caps = list(ex.get("capabilities") or [])
|
||||
if "options" not in caps:
|
||||
caps.append("options")
|
||||
ex["capabilities"] = caps
|
||||
return data
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user