Fix SyntaxError in open_capacity that crashed the API.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-07 17:14:07 +08:00
parent 24a860ad3f
commit e7115e396a
+2 -2
View File
@@ -152,8 +152,8 @@ def assess_open_capacity(
ca = float(snap.call.ask)
if pa is None and snap.put and snap.put.ask:
pa = float(snap.put.ask)
except Exception:
pass
except Exception:
pass
if ca is not None and pa is not None and ca > 0 and pa > 0:
call_q = float(opt_qty)
put_q = float(