TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #208 · 29 јан.

Ранее мы уже говорили о том, как выполнить какой-либо код перед открытием интерактивной консоли. Расскажу еще один способ! На самом деле, даже запустив интерпретатор в обычном режиме с выполнением скрипта из файла вы можете в любом месте активировать интерактивный режим. Или даже несколько по очереди. За это отвечает модуль code. Как это может пригодиться? 🔸 Вам не хватает pdb и хочется больше "власти" 🔸 Нужно запросить у юзера данные в достаточно сложном виде. В этом случае можно попросить его создать что ему надо и сохранить в определённую переменную, с которой потом и работать. 🔸 Нужна изолированная среда для выполнения каких-либо действий. 🔸 Просто забавы ради😁 Запускается консоль очень просто import code ic = code.InteractiveConsole() try: ic.interact() except SystemExit: pass Выход обратно на предыдущий уровень происходит как обычно, вызов функции exit() или клавиши Ctrl+D(Ctrl+Z для Windows). Я набросал простой пример с некоторым функционалом 🔹 Меняются символы приглашения 🔹 В неймспейсы добавляются дополнительные объекты 🔹 Считается время, проведённое в интерактивном режиме 🔹 Скрипт просит юзера заполнить переменную и по выходу распечатывает её значение Код здесь ↗️ Для запуска сохраните код в файл и запускайте как обычный скрипт. python my_console.py Для быстрого запуска можно сделать отдельный алиас alias py="python3 /home/username/my_console.py" #tricks#source

Резултати

Пронајдени 1 слични објави

Пребарај: #btcfutures

当前筛选 #btcfutures清除筛选
Crypto M - Crypto News

@CryptoM · Post #64528 · 09.04.2026 г., 06:18

🚀 Binance to Adjust Minimum Notional Value for BTC Perpetual Futures According to the announcement from Binance, the exchange plans to adjust the minimum notional value for orders of BTCUSDT and BTCUSDC USDⓈ-M Perpetual Futures Contracts on 2026-04-14 at 06:30 (UTC). This adjustment aims to enhance market liquidity and improve the trading experience for users. The process is expected to be completed within approximately four hours and will not impact USDⓈ-M Futures trading operations. The specific changes involve reducing the minimum notional value for BTCUSDT and BTCUSDC contracts from 100 USDT and 100 USDC to 50 USDT and 50 USDC, respectively. Existing orders will remain unaffected by this adjustment. API users can access the latest minimum notional value for orders of USDⓈ-M Perpetual Futures Contracts through the GET /fapi/v1/exchangeInfo endpoint. For further details and updates, users are encouraged to refer to the full API Changelog. Binance advises traders to review the updated trading parameters and adjust their strategies accordingly to avoid any unnecessary impact on their trading activities. This notice is released under Binance Exchange Rule 17, and users are reminded to consult the original English version of the announcement for the most accurate information, as there may be discrepancies in translated versions. #Binance#BTCFutures#PerpetualFutures#TradingUpdate#CryptoTrading#BTCUSDT#BTCUSDC#MarketLiquidity#CryptoNews