Если запустить 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
#KNC/USDT analysis :
#KNC is retracing towards the 200 EMA, indicating potential upside. The price is respecting the trendline and bouncing back, which suggests a good opportunity for a long entry. Previous highs will serve as target levels.
TF : 4H
Entry : $0.4198
Target : $0.4582
SL : $0.3939
#KNC/USDT analysis :
#KNC is currently in a downtrend, trading below the 200 EMA. The price is forming a pattern of lower lows and lower highs. At present, the price is facing resistance near the 200 EMA, suggesting a potential reversal from this point to maintain its bearish movement and establish a new lower low.
TF : 4H
Entry : $0.4419
Target : $0.4083
SL : $0.4589