Если запустить 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
#RARE/USDT analysis :
#RARE is currently in an uptrend, trading above its 200 Exponential Moving Average (EMA). The price is currently testing the support zone and the 200 EMA. It is expected that the price will bounce back from these levels and will test the swing high. For a long entry opportunity, consider waiting for the price to break above the $0.0930 level.
TF : 2h
Entry : $0.0930
Target : $0.1250
SL : $0.0792
#RARE/USDT analysis :
#RARE is currently undergoing a corrective pullback, anticipated to test the 200 EMA before resuming its bearish momentum. This situation creates a potential long trade opportunity on lower time frame (LTF).
TF : 1h
Entry : $0.0692
Target : $0.0802
SL : $0.0634
#RARE/USDT analysis :
#RARE has broken above the trendline after consolidating in a support zone, indicating a bullish shift. The price is expected to bounce off this zone and rise, testing previous swing highs.
TF : 1D
Entry : $0.1330
Target : $0.2960
SL : $0.0923