Plaid logo
Docs
ALL DOCS

API

  • Overview
  • Libraries
  • API versioning
  • Postman Collection
  • Webhooks
Product API reference
  • Transactions
  • Auth
  • Balance
  • Identity
  • Assets
  • Investments
  • Liabilities
  • Payment Initiation
  • Virtual Accounts
  • Transfer (beta)
  • Income
  • Identity Verification
  • Monitor
  • Signal
  • Enrich
Other API reference
  • Item endpoints and webhooks
  • Account endpoints and schemas
  • Institution endpoints
  • Token flow and endpoints
  • Processor endpoints
  • Sandbox endpoints
  • Reseller partner endpoints
Plaid logo
Docs
Plaid.com
Get API keys
Open nav

Investments

API reference for Investments endpoints and webhooks

Endpoints
/investments/holdings/getFetch investment holdings
/investments/transactions/getFetch investment transactions
In this section
HOLDINGS: DEFAULT_UPDATENew holdings available
INVESTMENTS_TRANSACTIONS: DEFAULT_UPDATENew transactions available

Endpoints

/investments/holdings/get

Get Investment holdings

The /investments/holdings/get endpoint allows developers to receive user-authorized stock position data for investment-type accounts.

investments/holdings/get

Request fields and example

client_id
string
Your Plaid API client_id. The client_id is required and may be provided either in the PLAID-CLIENT-ID header or as part of a request body.
secret
string
Your Plaid API secret. The secret is required and may be provided either in the PLAID-SECRET header or as part of a request body.
access_token
requiredstring
The access token associated with the Item data is being requested for.
options
object
An optional object to filter /investments/holdings/get results. If provided, must not be null.
account_ids
[string]
An array of account_ids to retrieve for the Item. An error will be returned if a provided account_id is not associated with the Item.
Select group for content switcher
Select Language
Copy
1// Pull Holdings for an Item
2const request: InvestmentsHoldingsGetRequest = {
3 access_token: accessToken,
4};
5try {
6 const response = await plaidClient.investmentsHoldingsGet(request);
7 const holdings = response.data.holdings;
8 const securities = response.data.securities;
9} catch (error) {
10 // handle error
11}
investments/holdings/get

Response fields and example

accounts
[object]
The accounts associated with the Item
account_id
string
Plaid’s unique identifier for the account. This value will not change unless Plaid can't reconcile the account with the data returned by the financial institution. This may occur, for example, when the name of the account changes. If this happens a new account_id will be assigned to the account.
The account_id can also change if the access_token is deleted and the same credentials that were used to generate that access_token are used to generate a new access_token on a later date. In that case, the new account_id will be different from the old account_id.
If an account with a specific account_id disappears instead of changing, the account is likely closed. Closed accounts are not returned by the Plaid API.
Like all Plaid identifiers, the account_id is case sensitive.
balances
object
A set of fields describing the balance for an account. Balance information may be cached unless the balance object was returned by /accounts/balance/get.
available
nullablenumber
The amount of funds available to be withdrawn from the account, as determined by the financial institution.
For credit-type accounts, the available balance typically equals the limit less the current balance, less any pending outflows plus any pending inflows.
For depository-type accounts, the available balance typically equals the current balance less any pending outflows plus any pending inflows. For depository-type accounts, the available balance does not include the overdraft limit.
For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the available balance is the total cash available to withdraw as presented by the institution.
Note that not all institutions calculate the available balance. In the event that available balance is unavailable, Plaid will return an available balance value of null.
Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /accounts/balance/get.
If current is null this field is guaranteed not to be null.


Format: double
current
nullablenumber
The total amount of funds in or owed by the account.
For credit-type accounts, a positive balance indicates the amount owed; a negative amount indicates the lender owing the account holder.
For loan-type accounts, the current balance is the principal remaining on the loan, except in the case of student loan accounts at Sallie Mae (ins_116944). For Sallie Mae student loans, the account's balance includes both principal and any outstanding interest.
For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the current balance is the total value of assets as presented by the institution.
Note that balance information may be cached unless the value was returned by /accounts/balance/get; if the Item is enabled for Transactions, the balance will be at least as recent as the most recent Transaction update. If you require realtime balance information, use the available balance as provided by /accounts/balance/get.
When returned by /accounts/balance/get, this field may be null. When this happens, available is guaranteed not to be null.


Format: double
limit
nullablenumber
For credit-type accounts, this represents the credit limit.
For depository-type accounts, this represents the pre-arranged overdraft limit, which is common for current (checking) accounts in Europe.
In North America, this field is typically only available for credit-type accounts.


Format: double
iso_currency_code
nullablestring
The ISO-4217 currency code of the balance. Always null if unofficial_currency_code is non-null.
unofficial_currency_code
nullablestring
The unofficial currency code associated with the balance. 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 unofficial_currency_codes.
last_updated_datetime
nullablestring
Timestamp in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ) indicating the last time that the balance for the given account has been updated
This is currently only provided when the min_last_updated_datetime is passed when calling /accounts/balance/get for ins_128026 (Capital One).


Format: date-time
mask
nullablestring
The last 2-4 alphanumeric characters of an account's official account number. Note that the mask may be non-unique between an Item's accounts, and it may also not match the mask that the bank displays to the user.
name
string
The name of the account, either assigned by the user or by the financial institution itself
official_name
nullablestring
The official name of the account as given by the financial institution
type
string
investment: Investment account. In API versions 2018-05-22 and earlier, this type is called brokerage instead.
credit: Credit card
depository: Depository account
loan: Loan account
other: Non-specified account type
See the Account type schema for a full listing of account types and corresponding subtypes.


Possible values: investment, credit, depository, loan, brokerage, other
subtype
nullablestring
See the Account type schema for a full listing of account types and corresponding subtypes.

