Remove excessive tick-by-tick logging
This commit is contained in:
parent
2a79d0aec2
commit
4c0c72446a
@ -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.')
|
||||
|
Loading…
Reference in New Issue
Block a user