devel #11
@@ -45,12 +45,10 @@ async def stop_all_trading(callback_query: CallbackQuery, state: FSMContext):
|
|||||||
for active_auto_trading in user_auto_trading_list:
|
for active_auto_trading in user_auto_trading_list:
|
||||||
if active_auto_trading.auto_trading:
|
if active_auto_trading.auto_trading:
|
||||||
symbol = active_auto_trading.symbol
|
symbol = active_auto_trading.symbol
|
||||||
get_side = active_auto_trading.side
|
|
||||||
req = await rq.set_auto_trading(
|
req = await rq.set_auto_trading(
|
||||||
tg_id=callback_query.from_user.id,
|
tg_id=callback_query.from_user.id,
|
||||||
symbol=symbol,
|
symbol=symbol,
|
||||||
auto_trading=False,
|
auto_trading=False,
|
||||||
side=get_side,
|
|
||||||
)
|
)
|
||||||
if not req:
|
if not req:
|
||||||
await callback_query.message.edit_text(
|
await callback_query.message.edit_text(
|
||||||
|
Reference in New Issue
Block a user