diff --git a/options_chain.py b/options_chain.py index 6c3d2f7..508fa5c 100644 --- a/options_chain.py +++ b/options_chain.py @@ -35,4 +35,7 @@ class OptionsChain: def closest_contract_by_strike(self, target_strike: float, option_type: OptionType): options = self.options_by_type(option_type) options['Strike Distance'] = abs(options['Strike'] - target_strike) - return options.loc[options['Strike Distance'].idxmin()] \ No newline at end of file + return options.loc[options['Strike Distance'].idxmin()] + + def __repr__(self) -> str: + return str(self.options_chain) \ No newline at end of file