Fix options positions API 500 from sync throttle UnboundLocalError.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-09 18:19:45 +08:00
parent f99900ac40
commit b6d116ec7a
+1
View File
@@ -154,6 +154,7 @@ def _sync_options_trades(
raw_positions: list[dict[str, Any]] | None = None,
force: bool = False,
) -> None:
global _OPTIONS_SYNC_LAST_AT
ex = cfg.get("exchange_options")
if ex is None:
return