From bbd3f1bf585b815d1f63980a14b2aa9f194ba549 Mon Sep 17 00:00:00 2001 From: Jakub Vins Date: Wed, 11 Feb 2026 09:35:27 +0100 Subject: [PATCH] fix: debank token decimals --- blockapi/v2/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blockapi/v2/models.py b/blockapi/v2/models.py index d748d7f..e4e9595 100644 --- a/blockapi/v2/models.py +++ b/blockapi/v2/models.py @@ -1204,6 +1204,7 @@ class DebankModelDepositToken(BaseModel): symbol: str name: str amount: float + decimals: int app_id: str price: float logo_url: Optional[str] = None @@ -1287,6 +1288,7 @@ class DebankDepositToken: symbol: str name: str amount: Decimal + decimals: int app_id: str price: Decimal logo_url: Optional[str] @@ -1299,6 +1301,7 @@ def from_api( symbol: str, name: str, amount: Union[str, float, int], + decimals: int, app_id: str, price: Union[str, float, int], logo_url: Optional[str] = None, @@ -1306,6 +1309,7 @@ def from_api( return cls( id=id, symbol=symbol, + decimals=decimals, name=name, amount=to_decimal(amount), app_id=app_id,