Possible values: 401a, 401k, 403B, 457b, 529, brokerage, cash isa, crypto exchange, education savings account, ebt, fixed annuity, gic, health reimbursement arrangement, hsa, isa, ira, lif, life insurance, lira, lrif, lrsp, non-custodial wallet, non-taxable brokerage account, other, other insurance, other annuity, prif, rdsp, resp, rlif, rrif, pension, profit sharing plan, retirement, roth, roth 401k, rrsp, sep ira, simple ira, sipp, stock plan, thrift savings plan, tfsa, trust, ugma, utma, variable annuity, credit card, paypal, cd, checking, savings, money market, prepaid, auto, business, commercial, construction, consumer, home equity, loan, mortgage, overdraft, line of credit, student, cash management, keogh, mutual fund, recurring, rewards, safe deposit, sarsep, payroll, null
verification_status
string
The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.
pending_automatic_verification: The Item is pending automatic verification
pending_manual_verification: The Item is pending manual micro-deposit verification. Items remain in this state until the user successfully verifies the two amounts.
automatically_verified: The Item has successfully been automatically verified
manually_verified: The Item has successfully been manually verified
verification_expired: Plaid was unable to automatically verify the deposit within 7 calendar days and will no longer attempt to validate the Item. Users may retry by submitting their information again through Link.
verification_failed: The Item failed manual micro-deposit verification because the user exhausted all 3 verification attempts. Users may retry by submitting their information again through Link.


Possible values: automatically_verified, pending_automatic_verification, pending_manual_verification, manually_verified, verification_expired, verification_failed
persistent_account_id
string
A unique and persistent identifier for accounts that can be used to trace multiple instances of the same account across different Items for depository accounts. This is currently an opt-in field and only supported for Chase Items.
holdings
[object]
The holdings belonging to investment accounts associated with the Item. Details of the securities in the holdings are provided in the securities field.
account_id
string
The Plaid account_id associated with the holding.
security_id
string
The Plaid security_id associated with the holding. Security data is not specific to a user's account; any user who held the same security at the same financial institution at the same time would have identical security data. The security_id for the same security will typically be the same across different institutions, but this is not guaranteed. The security_id does not typically change, but 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.
institution_price
number
The last price given by the institution for this security.

Format: double
institution_price_as_of
nullablestring
The date at which institution_price was current.

Format: date
institution_price_datetime
nullablestring
Date and time at which institution_price was current, in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ).
This field is returned for select financial institutions and comes as provided by the institution. It may contain default time values (such as 00:00:00).


Format: date-time
institution_value
number
The value of the holding, as reported by the institution.

Format: double
cost_basis
nullablenumber
The original total value of the holding. This field is calculated by Plaid as the sum of the purchase price of all of the shares in the holding.

Format: double
quantity
number
The total quantity of the asset held, as reported by the financial institution. If the security is an option, quantity will reflect the total number of options (typically the number of contracts multiplied by 100), not the number of contracts.

Format: double
iso_currency_code
nullablestring
The ISO-4217 currency code of the holding. Always null if unofficial_currency_code is non-null.
unofficial_currency_code
nullablestring
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_codes.
securities
[object]
Objects describing the securities held in the accounts associated with the Item.
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. 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.
isin
nullablestring
12-character ISIN, a globally unique securities identifier. Please note that Plaid's customers must hold a license directly from CUSIP Global Services to receive CUSIP & ISIN data. This field will be null by default for new customers. For existing customers, this field will be null by default starting on Sept 15, 2023. If you would like access to this field, please contact your Plaid Account Manager or reach out to investments-vendors@plaid.com.
cusip
nullablestring
9-character CUSIP, an identifier assigned to North American securities. Please note that Plaid's customers must hold a license directly from CUSIP Global Services to receive CUSIP & ISIN data. This field will be null by default for new customers. For existing customers, this field will be null by default starting on Sept 15, 2023. If you would like access to this field, please contact your Plaid Account Manager or reach out to investments-vendors@plaid.com.
sedol
nullablestring
7-character SEDOL, an identifier assigned to securities in the UK.
institution_security_id
nullablestring
An identifier given to the security by the institution
institution_id
nullablestring
If institution_security_id is present, this field indicates the Plaid institution_id of the institution to whom the identifier belongs.
proxy_security_id
nullablestring
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
nullablestring
A descriptive name for the security, suitable for display.
ticker_symbol
nullablestring
The security’s trading symbol for publicly traded securities, and otherwise a short identifier if available.
is_cash_equivalent
nullableboolean
Indicates that a security is a highly liquid asset and can be treated like cash.
type
nullablestring
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
close_price
nullablenumber
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.


Format: double
close_price_as_of
nullablestring
Date for which close_price is accurate. Always null if close_price is null.

Format: date
update_datetime
nullablestring
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.

Format: date-time
iso_currency_code
nullablestring
The ISO-4217 currency code of the price given. Always null if unofficial_currency_code is non-null.
unofficial_currency_code
nullablestring
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.
item
object
Metadata about the Item.
item_id
string
The Plaid Item ID. The item_id is always unique; linking the same account at the same institution twice will result in two Items with different item_id values. Like all Plaid identifiers, the item_id is case-sensitive.
institution_id
nullablestring
The Plaid Institution ID associated with the Item. Field is null for Items created via Same Day Micro-deposits.
webhook
nullablestring
The URL registered to receive webhooks for the Item.
error
nullableobject
We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.
error_type
string
A broad categorization of the error. Safe for programmatic use.

Possible values: INVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERROR
error_code
string
The particular error code. Safe for programmatic use.
error_message
string
A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.
display_message
nullablestring
A user-friendly representation of the error code. null if the error is not related to user action.
This may change over time and is not safe for programmatic use.
request_id
string
A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.
causes
array
In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.
causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.
status
nullablenumber
The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.
documentation_url
string
The URL of a Plaid documentation page with more information about the error
suggested_action
nullablestring
Suggested steps for resolving the error
available_products
[string]
A list of products available for the Item that have not yet been accessed. The contents of this array will be mutually exclusive with billed_products.

Possible values: assets, auth, balance, identity, investments, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal
billed_products
[string]
A list of products that have been billed for the Item. The contents of this array will be mutually exclusive with available_products. Note - billed_products is populated in all environments but only requests in Production are billed. Also note that products that are billed on a pay-per-call basis rather than a pay-per-Item basis, such as balance, will not appear here.

