Если запустить 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
In a situation where the market is not in a good condition, #TRXUSDT's trend is still upward.
After reaching the bottom of the channel and the support level of $0.1100-0.1050, the price started to grow and first broke the small dynamic resistance.
According to the general situation of this currency and the registered candles, it can be expected that the price will grow again up to the ceiling of the channel.
Signal for a futures trade
#TRXUSDT.P
📌 Logged into SHORT
Entry: ±$0.08521
Take profit: $0.084; $0.082; $0.0805
Stop loss: $0.0867
The price broke through the trend support and left the bottom. Also against the downside is a “flat-bottomed triangle” formation. I expect the decline to continue.