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,
|
raw_positions: list[dict[str, Any]] | None = None,
|
||||||
force: bool = False,
|
force: bool = False,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
global _OPTIONS_SYNC_LAST_AT
|
||||||
ex = cfg.get("exchange_options")
|
ex = cfg.get("exchange_options")
|
||||||
if ex is None:
|
if ex is None:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user