Add class for representing the information necessary to identify an iron condor trade in the trades table

This commit is contained in:
moshferatu 2024-02-25 05:45:52 -08:00
parent 013b6c6e8a
commit 4c167a6d81

11
iron_condor_trade.py Normal file
View File

@ -0,0 +1,11 @@
from datetime import datetime
from backtesting.credit_targeting import iron_condor_strategy
class IronCondorTrade:
def __init__(self, symbol: str, target: float, entry_time: datetime):
self.symbol = symbol
self.target = target
self.entry_time = entry_time
self.strategy = iron_condor_strategy(target)