From ed6dc546e00bfa1ea0109a62f3a9c6848281c3b3 Mon Sep 17 00:00:00 2001 From: Andy Geach Date: Wed, 24 Jan 2024 17:47:03 +0000 Subject: [PATCH] black --- sysexecution/stack_handler/roll_orders.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sysexecution/stack_handler/roll_orders.py b/sysexecution/stack_handler/roll_orders.py index dc3851383d..2489c3534c 100644 --- a/sysexecution/stack_handler/roll_orders.py +++ b/sysexecution/stack_handler/roll_orders.py @@ -472,14 +472,17 @@ def get_strategy_name_with_largest_position_for_instrument( ) try: - strategy_name = all_instrument_positions.strategy_name_with_largest_abs_position_for_instrument( - instrument_code - ) + strategy_name = all_instrument_positions.strategy_name_with_largest_abs_position_for_instrument( + instrument_code + ) except: ## corner case where nets out to 0 strategies = diag_positions.get_list_of_strategies_with_positions() strategy_name = strategies[0] - data.log.debug("No strategies have net positions in %s, using arbitrary strategy %s" % (instrument_code, strategy_name)) + data.log.debug( + "No strategies have net positions in %s, using arbitrary strategy %s" + % (instrument_code, strategy_name) + ) return strategy_name