Если запустить 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
#CHR/USDT analysis :
#CHR is currently retracing towards a previously tested support zone. The price is expected to bounce from this level and resume its bullish momentum, aiming to test previous highs. For a long entry, it is advisable to wait for a breakout above the $0.2750 level.
TF : 4H
Entry : $0.2750
Target : $0.3440
SL : $0.2370
#CHR/USDT analysis :
#CHR has broken and retested the support zone, which is now acting as resistance for the price. The price is anticipated to continue its bearish momentum and test lower levels.
TF : 2H
Entry : $0.1780
Target : $0.1701
SL : $0.1838
#CHR/USDT analysis :
#CHR is currently consolidating above the support zone and the 200 EMA. The price is expected to sustain its bullish momentum and establish new highs. It is advisable to await a pullback for a long entry.
TF : 1H
Entry : $0.1862
Target : $0.2163
SL : $0.1755