Possible values: assets, auth, balance, identity, investments, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal
products
[string]
A list of authorized products for the Item.

Possible values: assets, auth, balance, identity, investments, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal
consented_products
[string]
Beta: A list of products that have gone through consent collection for the Item. Only present for those enabled in the beta.

Possible values: assets, auth, balance, identity, investments, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal
consent_expiration_time
nullablestring
The RFC 3339 timestamp after which the consent provided by the end user will expire. Upon consent expiration, the item will enter the ITEM_LOGIN_REQUIRED error state. To circumvent the ITEM_LOGIN_REQUIRED error and maintain continuous consent, the end user can reauthenticate via Link’s update mode in advance of the consent expiration time.
Note - This is only relevant for certain OAuth-based institutions. For all other institutions, this field will be null.


Format: date-time
update_type
string
Indicates whether an Item requires user interaction to be updated, which can be the case for Items with some forms of two-factor authentication.
background - Item can be updated in the background
user_present_required - Item requires user interaction to be updated


Possible values: background, user_present_required
request_id
string
A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
Copy
1{
2 "accounts": [
3 {
4 "account_id": "5Bvpj4QknlhVWk7GygpwfVKdd133GoCxB814g",
5 "balances": {
6 "available": 43200,
7 "current": 43200,
8 "iso_currency_code": "USD",
9 "limit": null,
10 "unofficial_currency_code": null
11 },
12 "mask": "4444",
13 "name": "Plaid Money Market",
14 "official_name": "Plaid Platinum Standard 1.85% Interest Money Market",
15 "subtype": "money market",
16 "type": "depository"
17 },
18 {
19 "account_id": "JqMLm4rJwpF6gMPJwBqdh9ZjjPvvpDcb7kDK1",
20 "balances": {
21 "available": null,
22 "current": 320.76,
23 "iso_currency_code": "USD",
24 "limit": null,
25 "unofficial_currency_code": null
26 },
27 "mask": "5555",
28 "name": "Plaid IRA",
29 "official_name": null,
30 "subtype": "ira",
31 "type": "investment"
32 },
33 {
34 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
35 "balances": {
36 "available": null,
37 "current": 23631.9805,
38 "iso_currency_code": "USD",
39 "limit": null,
40 "unofficial_currency_code": null
41 },
42 "mask": "6666",
43 "name": "Plaid 401k",
44 "official_name": null,
45 "subtype": "401k",
46 "type": "investment"
47 },
48 {
49 "account_id": "ax0xgOBYRAIqOOjeLZr0iZBb8r6K88HZXpvmq",
50 "balances": {
51 "available": 48200.03,
52 "current": 48200.03,
53 "iso_currency_code": "USD",
54 "limit": null,
55 "unofficial_currency_code": null
56 },
57 "mask": "4092",
58 "name": "Plaid Crypto Exchange Account",
59 "official_name": null,
60 "subtype": "crypto exchange",
61 "type": "investment"
62 }
63 ],
64 "holdings": [
65 {
66 "account_id": "JqMLm4rJwpF6gMPJwBqdh9ZjjPvvpDcb7kDK1",
67 "cost_basis": 1,
68 "institution_price": 1,
69 "institution_price_as_of": "2021-04-13",
70 "institution_price_datetime": null,
71 "institution_value": 0.01,
72 "iso_currency_code": "USD",
73 "quantity": 0.01,
74 "security_id": "d6ePmbPxgWCWmMVv66q9iPV94n91vMtov5Are",
75 "unofficial_currency_code": null
76 },
77 {
78 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
79 "cost_basis": 1.5,
80 "institution_price": 2.11,
81 "institution_price_as_of": "2021-04-13",
82 "institution_price_datetime": null,
83 "institution_value": 2.11,
84 "iso_currency_code": "USD",
85 "quantity": 1,
86 "security_id": "KDwjlXj1Rqt58dVvmzRguxJybmyQL8FgeWWAy",
87 "unofficial_currency_code": null
88 },
89 {
90 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
91 "cost_basis": 10,
92 "institution_price": 10.42,
93 "institution_price_as_of": "2021-04-13",
94 "institution_price_datetime": null,
95 "institution_value": 20.84,
96 "iso_currency_code": "USD",
97 "quantity": 2,
98 "security_id": "NDVQrXQoqzt5v3bAe8qRt4A7mK7wvZCLEBBJk",
99 "unofficial_currency_code": null
100 },
101 {
102 "account_id": "JqMLm4rJwpF6gMPJwBqdh9ZjjPvvpDcb7kDK1",
103 "cost_basis": 0.01,
104 "institution_price": 0.011,
105 "institution_price_as_of": "2021-04-13",
106 "institution_price_datetime": null,
107 "institution_value": 110,
108 "iso_currency_code": "USD",
109 "quantity": 10000,
110 "security_id": "8E4L9XLl6MudjEpwPAAgivmdZRdBPJuvMPlPb",
111 "unofficial_currency_code": null
112 },
113 {
114 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
115 "cost_basis": 23,
116 "institution_price": 27,
117 "institution_price_as_of": "2021-04-13",
118 "institution_price_datetime": null,
119 "institution_value": 636.309,
120 "iso_currency_code": "USD",
121 "quantity": 23.567,
122 "security_id": "JDdP7XPMklt5vwPmDN45t3KAoWAPmjtpaW7DP",
123 "unofficial_currency_code": null
124 },
125 {
126 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
127 "cost_basis": 15,
128 "institution_price": 13.73,
129 "institution_price_as_of": "2021-04-13",
130 "institution_price_datetime": null,
131 "institution_value": 1373.6865,
132 "iso_currency_code": "USD",
133 "quantity": 100.05,
134 "security_id": "nnmo8doZ4lfKNEDe3mPJipLGkaGw3jfPrpxoN",
135 "unofficial_currency_code": null
136 },
137 {
138 "account_id": "k67E4xKvMlhmleEa4pg9hlwGGNnnEeixPolGm",
139 "cost_basis": 1,
140 "institution_price": 1,
141 "institution_price_as_of": "2021-04-13",
142 "institution_price_datetime": null,
143 "institution_value": 12345.67,
144 "iso_currency_code": "USD",
145 "quantity": 12345.67,
146 "security_id": "d6ePmbPxgWCWmMVv66q9iPV94n91vMtov5Are",
147 "unofficial_currency_code": null
148 },
149 {
150 "account_id": "ax0xgOBYRAIqOOjeLZr0iZBb8r6K88HZXpvmq",
151 "cost_basis": 92.47,
152 "institution_price": 0.177494362,
153 "institution_price_as_of": "2022-01-14",
154 "institution_price_datetime": "2022-06-07T23:01:00Z",
155 "institution_value": 4437.35905,
156 "iso_currency_code": "USD",
157 "quantity": 25000,
158 "security_id": "vLRMV3MvY1FYNP91on35CJD5QN5rw9Fpa9qOL",
159 "unofficial_currency_code": null
160 }
161 ],
162 "item": {
163 "available_products": [
164 "balance",
165 "identity",
166 "liabilities",
167 "transactions"
168 ],
169 "billed_products": [
170 "assets",
171 "auth",
172 "investments"
173 ],
174 "consent_expiration_time": null,
175 "error": null,
176 "institution_id": "ins_3",
177 "item_id": "4z9LPae1nRHWy8pvg9jrsgbRP4ZNQvIdbLq7g",
178 "update_type": "background",
179 "webhook": "https://www.genericwebhookurl.com/webhook"
180 },
181 "request_id": "l68wb8zpS0hqmsJ",
182 "securities": [
183 {
184 "close_price": 0.011,
185 "close_price_as_of": "2021-04-13",
186 "cusip": null,
187 "institution_id": null,
188 "institution_security_id": null,
189 "is_cash_equivalent": false,
190 "isin": null,
191 "iso_currency_code": "USD",
192 "name": "Nflx Feb 01'18 $355 Call",
193 "proxy_security_id": null,
194 "security_id": "8E4L9XLl6MudjEpwPAAgivmdZRdBPJuvMPlPb",
195 "sedol": null,
196 "ticker_symbol": "NFLX180201C00355000",
197 "type": "derivative",
198 "unofficial_currency_code": null,
199 "update_datetime": null
200 },
201 {
202 "close_price": 27,
203 "close_price_as_of": null,
204 "cusip": "577130834",
205 "institution_id": null,
206 "institution_security_id": null,
207 "is_cash_equivalent": false,
208 "isin": "US5771308344",
209 "iso_currency_code": "USD",
210 "name": "Matthews Pacific Tiger Fund Insti Class",
211 "proxy_security_id": null,
212 "security_id": "JDdP7XPMklt5vwPmDN45t3KAoWAPmjtpaW7DP",
213 "sedol": null,
214 "ticker_symbol": "MIPTX",
215 "type": "mutual fund",
216 "unofficial_currency_code": null,
217 "update_datetime": null
218 },
219 {
220 "close_price": 2.11,
221 "close_price_as_of": null,
222 "cusip": "00448Q201",
223 "institution_id": null,
224 "institution_security_id": null,
225 "is_cash_equivalent": false,
226 "isin": "US00448Q2012",
227 "iso_currency_code": "USD",
228 "name": "Achillion Pharmaceuticals Inc.",
229 "proxy_security_id": null,
230 "security_id": "KDwjlXj1Rqt58dVvmzRguxJybmyQL8FgeWWAy",
231 "sedol": null,
232 "ticker_symbol": "ACHN",
233 "type": "equity",
234 "unofficial_currency_code": null,
235 "update_datetime": null
236 },
237 {
238 "close_price": 10.42,
239 "close_price_as_of": null,
240 "cusip": "258620103",
241 "institution_id": null,
242 "institution_security_id": null,
243 "is_cash_equivalent": false,
244 "isin": "US2586201038",
245 "iso_currency_code": "USD",
246 "name": "DoubleLine Total Return Bond Fund",
247 "proxy_security_id": null,
248 "security_id": "NDVQrXQoqzt5v3bAe8qRt4A7mK7wvZCLEBBJk",
249 "sedol": null,
250 "ticker_symbol": "DBLTX",
251 "type": "mutual fund",
252 "unofficial_currency_code": null,
253 "update_datetime": null
254 },
255 {
256 "close_price": 1,
257 "close_price_as_of": null,
258 "cusip": null,
259 "institution_id": null,
260 "institution_security_id": null,
261 "is_cash_equivalent": true,
262 "isin": null,
263 "iso_currency_code": "USD",
264 "name": "U S Dollar",
265 "proxy_security_id": null,
266 "security_id": "d6ePmbPxgWCWmMVv66q9iPV94n91vMtov5Are",
267 "sedol": null,
268 "ticker_symbol": "USD",
269 "type": "cash",
270 "unofficial_currency_code": null,
271 "update_datetime": null
272 },
273 {
274 "close_price": 13.73,
275 "close_price_as_of": null,
276 "cusip": null,
277 "institution_id": "ins_3",
278 "institution_security_id": "NHX105509",
279 "is_cash_equivalent": false,
280 "isin": null,
281 "iso_currency_code": "USD",
282 "name": "NH PORTFOLIO 1055 (FIDELITY INDEX)",
283 "proxy_security_id": null,
284 "security_id": "nnmo8doZ4lfKNEDe3mPJipLGkaGw3jfPrpxoN",
285 "sedol": null,
286 "ticker_symbol": "NHX105509",
287 "type": "etf",
288 "unofficial_currency_code": null,
289 "update_datetime": null
290 },
291 {
292 "close_price": 0.140034616,
293 "close_price_as_of": "2022-01-24",
294 "cusip": null,
295 "institution_id": "ins_3",
296 "institution_security_id": null,
297 "is_cash_equivalent": true,
298 "isin": null,
299 "iso_currency_code": "USD",
300 "name": "Dogecoin",
301 "proxy_security_id": null,
302 "security_id": "vLRMV3MvY1FYNP91on35CJD5QN5rw9Fpa9qOL",
303 "sedol": null,
304 "ticker_symbol": "DOGE",
305 "type": "cryptocurrency",
306 "unofficial_currency_code": null,
307 "update_datetime": "2022-06-07T23:01:00Z"
308 }
309 ]
310}
Was this helpful?

