@@ -299,19 +299,19 @@ async def check_and_update_inactive_orders_when_necessary(
299
299
self , symbol : str , current_price : decimal .Decimal , price_time : float ,
300
300
strategy_timeout : typing .Optional [float ], wait_for_fill_callback : typing .Optional [typing .Callable ]
301
301
) -> int :
302
- activated_orders_count = 0
302
+ handled_orders_count = 0
303
303
sorted_inactive_orders = sorted (
304
304
self .orders_manager .get_all_orders (symbol = symbol , active = False ),
305
305
key = lambda o : o .origin_price if o .trigger_above else - o .origin_price
306
306
)
307
307
for order in sorted_inactive_orders :
308
308
if order .should_become_active (price_time , current_price ):
309
- activated_orders_count += 1
309
+ handled_orders_count += 1
310
310
try :
311
311
await order .on_active_trigger (strategy_timeout , wait_for_fill_callback )
312
312
except Exception as err :
313
313
self .logger .exception (err , True , f"Failed order on_active_trigger { err } (order: { order } )" )
314
- return activated_orders_count
314
+ return handled_orders_count
315
315
316
316
async def handle_trade_update (self , symbol , trade_id , trade ,
317
317
is_old_trade : bool = False , should_notify : bool = True ):
0 commit comments