@degenpump_crypto_pump_signals · Post #504010 · 08.05.2026 г., 17:33
#LTC/USDT Take-Profit target 2 ✅ Profit: 27.724% 📈 Period: 2 hr 59 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
Пребарај: #ltc
@degenpump_crypto_pump_signals · Post #504010 · 08.05.2026 г., 17:33
#LTC/USDT Take-Profit target 2 ✅ Profit: 27.724% 📈 Period: 2 hr 59 min ⏰
Hashtags
@degenpump_crypto_pump_signals · Post #503989 · 08.05.2026 г., 15:51
#LTC/USDT Take-Profit target 1 ✅ Profit: 17.9546% 📈 Period: 1 hr 18 min ⏰
Hashtags
@cryptosignalalert · Post #28366 · 16.02.2026 г., 15:23
✔️✔️#LTC/USDT – Update $50 remains the key level on the radar over the coming weeks. Price structure suggests a potential move toward this zone, with momentum building gradually as the market stabilizes.
Hashtags
@proanalysistrader · Post #28207 · 16.11.2024 г., 09:31
A quick Scalp on #LTC
Hashtags
@proanalysistrader · Post #28006 · 12.10.2024 г., 04:59
#LTC/USDT analysis : #LTC is currently experiencing a pullback towards the 200 EMA on the higher time frame. The price is expected to rise from the current level and test previous highs. For a long entry, it is advisable to wait for a break above the $67.67 level. TF : 1D Entry : $67.67 Target : $76.31 SL : $61.69
Hashtags
@proanalysistrader · Post #27769 · 28.07.2024 г., 09:20
#LTC/USDT analysis - #LTC has recovered its support levels post breakdown. Price is anticipated to sustain its bullish momentum and challenge previous highs. SL will be placed below the zone. TF : 4H Entry : $71.19 Target : $76.15 SL : $68.74
Hashtags
@proanalysistrader · Post #27752 · 11.07.2024 г., 16:14
#LTC/USDT analysis - #LTC is consolidating in a resistance zone and is expected to soon reject from that zone. The previous swing low is expected to be tested. For a short entry, wait for a break of the $66.95 level. TF : 2h Entry : $66.95 Target : $58.49 SL : $70.16
Hashtags
@proanalysistrader · Post #27712 · 28.06.2024 г., 06:14
#LTC/USDT analysis - #LTC is in a downtrend, making lower lows (LLs) and lower highs (LHs). The price is currently experiencing a pullback and is expected to test the supply zone near the 200 EMA, where excessive selling has occurred before. Wait for the price to approach the zone for a short entry. TF : 2h Entry : $73.98 Target : $70.73 SL : $75.42
Hashtags
@proanalysistrader · Post #27665 · 17.06.2024 г., 03:24
#LTC/USDT analysis - #LTC is currently moving sideways in a support and resistance zone. The price has rejected from resistance and is now expected to test support levels, creating a potential short selling opportunity. TF : 1H Entry : $78.50 Target : $75.57 SL : $80.52
Hashtags
@americancryptotrading · Post #27575 · 01.04.2026 г., 10:20
🇺🇸#LTC/USDT is facing the lowerboundary of the descendingtriangle formation on the weekly timeframe🧐 Accumulate here📈 American Crypto©
Hashtags
@americancryptotrading · Post #27472 · 17.12.2025 г., 10:16
🇺🇸#LTC/USDT is holding above the lowerboundary of the symmetricaltriangle pattern on the weekly chart🔍 Bounce is coming📈 American Crypto©
Hashtags
@americancryptotrading · Post #27418 · 25.10.2025 г., 08:07
🇺🇸#LTC/USDT is stabilizing near the broken s/rzone on the weekly timeframe🔍 Retest completed, time to rally🐃 American Crypto©
Hashtags