diff --git a/options_chain.py b/options_chain.py index ec224a8..8050713 100644 --- a/options_chain.py +++ b/options_chain.py @@ -38,7 +38,7 @@ class OptionsChain: return options.loc[options['Strike Distance'].idxmin()] def __repr__(self) -> str: - return str(self.options_chain) + return self.options_chain.to_string() if __name__ == '__main__': options_chain = OptionsChain('$SPXW.X', datetime.now())