From 95c7f74c1c716134f8e784a6253e7f990bac4ab8 Mon Sep 17 00:00:00 2001 From: rcholic Date: Sat, 7 Sep 2024 13:24:07 -0700 Subject: [PATCH] fix to expiration date format --- cschwabpy/models/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cschwabpy/models/__init__.py b/cschwabpy/models/__init__.py index c2a8bee..3b73c15 100644 --- a/cschwabpy/models/__init__.py +++ b/cschwabpy/models/__init__.py @@ -315,8 +315,8 @@ def to_dataframe_row(self, strip_space: bool = False) -> List[Any]: self.openInterest, self.ask, self.bid, - self.expirationDate, - util.ts_to_date_string(self.quoteTimeInLong), + self.expirationDate[: self.expirationDate.index("T")], + util.ts_to_datetime(self.quoteTimeInLong), self.totalVolume, self.quoteTimeInLong, # updated_at self.gamma,