Ensure that all options in the chain are returned in the string representation
This commit is contained in:
parent
815fdfd043
commit
73d3a6145a
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user