/investments/transactions/get

Get investment transactions

The /investments/transactions/get endpoint allows developers to retrieve up to 24 months of user-authorized transaction data for investment accounts.
Transactions are returned in reverse-chronological order, and the sequence of transaction ordering is stable and will not shift.
Due to the potentially large number of investment transactions associated with an Item, results are paginated. Manipulate the count and offset parameters in conjunction with the total_investment_transactions response body field to fetch all available investment transactions.
Note that Investments does not have a webhook to indicate when initial transaction data has loaded. Instead, if transactions data is not ready when /investments/transactions/get is first called, Plaid will wait for the data. For this reason, calling /investments/transactions/get immediately after Link may take up to one to two minutes to return.

investments/transactions/get

Request fields and example

client_id
string
Your Plaid API client_id. The client_id is required and may be provided either in the PLAID-CLIENT-ID header or as part of a request body.
secret
string
Your Plaid API secret. The secret is required and may be provided either in the PLAID-SECRET header or as part of a request body.
access_token
requiredstring
The access token associated with the Item data is being requested for.
start_date
requiredstring
The earliest date for which to fetch transaction history. Dates should be formatted as YYYY-MM-DD.

Format: date
end_date
requiredstring
The most recent date for which to fetch transaction history. Dates should be formatted as YYYY-MM-DD.

