From 4c0c72446a984e287bd3a51dbd79b7e43f62a3cd Mon Sep 17 00:00:00 2001 From: moshferatu Date: Thu, 22 Feb 2024 12:27:36 -0800 Subject: [PATCH] Remove excessive tick-by-tick logging --- iron_condor.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/iron_condor.py b/iron_condor.py index f6c9ad3..ce65707 100644 --- a/iron_condor.py +++ b/iron_condor.py @@ -47,11 +47,6 @@ def monitor_spread_price(short_leg: OptionLeg, long_leg: OptionLeg, stop_price: mid_price_long = (max(long_contract.bid, 0) + long_contract.ask) / 2 current_spread_price = mid_price_short - mid_price_long - logging.info(f'Short Contract: {short_leg.strike} {short_leg.option_type}') - logging.info(f'Long Contract: {long_leg.strike} {long_leg.option_type}') - logging.info(f'Current Spread Price: {current_spread_price}') - logging.info(f'Stop Price: {stop_price}') - if current_spread_price >= stop_price: stopped_out = True logging.info('Stop price reached or exceeded. Exiting trade.')