Skip to content

Holding ​

A position in a brokerage account. Get holdings returns an array of holdings.

Note

Enrichment fields like market_price can be absent or null when a brokerage does not supply them. warning says why.

Fields ​

keystringoptional

Stable identifier for the position: the normalized symbol, or the compact OCC symbol for options.

symbolstring

Normalized ticker, crypto pair, or OCC option symbol.

display_symbolstringoptional

Symbol to show users.

quantitynumber

Shares, coins, or contracts held. Negative for a short position.

average_priceBalancedeprecated

Brokerage-specific legacy value. Use average_unit_cost.

average_unit_costBalance | nulloptional

Average cost per share, coin, or option share, before multiplier. Null when the brokerage does not report it.

descriptionstringoptional

Name of the security, such as Cloudflare, Inc.

typeenum

Asset type: 2 for stocks and options, 4 for crypto.

0248
sideenumoptional

Whether the position is long or short.

longshort
instrument_kindenumoptional

Whether the position is an equity, crypto, or option.

equitycryptooption
option_symbolstringoptional

The option's OCC symbol as the brokerage reports it.

multipliernumberoptional

Shares each unit controls: 100 for standard options, 1 otherwise.

total_costBalance | nulloptional

quantity × average_unit_cost × multiplier.

market_priceBalance | nulloptional

Current price per share, coin, or option share. Null when no price is available.

market_valueBalance | nulloptional

quantity × market_price × multiplier.

unrealized_pnlBalance | nulloptional

market_value minus total_cost.

unrealized_pnl_percentnumber | nulloptional

unrealized_pnl as a percent of total_cost, such as 12.5 for 12.5%.

price_kindenumoptional

Where market_price came from. midpoint is the option bid/ask midpoint.

last_trademinute_closemidpointbrokerageunavailable
price_as_ofstring | nulloptional

When market_price was observed.

delayedbooleanoptional

Whether market_price is delayed.

underlying_symbolstringoptional

The option's underlying ticker.

warningstringoptional

Why a value is missing, such as Current price unavailable.

Balance ​

Money fields are Balance objects.

amountnumber

Amount in currency.

currencystring

ISO 4217 currency code, such as USD.