class

Plaid::Security

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Contains details about a security

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, security_id : String | Nil = nil, isin : String | Nil = nil, cusip : String | Nil = nil, sedol : String | Nil = nil, institution_security_id : String | Nil = nil, institution_id : String | Nil = nil, proxy_security_id : String | Nil = nil, name : String | Nil = nil, ticker_symbol : String | Nil = nil, is_cash_equivalent : Bool | Nil = nil, _type : String | Nil = nil, close_price : Float64 | Nil = nil, close_price_as_of : Time | Nil = nil, iso_currency_code : String | Nil = nil, unofficial_currency_code : String | Nil = nil, update_datetime : Time | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

_type

The security type of the holding. Valid security types are: cash: Cash, currency, and money market funds cryptocurrency: Digital or virtual currencies 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

Source
_type=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] _type Object to be assigned

Source
close_price

Price of the security at the close of the previous trading session. Null for non-public securities. If the security is a foreign currency this field will be updated daily and will be priced in USD. If the security is a cryptocurrency, this field will be updated multiple times a day. As crypto prices can fluctuate quickly and data may become stale sooner than other asset classes, refer to update_datetime with the time when the price was last updated.

Source
close_price=(new_value : Float64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] close_price Object to be assigned

Source
close_price_as_of

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

Source
close_price_as_of=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] close_price_as_of Object to be assigned

Source
cusip

9-character CUSIP, an identifier assigned to North American securities. A verified CUSIP Global Services license is required to receive this data. This field will be null by default for new customers, and null for existing customers starting March 12, 2024. If you would like access to this field, please start the verification process here.

Source
cusip=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] cusip Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

institution_id

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

Source
institution_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] institution_id Object to be assigned

Source
institution_security_id

An identifier given to the security by the institution

Source
institution_security_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] institution_security_id Object to be assigned

Source
is_cash_equivalent

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

Source
is_cash_equivalent=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] is_cash_equivalent Object to be assigned

Source
isin

12-character ISIN, a globally unique securities identifier. A verified CUSIP Global Services license is required to receive this data. This field will be null by default for new customers, and null for existing customers starting March 12, 2024. If you would like access to this field, please start the verification process here.

Source
isin=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] isin Object to be assigned

Source
iso_currency_code

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

Source
iso_currency_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] iso_currency_code Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
name

A descriptive name for the security, suitable for display.

Source
name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned

Source
proxy_security_id

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.

Source
proxy_security_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] proxy_security_id Object to be assigned

Source
security_id

A unique, Plaid-specific identifier for the security, used to associate securities with holdings. Like all Plaid identifiers, the security_id is case sensitive. The security_id may change if inherent details of the security change due to a corporate action, for example, in the event of a ticker symbol change or CUSIP change.

Source
security_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] security_id Object to be assigned

Source
sedol

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

Source
sedol=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] sedol Object to be assigned

Source
ticker_symbol

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

Source
ticker_symbol=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] ticker_symbol Object to be assigned

Source
unofficial_currency_code

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.

Source
unofficial_currency_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] unofficial_currency_code Object to be assigned

Source
update_datetime

Date and time at which close_price is accurate, in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ). Always null if close_price is null.

Source
update_datetime=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] update_datetime Object to be assigned

Source
update_datetime_present=(update_datetime_present : Bool)
Source
update_datetime_present?
Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source