fix(ledger): preserve exact decimal amount in manual and unified responses

Co-authored-by: genichin <4282227+genichin@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-09-09 12:41:36 +00:00
committed by GitHub
co-authored by genichin
parent 7fc3386f3a
commit fde5b33f05
5 changed files with 32 additions and 8 deletions
+2 -2
View File
@@ -220,7 +220,7 @@ class ManualLedgerResponse(BaseModel):
ledger_entry_id: int
portfolio_id: str
action: str
amount: float | None = None
amount: Decimal | None = None
quantity: float = 0.0
price: float = 0.0
fee: float = 0.0
@@ -254,7 +254,7 @@ class LedgerHistoryItem(BaseModel):
order_id: str | None = None
execution_id: str | None = None
quantity: float | None = None
amount: float | None = None
amount: Decimal | None = None
price: float | None = None
fee_amount: float | None = None
tax_amount: float | None = None