@cryptobull_360 · Post #49714 · 07.05.2026 г., 03:50
🏴☠️#1INCH Liquidity provider 1inch TrustedVolumes suffered a hacker attack resulting in the theft of ~$6 million. theblock.com
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
Пребарај: #1inch
@cryptobull_360 · Post #49714 · 07.05.2026 г., 03:50
🏴☠️#1INCH Liquidity provider 1inch TrustedVolumes suffered a hacker attack resulting in the theft of ~$6 million. theblock.com
Hashtags
@proanalysistrader · Post #28053 · 22.10.2024 г., 13:43
#1INCH/USDT analysis : #1INCH is in an uptrend, trading above the 200 EMA. The price is currently in a correction phase, showing a retracement toward the 200 EMA and the support zone. It is expected to bounce back and continue its momentum to test previous highs. Wait for a break of the $0.2768 level for a long entry. TF : 2H Entry : $0.2768 Target : $0.2916 SL : $0.2678
Hashtags
@americancryptotrading · Post #27396 · 04.10.2025 г., 08:52
🇺🇸#1INCH/USDT is breaching the descendingtriangle pattern on the daily chart👀 Time to go up📈 American Crypto©
Hashtags
@americancryptotrading · Post #27058 · 22.11.2024 г., 12:50
🇺🇸#1INCH/USDT is about to break out of s/r zone on 2D timeframe🧐 Full send if we manage to break upwards🐃 American Crypto©
Hashtags
@shark_grp · Post #20611 · 10.05.2026 г., 07:40
#1INCH/USDT Take-Profit target 3 ✅ Profit: 39.7219% 📈 Period: 1 day 2 hr ⏰
Hashtags
@shark_grp · Post #20607 · 10.05.2026 г., 07:40
#1INCH/USDT Take-Profit target 2 ✅ Profit: 29.7915% 📈 Period: 18 hr 56 min ⏰
Hashtags
@shark_grp · Post #20603 · 09.05.2026 г., 22:56
#1INCH/USDT Take-Profit target 1 ✅ Profit: 19.861% 📈 Period: 14 hr 30 min ⏰
Hashtags
@greencrypto_signals1 · Post #14273 · 10.05.2026 г., 07:39
#1INCH/USDT Take-Profit target 3 ✅ Profit: 39.7219% 📈 Period: 1 day 2 hr ⏰
Hashtags
@greencrypto_signals1 · Post #14270 · 10.05.2026 г., 07:39
#1INCH/USDT Take-Profit target 2 ✅ Profit: 29.7915% 📈 Period: 18 hr 55 min ⏰
Hashtags
@greencrypto_signals1 · Post #14266 · 09.05.2026 г., 22:56
#1INCH/USDT Take-Profit target 1 ✅ Profit: 19.861% 📈 Period: 14 hr 30 min ⏰
Hashtags
@michaelvandepoppeanalyst · Post #4346 · 28.07.2024 г., 10:39
#1INCH Close 1/4 Position✅ Profit: +134% 🚀🚀🚀🚀
Hashtags
@michaelvandepoppeanalyst · Post #3979 · 25.06.2024 г., 08:01
#1INCH All Target Done 👍 Profit: +410% 🚀🚀🚀🚀
Hashtags