Format: date
options
object
An optional object to filter /investments/transactions/get results. If provided, must be non-null.
account_ids
[string]
An array of account_ids to retrieve for the Item.
count
integer
The number of transactions to fetch.

Default: 100
Minimum: 1
Maximum: 500
offset
integer
The number of transactions to skip when fetching transaction history

Default: 0
Minimum: 0
Select group for content switcher
Select Language
Copy
1const request: InvestmentsTransactionsGetRequest = {
2 access_token: accessToken,
3 start_date: '2019-01-01',
4 end_date: '2019-06-10',
5};
6try {
7 const response = await plaidClient.investmentsTransactionsGet(request);
8 const investmentTransactions = response.data.investment_transactions;
9} catch (error) {
10 // handle error
11}
investments/transactions/get

Response fields and example

item
object
Metadata about the Item.
item_id
string
The Plaid Item ID. The item_id is always unique; linking the same account at the same institution twice will result in two Items with different item_id values. Like all Plaid identifiers, the item_id is case-sensitive.
institution_id
nullablestring
The Plaid Institution ID associated with the Item. Field is null for Items created via Same Day Micro-deposits.
webhook
nullablestring
The URL registered to receive webhooks for the Item.
error
nullableobject
We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.
error_type
string
A broad categorization of the error. Safe for programmatic use.

Possible values: INVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERROR
error_code
string
The particular error code. Safe for programmatic use.
error_message
string
A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.
display_message
nullablestring
A user-friendly representation of the error code. null if the error is not related to user action.
This may change over time and is not safe for programmatic use.
request_id
string
A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.
causes
array
In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.
causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.
status
nullablenumber
The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.
documentation_url
string
The URL of a Plaid documentation page with more information about the error
suggested_action
nullablestring
Suggested steps for resolving the error
available_products
[string]
A list of products available for the Item that have not yet been accessed. The contents of this array will be mutually exclusive with billed_products.

Possible values: assets, auth, balance, identity, investments, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal
billed_products
[string]
A list of products that have been billed for the Item. The contents of this array will be mutually exclusive with available_products. Note - billed_products is populated in all environments but only requests in Production are billed. Also note that products that are billed on a pay-per-call basis rather than a pay-per-Item basis, such as balance, will not appear here.

Possible values: assets, auth, balance, identity, investments, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal
products
[string]
A list of authorized products for the Item.

Possible values: assets, auth, balance, identity, investments, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal
consented_products
[string]
Beta: A list of products that have gone through consent collection for the Item. Only present for those enabled in the beta.

Possible values: assets, auth, balance, identity, investments, liabilities, payment_initiation, identity_verification, transactions, credit_details, income, income_verification, deposit_switch, standing_orders, transfer, employment, recurring_transactions, signal
consent_expiration_time
nullablestring
The RFC 3339 timestamp after which the consent provided by the end user will expire. Upon consent expiration, the item will enter the ITEM_LOGIN_REQUIRED error state. To circumvent the ITEM_LOGIN_REQUIRED error and maintain continuous consent, the end user can reauthenticate via Link’s update mode in advance of the consent expiration time.
Note - This is only relevant for certain OAuth-based institutions. For all other institutions, this field will be null.


Format: date-time
update_type
string
Indicates whether an Item requires user interaction to be updated, which can be the case for Items with some forms of two-factor authentication.
background - Item can be updated in the background
user_present_required - Item requires user interaction to be updated


Possible values: background, user_present_required
accounts
[object]
The accounts for which transaction history is being fetched.
account_id
string
Plaid’s unique identifier for the account. This value will not change unless Plaid can't reconcile the account with the data returned by the financial institution. This may occur, for example, when the name of the account changes. If this happens a new account_id will be assigned to the account.
The account_id can also change if the access_token is deleted and the same credentials that were used to generate that access_token are used to generate a new access_token on a later date. In that case, the new account_id will be different from the old account_id.
If an account with a specific account_id disappears instead of changing, the account is likely closed. Closed accounts are not returned by the Plaid API.
Like all Plaid identifiers, the account_id is case sensitive.
balances
object
A set of fields describing the balance for an account. Balance information may be cached unless the balance object was returned by /accounts/balance/get.
available
nullablenumber
The amount of funds available to be withdrawn from the account, as determined by the financial institution.
For credit-type accounts, the available balance typically equals the limit less the current balance, less any pending outflows plus any pending inflows.
For depository-type accounts, the available balance typically equals the current balance less any pending outflows plus any pending inflows. For depository-type accounts, the available balance does not include the overdraft limit.
For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the available balance is the total cash available to withdraw as presented by the institution.
Note that not all institutions calculate the available balance. In the event that available balance is unavailable, Plaid will return an available balance value of null.
Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /accounts/balance/get.
If current is null this field is guaranteed not to be null.


