@coinlegs · Post #9849 · 06.02.2024 г., 08:43
#AGIX it's ready to breakout last LH. If it breaks out this level with high volume, we can expect it to go to 0.37$
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
Пребарај: #agix
@coinlegs · Post #9849 · 06.02.2024 г., 08:43
#AGIX it's ready to breakout last LH. If it breaks out this level with high volume, we can expect it to go to 0.37$
Hashtags
@cryptoprofitcoach · Post #8951 · 13.01.2024 г., 18:41
#AGIX👈 https://www.binance.com/en/trade/AGIX_BTC Buying Zone 670-680 Sell 🤑 745-850 🤑 850- 900 🚀 900-1000 & above Bullish above 640
Hashtags
@cryptoprofitcoach · Post #8692 · 05.02.2023 г., 15:13
#AGIX did X7 moon ride🚀🤑 🔥Grab the deal before price increasing 👈👇👇 🔥🔥Multiply your wealth into multiple folds and Get Unique opportunity to trade with @CryptoProfitCoach Buy when he buy sell when he sell...Know what Gem he holding🔥🔥 Join team @CryptoProfitCoach for mega gains and multiply your wealth ✅Get personalized attention in every trade ✅More trades and Mega profits. ✅ Inside info/Secret info of Coin ✅No.1 Pump Tracking Services. ✅ High End Profit Targets ✅ 24x7 Support in all trades ✅ Get Entry n High end profit Exit with Team in every trade Today's decision can change your tommorrow. https://forms.gle/U519Ye8sCmvVE2Pv9 Click here 👆👆
Hashtags
@cryptoprofitcoach · Post #8600 · 21.12.2022 г., 16:31
#AGIX👈 https://www.binance.com/en/trade/AGIX_BTC Buying Zone 270-282 Sell 🤑 305-315 🤑 315- 345 🤑 345- 375 🚀 375-400 & above Bullish above 250
Hashtags
@cryptoprofitcoach · Post #8557 · 05.12.2022 г., 15:29
#AGIX👈 https://www.binance.com/en/trade/AGIX_BTC Buying Zone 250-260 Sell 🤑 289-303 🤑 303- 320 🤑 320- 350 🚀 350-380 & above Bullish above 240
Hashtags
@cryptoprofitcoach · Post #8382 · 20.10.2022 г., 17:08
#AGIX👈 https://www.binance.com/en/trade/AGIX_BTC Buying Zone 260-275 Sell 🤑 289-303 🤑 303- 320 🤑 320- 350 🚀 350-380 & above Bullish above 250
Hashtags
@cryptoprofitcoach · Post #8332 · 13.10.2022 г., 04:04
#AGIX no.1 Top gainer is tracked by us before pump 🤑
Hashtags
@cryptoprofitcoach · Post #8324 · 07.10.2022 г., 17:31
#AGIX👈 https://www.binance.com/en/trade/AGIX_BTC Buying Zone 235-245 Sell 🤑 257-269 🤑 269- 293 🤑 293- 317 🚀 317-340 & above SL- 225
Hashtags
@cryptoprofitcoach · Post #8271 · 21.09.2022 г., 10:52
#AGIX👈 https://www.binance.com/en/trade/AGIX_BTC Buying Zone 280-290 Sell 🤑 320 🤑 320- 350 🤑 350- 380 🚀 380-410 & above SL- 250
Hashtags
@cryptoprofitcoach · Post #8226 · 11.09.2022 г., 09:21
#AGIX👈 https://www.binance.com/en/trade/AGIX_BTC Buying Zone 210-215 Sell 🤑 240-250 🤑 250- 270 🤑 270- 290 🚀 290-310 & above SL- 200
Hashtags
@cryptoprofitcoach · Post #7994 · 29.07.2022 г., 08:35
#AGIX👈 https://www.binance.com/en/trade/AGIX_BTC Buying Zone 169-172 Sell 🤑 187- 190 🤑 190- 207 🤑 207- 224 🚀 224-250 & above SL- 163
Hashtags
@sublimetraders · Post #2302 · 08.03.2024 г., 17:41
Binance Futures, ByBit USDT #AGIX/USDT Take-Profit target 4 ✅ Profit: 20.8831% 📈 Period: 22 Hours 37 Minutes ⏰
Hashtags