pub struct Security {
Show 15 fields pub security_id: String, pub isin: Option<String>, pub cusip: Option<String>, pub sedol: Option<String>, pub institution_security_id: Option<String>, pub institution_id: Option<String>, pub proxy_security_id: Option<String>, pub name: Option<String>, pub ticker_symbol: Option<String>, pub is_cash_equivalent: Option<bool>, pub type_: Option<String>, pub close_price: Option<f64>, pub close_price_as_of: Option<String>, pub iso_currency_code: Option<String>, pub unofficial_currency_code: Option<String>,
}

Fields

security_id: String

A unique, Plaid-specific identifier for the security, used to associate securities with holdings. Like all Plaid identifiers, the security_id is case sensitive.

isin: Option<String>

12-character ISIN, a globally unique securities identifier.

cusip: Option<String>

9-character CUSIP, an identifier assigned to North American securities.

sedol: Option<String>

7-character SEDOL, an identifier assigned to securities in the UK.

institution_security_id: Option<String>

An identifier given to the security by the institution

institution_id: Option<String>

If institution_security_id is present, this field indicates the Plaid institution_id of the institution to whom the identifier belongs.

proxy_security_id: Option<String>

In certain cases, Plaid will provide the ID of another security whose performance resembles this security, typically when the original security has low volume, or when a private security can be modeled with a publicly traded security.

name: Option<String>

A descriptive name for the security, suitable for display.

ticker_symbol: Option<String>

The security’s trading symbol for publicly traded securities, and otherwise a short identifier if available.

is_cash_equivalent: Option<bool>

Indicates that a security is a highly liquid asset and can be treated like cash.

type_: Option<String>

The security type of the holding. Valid security types are:

cash: Cash, currency, and money market funds

derivative: Options, warrants, and other derivative instruments

equity: Domestic and foreign equities

etf: Multi-asset exchange-traded investment funds

fixed income: Bonds and certificates of deposit (CDs)

loan: Loans and loan receivables.

mutual fund: Open- and closed-end vehicles pooling funds of multiple investors.

other: Unknown or other investment types

close_price: Option<f64>

Price of the security at the close of the previous trading session. null for non-public securities. If the security is a foreign currency or a cryptocurrency this field will be updated daily and will be priced in USD.

close_price_as_of: Option<String>

Date for which close_price is accurate. Always null if close_price is null.

iso_currency_code: Option<String>

The ISO-4217 currency code of the price given. Always null if unofficial_currency_code is non-null.

unofficial_currency_code: Option<String>

The unofficial currency code associated with the security. 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_codes.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more