11 lines
362 B
Python
11 lines
362 B
Python
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.replace(tzinfo = None)
|
|
self.strategy = iron_condor_strategy(target) |