Если запустить 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
#HFT/USDT analysis :
#HFT has broken out and retested the previously respected zone. The price is expected to rebound from this level and resume its bullish momentum, aiming to test the previous highs. This indicates a strong potential for upward movement as the market seeks to continue its bullish trend.
TF : 1D
Entry : $0.2230
Target : $0.3200
SL : $0.1770
#HFT/USDT analysis :
#HFT is in downtrend, trading below 200ema. Price is in pullback phase. Let it approach resistance zone and reject from there to downside as previous swing low is expect to be tested.
TF : 15min
Entry : $0.1390
Target : $0.1163
SL : $0.1483