Если запустить 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
#CAKE/USDT analysis :
#CAKE has retraced and tapped the previous resistance zone, which is now support for the price. Bullish momentum is expected from the current level. Wait for the price to bounce back and break out of the $2.614 level to go long, with the previous swing high as the target level.
TF : 1D
Entry : $2.614
Target : $4.180
SL : $1.992
#CAKE/USDT analysis :
#CAKE is currently in an uptrend, forming higher highs (HHs) and higher lows (HLs) above the 200 Exponential Moving Average (200EMA). The price is anticipated to undergo a retracement and test a support zone before resuming its bullish momentum. A new high is likely to be established soon.
TF : 15min
Entry : $2.033
Target : $2.091
SL : $2.004