auradefi 0.1.1
PyPI GitHub

Holding

auradefi.portfolio.models · source

One asset balance on one account (≡ Plaid Holding).

price is the unit USD price; value is the position USD value. Pricing is all-or-nothing: both set (priced) or both None (unpriced). Exactly one of the two being None raises ValidationError at construction.

Fields

caip19str
symbolstr | None
quantityQuantity
priceMoney | None
valueMoney | None

__init__

__init__(self, caip19: str, symbol: str | None, quantity: Quantity, price: Money | None, value: Money | None) -> None

Parameters

caip19required, str

none

symbolrequired, str | None

none

quantityrequired, Quantity

none

pricerequired, Money | None

none

valuerequired, Money | None

none