Format: double
current
nullablenumber
The total amount of funds in or owed by the account.
For credit-type accounts, a positive balance indicates the amount owed; a negative amount indicates the lender owing the account holder.
For loan-type accounts, the current balance is the principal remaining on the loan, except in the case of student loan accounts at Sallie Mae (ins_116944). For Sallie Mae student loans, the account's balance includes both principal and any outstanding interest.
For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the current balance is the total value of assets as presented by the institution.
Note that balance information may be cached unless the value was returned by /accounts/balance/get; if the Item is enabled for Transactions, the balance will be at least as recent as the most recent Transaction update. If you require realtime balance information, use the available balance as provided by /accounts/balance/get.
When returned by /accounts/balance/get, this field may be null. When this happens, available is guaranteed not to be null.


Format: double
limit
nullablenumber
For credit-type accounts, this represents the credit limit.
For depository-type accounts, this represents the pre-arranged overdraft limit, which is common for current (checking) accounts in Europe.
In North America, this field is typically only available for credit-type accounts.


Format: double
iso_currency_code
nullablestring
The ISO-4217 currency code of the balance. Always null if unofficial_currency_code is non-null.
unofficial_currency_code
nullablestring
The unofficial currency code associated with the balance. 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 unofficial_currency_codes.
last_updated_datetime
nullablestring
Timestamp in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ) indicating the last time that the balance for the given account has been updated
This is currently only provided when the min_last_updated_datetime is passed when calling /accounts/balance/get for ins_128026 (Capital One).


Format: date-time
mask
nullablestring
The last 2-4 alphanumeric characters of an account's official account number. Note that the mask may be non-unique between an Item's accounts, and it may also not match the mask that the bank displays to the user.
name
string
The name of the account, either assigned by the user or by the financial institution itself
official_name
nullablestring
The official name of the account as given by the financial institution
type
string
investment: Investment account. In API versions 2018-05-22 and earlier, this type is called brokerage instead.
credit: Credit card
depository: Depository account
loan: Loan account
other: Non-specified account type
See the Account type schema for a full listing of account types and corresponding subtypes.


Possible values: investment, credit, depository, loan, brokerage, other
subtype
nullablestring
See the Account type schema for a full listing of account types and corresponding subtypes.

Possible values: 401a, 401k, 403B, 457b, 529, brokerage, cash isa, crypto exchange, education savings account, ebt, fixed annuity, gic, health reimbursement arrangement, hsa, isa, ira, lif, life insurance, lira, lrif, lrsp, non-custodial wallet, non-taxable brokerage account, other, other insurance, other annuity, prif, rdsp, resp, rlif, rrif, pension, profit sharing plan, retirement, roth, roth 401k, rrsp, sep ira, simple ira, sipp, stock plan, thrift savings plan, tfsa, trust, ugma, utma, variable annuity, credit card, paypal, cd, checking, savings, money market, prepaid, auto, business, commercial, construction, consumer, home equity, loan, mortgage, overdraft, line of credit, student, cash management, keogh, mutual fund, recurring, rewards, safe deposit, sarsep, payroll, null
verification_status
string
The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only.
pending_automatic_verification: The Item is pending automatic verification
pending_manual_verification: The Item is pending manual micro-deposit verification. Items remain in this state until the user successfully verifies the two amounts.
automatically_verified: The Item has successfully been automatically verified
manually_verified: The Item has successfully been manually verified
verification_expired: Plaid was unable to automatically verify the deposit within 7 calendar days and will no longer attempt to validate the Item. Users may retry by submitting their information again through Link.
verification_failed: The Item failed manual micro-deposit verification because the user exhausted all 3 verification attempts. Users may retry by submitting their information again through Link.


Possible values: automatically_verified, pending_automatic_verification, pending_manual_verification, manually_verified, verification_expired, verification_failed
persistent_account_id
string
A unique and persistent identifier for accounts that can be used to trace multiple instances of the same account across different Items for depository accounts. This is currently an opt-in field and only supported for Chase Items.
securities
[object]
All securities for which there is a corresponding transaction being fetched.
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. 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.
isin
nullablestring
12-character ISIN, a globally unique securities identifier. Please note that Plaid's customers must hold a license directly from CUSIP Global Services to receive CUSIP & ISIN data. This field will be null by default for new customers. For existing customers, this field will be null by default starting on Sept 15, 2023. If you would like access to this field, please contact your Plaid Account Manager or reach out to investments-vendors@plaid.com.
cusip
nullablestring
9-character CUSIP, an identifier assigned to North American securities. Please note that Plaid's customers must hold a license directly from CUSIP Global Services to receive CUSIP & ISIN data. This field will be null by default for new customers. For existing customers, this field will be null by default starting on Sept 15, 2023. If you would like access to this field, please contact your Plaid Account Manager or reach out to investments-vendors@plaid.com.
sedol
nullablestring
7-character SEDOL, an identifier assigned to securities in the UK.
institution_security_id
nullablestring
An identifier given to the security by the institution
institution_id
nullablestring
If institution_security_id is present, this field indicates the Plaid institution_id of the institution to whom the identifier belongs.
proxy_security_id
nullablestring
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
nullablestring
A descriptive name for the security, suitable for display.
ticker_symbol
nullablestring
The security’s trading symbol for publicly traded securities, and otherwise a short identifier if available.
is_cash_equivalent
nullableboolean
Indicates that a security is a highly liquid asset and can be treated like cash.
type
nullablestring
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
close_price
nullablenumber
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.


Format: double
close_price_as_of
nullablestring
Date for which close_price is accurate. Always null if close_price is null.

Format: date
update_datetime
nullablestring
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.

Format: date-time
iso_currency_code
nullablestring
The ISO-4217 currency code of the price given. Always null if unofficial_currency_code is non-null.
unofficial_currency_code
nullablestring
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.
investment_transactions
[object]
The transactions being fetched
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.
cancel_transaction_id
deprecatednullablestring
A legacy field formerly used internally by Plaid to identify certain canceled transactions.
account_id
string
The account_id of the account against which this transaction posted.
security_id
nullablestring
The security_id to which this transaction is related.
date
string
The ISO 8601 posting date for the transaction.

