Struct plaid_openapi::Security
source · [−]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: StringA 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
sourceimpl<'de> Deserialize<'de> for Security
impl<'de> Deserialize<'de> for Security
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Security
impl Send for Security
impl Sync for Security
impl Unpin for Security
impl UnwindSafe for Security
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more