Struct plaid::model::AssetReportInvestments
source · pub struct AssetReportInvestments {Show 13 fields
pub account_id: String,
pub amount: f64,
pub date: NaiveDate,
pub fees: Option<f64>,
pub investment_transaction_id: String,
pub iso_currency_code: Option<String>,
pub name: String,
pub price: f64,
pub quantity: f64,
pub security_id: Option<String>,
pub subtype: String,
pub type_: String,
pub unofficial_currency_code: Option<String>,
}
Expand description
A transaction within an investment account.
Fields§
§account_id: String
The account_id
of the account against which this transaction posted.
amount: f64
The complete value of the transaction. Positive values when cash is debited, e.g. purchases of stock; negative values when cash is credited, e.g. sales of stock. Treatment remains the same for cash-only movements unassociated with securities.
date: NaiveDate
The ISO 8601 posting date for the transaction.
fees: Option<f64>
The combined value of all fees applied to this transaction
investment_transaction_id: String
The ID of the Investment transaction, unique across all Plaid transactions. Like all Plaid identifiers, the investment_transaction_id
is case sensitive.
iso_currency_code: Option<String>
The ISO-4217 currency code of the transaction. Always null
if unofficial_currency_code
is non-null
.
name: String
The institution’s description of the transaction.
price: f64
The price of the security at which this transaction occurred.
quantity: f64
The number of units of the security involved in this transaction. Positive for buy transactions; negative for sell transactions.
security_id: Option<String>
The security_id
to which this transaction is related.
subtype: String
For descriptions of possible transaction types and subtypes, see the Investment transaction types schema.
type_: String
Value is one of the following:
buy
: Buying an investment
sell
: Selling an investment
cancel
: A cancellation of a pending transaction
cash
: Activity that modifies a cash position
fee
: A fee on the account
transfer
: Activity which modifies a position, but not through buy/sell activity e.g. options exercise, portfolio transfer
For descriptions of possible transaction types and subtypes, see the Investment transaction types schema.
unofficial_currency_code: Option<String>
The unofficial currency code associated with the holding. Always null
if iso_currency_code
is non-null
. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries.
See the currency code schema for a full listing of supported iso_currency_code
s.
Trait Implementations§
source§impl Clone for AssetReportInvestments
impl Clone for AssetReportInvestments
source§fn clone(&self) -> AssetReportInvestments
fn clone(&self) -> AssetReportInvestments
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more