Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
This commit is contained in:
TIANHE
2026-01-12 23:10:47 +08:00
parent ec56b59530
commit 63f0b118a1
7 changed files with 71 additions and 1 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ def get_positions():
now = int(time.time())
# Fetch prices once per symbol to reduce API calls.
sym_to_price: Dict[str, float] = {}
sym_to_price: dict[str, float] = {}
ds = DataSourceFactory.get_source("Crypto")
for r in rows:
sym = (r.get("symbol") or "").strip()