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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #239 · 3 мај

Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML. Из плюсов такого подхода стоит отметить вот что: 🔸 готовый, повсеместно используемый и поддерживаемый формат 🔸 простой и понятный файл, удобочитаемый для человека 🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек Но есть и минусы 🔹 затраты времени при записи файла (кодирование данных в нужный формат строки) 🔹 затраты времени при чтении файла (декодирование данных в Python объекты) 🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...) 🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда) 🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи. Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳. 🔸 очень быстрая запись 🔸 чтение значительно быстрей чем JSON, YAML итд 🔸 размер файла значительно меньше, так как нет разметки 🔸 можно записывать данные по мере поступления не загружая всё в память 🔸 можно извлечь любую часть данных независимо Из минусов 🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата) 🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию. 🔹 не так-то просто создать такой файл без специальной библиотеки В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии. (Это не означает что нельзя записать данные разного типа, просто это будет не так удобно) Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого f15d cd29 a564 4578 ... 09e2 9bc4 a696 1253 ... 84e9 4de1 3b23 c24a ... 2534 5161 28e0 709d ... ... Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла. К чему это я? Читайте в следующем посте... #tricks#basic

Резултати

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

Пребарај: #liquidity

当前筛选 #liquidity清除筛选
TONlines – News

@tonlines · Post #7216 · 14.05.2025 г., 15:12

bemo Explains Liquidity Pools in DeFi #DeFi#liquidity bemo provides a detailed guide on liquidity pools, covering essential concepts and strategies to overcome confusion regarding terms like 'impermanent loss.' A must-read for anyone involved in DeFi. Source: link @tonlines

🇺🇿 Oliy maktab Professori Tolqin Boboqulov "Kompaniyaning likvidligi va tolov qobiliyati" mavzusida so‘zlab berdi. 📊 Kompaniyaning likvidligi bu uning majburiyatlarini o‘z vaqtida bajarish qobiliyatini anglatadi. Bu majburiyatlar moliya tashkilotlari, davlat byudjetlari, tashqi banklar va boshqa kontragentlar oldidagi majburiyatlarni o‘z vaqtida va to‘liq bajarish uchun zarur bo‘lgan mablag‘lar bilan ta’minlanganlikni anglatadi. Yanada batafsil videodarslikdan bilib oling! #GraduateSchool#Finance#Liquidity 🔝Web-site |🔝Facebook | 🔝Instagram | 🔝Youtube

TONlines – News

@tonlines · Post #6783 · 15.04.2025 г., 16:31

⚡️Storm Trade: Maximize Liquidity with Double Rewards #TON#DeFi#liquidity @storm_trade_news introduces a new strategy combining three major DeFi protocols on TON for increased liquidity rewards. Users can stake, borrow, and trade to earn enhanced returns, with a special bonus for liquidity providers. Activities run from April 15 to 25. Source: link @tonlines

BLC Market - mini-app BulCoin

@bulcoin_blc · Post #223 · 28.11.2025 г., 11:00

How to add liquidity to Tonco? 1. Visit the website https://app.tonco.io/ 2. Connect your TON wallet 3. Go to the Pools page (https://app.tonco.io/#/pools) 4. Find the needed pool and click on it. Pay attention to the checkbox! This will allow you to make the correct choice if you see two identical pools 5. Click Create position, adjust the range and enter the number of tokens. You can use ZAP to automatically calculate how much of each you need to buy 6. Request the transaction and sign in the wallet. Soon the position will appear on it in the form of an NFT and will be visible on the website. If it becomes marked as Out of range, this means that the price has changed and has left the position's range. #ton#dex#liquidity FAQ | BUY

BLC Market - mini-app BulCoin

@bulcoin_blc · Post #222 · 26.11.2025 г., 11:00

How to add liquidity on Bidask? 1. Go to https://bidask.finance/ 2. Connect your TON-wallet 3. Visit the Pools page (https://bidask.finance/en/app/pools) 4. Find the necessary pair, click and select the suitable CLMM or DLMM pool. DLMM differs in that the commission changes depending on trading volumes. 5. Click Add liquidity, choose the form of liquidity, set the range and indicate the amounts of tokens. 6. Request the transaction and sign in the wallet. In a few seconds, everything will be ready. The position will appear and will be available for viewing and management. #ton#dex#liquidity FAQ | BUY

