Skip to content

Commit f151c93

Browse files
committed
[Orders] clarify variable name
1 parent 31e0910 commit f151c93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

octobot_trading/personal_data/exchange_personal_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,19 +299,19 @@ async def check_and_update_inactive_orders_when_necessary(
299299
self, symbol: str, current_price: decimal.Decimal, price_time: float,
300300
strategy_timeout: typing.Optional[float], wait_for_fill_callback: typing.Optional[typing.Callable]
301301
) -> int:
302-
activated_orders_count = 0
302+
handled_orders_count = 0
303303
sorted_inactive_orders = sorted(
304304
self.orders_manager.get_all_orders(symbol=symbol, active=False),
305305
key= lambda o: o.origin_price if o.trigger_above else -o.origin_price
306306
)
307307
for order in sorted_inactive_orders:
308308
if order.should_become_active(price_time, current_price):
309-
activated_orders_count += 1
309+
handled_orders_count += 1
310310
try:
311311
await order.on_active_trigger(strategy_timeout, wait_for_fill_callback)
312312
except Exception as err:
313313
self.logger.exception(err, True, f"Failed order on_active_trigger {err} (order: {order})")
314-
return activated_orders_count
314+
return handled_orders_count
315315

316316
async def handle_trade_update(self, symbol, trade_id, trade,
317317
is_old_trade: bool = False, should_notify: bool = True):

0 commit comments

Comments
 (0)