You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnewOptionAssignmentResult(option.Holdings.AbsoluteQuantity,"Simulated option assignment before expiration");
70
+
}
68
71
}
69
-
}
70
72
71
-
returnOptionAssignmentResult.Null;
73
+
returnOptionAssignmentResult.Null;
74
+
}
75
+
catch(DivideByZeroExceptione)
76
+
{
77
+
thrownewDivideByZeroException(
78
+
$"The option {option.Symbol} | {option.Underlying.Symbol.ID} | {option.Underlying.Symbol.Value} has a zero underlying price. This is not a valid state for an option. "+
79
+
$"Please check the underlying security data. Exception: {e.Message}",e);
0 commit comments