Fix options positions API 500 from sync throttle UnboundLocalError.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user