From 4c167a6d81dbad8932f143e70cbbf965a065a9f2 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sun, 25 Feb 2024 05:45:52 -0800 Subject: [PATCH] Add class for representing the information necessary to identify an iron condor trade in the trades table --- iron_condor_trade.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 iron_condor_trade.py diff --git a/iron_condor_trade.py b/iron_condor_trade.py new file mode 100644 index 0000000..a7ad803 --- /dev/null +++ b/iron_condor_trade.py @@ -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) \ No newline at end of file