@binancepumpsignais · Post #51476 · 17.03.2026 г., 14:10
| Coin: #CFG/USDT - Short 20x | Entry Targets: 0.1592 Take-Profit Targets: 1) 0.156 2) 0.1544 3) 0.1528 4) 0.1512 Binance Pumps®
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
Пребарај: #cfg
@binancepumpsignais · Post #51476 · 17.03.2026 г., 14:10
| Coin: #CFG/USDT - Short 20x | Entry Targets: 0.1592 Take-Profit Targets: 1) 0.156 2) 0.1544 3) 0.1528 4) 0.1512 Binance Pumps®
Hashtags
@cryptobull_360 · Post #49410 · 18.04.2026 г., 19:17
#CFG🚀
Hashtags
@cryptobull_360 · Post #48618 · 04.03.2026 г., 11:56
😲🚀#CFG +35% on listing Bithumb.
Hashtags
@binancesignals · Post #6607 · 18.04.2026 г., 18:55
#CFG BULLISH
Hashtags
@cryptoarsenal · Post #62370 · 07.04.2026 г., 01:38
🎰#CFG buying 🔫 2,06M USDT in 14 min (10%) on Binance Futures P: 0,1767 ⬆️ (5,37%) Vol 24h: 22,64M USDT Last 4 d ago #CEXTrack
@cryptoarsenal · Post #62369 · 07.04.2026 г., 01:26
🎰#CFG buying 🔫 564K USDT in 15 min (11%) on Binance P: 0,1744 ⬆️ (5,44%) Vol 24h: 5,57M USDT Last 22 h ago #CEXTrack
@cryptobull_360 · Post #49674 · 05.05.2026 г., 15:16
👀#CFG#COIN Coinbase invests a “seven-figure” amount in Centrifuge and selects the platform as Base’s primary tokenization partner
@cryptobull_360 · Post #49409 · 18.04.2026 г., 19:15
#CFG is getting ready for massive breakout from the ascending triangle structure formation on HTFs, strong flip off from horizontal trendline resistance might trigger 90-120% rally, keep an eye on!! $CFG #CFGUSDT
@degenpump_crypto_pump_signals · Post #503963 · 08.05.2026 г., 12:10
📈 CORNIX NO.1 PUMP SIGNAL PROVIDER ❗️ Limited slots available ❤️ 👑 570.5% PROFIT RESULTS FOR 2026-05-07 🤑 #io – 31.589% % within 2 hr 9 min #aixbt – 27.7695% % within 2 hr 16 min #tag – 21.7914% % within 47 min #stbl – 18.0204% % within 1 hr 8 min #nmr – 18.0479% % within 2 hr 51 min #pump – 27.735% % within 56 min #icx – 21.8303% % within 1 hr 52 min #usual – 27.9383% % within 59 min #trx – 18.2768% % within 6 hr 50 min #tut – 21.3202% % within 14 min #astr – 22.1591% % within 6 hr 59 min #band – 18.245% % within 1 hr 43 min #chr – 21.5393% % within 4 hr 59 min #kaito – 17.9283% % within 2 hr 11 min #vvv – 27.7711% % within 30 min #cfg – 27.7469% % within 23 min #neo – 27.8638% % within 3 hr 24 min #xpd – 18.0676% % within 8 hr 58 min #grass – 31.5969% % within 4 hr 3 min #zec – 17.9972% % within 5 min #crv – 17.8865% % within 17 min #soon – 27.9883% % within 1 hr 56 min #b – 28.3347% % within 1 min #evaa – 31.0688% % within 3 hr 35 min 👑 DegenPump™ 2022‑2026 monthly profit results 👀👇 https://t.me/degenpump_crypto_pump_signals/133203 Total profit 570.5% 💵🔥 Total Loss: -9.08% 📉 🎯 Net Profit: 561.42% 💹 👉 No other channel can give you so much profit in one day. 👉 As you can see, you can earn back fees within 1 day. 🤤 You don’t want to miss your profit longer? 💵 Contact now @degeninvestor for premium membership