Если запустить REPL с модулем asyncio, то вы входите в особый асинхронный REPL.
user@host:~$ python -m asyncio
asyncio REPL 3.12.7 ...
Use "await" directly instead of "asyncio.run()".
>>> import asyncio
>>>
В этом режиме
- создаётся и настраивается event loop
- уже импортирован asyncio
- работает await на верхнем уровне
То есть такая команда сработает без ошибок!
await asyncio.sleep(3)
Удобно для тестирования асинхронных функций без создания ивентлупов и остальной обвязки.
Работает в: 3.8+
#tricks#async
#OP/USDT analysis :
#OP is currently forming a continuation pattern within a downtrend. The price has broken previous lows, and it is anticipated that it will continue its bearish momentum. It is advisable to wait for a pullback to the identified zone for a short entry, as the previous swing low is expected to be tested.
TF : 1D
Entry : $1.493
Target : $1.076
SL : $1.773
#OP/USDT analysis :
#OP has broken out above the 200 EMA and the previous resistance zone with strong bullish momentum. It is now retesting the breakout zone. The price is expected to continue its bullish bias and test previous highs. Wait for a break of the $1.517 level to go long.
TF : 2H
Entry : $1.517
Target : $1.643
SL : $1.444