feat: saxo

This commit is contained in:
OpenSquared
2026-07-18 23:14:16 +02:00
parent d535d0bea1
commit 8fe18a8ff9
3 changed files with 26 additions and 2 deletions

View File

@@ -6169,6 +6169,15 @@ def get_saxo_catalog(asset_type: Optional[str] = None, q: Optional[str] = None,
return [dict(r) for r in rows]
def get_saxo_catalog_by_symbol(symbol: str) -> Optional[Dict[str, Any]]:
conn = get_conn()
row = conn.execute(
"SELECT * FROM saxo_instrument_catalog WHERE symbol = ? COLLATE NOCASE LIMIT 1", (symbol,)
).fetchone()
conn.close()
return dict(row) if row else None
def get_saxo_catalog_summary() -> List[Dict[str, Any]]:
conn = get_conn()
rows = conn.execute("""