BLC Market - mini-app BulCoin

@bulcoin_blc · Post #221 · 24.11.2025 г., 11:00

In the TON blockchain, there are 4 main DEX: DeDust, Ston.fi, Bidask, and Tonco. The first two operate on the AMM model, the latter - CLMM. - AMM (Automated Market Maker) - also a Uniswap V2 model. The price is determined by the formula y*x=k, where y and x are assets, and k is a constant. The provided liquidity is evenly distributed across all possible prices from 0 to infinity, which ensures the participation of the provided liquidity in maintaining price stability and collecting commissions at any prices. In short: 1. Liquidity works at any price 2. At small price changes, only a small part of the liquidity is involved, which is not very efficient. - CLMM (Concentrated Liquidity Market Maker) - also a Uniswap V3 model. Unlike AMM, there is the possibility of providing liquidity in a selected price range in which liquidity will operate. As long as the price is within it, liquidity participates. When the price goes beyond the limit, the liquidity position becomes inactive and completely transitions into the asset that has dropped relative to the other. This can be used for limit buys and sells by placing a position outside the current price. In short: 1. Liquidity can be placed in a narrow range and only works there 2. Efficiency relative to AMM increases by 50-90%, depending on the width. This way, small amounts can provide price stability and increased returns. #ton#dex#liquidity FAQ | BUY

TONlines – News

@tonlines · Post #7702 · 04.12.2025 г., 10:57

STON.fi: Impermanent Loss Protection for Liquidity Providers #protection#liquidity STON.fi has distributed 6546 STON tokens to liquidity providers in the STON/USDT pool for November, with up to 5.72% impermanent loss offset offered. Users who provided liquidity before December 1 will have protection until December 31, with a monthly budget of $10,000. Source: link @tonlines

TONlines – News

@tonlines · Post #6962 · 29.04.2025 г., 12:37

STON.fi: New Round of Impermanent Loss Protection Starts Soon #protection#liquidity STON.fi reminds liquidity providers that the new cycle of impermanent loss protection for the STON/USDT V2 pool begins on May 1st. Only those joining the pool by then will be eligible for protection. Source: link @tonlines

TONlines – News

@tonlines · Post #6752 · 14.04.2025 г., 11:40

STON.fi Update: IL Protection Sent to Liquidity Providers #protection#liquidity STON.fi has distributed 894 STON to liquidity providers in the STON/USDT v2 pool for March 1-31, offering up to 5.72% impermanent loss offset. With a monthly protection budget of $10,000 and a max offset of $100 per user, auto-crediting ensures no claiming is needed. Source: link @tonlines

BLC Market - mini-app BulCoin

@bulcoin_blc · Post #219 · 21.11.2025 г., 18:55

Why it's profitable to replenish the BulCoin pool NOW The BulCoin liquidity pool is currently small — and this is the best time to join. 🔥 Why? • Few LPs → fees are divided among fewer people. • Every USDT ⇄ BLC exchange gives a large percentage of the commission, because liquidity is low. • Tasks are already underway in the ecosystem, transfers, trading — these are constant swaps that bring income to LPs. 🚀 Early LPs are always in the plus When MAU increases (according to the model — up to 10k–100k users), the pool will become larger, and APR will drop. Those who entered earlier will lock in maximum percentages. 🌊 How to replenish? DeDust → USDT–BLC pool → deposit USDT and BLC → receive LP tokens. #pool#liquidity FAQ | BUY

TONlines – News

@tonlines · Post #7340 · 23.05.2025 г., 10:49

EVAA Protocol: Temporary Suspension of stTON in Main Pool #protocol#liquidity EVAA has temporarily suspended the use of stTON as collateral in its Main Pool due to reduced market liquidity. Existing positions remain unaffected, but users must repay active loans before withdrawing stTON. The measure is temporary and will be lifted once liquidity conditions improve. Source: link @tonlines

TONlines – News

@tonlines · Post #7145 · 09.05.2025 г., 14:39

DAOLama NFT Lending: Permanent 10% APY on Anonymous Numbers #Anonymous#liquidity DAOLama NFT Lending announces that the special 10% APY rate on liquidity against Anonymous Telegram Numbers will now be offered permanently. Users can enjoy the same favorable conditions as during the recent contest at any time. Source: link @tonlines

123•••56
ПретходнаСтраница 1 од 6Следна