feat(execution): reconcile timed-out orders safely
This commit is contained in:
@@ -608,7 +608,9 @@ def _opt_float(v) -> Optional[float]:
|
||||
def _opt_int(v) -> Optional[int]:
|
||||
if v is None:
|
||||
return None
|
||||
return int(v)
|
||||
if not isinstance(v, int) or isinstance(v, bool):
|
||||
raise ValueError("integer required")
|
||||
return v
|
||||
|
||||
|
||||
def _opt_dt(v) -> Optional[datetime]:
|
||||
|
||||
Reference in New Issue
Block a user