@degenpump_crypto_pump_signals · Post #504470 · 11.05.2026 г., 18:48
#OGN/USDT Take-Profit target 1 ✅ Profit: 21.9959% 📈 Period: 12 hr 11 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
Пребарај: #ogn
@degenpump_crypto_pump_signals · Post #504470 · 11.05.2026 г., 18:48
#OGN/USDT Take-Profit target 1 ✅ Profit: 21.9959% 📈 Period: 12 hr 11 min ⏰
Hashtags
@degenpump_crypto_pump_signals · Post #504464 · 11.05.2026 г., 18:48
#OGN/USDT Take-Profit target 1 ✅ Profit: 20.436% 📈 Period: 9 hr 36 min ⏰
Hashtags
@degenpump_crypto_pump_signals · Post #504127 · 09.05.2026 г., 08:12
#OGN/USDT Take-Profit target 1 ✅ Profit: 18.1965% 📈 Period: 3 hr 4 min ⏰
Hashtags
@CoinSonar · Post #243848 · 17.04.2026 г., 21:36
#OGN | Volume spike (USDT PAIR) 119 times the average volume 109.63K USDT traded in 5 min └Buying vol: 74.11K USDT 🟢 Boost score: 7/10 24h Vol: 263.92K USDT (Binance) Price: 0.0243 (-1.7% in 24h)
Hashtags
@CoinSonar · Post #243729 · 17.04.2026 г., 15:04
#OGN | Volume spike (USDT PAIR) 523 times the average volume 95.96K USDT traded in 1 min └Buying vol: 65.78K USDT 🟢 Boost score: 8/10 24h Vol: 263.92K USDT (Binance) Price: 0.0246 (-1.7% in 24h)
Hashtags
@CoinSonar · Post #243481 · 17.04.2026 г., 06:30
#OGN | Volume spike (USDT PAIR) 117 times the average volume 107.72K USDT traded in 5 min └Buying vol: 66.46K USDT 🟢 Boost score: 5/10 24h Vol: 263.92K USDT (Binance) Price: 0.0236 (-1.7% in 24h)
Hashtags
@proanalysistrader · Post #28527 · 08.03.2025 г., 16:29
#OGN/USDT analysis : #OGN is currently in a downtrend, trading below the 200 EMA. The price has broken and retested the support zone, suggesting a continuation of the bearish momentum and a potential drop to lower levels. For short entry, look for a pullback. TF : 2H Entry : $0.0653 Target : $0.0600 SL : $0.0690
Hashtags
@proanalysistrader · Post #28345 · 17.12.2024 г., 13:33
#OGN/USDT analysis : #OGN is in an uptrend, making higher highs (HHs) and higher lows (HLs) above the 200 EMA. Currently, it’s consolidating over the 200 EMA, which suggests a potential bounce back and continuation of the bullish momentum. Watch for a breakout above the $0.1460 level to enter a long position, as this will lead to testing previous highs. TF : 4H Entry : $0.1460 Target : $0.1700 SL : $0.1300
Hashtags
@proanalysistrader · Post #28281 · 28.11.2024 г., 15:03
#OGN/USDT analysis : #OGN is currently in a downward slope, consistently forming lower lows (LLs) and lower highs (LHs). The price is anticipated to continue its bearish momentum and may test the previous swing low. TF : 15min Entry : $0.1242 Target : $0.1201 SL : $0.1270
Hashtags
@proanalysistrader · Post #27933 · 14.09.2024 г., 15:14
#OGN/USDT analysis : #OGN has broken out above previous highs and the 200 EMA, currently finding support above these levels. The price is expected to bounce off from this support and continue its bullish momentum to test previous highs. TF : 1H Entry : $0.0854 Target : $0.0937 SL : $0.0800
Hashtags
@americancryptotrading · Post #27300 · 03.07.2025 г., 08:44
🇺🇸#OGN/USDT is printing the descendingresistance line on the daily timeframe👨💻 A breakout is coming✈️ American Crypto©
Hashtags
@americancryptotrading · Post #27118 · 12.01.2025 г., 17:04
🇺🇸#OGN/USDT is consolidating within the descendingtriangle on the weekly chart🧐 Looking for a leg upwards✈️ American Crypto©
Hashtags