From 73d3a6145ac65b16e3f65e8fa12ccbfd8c831489 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Thu, 22 Feb 2024 13:15:15 -0800 Subject: [PATCH] Ensure that all options in the chain are returned in the string representation --- options_chain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())