Format: date
name
string
The institution’s description of the transaction.
quantity
number
The number of units of the security involved in this transaction. Positive for buy transactions; negative for sell transactions.

Format: double
amount
number
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.

Format: double
price
number
The price of the security at which this transaction occurred.

Format: double
fees
nullablenumber
The combined value of all fees applied to this transaction

Format: double
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.


Possible values: buy, sell, cancel, cash, fee, transfer
subtype
string
For descriptions of possible transaction types and subtypes, see the Investment transaction types schema.

Possible values: account fee, adjustment, assignment, buy, buy to cover, contribution, deposit, distribution, dividend, dividend reinvestment, exercise, expire, fund fee, interest, interest receivable, interest reinvestment, legal fee, loan payment, long-term capital gain, long-term capital gain reinvestment, management fee, margin expense, merger, miscellaneous fee, non-qualified dividend, non-resident tax, pending credit, pending debit, qualified dividend, rebalance, return of principal, request, sell, sell short, send, short-term capital gain, short-term capital gain reinvestment, spin off, split, stock distribution, tax, tax withheld, trade, transfer, transfer fee, trust fee, unqualified gain, withdrawal
iso_currency_code
nullablestring
The ISO-4217 currency code of the transaction. Always null if unofficial_currency_code is non-null.
unofficial_currency_code
nullablestring
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_codes.
total_investment_transactions
integer
The total number of transactions available within the date range specified. If total_investment_transactions is larger than the size of the transactions array, more transactions are available and can be fetched via manipulating the offset parameter.
request_id
string
A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
Copy
1{
2 "accounts": [
3 {
4 "account_id": "5e66Dl6jNatx3nXPGwZ7UkJed4z6KBcZA4Rbe",
5 "balances": {
6 "available": 100,
7 "current": 110,
8 "iso_currency_code": "USD",
9 "limit": null,
10 "unofficial_currency_code": null
11 },
12 "mask": "0000",
13 "name": "Plaid Checking",
14 "official_name": "Plaid Gold Standard 0% Interest Checking",
15 "subtype": "checking",
16 "type": "depository"
17 },
18 {
19 "account_id": "KqZZMoZmBWHJlz7yKaZjHZb78VNpaxfVa7e5z",
20 "balances": {
21 "available": null,
22 "current": 320.76,
23 "iso_currency_code": "USD",
24 "limit": null,
25 "unofficial_currency_code": null
26 },
27 "mask": "5555",
28 "name": "Plaid IRA",
29 "official_name": null,
30 "subtype": "ira",
31 "type": "investment"
32 },
33 {
34 "account_id": "rz99ex9ZQotvnjXdgQLEsR81e3ArPgulVWjGj",
35 "balances": {
36 "available": null,
37 "current": 23631.9805,
38 "iso_currency_code": "USD",
39 "limit": null,
40 "unofficial_currency_code": null
41 },
42 "mask": "6666",
43 "name": "Plaid 401k",
44 "official_name": null,
45 "subtype": "401k",
46 "type": "investment"
47 }
48 ],
49 "investment_transactions": [
50 {
51 "account_id": "rz99ex9ZQotvnjXdgQLEsR81e3ArPgulVWjGj",
52 "amount": -8.72,
53 "cancel_transaction_id": null,
54 "date": "2020-05-29",
55 "fees": 0,
56 "investment_transaction_id": "oq99Pz97joHQem4BNjXECev1E4B6L6sRzwANW",
57 "iso_currency_code": "USD",
58 "name": "INCOME DIV DIVIDEND RECEIVED",
59 "price": 0,
60 "quantity": 0,
61 "security_id": "eW4jmnjd6AtjxXVrjmj6SX1dNEdZp3Cy8RnRQ",
62 "subtype": "dividend",
63 "type": "cash",
64 "unofficial_currency_code": null
65 },
66 {
67 "account_id": "rz99ex9ZQotvnjXdgQLEsR81e3ArPgulVWjGj",
68 "amount": -1289.01,
69 "cancel_transaction_id": null,
70 "date": "2020-05-28",
71 "fees": 7.99,
72 "investment_transaction_id": "pK99jB9e7mtwjA435GpVuMvmWQKVbVFLWme57",
73 "iso_currency_code": "USD",
74 "name": "SELL Matthews Pacific Tiger Fund Insti Class",
75 "price": 27.53,
76 "quantity": -47.74104242992852,
77 "security_id": "JDdP7XPMklt5vwPmDN45t3KAoWAPmjtpaW7DP",
78 "subtype": "sell",
79 "type": "sell",
80 "unofficial_currency_code": null
81 },
82 {
83 "account_id": "rz99ex9ZQotvnjXdgQLEsR81e3ArPgulVWjGj",
84 "amount": 7.7,
85 "cancel_transaction_id": null,
86 "date": "2020-05-27",
87 "fees": 7.99,
88 "investment_transaction_id": "LKoo1ko93wtreBwM7yQnuQ3P5DNKbKSPRzBNv",
89 "iso_currency_code": "USD",
90 "name": "BUY DoubleLine Total Return Bond Fund",
91 "price": 10.42,
92 "quantity": 0.7388014749727547,
93 "security_id": "NDVQrXQoqzt5v3bAe8qRt4A7mK7wvZCLEBBJk",
94 "subtype": "buy",
95 "type": "buy",
96 "unofficial_currency_code": null
97 }
98 ],
99 "item": {
100 "available_products": [
101 "assets",
102 "balance",
103 "identity",
104 "transactions"
105 ],
106 "billed_products": [
107 "auth",
108 "investments"
109 ],
110 "consent_expiration_time": null,
111 "error": null,
112 "institution_id": "ins_12",
113 "item_id": "8Mqq5rqQ7Pcxq9MGDv3JULZ6yzZDLMCwoxGDq",
114 "update_type": "background",
115 "webhook": "https://www.genericwebhookurl.com/webhook"
116 },
117 "request_id": "iv4q3ZlytOOthkv",
118 "securities": [
119 {
120 "close_price": 27,
121 "close_price_as_of": null,
122 "cusip": "577130834",
123 "institution_id": null,
124 "institution_security_id": null,
125 "is_cash_equivalent": false,
126 "isin": "US5771308344",
127 "iso_currency_code": "USD",
128 "name": "Matthews Pacific Tiger Fund Insti Class",
129 "proxy_security_id": null,
130 "security_id": "JDdP7XPMklt5vwPmDN45t3KAoWAPmjtpaW7DP",
131 "sedol": null,
132 "ticker_symbol": "MIPTX",
133 "type": "mutual fund",
134 "unofficial_currency_code": null,
135 "update_datetime": null
136 },
137 {
138 "close_price": 10.42,
139 "close_price_as_of": null,
140 "cusip": "258620103",
141 "institution_id": null,
142 "institution_security_id": null,
143 "is_cash_equivalent": false,
144 "isin": "US2586201038",
145 "iso_currency_code": "USD",
146 "name": "DoubleLine Total Return Bond Fund",
147 "proxy_security_id": null,
148 "security_id": "NDVQrXQoqzt5v3bAe8qRt4A7mK7wvZCLEBBJk",
149 "sedol": null,
150 "ticker_symbol": "DBLTX",
151 "type": "mutual fund",
152 "unofficial_currency_code": null,
153 "update_datetime": null
154 },
155 {
156 "close_price": 34.73,
157 "close_price_as_of": null,
158 "cusip": "84470P109",
159 "institution_id": null,
160 "institution_security_id": null,
161 "is_cash_equivalent": false,
162 "isin": "US84470P1093",
163 "iso_currency_code": "USD",
164 "name": "Southside Bancshares Inc.",
165 "proxy_security_id": null,
166 "security_id": "eW4jmnjd6AtjxXVrjmj6SX1dNEdZp3Cy8RnRQ",
167 "sedol": null,
168 "ticker_symbol": "SBSI",
169 "type": "equity",
170 "unofficial_currency_code": null,
171 "update_datetime": null
172 }
173 ],
174 "total_investment_transactions": 3
175}
Was this helpful?

