Если запустить 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
#BAKE/USDT analysis :
#BAKE is currently retracing towards the 200 EMA. The price is expected to retest this moving average before continuing its bearish momentum. The current level presents a favorable opportunity for a long entry.
TF : 2h
Entry : $0.1507
Target : $0.1700
SL : $0.1414
#BAKE/USDT analysis :
The price is in an uptrend, forming higher highs (HHs) and higher lows (HLs) above the 200-period exponential moving average (200 EMA). The price is expected to bounce back from this level and continue its bullish momentum, aiming to test the previous swing high.
TF : 1h
Entry : $0.2783
Target : $0.2929
SL : $0.2705