pub struct SecurityHolding {Show 18 fields
pub isin: Option<Isin>,
pub wkn: Option<Wkn>,
pub name: String,
pub quantity: Decimal,
pub price: Option<Decimal>,
pub price_currency: Option<Currency>,
pub price_date: Option<Date>,
pub market_value: Option<Decimal>,
pub market_value_currency: Option<Currency>,
pub acquisition_value: Option<Decimal>,
pub acquisition_date: Option<Date>,
pub acquisition_price: Option<Decimal>,
pub acquisition_price_currency: Option<Currency>,
pub profit_loss: Option<Decimal>,
pub exchange: Option<String>,
pub depot_id: Option<String>,
pub statement_date: Option<Date>,
pub raw: Value,
}tooling only.Expand description
A single securities position in a depot.
Fields§
§isin: Option<Isin>ISIN of the security.
wkn: Option<Wkn>WKN (German securities identification number).
name: StringHuman-readable name of the security.
quantity: DecimalNumber of shares/units held (can be fractional for funds).
price: Option<Decimal>Current market price per unit.
price_currency: Option<Currency>Currency of the price.
price_date: Option<Date>Date of the price quote.
market_value: Option<Decimal>Total market value (quantity * price).
market_value_currency: Option<Currency>Currency of the market value.
acquisition_value: Option<Decimal>Original purchase value (Einstandswert), if available.
acquisition_date: Option<Date>Purchase (acquisition) date, from the German structured MT535
:70E::HOLD narrative.
acquisition_price: Option<Decimal>Purchase price per unit (percent of face amount for bonds).
acquisition_price_currency: Option<Currency>Currency of the purchase price; None for percent prices.
profit_loss: Option<Decimal>Profit/loss amount, if available.
exchange: Option<String>Exchange/market where the price was quoted.
depot_id: Option<String>Depot number this holding belongs to.
statement_date: Option<Date>Date the statement holding this position was made for (MT535
:98A::STAT or :98C::STAT in the general block), if the bank sent one.
raw: ValueRaw parsed data for debugging/extension.