Webhooks

Updates are sent to indicate that new holdings or investment transactions are available.

HOLDINGS: DEFAULT_UPDATE

Fired when new or updated holdings have been detected on an investment account. The webhook typically fires in response to any newly added holdings or price changes to existing holdings, most commonly after market close.

webhook_type
string
HOLDINGS
webhook_code
string
DEFAULT_UPDATE
item_id
string
The item_id of the Item associated with this webhook, warning, or error
error
object
We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.
error_type
string
A broad categorization of the error. Safe for programmatic use.

Possible values: INVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERROR
error_code
string
The particular error code. Safe for programmatic use.
error_message
string
A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.
display_message
string
A user-friendly representation of the error code. null if the error is not related to user action.
This may change over time and is not safe for programmatic use.
request_id
string
A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.
causes
array
In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.
causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.
status
number
The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.
documentation_url
string
The URL of a Plaid documentation page with more information about the error
suggested_action
string
Suggested steps for resolving the error
new_holdings
number
The number of new holdings reported since the last time this webhook was fired.
updated_holdings
number
The number of updated holdings reported since the last time this webhook was fired.
environment
string
The Plaid environment the webhook was sent from

Possible values: development, sandbox, production
Copy
1{
2 "webhook_type": "HOLDINGS",
3 "webhook_code": "DEFAULT_UPDATE",
4 "item_id": "wz666MBjYWTp2PDzzggYhM6oWWmBb",
5 "error": null,
6 "new_holdings": 19,
7 "updated_holdings": 0,
8 "environment": "production"
9}
Was this helpful?

INVESTMENTS_TRANSACTIONS: DEFAULT_UPDATE

Fired when new transactions have been detected on an investment account.

webhook_type
string
INVESTMENTS_TRANSACTIONS
webhook_code
string
DEFAULT_UPDATE
item_id
string
The item_id of the Item associated with this webhook, warning, or error
error
object
We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. An Item with a non-null error object will only be part of an API response when calling /item/get to view Item status. Otherwise, error fields will be null if no error has occurred; if an error has occurred, an error code will be returned instead.
error_type
string
A broad categorization of the error. Safe for programmatic use.

Possible values: INVALID_REQUEST, INVALID_RESULT, INVALID_INPUT, INSTITUTION_ERROR, RATE_LIMIT_EXCEEDED, API_ERROR, ITEM_ERROR, ASSET_REPORT_ERROR, RECAPTCHA_ERROR, OAUTH_ERROR, PAYMENT_ERROR, BANK_TRANSFER_ERROR, INCOME_VERIFICATION_ERROR, MICRODEPOSITS_ERROR
error_code
string
The particular error code. Safe for programmatic use.
error_message
string
A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.
display_message
string
A user-friendly representation of the error code. null if the error is not related to user action.
This may change over time and is not safe for programmatic use.
request_id
string
A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.
causes
array
In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.
causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.
status
number
The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.
documentation_url
string
The URL of a Plaid documentation page with more information about the error
suggested_action
string
Suggested steps for resolving the error
new_investments_transactions
number
The number of new transactions reported since the last time this webhook was fired.
canceled_investments_transactions
number
The number of canceled transactions reported since the last time this webhook was fired.
environment
string
The Plaid environment the webhook was sent from

Possible values: development, sandbox, production
Copy
1{
2 "webhook_type": "INVESTMENTS_TRANSACTIONS",
3 "webhook_code": "DEFAULT_UPDATE",
4 "item_id": "wz666MBjYWTp2PDzzggYhM6oWWmBb",
5 "error": null,
6 "new_investments_transactions": 16,
7 "canceled_investments_transactions": 0,
8 "environment": "production"
9}
Was this helpful?
Developer community
GitHub
GitHub
Stack Overflow
Stack Overflow
YouTube
YouTube
Twitter
Twitter
Discord
Discord