Ensure that all options in the chain are returned in the string representation

This commit is contained in:
moshferatu 2024-02-22 13:15:15 -08:00
parent 815fdfd043
commit 73d3a6145a

View File

@ -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())