Remove time zone information from entry time in order to facilitate database lookups where the timestamp is stored without this information

This commit is contained in:
moshferatu 2024-02-26 08:14:16 -08:00
parent 4c167a6d81
commit 5d75d0d635

View File

@ -7,5 +7,5 @@ class IronCondorTrade:
def __init__(self, symbol: str, target: float, entry_time: datetime):
self.symbol = symbol
self.target = target
self.entry_time = entry_time
self.entry_time = entry_time.replace(tzinfo = None)
self.strategy = iron_condor_strategy(target)