@degenpump_crypto_pump_signals · Post #504845 · 15.05.2026 г., 11:34
#TON/USDT Take-Profit target 1 ✅ Profit: 21.2996% 📈 Period: 2 hr 5 min ⏰
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #397 · 12 ное.
Использование Pydantic сегодня стало нормой, и это правильно. Но иногда на ревью вижу, что используют его не всегда корректно. Например, метод BaseModel.model_dump() по умолчанию не преобразует стандартные типы, такие как datetime, UUID или Decimal, в простой сериализуемый для JSON вид. Тогда пишут кастмоный сериализатор для этих типов чтобы функция json.dump() не падала с ошибкой. import uuid from datetime import datetime from decimal import Decimal from uuid import UUID from pydantic import BaseModel class MyModel(BaseModel): id: UUID date: datetime value: Decimal obj = MyModel( id=uuid.uuid4(), date=datetime.now(), value='1.23' ) print(obj.model_dump()) # не подходит для json.dump # { # 'id': UUID('4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1'), # 'date': datetime.datetime(2025, 12, 12, 12, 12, 12, 111111), # 'value': Decimal('1.23') # } # добавляем свой кастомный сериализатор json.dumps(obj.model_dump(), cls=MySerializer) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2025-12-12T12:12:12.111111', # 'value': '1.23' # } В данном случае класс MySerializer обрабатывает datetime, UUID и Decimal. Например так: class MySerializer(json.JSONEncoder): def default(self, o): if isinstance(o, Decimal): return str(o) elif isinstance(o, datetime): return o.isoformat() elif isinstance(o, UUID): return str(o) return super().default(o) Специально для тех, кто всё еще так делает - в этом нет необходимости! Pydantic может это сделать сам, просто нужно добавить параметр mode="json". json.dumps(obj.model_dump(mode="json")) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2012-12-12T12:12:12.111111', # 'value': '1.23' # } #pydantic#libs
Пребарај: #ton
@degenpump_crypto_pump_signals · Post #504845 · 15.05.2026 г., 11:34
#TON/USDT Take-Profit target 1 ✅ Profit: 21.2996% 📈 Period: 2 hr 5 min ⏰
Hashtags
@CoinSonar · Post #244179 · 18.04.2026 г., 12:37
#TON | Volume spike (USDT PAIR) 60 times the average volume 232.87K USDT traded in 1 min └Selling vol: 137.05K USDT 🔴 Boost score: 1/10 24h Vol: 5.51M USDT (Binance) Price: 1.369 (-1.7% in 24h)
Hashtags
@CoinSonar · Post #243423 · 17.04.2026 г., 02:50
#TON | Volume spike (USDT PAIR) 58 times the average volume 222.20K USDT traded in 1 min └Buying vol: 202.80K USDT 🟢 Boost score: 6/10 24h Vol: 5.51M USDT (Binance) Price: 1.420 (-1.7% in 24h)
Hashtags
@cryptobull_360 · Post #49663 · 04.05.2026 г., 15:01
🥳👀#TON Pavel Durov: Commissions in TON decreased by 6 times - almost to zero. The next step is for Telegram to replace the TON Foundation as the driving force behind TON and become its largest validator.
Hashtags
@cryptobull_360 · Post #49516 · 27.04.2026 г., 15:28
#TON is consolidating within a symmetrical triangle pattern and is currently holding above the support trendline. The Ichimoku Cloud is acting as a resistance barrier, keeping upside momentum in check. A decisive breakout or breakdown from the triangle is needed to confirm the next directional move, so patience is key here.
Hashtags
@cryptobull_360 · Post #49144 · 09.04.2026 г., 18:27
💰#TON AlphaTON Capital plans to raise $43 million to strengthen Telegram’s Cocoon artificial intelligence infrastructure. the block
Hashtags
@cryptobull_360 · Post #49142 · 09.04.2026 г., 14:35
🥳#TON Pavel Durov declared that after today's update Catchain 2.0, Ton's next step is to reduce transaction fees by 6 times.
Hashtags
@cryptobull_360 · Post #48541 · 24.02.2026 г., 11:47
🇷🇺#TON RG: Pavel Durov is being investigated for facilitating terrorist activities. tass
Hashtags
@cryptobull_360 · Post #48418 · 17.02.2026 г., 11:45
🤝#TON TON Foundation partners with OSL's Banxa to expand stablecoin payment infrastructure in the Asia-Pacific region. theblock.com
Hashtags
@binancefuturesignal · Post #35445 · 12.01.2026 г., 18:40
📊 FREE SIGNAL UPDATE – #TON/USDT Price moved in our favor from 1.7420 ---> 1.7490 and delivered a decent reaction. Profit booked by disciplined traders. Free channel shows direction. Premium members get full trade plans & management. 👉@futurechief
Hashtags
@market_headlines · Post #28648 · 23.04.2026 г., 17:18
#ton 💎Павел Дуров: Через неделю комиссии в TON снизятся в 6 раз – до всего лишь 0,00039 TON (~$0,0005) за транзакцию, фиксированные независимо от нагрузки на сеть. Вскоре после этого большинство транзакций будут с нулевыми комиссиями. Ранее: - ускорение сети - MTONGA Crypto Headlines
Hashtags
@market_headlines · Post #28631 · 23.04.2026 г., 07:01
#ton 🎵 Павел Дуров опубликовал AI-трек про VPN– слушать «Там, где резали вход, Мы нашли свой обход, У подъезда у нас говорят про VPN. Малый, бабка, сосед – Все теперь не боятся, Если режут им свет, Значит, будем пробиваться». Ранее: повестка Crypto Headlines
Hashtags