feat: saxo
This commit is contained in:
@@ -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("""
|
||||
|
||||
Reference in New Issue
Block a user