Skip to content

Commit e7cd31b

Browse files
committed
enhance: improve error logging for invalid call/put options
- Include strike price and delta values in the error log for more detailed debugging.
1 parent 8af412f commit e7cd31b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/chains/optiondata.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,10 @@ impl OptionData {
421421
return false;
422422
}
423423
if !self.valid_call() || !self.valid_put() {
424-
error!("Error: No valid prices for call or put options");
424+
error!(
425+
"Error: No valid prices for call or put options {} Deltas C {:?} P {:?}",
426+
self.strike_price, self.delta_call, self.delta_put
427+
);
425428
return false;
426429
}
427430
true

0 commit comments

Comments
 (0)