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:
parent
4c167a6d81
commit
5d75d0d635
@ -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)
|
Loading…
Reference in New Issue
Block a user