Fix SyntaxError in open_capacity that crashed the API.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -152,8 +152,8 @@ def assess_open_capacity(
|
|||||||
ca = float(snap.call.ask)
|
ca = float(snap.call.ask)
|
||||||
if pa is None and snap.put and snap.put.ask:
|
if pa is None and snap.put and snap.put.ask:
|
||||||
pa = float(snap.put.ask)
|
pa = float(snap.put.ask)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
if ca is not None and pa is not None and ca > 0 and pa > 0:
|
if ca is not None and pa is not None and ca > 0 and pa > 0:
|
||||||
call_q = float(opt_qty)
|
call_q = float(opt_qty)
|
||||||
put_q = float(
|
put_q = float(
|
||||||
|
|||||||
Reference in New Issue
Block a user